CN115081920B - Attendance check-in scheduling management method, system, equipment and storage medium - Google Patents
Attendance check-in scheduling management method, system, equipment and storage medium Download PDFInfo
- Publication number
- CN115081920B CN115081920B CN202210799441.7A CN202210799441A CN115081920B CN 115081920 B CN115081920 B CN 115081920B CN 202210799441 A CN202210799441 A CN 202210799441A CN 115081920 B CN115081920 B CN 115081920B
- Authority
- CN
- China
- Prior art keywords
- data
- discriminator
- attendance
- feature map
- prediction model
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000007726 management method Methods 0.000 title claims abstract description 33
- 238000003860 storage Methods 0.000 title claims abstract description 15
- 238000012549 training Methods 0.000 claims abstract description 29
- 238000007781 pre-processing Methods 0.000 claims abstract description 4
- 230000006870 function Effects 0.000 claims description 74
- 238000000034 method Methods 0.000 claims description 30
- 230000008569 process Effects 0.000 claims description 19
- 238000005457 optimization Methods 0.000 claims description 18
- 238000012886 linear function Methods 0.000 claims description 14
- 230000007246 mechanism Effects 0.000 claims description 14
- 238000004364 calculation method Methods 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 7
- 238000013480 data collection Methods 0.000 claims description 4
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 238000004140 cleaning Methods 0.000 claims description 3
- 230000010354 integration Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 7
- 238000012937 correction Methods 0.000 description 6
- 238000009826 distribution Methods 0.000 description 4
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0631—Resource planning, allocation, distributing or scheduling for enterprises or organisations
- G06Q10/06312—Adjustment or analysis of established resource schedule, e.g. resource or task levelling, or dynamic rescheduling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/084—Backpropagation, e.g. using gradient descent
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02A—TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
- Y02A90/00—Technologies having an indirect contribution to adaptation to climate change
- Y02A90/10—Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- Entrepreneurship & Innovation (AREA)
- General Physics & Mathematics (AREA)
- Game Theory and Decision Science (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- Operations Research (AREA)
- General Business, Economics & Management (AREA)
- Marketing (AREA)
- Development Economics (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Educational Administration (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明公开了一种考勤签到调度管理方法、系统、设备及存储介质,系统包括:实时采集考勤地点区域的天气数据,并对采集到的天气数据进行预处理得到初始样本集;基于改进的生成对抗网络构建预测模型;计算预测目标与真实目标图像之间的损失函数;通过损失函数对预测模型进行训练,训练中,判别器D的目标正确地识别出真实样本和正确地剔除生成的假样本,生成器G的目标是使生成的预测值被判别器D剔除的概率最小化,直至输出训练好的预测模型;将所述天气数据输入训练好的预测模型中得到预测值,根据预测值执行相应的考勤操作。本发明采用改进的GAN网络实时监测考勤地的天气情况,及时自动调整考勤方式与考勤制度,提高办事效率,避免数据出错。
The present invention discloses an attendance check-in scheduling management method, system, equipment and storage medium. The system includes: collecting weather data of the attendance location area in real time, and preprocessing the collected weather data to obtain an initial sample set; building a prediction model based on an improved generative adversarial network; calculating the loss function between the predicted target and the real target image; training the prediction model through the loss function, during which the discriminator D aims to correctly identify the real samples and correctly remove the generated false samples, and the generator G aims to minimize the probability that the generated prediction value is removed by the discriminator D until the trained prediction model is output; the weather data is input into the trained prediction model to obtain the predicted value, and the corresponding attendance operation is performed according to the predicted value. The present invention adopts an improved GAN network to monitor the weather conditions of the attendance location in real time, timely and automatically adjusts the attendance mode and attendance system, improves work efficiency, and avoids data errors.
Description
技术领域Technical Field
本发明属于信息处理的技术领域,具体涉及一种考勤签到调度管理方法、系统、设备及存储介质。The present invention belongs to the technical field of information processing, and in particular relates to an attendance check-in scheduling management method, system, equipment and storage medium.
背景技术Background technique
目前的签到方法中,关于假期休息的设置大多是通过人工修改考勤规则或预先设定法定假期,但对于突发情况如台风天等不可抗力原因导致的不适合考勤的休息往往需要人工提前干预。而且考勤数据的统计、出勤率、薪酬等数据也需要人工导出并操作计算。这些操作在一定程度上都很依赖人工,如果人工操作出错或操作迟延可能会导致大量的错误数据和脏数据,也会加大后期统计数据的工作量和难度。In the current sign-in method, the setting of holiday breaks is mostly done by manually modifying the attendance rules or pre-setting statutory holidays. However, for emergencies such as typhoons and other force majeure reasons that are not suitable for attendance, manual intervention is often required in advance. In addition, attendance data statistics, attendance rate, salary and other data also need to be manually exported and calculated. These operations are very dependent on manual operations to a certain extent. If manual operations are wrong or delayed, a large amount of erroneous and dirty data may be generated, which will also increase the workload and difficulty of statistical data in the later stage.
发明内容Summary of the invention
本发明的主要目的在于克服现有技术的缺点与不足,提供一种勤签到调度管理方法、系统、设备及存储介质,实时监测考勤地的天气情况,结合当地气象局发布的相关信息如应急响应通知、预警信号数据、台风数据等,预测下一天的天气状况,判断是否需要停工停课。如有需求将自动设置当天考勤为休息并通知各考勤人员,避免人员安全事故的发生。每月定时按管理人员设置的考勤参数自动统计考勤数据,计算出勤率以及薪酬等相关数据,提高相关工作人员办事效率,避免出错。The main purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art, and to provide an attendance scheduling management method, system, equipment and storage medium, which monitors the weather conditions at the attendance location in real time, and combines relevant information released by the local meteorological bureau such as emergency response notifications, early warning signal data, typhoon data, etc., to predict the weather conditions of the next day and determine whether it is necessary to stop work or classes. If necessary, the attendance of the day will be automatically set to rest and each attendance officer will be notified to avoid the occurrence of personnel safety accidents. Attendance data will be automatically counted according to the attendance parameters set by the management personnel on a regular basis every month, and attendance rate and salary and other related data will be calculated to improve the efficiency of relevant staff and avoid mistakes.
为了达到上述目的,本发明采用以下技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:
本发明一方面提供了一种考勤签到调度管理方法,包括下述步骤:The present invention provides an attendance check-in scheduling management method, comprising the following steps:
实时采集考勤地点区域的天气数据,并对采集到的天气数据进行预处理得到初始样本集;Collect weather data of the attendance location area in real time, and pre-process the collected weather data to obtain an initial sample set;
基于改进的生成对抗网络构建预测模型,具体为:将输入的原始数据采用第一卷积层和纠正线性函数修正叠加,获取初始特征图,接着对初始特征图进行上采样,将提取到的初始特征图进行放大,以更高的分辨率进行后续的三个卷积层和纠正线性函数的修正;然后将初始特征图与第四卷积层生成的特征图相乘后通过空间注意力机制和通道注意力机制,获取具体特征信息;最后将所述具体特征信息再次进行上采样后采用第五卷积层和双曲正切函数修正叠加,获取第五特征图,通过堆叠五个卷积层从原始图像中提取的特征图,建立预测模型,所述预测模型用于输出预测目标;A prediction model is constructed based on an improved generative adversarial network, specifically: the input raw data is corrected and superimposed by the first convolution layer and the rectified linear function to obtain an initial feature map, then the initial feature map is upsampled, the extracted initial feature map is enlarged, and the subsequent three convolution layers and the rectified linear function are corrected with a higher resolution; then the initial feature map is multiplied with the feature map generated by the fourth convolution layer, and then the specific feature information is obtained through the spatial attention mechanism and the channel attention mechanism; finally, the specific feature information is upsampled again, and then the fifth convolution layer and the hyperbolic tangent function are used to correct and superimpose to obtain the fifth feature map, and the feature map extracted from the original image by stacking five convolution layers is used to establish a prediction model, and the prediction model is used to output a prediction target;
计算预测目标与真实目标图像之间的损失函数,所述损失函数包括生成对抗网络的判别器D的损失优化函数和生成对抗网络的生成器G的损失优化函数;Calculate the loss function between the predicted target and the real target image, wherein the loss function includes the loss optimization function of the discriminator D of the generative adversarial network and the loss optimization function of the generator G of the generative adversarial network;
通过损失函数对预测模型进行训练,训练中,判别器D的目标正确地识别出真实样本和正确地剔除生成的假样本,生成器G的目标是使生成的预测值被判别器D剔除的概率最小化,不断的迭代训练,对于每一次迭代过程,判别器D和生成器G都会分别更新数据集的特征信息,直至输出训练好的预测模型;The prediction model is trained through the loss function. During the training, the goal of the discriminator D is to correctly identify the real samples and correctly remove the generated fake samples. The goal of the generator G is to minimize the probability that the generated prediction value is removed by the discriminator D. The training is continuously iterated. For each iteration process, the discriminator D and the generator G will update the feature information of the data set respectively until the trained prediction model is output;
将所述天气数据输入训练好的预测模型中得到预测值,根据预测值执行相应的考勤操作。The weather data is input into a trained prediction model to obtain a prediction value, and corresponding attendance operations are performed according to the prediction value.
作为优选的技术方案,所述天气数据包括天气实况、预警信号、台风数据、S波段雷达数据和冰雹数据;As a preferred technical solution, the weather data includes weather conditions, warning signals, typhoon data, S-band radar data and hail data;
所述预处理包括数据清理、数据转换和数据集成。The preprocessing includes data cleaning, data conversion and data integration.
作为优选的技术方案,所述计算预测目标与真实目标图像之间的损失函数,具体为:As a preferred technical solution, the loss function between the calculated predicted target and the real target image is specifically:
损失函数由两部分组成:The loss function consists of two parts:
其中为判别器D的损失优化函数,为生成器G的损失优化函数;in is the loss optimization function of the discriminator D, Loss optimization function for generator G;
与的计算公式如下: and The calculation formula is as follows:
其中,Lbce为交叉熵损失函数;X、Y分别为输入图像序列和目标时刻真实图像数据;对图像的多个尺度k,分别得到生成结果Gk;N为尺度数;yi为真实值;yi′为预测值;n为交叉熵损失函数中的样本数。Wherein, L bce is the cross entropy loss function; X and Y are the input image sequence and the real image data at the target moment respectively; for multiple scales k of the image, the generated results G k are obtained respectively; N is the number of scales; yi is the real value; yi ′ is the predicted value; n is the number of samples in the cross entropy loss function.
作为优选的技术方案,所述判别器D的目标函数如下:As a preferred technical solution, the objective function of the discriminator D is as follows:
其中Pdata(x)为真实数据的分布;x是一个真实数据;P(z)为预测数据的分布。Where P data (x) is the distribution of real data; x is a real data; P (z) is the distribution of predicted data.
作为优选的技术方案,对判别器D,从真实数据集中获取天气数据样本{x1,x2,...,xm},再从真实数据集中获取历史天气数据样本{z1,z2,...,zm};对每个历史图像样本zk,通过生成器G得到预测结果G(zk),根据以下公式更新判别器D的模型参数θd:As a preferred technical solution, for the discriminator D, weather data samples {x 1 ,x 2 ,...,x m } are obtained from the real data set, and historical weather data samples {z 1 ,z 2 ,...,z m } are obtained from the real data set; for each historical image sample z k , the prediction result G(z k ) is obtained through the generator G, and the model parameter θ d of the discriminator D is updated according to the following formula:
其中为判别器损失函数;D(xi)为真实天气数据集的判别结果;为判别器对生成器生成的图像的判别结果;为梯度偏导数;θd为模型参数变量,模型每训练一次,便修正一次结果,并把训练结果反向传播给模型进行修正;η为学习率。in is the discriminator loss function; D( xi ) is the discriminant result of the real weather data set; The discriminator's discrimination result on the image generated by the generator; is the gradient partial derivative; θd is the model parameter variable. Each time the model is trained, the result is corrected and the training result is back-propagated to the model for correction; η is the learning rate.
作为优选的技术方案,对于生成器G的每一次迭代过程,从真实数据集中获取历史数据样本{z1,z2,...,zm},根据以下公式更新判别器的模型参数θg:As a preferred technical solution, for each iteration of the generator G, historical data samples {z 1 ,z 2 ,...,z m } are obtained from the real data set, and the model parameters θ g of the discriminator are updated according to the following formula:
其中为生成器损失函数;G(zi)为通过真实数据与θg共同计算出来的结果;θg为模型参数变量,模型每训练一次便修正一次结果,并把训练结果反向传播给模型进行修正。in is the generator loss function; G(z i ) is the result calculated by real data and θ g ; θ g is the model parameter variable. The model corrects the result every time it is trained, and the training result is back-propagated to the model for correction.
作为优选的技术方案,在训练过程中,第一代的生成器产生预测值,然后把这些预测值和真实值放在第一代的判别器中去学习,让第一代的判别器能够真实地分辨出生成的数据和真实的数据;然后又有了第二代的生成器,第二代生成器G产生的数据,能够骗过第一代的判别器D,此时,再训练第二代的判别器D,依次类推。As a preferred technical solution, during the training process, the first-generation generator generates predicted values, and then these predicted values and true values are put into the first-generation discriminator for learning, so that the first-generation discriminator can truly distinguish between the generated data and the real data; then there is a second-generation generator, and the data generated by the second-generation generator G can deceive the first-generation discriminator D. At this time, the second-generation discriminator D is trained again, and so on.
本发明另一方面提供了一种考勤签到调度管理系统,包括数据采集模块、模型构建模块、损失函数计算模块、模型训练模块以及预测模块;Another aspect of the present invention provides an attendance check-in scheduling management system, including a data acquisition module, a model building module, a loss function calculation module, a model training module and a prediction module;
所述数据采集模块,用于实时采集考勤地点区域的天气数据,并对采集到的天气数据进行预处理得到初始样本集;The data collection module is used to collect weather data of the attendance location area in real time, and pre-process the collected weather data to obtain an initial sample set;
所述模型构建模块,用于基于改进的生成对抗网络构建预测模型,具体为:将输入的原始数据采用第一卷积层和纠正线性函数修正叠加,获取初始特征图,接着对初始特征图进行上采样,将提取到的初始特征图进行放大,以更高的分辨率进行后续的三个卷积层和纠正线性函数的修正;然后将初始特征图与第四卷积层生成的特征图相乘后通过空间注意力机制和通道注意力机制,获取具体特征信息;最后将所述具体特征信息再次进行上采样后采用第五卷积层和双曲正切函数修正叠加,获取第五特征图,通过堆叠五个卷积层从原始图像中提取的特征图,建立预测模型,所述预测模型用于输出预测目标;The model building module is used to build a prediction model based on the improved generative adversarial network, specifically: the input raw data is corrected and superimposed by the first convolution layer and the corrected linear function to obtain an initial feature map, then the initial feature map is upsampled, the extracted initial feature map is enlarged, and the subsequent three convolution layers and the corrected linear function are corrected with a higher resolution; then the initial feature map is multiplied with the feature map generated by the fourth convolution layer, and then the specific feature information is obtained through the spatial attention mechanism and the channel attention mechanism; finally, the specific feature information is upsampled again, and the fifth convolution layer and the hyperbolic tangent function are used to correct and superimpose to obtain the fifth feature map, and the feature map extracted from the original image by stacking five convolution layers is used to establish a prediction model, and the prediction model is used to output a prediction target;
所述损失函数计算模块,用于计算预测目标与真实目标图像之间的损失函数,所述损失函数包括生成对抗网络的判别器D的损失优化函数和生成对抗网络的生成器G的损失优化函数;The loss function calculation module is used to calculate the loss function between the predicted target and the real target image, wherein the loss function includes the loss optimization function of the discriminator D of the generative adversarial network and the loss optimization function of the generator G of the generative adversarial network;
所述模型训练模块,用于通过损失函数对预测模型进行训练,训练中,判别器D的目标正确地识别出真实样本和正确地剔除生成的假样本,生成器G的目标是使生成的预测值被判别器D剔除的概率最小化,不断的迭代训练,对于每一次迭代过程,判别器D和生成器G都会分别更新数据集的特征信息,直至输出训练好的预测模型;The model training module is used to train the prediction model through the loss function. During the training, the goal of the discriminator D is to correctly identify the real samples and correctly remove the generated false samples. The goal of the generator G is to minimize the probability that the generated prediction value is removed by the discriminator D. The training is continuously iterated. For each iteration process, the discriminator D and the generator G will respectively update the feature information of the data set until the trained prediction model is output;
所述预测模块,将所述天气数据输入训练好的预测模型中得到预测值,根据预测值执行相应的考勤操作。The prediction module inputs the weather data into a trained prediction model to obtain a prediction value, and performs corresponding attendance operations according to the prediction value.
本发明又一方面提供了一种电子设备,所述电子设备包括:Another aspect of the present invention provides an electronic device, the electronic device comprising:
至少一个处理器;以及,at least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的计算机程序指令,所述计算机程序指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行所述的考勤签到调度管理考勤签到调度管理方法。The memory stores computer program instructions that can be executed by the at least one processor, and the computer program instructions are executed by the at least one processor to enable the at least one processor to execute the attendance check-in scheduling management and attendance check-in scheduling management method.
本发明再一方面提供了一种计算机可读存储介质,存储有程序,其特征在于,所述程序被处理器执行时,实现所述的考勤签到调度管理考勤签到调度管理方法。On the other hand, the present invention provides a computer-readable storage medium storing a program, characterized in that when the program is executed by a processor, the attendance check-in scheduling management method is implemented.
本发明与现有技术相比,具有如下优点和有益效果:Compared with the prior art, the present invention has the following advantages and beneficial effects:
1.本发明采用GAN网络实时监测考勤地的天气情况,及时自动调整考勤方式与考勤制度,免去繁杂的人工调整,提高相关工作人员办事效率,避免数据出错。1. The present invention adopts the GAN network to monitor the weather conditions at the attendance location in real time, and automatically adjusts the attendance method and attendance system in a timely manner, eliminating complicated manual adjustments, improving the work efficiency of relevant staff, and avoiding data errors.
2.本发明提供方便快捷的考勤数据统计方式,考勤管理人员只需设置一次考勤规则,往后即可一键统计每月考勤人员出勤数据,减轻人工统计出错的风险。2. The present invention provides a convenient and fast attendance data statistics method. The attendance management personnel only need to set the attendance rules once, and then they can count the attendance data of the attendance personnel every month with one click, reducing the risk of manual statistics errors.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
图1为本发明实施例考勤签到调度管理方法的流程图;FIG1 is a flow chart of an attendance check-in scheduling management method according to an embodiment of the present invention;
图2为本发明实施例基于改进GAN方法的图像预测模型示意图;FIG2 is a schematic diagram of an image prediction model based on an improved GAN method according to an embodiment of the present invention;
图3为本发明实施例基于GAN的天气预测对抗学习模型示意图;FIG3 is a schematic diagram of a weather forecast adversarial learning model based on GAN according to an embodiment of the present invention;
图4为本发明将模型部署到服务器后的考勤管理示意图;FIG4 is a schematic diagram of attendance management after the model is deployed to the server according to the present invention;
图5为本发明实施例考勤签到调度管理系统的结构图;5 is a structural diagram of an attendance check-in scheduling management system according to an embodiment of the present invention;
图6为本发明实施例电子设备的结构示意图。FIG. 6 is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.
在本申请中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本申请所描述的实施例可以与其它实施例相结合。Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.
如图1所示,本实施例考勤签到调度管理方法,包括下述步骤:As shown in FIG1 , the attendance check-in scheduling management method of this embodiment includes the following steps:
S1、实时采集考勤地点区域的天气数据,并对采集到的天气数据进行预处理得到初始样本集。S1. Collect weather data of the attendance location area in real time, and pre-process the collected weather data to obtain an initial sample set.
进一步的,所述天气数据包括天气实况、预警信号、台风数据、S波段雷达数据和冰雹数据。Furthermore, the weather data includes actual weather conditions, warning signals, typhoon data, S-band radar data and hail data.
进一步的,所述预处理包括数据清理、数据转换和数据集成。Furthermore, the preprocessing includes data cleaning, data conversion and data integration.
S2、基于改进的生成对抗网络(Generative Adversarial Networks,GAN)建立预测模型,如图2所示,具体为:S2. A prediction model is established based on the improved Generative Adversarial Networks (GAN), as shown in Figure 2. Specifically:
S21、首先将输入的原始数据采用卷积层和纠正线性函数ReLU修正叠加,获取初步的特征图,接着对初始特征图进行上采样upsampled,将提取到的初始特征图进行放大,从而以更高的分辨率进行后续的三个卷积层和纠正线性函数ReLU的修正;S21, firstly, the input raw data is corrected and superimposed by a convolution layer and a corrected linear function ReLU to obtain a preliminary feature map, then the initial feature map is upsampled, and the extracted initial feature map is enlarged, so as to perform the subsequent three convolution layers and the corrected linear function ReLU correction with a higher resolution;
S22、然后将初始特征图与第四卷积层生成的特征图相乘后通过空间注意力机制和通道注意力机制,获取更为具体的目标特征信息;S22, then multiplying the initial feature map with the feature map generated by the fourth convolutional layer, and obtaining more specific target feature information through the spatial attention mechanism and the channel attention mechanism;
S23、将获取到的具体特征信息再次进行上采样后采用卷积层和双曲正切函数Sigmoid修正叠加,获取第五特征图。S23, up-sampling the acquired specific feature information again, and then using a convolution layer and a hyperbolic tangent function Sigmoid correction superposition to obtain a fifth feature map.
S24、通过堆叠5个卷积层从原始图像中提取的特征,建立预报模型,输出预报目标。S24. By stacking 5 convolutional layers to extract features from the original image, a prediction model is established and the prediction target is output.
进一步的,计算预报目标与真实目标图像之间的损失函数,再通过损失函数对模型进行训练,使模型向正确的方向优化。Furthermore, the loss function between the predicted target and the real target image is calculated, and then the model is trained through the loss function to optimize the model in the right direction.
ReLU函数公式如下所示:The ReLU function formula is as follows:
Sigmoid函数公式如下所示:The Sigmoid function formula is as follows:
S3、计算预测目标与真实目标图像之间的损失函数,所述损失函数包括生成对抗网络的判别器D的损失优化函数和生成对抗网络的生成器G的损失优化函数;S3, calculating the loss function between the predicted target and the real target image, wherein the loss function includes the loss optimization function of the discriminator D of the generative adversarial network and the loss optimization function of the generator G of the generative adversarial network;
可以理解的是,GAN网络主要由生成器G和判别器D组成,G就是一个生成图片的网络,它接受一个随机的噪声z,然后通过这个噪声生成图片,生成的数据记做G(z)。D是一个判别网络,判别一张图片是不是“真实的”(是否是捏造的)。它的输入参数是x,x代表一张图片,输出D(x)代表x为真实图片的概率,如果为1,就代表是真实的图片,而输出为0,就代表不可能是真实的图片,如图3所示。It is understandable that the GAN network is mainly composed of a generator G and a discriminator D. G is a network that generates images. It accepts a random noise z and then generates images through this noise. The generated data is recorded as G(z). D is a discriminant network that determines whether a picture is "real" (whether it is fabricated). Its input parameter is x, x represents a picture, and the output D(x) represents the probability that x is a real picture. If it is 1, it means it is a real picture, and if the output is 0, it means it cannot be a real picture, as shown in Figure 3.
结合预报模型的可用性,损失函数由两部分组成。Combined with the availability of the forecast model, the loss function consists of two parts.
其中为判别器D的损失优化函数,为生成器G的损失优化函数。in is the loss optimization function of the discriminator D, The loss optimization function for the generator G.
与的详细公式如下: and The detailed formula is as follows:
其中Lbce为交叉熵损失函数;X、Y分别为输入图像序列和目标时刻真实图像数据;对图像的多个尺度k,分别得到生成结果Gk;N为尺度数;yi为真实值;yi′为预测值;n为交叉熵损失函数中的样本数。Where L bce is the cross entropy loss function; X and Y are the input image sequence and the real image data at the target moment respectively; for multiple scales k of the image, the generated results G k are obtained respectively; N is the number of scales; yi is the real value; yi ′ is the predicted value; n is the number of samples in the cross entropy loss function.
S4、通过损失函数对预测模型进行训练;S4, training the prediction model through the loss function;
训练中,判别器D的目标是尽可能正确地识别出真实样本(输出为“真”,或者1),和尽可能正确地剔除生成的假样本(输出为“假”,或者0)。这两个目标分别对应了目标函数公式的第一和第二项。而生成器G的目标则和判别器相反,就是尽可能使其被判别器剔除的概率最小化。During training, the goal of the discriminator D is to identify real samples as accurately as possible (output is "true", or 1), and to remove generated fake samples as accurately as possible (output is "false", or 0). These two goals correspond to the first and second terms of the objective function formula respectively. The goal of the generator G is the opposite of the discriminator, which is to minimize the probability of being removed by the discriminator as much as possible.
目标函数公式如下:The objective function formula is as follows:
其中Pdata(x)为真实数据的分布;x是一个真实数据;P(z)为预测数据的分布。Where P data (x) is the distribution of real data; x is a real data; P (z) is the distribution of predicted data.
对于每一次迭代过程,判别器D和生成器G都会分别更新数据集的特征信息,逐渐完善识别模型。For each iteration, the discriminator D and the generator G will update the feature information of the data set respectively and gradually improve the recognition model.
对判别器D,从真实数据集中获取天气数据样本{x1,x2,...,xm},再从真实数据集中获取历史天气数据样本{z1,z2,...,zm}。对每个历史图像样本zk,通过生成器G得到预测结果G(zk),根据以下公式更新判别器D的模型参数θd:For the discriminator D, obtain weather data samples {x 1 ,x 2 ,...,x m } from the real data set, and then obtain historical weather data samples {z 1 ,z 2 ,...,z m } from the real data set. For each historical image sample z k , the prediction result G(z k ) is obtained through the generator G, and the model parameter θ d of the discriminator D is updated according to the following formula:
其中为判别器损失函数;D(xi)为真实天气数据集的判别结果;为判别器对生成器生成的图像的判别结果;为梯度偏导数;θd为模型参数变量,模型每训练一次,便修正一次结果,并把训练结果反向传播给模型进行修正;η为学习率,训练时根据经验指定,初始值设为4*10-5。in is the discriminator loss function; D( xi ) is the discriminant result of the real weather data set; The discriminator's discrimination result on the image generated by the generator; is the gradient partial derivative; θd is the model parameter variable. Each time the model is trained, the result is corrected and the training result is back-propagated to the model for correction; η is the learning rate, which is specified based on experience during training and the initial value is set to 4* 10-5 .
对于生成器G的每一次迭代过程,从真实数据集中获取历史数据样本{z1,z2,...,zm},根据以下公式更新判别器的模型参数θg:For each iteration of the generator G, historical data samples {z 1 ,z 2 ,...,z m } are obtained from the real data set, and the model parameters θ g of the discriminator are updated according to the following formula:
其中为生成器损失函数;G(zi)为通过真实数据与θg共同计算出来的结果;θg为模型参数变量,模型每训练一次便修正一次结果,并把训练结果反向传播给模型进行修正。in is the generator loss function; G(z i ) is the result calculated by real data and θ g ; θ g is the model parameter variable. The model corrects the result every time it is trained, and the training result is back-propagated to the model for correction.
第一代的生成器G产生预测值,然后把这些预测值和真实值放在第一代的判别器D中去学习,让第一代的判别器D能够真实地分辨出生成的数据和真实的数据。然后又有了第二代的生成器G。第二代生成器G产生的数据,能够骗过第一代的判别器D。此时,再训练第二代的判别器D,依次类推。The first-generation generator G generates predictions, and then puts these predictions and true values into the first-generation discriminator D for learning, so that the first-generation discriminator D can truly distinguish the generated data from the real data. Then there is a second-generation generator G. The data generated by the second-generation generator G can fool the first-generation discriminator D. At this point, the second-generation discriminator D is trained again, and so on.
生成器G和判别器D就组成了一个最小-最大游戏(min-max game),在训练过程中双方都不断地优化自己,直到达到平衡,即双方都无法变得更好,也就是假样本与真样本完全不可区分,用输出预测值做临近预报。The generator G and the discriminator D form a min-max game. During the training process, both sides continuously optimize themselves until a balance is reached, that is, neither side can get better, that is, the false samples are completely indistinguishable from the real samples, and the output prediction value is used for the near-term prediction.
S5、将所述天气数据输入训练好的预测模型中得到预测值,根据预测值执行相应的考勤操作。S5. Input the weather data into the trained prediction model to obtain a prediction value, and perform corresponding attendance operations according to the prediction value.
进一步的,如图4所示,将得到的模型部署在服务器,并添加到签到系统中,系统根据预测值执行相应的考勤操作,发送确认信息给考勤主管,考勤主管确认后系统将自动调整考勤制度与签到方式。最后将考勤信息发送给考勤人员。Further, as shown in Figure 4, the obtained model is deployed on the server and added to the sign-in system. The system performs the corresponding attendance operation according to the predicted value and sends the confirmation information to the attendance supervisor. After the attendance supervisor confirms, the system will automatically adjust the attendance system and sign-in method. Finally, the attendance information is sent to the attendance personnel.
需要说明的是,对于前述的各方法实施例,为了简便描述,将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其它顺序或者同时进行。It should be noted that, for the sake of convenience, the aforementioned method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited to the described order of actions, because according to the present invention, certain steps can be performed in other orders or simultaneously.
基于与上述实施例中的考勤签到调度管理方法相同的思想,本发明还提供了考勤签到调度管理系统,该系统可用于执行上述考勤签到调度管理方法。为了便于说明,考勤签到调度管理系统实施例的结构示意图中,仅仅示出了与本发明实施例相关的部分,本领域技术人员可以理解,图示结构并不构成对装置的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Based on the same idea as the attendance check-in scheduling management method in the above embodiment, the present invention also provides an attendance check-in scheduling management system, which can be used to execute the above attendance check-in scheduling management method. For ease of explanation, the structural diagram of the attendance check-in scheduling management system embodiment only shows the parts related to the embodiment of the present invention. Those skilled in the art can understand that the illustrated structure does not constitute a limitation on the device, and may include more or fewer components than shown in the diagram, or combine certain components, or arrange the components differently.
请参阅图5,在本申请的另一个实施例中,提供了一种考勤签到调度管理系统100,该系统包括数据采集模块101、模型构建模块102、损失函数计算模块103、模型训练模块104以及预测模块105;Please refer to FIG5 , in another embodiment of the present application, there is provided an attendance check-in scheduling management system 100 , the system comprising a data collection module 101 , a model building module 102 , a loss function calculation module 103 , a model training module 104 and a prediction module 105 ;
所述数据采集模块101,用于实时采集考勤地点区域的天气数据,并对采集到的天气数据进行预处理得到初始样本集;The data collection module 101 is used to collect weather data of the attendance location area in real time, and pre-process the collected weather data to obtain an initial sample set;
所述模型构建模块102,用于基于改进的生成对抗网络构建预测模型,具体为:将输入的原始数据采用第一卷积层和纠正线性函数修正叠加,获取初始特征图,接着对初始特征图进行上采样,将提取到的初始特征图进行放大,以更高的分辨率进行后续的三个卷积层和纠正线性函数的修正;然后将初始特征图与第四卷积层生成的特征图相乘后通过空间注意力机制和通道注意力机制,获取具体特征信息;最后将所述具体特征信息再次进行上采样后采用第五卷积层和双曲正切函数修正叠加,获取第五特征图,通过堆叠五个卷积层从原始图像中提取的特征图,建立预测模型,所述预测模型用于输出预测目标;The model building module 102 is used to build a prediction model based on the improved generative adversarial network, specifically: the input raw data is corrected and superimposed by the first convolution layer and the corrected linear function to obtain an initial feature map, then the initial feature map is upsampled, the extracted initial feature map is enlarged, and the subsequent three convolution layers and the corrected linear function are corrected with a higher resolution; then the initial feature map is multiplied with the feature map generated by the fourth convolution layer, and then the specific feature information is obtained through the spatial attention mechanism and the channel attention mechanism; finally, the specific feature information is upsampled again, and the fifth convolution layer and the hyperbolic tangent function are used to correct and superimpose to obtain the fifth feature map, and the feature map extracted from the original image by stacking five convolution layers is used to establish a prediction model, and the prediction model is used to output the prediction target;
所述损失函数计算模块103,用于计算预测目标与真实目标图像之间的损失函数,所述损失函数包括生成对抗网络的判别器D的损失优化函数和生成对抗网络的生成器G的损失优化函数;The loss function calculation module 103 is used to calculate the loss function between the predicted target and the real target image, and the loss function includes the loss optimization function of the discriminator D of the generative adversarial network and the loss optimization function of the generator G of the generative adversarial network;
所述模型训练模块104,用于通过损失函数对预测模型进行训练,训练中,判别器D的目标正确地识别出真实样本和正确地剔除生成的假样本,生成器G的目标是使生成的预测值被判别器D剔除的概率最小化,不断的迭代训练,对于每一次迭代过程,判别器D和生成器G都会分别更新数据集的特征信息,直至输出训练好的预测模型;The model training module 104 is used to train the prediction model through the loss function. During the training, the goal of the discriminator D is to correctly identify the real samples and correctly remove the generated false samples. The goal of the generator G is to minimize the probability that the generated prediction value is removed by the discriminator D. The training is continuously iterated. For each iteration process, the discriminator D and the generator G will respectively update the feature information of the data set until the trained prediction model is output;
所述预测模块105,将所述天气数据输入训练好的预测模型中得到预测值,根据预测值执行相应的考勤操作。The prediction module 105 inputs the weather data into a trained prediction model to obtain a prediction value, and performs corresponding attendance operations according to the prediction value.
需要说明的是,本发明的考勤签到调度管理系统与本发明的考勤签到调度管理方法一一对应,在上述考勤签到调度管理方法的实施例阐述的技术特征及其有益效果均适用于考勤签到调度管理的实施例中,具体内容可参见本发明方法实施例中的叙述,此处不再赘述,特此声明。It should be noted that the attendance check-in scheduling management system of the present invention corresponds one-to-one to the attendance check-in scheduling management method of the present invention. The technical features and beneficial effects described in the embodiment of the above-mentioned attendance check-in scheduling management method are applicable to the embodiment of the attendance check-in scheduling management. For specific contents, please refer to the description in the embodiment of the method of the present invention. It will not be repeated here. This is hereby declared.
此外,上述实施例的考勤签到调度管理系统的实施方式中,各程序模块的逻辑划分仅是举例说明,实际应用中可以根据需要,例如出于相应硬件的配置要求或者软件的实现的便利考虑,将上述功能分配由不同的程序模块完成,即将所述考勤签到调度管理系统的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分功能。In addition, in the implementation of the attendance check-in scheduling management system in the above-mentioned embodiment, the logical division of each program module is only an example. In actual application, the above-mentioned functions can be assigned to different program modules as needed, for example, for the configuration requirements of the corresponding hardware or the convenience of software implementation. That is, the internal structure of the attendance check-in scheduling management system is divided into different program modules to complete all or part of the functions described above.
请参阅图6,在一个实施例中,提供了一种实现考勤签到调度管理方法的电子设备,所述电子设备200可以包括第一处理器201、第一存储器202和总线,还可以包括存储在所述第一存储器202中并可在所述第一处理器201上运行的计算机程序,如考勤签到调度管理程序203。Please refer to Figure 6. In one embodiment, an electronic device for implementing an attendance check-in scheduling management method is provided. The electronic device 200 may include a first processor 201, a first memory 202 and a bus, and may also include a computer program stored in the first memory 202 and executable on the first processor 201, such as an attendance check-in scheduling management program 203.
其中,所述第一存储器202至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、移动硬盘、多媒体卡、卡型存储器(例如:SD或DX存储器等)、磁性存储器、磁盘、光盘等。所述第一存储器202在一些实施例中可以是电子设备200的内部存储单元,例如该电子设备200的移动硬盘。所述第一存储器202在另一些实施例中也可以是电子设备200的外部存储设备,例如电子设备200上配备的插接式移动硬盘、智能存储卡(Smart Media Card,SMC)、安全数字(SecureDigital,SD)卡、闪存卡(Flash Card)等。进一步地,所述第一存储器202还可以既包括电子设备200的内部存储单元也包括外部存储设备。所述第一存储器202不仅可以用于存储安装于电子设备200的应用软件及各类数据,例如考勤签到调度管理程序203的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。The first memory 202 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the first memory 202 can be an internal storage unit of the electronic device 200, such as a mobile hard disk of the electronic device 200. In other embodiments, the first memory 202 can also be an external storage device of the electronic device 200, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 200. Further, the first memory 202 can also include both an internal storage unit of the electronic device 200 and an external storage device. The first memory 202 can not only be used to store application software and various types of data installed in the electronic device 200, such as the code of the attendance check-in scheduling management program 203, but also can be used to temporarily store data that has been output or is to be output.
所述第一处理器201在一些实施例中可以由集成电路组成,例如可以由单个封装的集成电路所组成,也可以是由多个相同功能或不同功能封装的集成电路所组成,包括一个或者多个中央处理器(Central Processing unit,CPU)、微处理器、数字处理芯片、图形处理器及各种控制芯片的组合等。所述第一处理器201是所述电子设备的控制核心(Control Unit),利用各种接口和线路连接整个电子设备的各个部件,通过运行或执行存储在所述第一存储器202内的程序或者模块,以及调用存储在所述第一存储器202内的数据,以执行电子设备200的各种功能和处理数据。In some embodiments, the first processor 201 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The first processor 201 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes various functions and processes data of the electronic device 200 by running or executing programs or modules stored in the first memory 202, and calling data stored in the first memory 202.
图6仅示出了具有部件的电子设备,本领域技术人员可以理解的是,图6示出的结构并不构成对所述电子设备200的限定,可以包括比图示更少或者更多的部件,或者组合某些部件,或者不同的部件布置。FIG6 merely shows an electronic device with components. Those skilled in the art will appreciate that the structure shown in FIG6 does not limit the electronic device 200 and may include fewer or more components than shown in the figure, or a combination of certain components, or a different arrangement of components.
所述电子设备200中的所述第一存储器202存储的考勤签到调度管理程序203是多个指令的组合,在所述第一处理器201中运行时,可以实现:The attendance check-in scheduling management program 203 stored in the first memory 202 in the electronic device 200 is a combination of multiple instructions. When running in the first processor 201, it can achieve:
实时采集考勤地点区域的天气数据,并对采集到的天气数据进行预处理得到初始样本集;Collect weather data of the attendance location area in real time, and pre-process the collected weather data to obtain an initial sample set;
基于改进的生成对抗网络构建预测模型,具体为:将输入的原始数据采用第一卷积层和纠正线性函数修正叠加,获取初始特征图,接着对初始特征图进行上采样,将提取到的初始特征图进行放大,以更高的分辨率进行后续的三个卷积层和纠正线性函数的修正;然后将初始特征图与第四卷积层生成的特征图相乘后通过空间注意力机制和通道注意力机制,获取具体特征信息;最后将所述具体特征信息再次进行上采样后采用第五卷积层和双曲正切函数修正叠加,获取第五特征图,通过堆叠五个卷积层从原始图像中提取的特征图,建立预测模型,所述预测模型用于输出预测目标;A prediction model is constructed based on an improved generative adversarial network, specifically: the input raw data is corrected and superimposed by the first convolution layer and the rectified linear function to obtain an initial feature map, then the initial feature map is upsampled, the extracted initial feature map is enlarged, and the subsequent three convolution layers and the rectified linear function are corrected with a higher resolution; then the initial feature map is multiplied with the feature map generated by the fourth convolution layer, and then the specific feature information is obtained through the spatial attention mechanism and the channel attention mechanism; finally, the specific feature information is upsampled again, and then the fifth convolution layer and the hyperbolic tangent function are used to correct and superimpose to obtain the fifth feature map, and the feature map extracted from the original image by stacking five convolution layers is used to establish a prediction model, and the prediction model is used to output a prediction target;
计算预测目标与真实目标图像之间的损失函数,所述损失函数包括生成对抗网络的判别器D的损失优化函数和生成对抗网络的生成器G的损失优化函数;Calculate the loss function between the predicted target and the real target image, wherein the loss function includes the loss optimization function of the discriminator D of the generative adversarial network and the loss optimization function of the generator G of the generative adversarial network;
通过损失函数对预测模型进行训练,训练中,判别器D的目标正确地识别出真实样本和正确地剔除生成的假样本,生成器G的目标是使生成的预测值被判别器D剔除的概率最小化,不断的迭代训练,对于每一次迭代过程,判别器D和生成器G都会分别更新数据集的特征信息,直至输出训练好的预测模型;The prediction model is trained through the loss function. During the training, the goal of the discriminator D is to correctly identify the real samples and correctly remove the generated fake samples. The goal of the generator G is to minimize the probability that the generated prediction value is removed by the discriminator D. The training is continuously iterated. For each iteration process, the discriminator D and the generator G will update the feature information of the data set respectively until the trained prediction model is output;
将所述天气数据输入训练好的预测模型中得到预测值,根据预测值执行相应的考勤操作。The weather data is input into a trained prediction model to obtain a prediction value, and corresponding attendance operations are performed according to the prediction value.
进一步地,所述电子设备200集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个非易失性计算机可读取存储介质中。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)。Furthermore, if the module/unit integrated in the electronic device 200 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and/or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
上述实施例为本发明较佳的实施方式,但本发明的实施方式并不受上述实施例的限制,其他的任何未背离本发明的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本发明的保护范围之内。The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210799441.7A CN115081920B (en) | 2022-07-08 | 2022-07-08 | Attendance check-in scheduling management method, system, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210799441.7A CN115081920B (en) | 2022-07-08 | 2022-07-08 | Attendance check-in scheduling management method, system, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115081920A CN115081920A (en) | 2022-09-20 |
CN115081920B true CN115081920B (en) | 2024-07-12 |
Family
ID=83258313
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210799441.7A Active CN115081920B (en) | 2022-07-08 | 2022-07-08 | Attendance check-in scheduling management method, system, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115081920B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117196996B (en) * | 2023-10-17 | 2024-06-04 | 山东鸿业信息科技有限公司 | Interface-free interaction management method and system for data resources |
CN117993879B (en) * | 2024-01-17 | 2024-08-20 | 苏州盖雅信息技术有限公司 | Machine learning model-based attendance anomaly prediction and processing method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113159006A (en) * | 2021-06-23 | 2021-07-23 | 杭州魔点科技有限公司 | Attendance checking method and system based on face recognition, electronic equipment and storage medium |
CN114037838A (en) * | 2021-10-20 | 2022-02-11 | 北京旷视科技有限公司 | Neural network training method, electronic device and computer program product |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110503654B (en) * | 2019-08-01 | 2022-04-26 | 中国科学院深圳先进技术研究院 | A method, system and electronic device for medical image segmentation based on generative adversarial network |
-
2022
- 2022-07-08 CN CN202210799441.7A patent/CN115081920B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113159006A (en) * | 2021-06-23 | 2021-07-23 | 杭州魔点科技有限公司 | Attendance checking method and system based on face recognition, electronic equipment and storage medium |
CN114037838A (en) * | 2021-10-20 | 2022-02-11 | 北京旷视科技有限公司 | Neural network training method, electronic device and computer program product |
Also Published As
Publication number | Publication date |
---|---|
CN115081920A (en) | 2022-09-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108563739B (en) | Weather data acquisition method and device, computer device and readable storage medium | |
CN115081920B (en) | Attendance check-in scheduling management method, system, equipment and storage medium | |
CN114897779B (en) | Cervical cytology image abnormal region positioning method and device based on fusion attention | |
CN111695731A (en) | Load prediction method, system and equipment based on multi-source data and hybrid neural network | |
CN113705929B (en) | Spring festival holiday load prediction method based on load characteristic curve and typical characteristic value fusion | |
CN115756922A (en) | Fault prediction diagnosis method and device, electronic equipment and storage medium | |
CN118396036B (en) | Wind power prediction method, system, equipment and medium | |
CN113570106B (en) | Power load prediction method and equipment based on expressway neural network | |
CN118819872A (en) | A method for dynamic planning of detection server resources for industrial video surveillance early warning | |
CN118297271A (en) | Energy consumption enterprise time sequence data prediction method and system based on reversible calculation | |
CN116185797A (en) | Method, device and storage medium for predicting server resource saturation | |
CN110766231A (en) | Crime prediction method and system based on multi-head neural network | |
CN117933531B (en) | A distributed photovoltaic power generation power prediction system and method | |
CN117764617A (en) | Property running cost prediction method and device based on big data analysis | |
CN117215785A (en) | Micro-service resource scheduling method for quotation playback system | |
CN117789109A (en) | An unattended abnormal behavior detection method and system in industrial scenarios | |
CN114064413B (en) | Container group regulation and control method and device and electronic equipment | |
CN116485440A (en) | Market electricity price forecasting method, device and equipment based on model stacking | |
CN116579409A (en) | Intelligent camera model pruning acceleration method and acceleration system based on re-parameterization | |
CN115907079A (en) | An Attentional Spatial-Temporal Graph Convolutional Network Based Airspace Traffic Flow Prediction Method | |
CN113160131A (en) | Agricultural insurance claim settlement method and device and storage medium | |
CN114689122A (en) | Equipment fault monitoring method, device, equipment and medium | |
CN113221642A (en) | AI recognition system for violation snapshot image | |
CN118554458B (en) | Data processing method and device based on automatic voltage control result of transformer substation | |
CN118690920B (en) | Industrial park energy consumption interval prediction method and system of quantile converter |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |