Intelligent workflow promotion method, device and computer storage medium
Through intelligent promotion of workflow methods, pre-trained models are used to automatically classify and insert image data, generate and process workflow instructions, solve the problem of manual operation errors in the insurance industry, realize efficient automated workflow, and improve the accuracy of business processes. sex and efficiency.
Patent Information
- Application Number
- CN202011492148.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-16
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-12-16
AI Technical Summary
In the existing business processes of the insurance industry, image data uploading and workflow promotion require too much manual participation, which is prone to manual errors such as missed triggers or multiple triggers, affecting efficiency.
Adopt an intelligent push workflow method to classify image data through pre-trained models, automatically insert operation tables and generate push workflow instructions, perform idempotent processing and write to the message queue to ensure the correctness and uniqueness of the workflow and avoid manual labor. intervention.
It realizes an automated workflow that does not require manual triggering, improves work efficiency, avoids the problem of missing triggers or multiple triggers, ensures the correctness and timeliness of data insertion, and ensures the correctness and uniqueness of business processes.
Smart Images

Figure CN112561480B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of business process optimization, and in particular to an intelligent workflow promotion method, device and computer storage medium. Background Art
[0002] In recent years, with the rapid development of the national economy and the rapid improvement of people's living standards, people's awareness of insurance has been greatly improved, and the insurance industry has ushered in tremendous development. With the rapid development of the insurance industry, the business processes of the insurance industry have become more and more complicated. The existing business process requires images to be scanned and uploaded to the imaging system. After the image data is uploaded to the imaging system, it is manually checked whether the image data corresponding to the current business has been fully uploaded, and communication is required with the personnel who have not uploaded the image data. Communication and coordination are required. If the image data corresponding to the current business has been fully uploaded, manual triggering is required to continue to promote the workflow. In the existing technology, too much manual participation is required in the process of uploading images and promoting workflows, which is prone to problems such as missed triggers or multiple triggers or manual operation errors, and is not conducive to improving work efficiency. Summary of the invention
[0003] In view of this, an intelligent workflow promotion method is provided to solve the problem of manual operation errors such as missed triggering or multiple triggering that occur when manually promoting workflows.
[0004] The present application provides a method for intelligently promoting a workflow, the method comprising:
[0005] When the classification of the uploaded image meets one of the preset classifications of the image required by the corresponding business, the image data corresponding to the uploaded image is inserted into the first operation table;
[0006] When all the image data corresponding to the preset classification of the images required for the business in the first operation table are uploaded, the first operation table generates a workflow promotion instruction;
[0007] Performing idempotent processing on the workflow promotion instruction, and writing the workflow promotion instruction into a message queue;
[0008] When the business system monitors the workflow pushing instruction in the message queue, the next operation of the business system is executed.
[0009] In one embodiment, when the classification of the uploaded image meets one of the preset classifications of the image required by the corresponding business, before the step of inserting the image data corresponding to the uploaded image into the first operation table, the step includes:
[0010] Use custom labeled image data to train some preset networks of the pre-trained model to generate the corresponding image classification model;
[0011] The image uploaded by image scanning is input into the image classification model for identification and classification; wherein the image scanning and uploading mechanism adopts a multi-channel data collection mechanism.
[0012] In one embodiment, the training of a part of the preset network of the pre-trained model using the custom labeled image data includes:
[0013] Fix the parameters of the frozen network;
[0014] Train non-frozen networks using custom labeled image data.
[0015] In one embodiment, the training of a part of the preset network of the pre-trained model using the custom labeled image data further includes:
[0016] The frozen network and the non-frozen network are trained using the custom labeled image data; wherein the parameters of the frozen network are dynamically adjusted according to the training process.
[0017] In one embodiment, the step of training a part of the preset network of the pre-trained model using the custom labeled image data, using the back propagation method to update the parameters of the image classification model, includes:
[0018] Comparing the recognition result generated by the training with the custom annotated image data;
[0019] The comparison result is back-propagated to update the parameters inside the image classification model.
[0020] In one embodiment, the process of constructing the custom labeled image data includes:
[0021] Perform denoising preprocessing on the image data in the database;
[0022] Label according to business preset tags.
[0023] In one embodiment, the idempotent processing includes at least one of the following:
[0024] Globally unique identifier, token mechanism, pessimistic locking, and optimistic locking.
[0025] In one embodiment, the preset training model uses a VGG-19 network, the frozen network has a first preset number of convolutional layers, and the non-frozen network has a second preset number of convolutional layers.
[0026] To achieve the above objectives, a computer-readable storage medium is further provided, on which an intelligent workflow promotion method program is stored. When the intelligent workflow promotion method program is executed by a processor, the steps of any of the above methods are implemented.
[0027] To achieve the above objectives, an intelligent workflow promotion device is also provided, including a memory, a processor, and an intelligent workflow promotion method program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above-described methods when executing the intelligent workflow promotion method program.
[0028] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: when the classification of the uploaded image meets one of the preset classifications of the image required by the corresponding business, the image data corresponding to the uploaded image is inserted into the first operation table; in this step, the monitoring of the classification of the uploaded image data does not require manual work, avoiding the problems of misoperation caused by manual monitoring, and ensuring the correctness and timeliness of the image data inserted into the first operation table when the conditions are met. When all the image data corresponding to the preset classification of the image required by the business in the first operation table are uploaded, the first operation table generates a push workflow instruction; in this step, the above conditions must be met before the push workflow instruction can be generated. Ensure the correctness of the next step of pushing the workflow instruction generation. Perform idempotent processing on the push workflow instruction and write the push workflow instruction into the message queue; the idempotent processing in this step ensures the uniqueness of the push workflow instruction written into the message queue, and ensures that the business process is not triggered repeatedly. When the business system monitors the push workflow instruction in the message queue, the next operation of the business system is executed. In this step, when the business system listens to the instruction to promote the workflow, it automatically executes the next operation of the business system. In the entire process of promoting the business process, no human participation and operation is required, thus avoiding the problems of manual operation errors such as missed triggering or multiple triggering that occur when manually promoting the workflow, and realizing an intelligent workflow promotion method without manual triggering, thereby improving work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A schematic diagram of the hardware architecture of the intelligent workflow promotion method involved in the embodiments of the present application;
[0030] Figure 2 This is a flowchart of the first embodiment of the method for intelligently promoting workflow in this application;
[0031] Figure 3 This is a flow chart of a second embodiment of the method for intelligently promoting workflows of the present application;
[0032] Figure 4Image classification model training flow chart for intelligent workflow promotion for this application
[0033] Figure 5 This is a flowchart of specific implementation steps of step S210 in the second embodiment of the method for intelligently promoting workflow in this application;
[0034] Figure 6 This is a flowchart of another specific implementation step of step S210 in the second embodiment of the intelligent workflow promotion method of this application. DETAILED DESCRIPTION
[0035] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0036] The main solution of the embodiment of the present invention is: when the classification of the uploaded image meets one of the preset classifications of the image required by the corresponding business, the image data corresponding to the uploaded image is inserted into the first operation table; when the image data corresponding to the preset classification of the image required by the business in the first operation table are all uploaded, the first operation table generates a workflow promotion instruction; the workflow promotion instruction is idempotently processed and written into the message queue; when the business system monitors the workflow promotion instruction in the message queue, the next operation of the business system is executed. The present invention solves the problem of manual operation errors such as missed triggering or multiple triggering that occur when manually promoting workflows, and realizes an intelligent workflow promotion method without manual triggering, thereby improving work efficiency.
[0037] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0038] The present application relates to an intelligent workflow promotion device 010 including: Figure 1 Shown: at least one processor 012 and a memory 011.
[0039] Processor 012 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in processor 012 or instructions in software form. The above processor 012 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present invention can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The software module may be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 011, and the processor 012 reads the information in the memory 011 and completes the steps of the above method in combination with its hardware.
[0040] It can be understood that the memory 011 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 011 of the system and method described in the embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.
[0041] Reference Figure 2 , Figure 2This is the first embodiment of the method for intelligently promoting workflow in this application, and the method includes:
[0042] Step S110: When the classification of the uploaded image meets one of the preset classifications of the image required by the corresponding business, the image data corresponding to the uploaded image is inserted into the first operation table.
[0043] The image data required in the business process is a preset number, and the preset number is not limited here.
[0044] When the image classification obtained by classifying the input image through the image classification model satisfies one of the preset classifications of the image required by the corresponding business, the currently uploaded image data can be inserted into the first operation table.
[0045] The image data may include at least one of the following: image, business department, uploader, upload time, and upload model. The attributes in the first operation table include: image, business department, uploader, upload time, and upload model. If the image data does not contain data corresponding to the attribute in the first operation table, the attribute of the image data is set to empty in the corresponding attribute in the first operation table.
[0046] In the process of inserting the currently uploaded image data into the first operation table, the image data may be inserted sequentially in a first-come, first-served (FIFO) manner.
[0047] Among them, one of the first operation tables corresponds to one corresponding service.
[0048] Step S120: When all the image data corresponding to the preset categories of the images required for the business in the first operation table are uploaded, the first operation table generates a workflow promotion instruction.
[0049] The first operation table monitors its own data, and the monitoring method may be to pre-build a set of preset categories of images required for the business, and the elements in the set are the preset categories of images required for the business. When all the elements in the set are uploaded, the first operation table generates a workflow promotion instruction.
[0050] Step S130: performing idempotent processing on the push workflow instruction and writing the push workflow instruction into a message queue.
[0051] Idempotence is a concept in mathematics and computer science, commonly found in abstract algebra. In programming, an idempotent operation is characterized by the fact that any number of executions produce the same effect as a single execution. Idempotent functions, or idempotent methods, are functions that can be executed repeatedly with the same parameters and produce the same results. These functions do not affect the state of the system, and there is no need to worry about repeated execution causing changes to the system.
[0052] In Internet applications, especially when the network is unstable, the messages in the message queue RocketMQ may be repeated unpredictably. When the messages in the message queue RocketMQ are repeated, in this embodiment, the subsequent business workflow will be repeatedly promoted, which will cause errors in the promotion of business work. Therefore, idempotent operations on messages will ensure the correctness of the promotion of business work and avoid repeated promotion of business work, thereby ensuring the correct communication of the instructions to promote the workflow.
[0053] There are two situations in which message duplication occurs:
[0054] First, the message is repeated when sending
[0055] When a message has been successfully sent to the server and persisted, a network outage or client crash occurs, causing the server to fail to respond to the client. If the producer realizes that the message failed to be sent and tries to send the message again, the consumer will subsequently receive two messages with the same content and the same message sequence number.
[0056] Second, message duplication during delivery
[0057] In the scenario of message consumption, the message has been delivered to the consumer and the business processing has been completed. When the client feeds back a response to the server, the network is disconnected. In order to ensure that the message is consumed at least once, the RocketMQ server will try to deliver the previously processed message again after the network is restored. The consumer will subsequently receive two messages with the same content and the same message sequence number.
[0058] Step S140: When the business system monitors the push workflow instruction in the message queue, the next operation of the business system is executed.
[0059] When the business system monitors the process of promoting workflow instructions, there is no need for human intervention, which realizes the intelligent promotion of workflow, reduces manual input and improves work efficiency.
[0060] In the above embodiment, there are beneficial effects: when the classification of the uploaded image meets one of the preset classifications of the image required by the corresponding business, the image data corresponding to the uploaded image is inserted into the first operation table; in this step, the monitoring of the classification of the uploaded image data does not require manual work, avoiding the problems of misoperation caused by manual monitoring, and ensuring the correctness and timeliness of the image data inserted into the first operation table when the conditions are met. When all the image data corresponding to the preset classification of the image required by the business in the first operation table are uploaded, the first operation table generates a push workflow instruction; in this step, the above conditions must be met before the push workflow instruction can be generated. Ensure the correctness of the next step of pushing the workflow instruction generation. Perform idempotent processing on the push workflow instruction and write the push workflow instruction into the message queue; the idempotent processing in this step ensures the uniqueness of the push workflow instruction written into the message queue, ensuring that the business process is not triggered repeatedly. When the business system monitors the push workflow instruction in the message queue, the next operation of the business system is executed. In this step, when the business system listens to the instruction to promote the workflow, it automatically executes the next operation of the business system. In the entire process of promoting the business process, no human participation and operation is required, thus avoiding the problems of manual operation errors such as missed triggering or multiple triggering that occur when manually promoting the workflow, and realizing an intelligent workflow promotion method without manual triggering, thereby improving work efficiency.
[0061] Reference Figure 3 , Figure 3 In the second embodiment of the method for intelligently promoting workflows of the present application, when the classification of the uploaded image meets one of the preset classifications of the image required by the corresponding business, before the step of inserting the image data corresponding to the uploaded image into the first operation table, the step includes:
[0062] Step S210: training a part of the preset network of the pre-trained model using the custom labeled image data to generate a corresponding image classification model.
[0063] Pre-trained models can be trained using large data sets. Pre-trained models can be used as fixed feature extractors or network initialization weights in other tasks.
[0064] The pre-trained model is trained using the custom annotated image dataset, which ensures the parameter experience value of the pre-trained model and also adds the features of the custom annotated image dataset to it, which can effectively improve the accuracy of image data classification.
[0065] Transfer learning, as the name implies, is to transfer the parameters of a trained model (pre-trained model) to a new model (image classification model) to optimize the training of the new model. Because most data and tasks are related, we can use transfer learning to transfer the parameters of the pre-trained model (which can also be understood as the knowledge learned by the pre-trained model) to the new model in some way, thereby speeding up and optimizing the learning efficiency of the model.
[0066] Step S220: input the image uploaded by image scanning into the image classification model for identification and classification; wherein the image scanning and uploading mechanism adopts a multi-channel data collection mechanism.
[0067] The multi-channel data collection mechanism can collect data uploaded by multiple terminals at the same time. The terminals can be located in different regions, making the work of uploading image data more convenient. The terminals can be printers, scanners or smart terminals with scanning functions, such as mobile phones and tablet computers.
[0068] The multi-channel data collection mechanism can make image data uploading more convenient, especially applying the multi-channel data collection mechanism to mobile phones and tablets commonly used by users, making the image data uploaded in the business process more timely and improving work efficiency.
[0069] In this embodiment, the multi-channel data collection mechanism can cope with the situation where a large amount of data needs to be uploaded. When a large amount of data needs to be uploaded, multiple terminals can be used simultaneously to upload the data, and the image classification model can be used to classify and upload the data, saving manpower and material resources, speeding up the progress of the business process, and improving work efficiency.
[0070] Among them, in this embodiment, the image data collected by adopting the multi-channel data collection mechanism includes: image, business department, uploader, upload time, and upload model.
[0071] The image can be the information of certificates and documents required for each business; the certificates and documents required for each business are different. For example, vehicle insurance requires a driving license, driver's license, ID card, etc., while medical insurance requires a hospitalization certificate, medical form, medical list, ID card, etc.
[0072] The uploading model refers to the model used by the uploader to upload the image, such as a printer, scanner, mobile phone, tablet computer, etc.
[0073] The image classification model classifies the input image by matching the image features with the image classification features learned by the image classification model. When the matching result is greater than a preset threshold, it is determined that the input image belongs to the corresponding image classification.
[0074] Step S230: When the classification of the uploaded image data meets one of the preset classifications of images required by the corresponding business, the uploaded image data is inserted into the first operation table.
[0075] Step S240: When all the image data corresponding to the preset classification of the images required for the business in the first operation table are uploaded, the first operation table generates a workflow promotion instruction.
[0076] Step S250: performing idempotent processing on the push workflow instruction and writing the push workflow instruction into a message queue.
[0077] Step S260: When the business system monitors the push workflow instruction in the message queue, the next operation of the business system is executed.
[0078] Compared with the first embodiment, the second embodiment further includes step S210 and step S220, and other steps are the same as those of the first embodiment and will not be described in detail.
[0079] Reference Figure 4 , Figure 4 The image classification model training flowchart for the intelligent workflow of this application. The pre-trained model is a trained model, and its empirical parameters or the knowledge learned by the model can be transferred to the image classification model. By adding custom annotated image data for fine-tuning, the features of the custom annotated image data are added to the pre-trained model to generate a new image classification model. Among them, fine-tuning is to re-train the preset part of the pre-trained model using the features of the custom annotated image data, so as to achieve the effect of adjusting the parameters of the pre-trained model after adding the features of the custom annotated image data.
[0080] In the above embodiment, there are beneficial effects: a specific training method for the image classification model is given to ensure the classification effect of the image classification model, thereby ensuring the correctness of the generation of workflow instructions. In this embodiment, the entire process from uploading images for classification to promoting workflows is automated without the need for human involvement, thereby improving work efficiency and ensuring the correctness of the business system advancement.
[0081] Reference Figure 5 , Figure 5 The specific implementation steps of step S210 in the second embodiment of the intelligent workflow promotion method of this application, wherein the part of the preset network of the pre-trained model is trained using the custom annotated image data, include:
[0082] Step S211: Fix and freeze the parameters of the network.
[0083] The parameters include at least one of the following: class_num, image_size, img_channels, batch_size, iterations, total_epoch, weight_decay, dropout_rate, momentum_rate.
[0084] Among them, the parameters of the frozen network can be class_num=10, image_size=32, img_channels=3, batch_size=250, iterations=200, total_epoch=200, weight_decay=0.0003, dropout_rate=0.5.
[0085] Step S212: training the non-frozen network using the custom labeled image data.
[0086] In this embodiment, the pre-trained model can be divided into a frozen network and a non-frozen network, wherein the parameters learned in the frozen network are fixed, that is, the parameter update operation is not performed in the back propagation. The non-frozen network is trained using the custom labeled image data, and the parameter update operation is performed during the back propagation during the training process.
[0087] In the above embodiment, there are beneficial effects: specific implementation steps are given for training part of the preset network of the pre-trained model using the custom labeled image data, ensuring the utilization of the experience value of the pre-trained model, and at the same time using the custom labeled image data to train the non-frozen network, adding the features of the custom labeled image data, and ensuring the classification effect of the image classification model.
[0088] Reference Figure 6 , Figure 6 Another specific implementation step of step S210 in the second embodiment of the intelligent workflow promotion method of the present application, wherein the training of a part of the preset network of the pre-trained model using the custom-annotated image data also includes:
[0089] Step S211 ′: using the custom labeled image data to train the frozen network and the non-frozen network; wherein the parameters of the frozen network are dynamically adjusted according to the training process.
[0090] In this embodiment, the frozen network and the non-frozen network can be fine-tuned using the custom labeled image data, and the back propagation during the training process can update the parameters of both the frozen layer and the non-frozen layer.
[0091] In the above embodiment, there is a beneficial effect: another method for partially pre-setting the network training of the pre-trained model is provided to ensure the classification effect of the image classification model.
[0092] In one embodiment, the step of training a part of the preset network of the pre-trained model using the custom labeled image data, using the back propagation method to update the parameters of the image classification model, includes:
[0093] Step S211a: comparing the recognition result generated by training with the image data with the user-defined annotation;
[0094] There is an error between the recognition result and the custom-annotated image data. The error between the recognition result and the custom-annotated result is calculated through comparison, and the error is back-propagated from the output layer to the hidden layer until it is propagated to the input layer.
[0095] Step S212a: back-propagate the comparison result to update the parameters inside the image classification model.
[0096] In the process of back propagation, the values of the parameters inside the image classification model are adjusted according to the error, and the above process is continuously iterated until convergence.
[0097] In the above embodiment, there is a beneficial effect: specific implementation steps are given for training and updating the image classification model using the back propagation method during the training process, thereby ensuring the training effect of the image classification model, thereby ensuring the recognition effect of the image classification model.
[0098] In one embodiment, the process of constructing the custom labeled image data includes:
[0099] Step S211b: performing noise removal preprocessing on the image data in the database;
[0100] Data noise refers to unexplained changes in a set of data, that is, some data that is inconsistent with other data. The presence of data noise in the database will affect the training effect during the training process.
[0101] In this embodiment, the existing impact data collected by the business in the database may contain unclear or irrelevant pictures of the current business, and manual deletion operations are performed. These data noises will affect the quality of the custom training set, resulting in the accuracy of the image classification model being affected.
[0102] Step S212b: Marking according to the business preset label.
[0103] The existing image data in the database are labeled according to the preset business labels, which are the corresponding documents in the business such as identity card, driver's license, driving license, hospitalization certificate, medical form, medical list, birth certificate, etc.
[0104] The number of tags and the names of tags are not limited here and can be adjusted dynamically according to relevant business.
[0105] In one embodiment, the idempotent processing includes at least one of the following:
[0106] Globally unique identifier, token mechanism, pessimistic locking, and optimistic locking.
[0107] In this implementation, a globally unique identifier may be added to avoid repeated sending or receiving of messages.
[0108] After the idempotent processing is performed on the workflow-promoting instruction, the uniqueness of the workflow-promoting instruction written into the MQ message queue is guaranteed.
[0109] The token mechanism can be a Token mechanism: it can prevent repeated submission of pages, that is, it can prevent repeated generation of messages, resulting in duplicate messages appearing in the message queue.
[0110] Pessimistic lock: locks the message data when sending it. Pessimistic lock is usually used together with transactions. The message data locking time may be longer. It is selected according to the actual situation.
[0111] Optimistic locking: Lock the message queue when receiving the message data. When the message queue receives a new message that needs to be updated, the message queue will be locked. The message queue will not be locked at other times, which is more efficient.
[0112] The processing method is not limited to the above method, and other methods that can perform idempotent processing may be used.
[0113] In the above embodiment, there are beneficial effects: a specific method for idempotent processing is provided to ensure the uniqueness of the work promotion instruction, thereby avoiding business process errors caused by repeated promotion of business work.
[0114] In one embodiment, the preset training model uses a VGG-19 network, the frozen network has a first preset number of convolutional layers, and the non-frozen network has a second preset number of convolutional layers.
[0115] The pre-trained model can adopt the VGG19 network, in which the first twelve convolutional layers are frozen networks, and the thirteenth to sixteenth convolutional layers are non-frozen networks.
[0116] In another embodiment, the pre-trained model may adopt a VGG-19 network, wherein the first eight layers are frozen networks and the ninth to sixteenth layers are non-frozen networks.
[0117] As shown in Table 1: Conv3-64 means that the convolution kernel size is 3×3 and the number of convolution kernels is 64. After a convolution kernel scans the image matrix data, a new matrix is generated. If there are 64 convolution kernels, 64 layers of new matrices will be generated. Similarly, Conv3-128 means that the convolution kernel size is 3×3 and the number of convolution kernels is 128. Similarly, Conv3-256 means that the convolution kernel size is 3×3 and the number of convolution kernels is 256. Conv-518 means that the convolution kernel size is 3×3 and the number of convolution kernels is 518. The activation functions of the convolution layer and the fully connected layer both use relu, the Max Pool layer uses maximum pooling, and the pooled small matrix is 2×2. After pooling, the length and width of the matrix are reduced by half. After performing the corresponding convolution and the corresponding pooling operations, Flatten() is used to flatten the data into a one-dimensional vector; in the two fully connected layers FC-4096, the number of neurons in the fully connected layer is 4096, where 4096 is the empirical value given by VGG16, and can also be dynamically adjusted and modified; the last fully connected layer FC-100, the number of neurons in this fully connected layer is 100, which is designed according to the task. In this embodiment, the number of image classifications required for the business is preset to 100, that is, the total number of image classifications is 100. For example, vehicle insurance requires a driving license, a driver's license, an ID card, etc., and medical insurance requires a hospitalization certificate, a medical treatment form, a medical list, an ID card, etc. The number of classifications of all uploaded image data is 100.
[0118]
[0119]
[0120] Table 1
[0121] The preset number of image categories is 100, which is not limited here and can be adjusted dynamically according to the corresponding business.
[0122] To achieve the above objectives, a computer-readable storage medium is further provided, on which an intelligent workflow promotion method program is stored. When the intelligent workflow promotion method program is executed by a processor, the steps of any of the above methods are implemented.
[0123] To achieve the above objectives, an intelligent workflow promotion device is also provided, including a memory, a processor, and an intelligent workflow promotion method program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above-described methods when executing the intelligent workflow promotion method program.
[0124] There is a specific implementable embodiment as follows: uploader A uploads images 1, 2, and 3 on a mobile phone terminal. After recognition by the image classification model, image 1 belongs to the preset category of the ID card, image 2 belongs to the preset category of the driving license, and image 3 belongs to the preset category of the driver's license; if image 1 meets the preset category required by the corresponding business, its corresponding image data will be added to the first operation table, and if images 2 and 3 also meet the preset category required by the corresponding business, their corresponding image data will also be added to the first operation table. When the first operation table monitors that all the image data required by the corresponding business are uploaded, a workflow push instruction is generated, and then an idempotent operation is performed on the workflow push instruction and added to the MQ message queue. Through the idempotent operation, the uniqueness of the message in the MQ message queue is guaranteed, thereby ensuring the correctness when promoting the corresponding business process.
[0125] There is another specific implementation as follows: uploader A uploads images 1 and 2 on a mobile phone in region A, and uploader B uploads images 3 and 4 on a scanner in region B (a multi-channel data collection mechanism can ensure that different terminals in different regions can work simultaneously, reduce work difficulty, and improve work efficiency). The image classification model can be transplanted to the corresponding uploading terminal. After recognition by the image classification model, image 1 belongs to the preset classification of the hospitalization certificate, image 2 belongs to the preset classification of the medical form, image 3 belongs to the preset classification of the identity card, and image 4 belongs to the preset classification of the medical list. Image data 1, 2, 3, and 4 meet the preset classification required by the corresponding insurance business, and the corresponding image data are added to the first operation table. When the first operation table monitors that all the image data required for the corresponding business are uploaded, a workflow promotion instruction is generated, and then an idempotent operation is performed on the workflow promotion instruction and added to the MQ message queue. Through the idempotent operation, the uniqueness of the message in the MQ message queue is guaranteed, thereby ensuring the correctness when promoting the corresponding business process.
[0126] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0127] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0128] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0129] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0130] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.
[0131] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0132] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. An intelligent workflow promotion method, characterized in that: The method comprises: When the classification of the uploaded image meets one of the preset classifications of the image required by the corresponding business, the image data corresponding to the uploaded image is sequentially inserted into the first operation table using the FIFO method, wherein the type of the image data includes the image, the business department, the uploader, the upload time and the upload model, and the attributes of the first operation table correspond to the type of the image data; When all the image data corresponding to the preset classification of the images required for the business in the first operation table are uploaded, the first operation table generates a workflow promotion instruction; Performing idempotent processing on the workflow promotion instruction, and writing the workflow promotion instruction into a message queue; When the business system monitors the workflow push instruction in the message queue, the next operation of the business system is executed; Wherein, when the classification of the uploaded image meets one of the preset classifications of the image required by the corresponding business, before the step of inserting the image data corresponding to the uploaded image into the first operation table in sequence using the FIFO method, it includes: training part of the preset network of the pre-trained model using the custom-annotated image data to generate a corresponding image classification model; inputting the image uploaded by the image scanning into the image classification model for recognition and classification; wherein the mechanism of the image scanning and uploading adopts a multi-channel data collection mechanism; The method of training a part of the preset network of the pre-trained model using the custom labeled image data includes: fixing the parameters of the frozen network; training the non-frozen network using the custom labeled image data; The step of training part of the preset network of the pre-trained model using the custom labeled image data and updating the parameters of the image classification model by back propagation includes: Compare the recognition result generated by the training with the custom labeled image data to obtain an error; back-propagate the error from the output layer of the pre-trained model to the hidden layer until it propagates to the input layer, and migrate and update the parameters inside the image classification model; The step of inputting the image uploaded by image scanning into the image classification model for identification and classification includes: inputting the image uploaded by image scanning into the image classification model, matching the features of the image with the features of the image classification learned by the image classification model; when the matching result is greater than a preset threshold, determining the image classification corresponding to the uploaded image; The process of constructing the custom-annotated image data includes: performing denoising preprocessing on the image data in the database; annotating according to business preset tags; the business preset tags include documents corresponding to identity cards, driver's licenses, vehicle registration certificates, hospitalization certificates, medical treatment orders, medical lists, and birth certificates; The idempotent processing includes at least one of a globally unique identifier, a token mechanism, a pessimistic lock, and an optimistic lock, and the globally unique identifier is used to avoid repeated sending or receiving of messages; The pre-trained model adopts a VGG-19 network, the first to eighth convolutional layers are frozen networks, the ninth to sixteenth convolutional layers are non-frozen networks, the convolutional layers include convolutional kernels, and the size of the convolutional kernels is 3×3; the convolutional kernels include Conv3-64 convolutional kernels, Conv3-128 convolutional kernels, Conv3-256 convolutional kernels, and Conv-518 convolutional kernels. The number of convolution kernels is 64. The number of convolution kernels is 128. The number of convolution kernels is 256. The number of convolution kernels is 518; the activation function of the convolution layer and the fully connected layer is the relu function; the Max Pool layer is the maximum pooling, and the small pooling matrix is 2×2; the number of fully connected layers is 3, the number of neurons in the first and second fully connected layers is 4096, and the number of neurons in the third fully connected layer is 100.
2. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an intelligent workflow promotion method program, and when the intelligent workflow promotion method program is executed by a processor, the steps of the method described in claim 1 are implemented.
3. An intelligent workflow promotion device, characterized in that: The method comprises a memory, a processor and an intelligent workflow promotion method program stored in the memory and executable on the processor. When the processor executes the intelligent workflow promotion method program, the steps of the method described in claim 1 are implemented.
