A natural semantic intelligent review method to achieve ultra-high quality

Through the data cleaning process of the twin-tower neural network model and genetic algorithm, the problem of low model quality in text classification tasks is solved, high-quality natural semantic intelligent review is achieved, meeting the 'three-nine pure gold' standard, and reducing costs and scalability requirements.

CN113901833BActive Publication Date: 2024-09-03EAST MONEY INFORMATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111182051.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-11
Publication Date
2024-09-03
Estimated Expiration
2041-10-11

AI Technical Summary

Technical Problem

In text classification tasks, it is difficult for existing technologies to achieve high-quality model indicators. The recall rate and precision rate hover around 70% to 80%, which cannot meet the 'three-nine pure gold' standards required by compliance supervision and user experience. Mainly Due to data quality issues and insufficient semantic expression capabilities of the single-tower model.

Method used

A natural semantic intelligent review method based on the twin-tower neural network model is designed. Text features are extracted through the embedding layer, cross network and deep network, and combined with the data cleaning iterative process of the genetic algorithm to achieve high concurrency and dynamic scalability of the model. Microservice system.

Benefits of technology

The recall rate and precision rate of the model are significantly improved, reaching the industrial standard of 99.9%, reducing data cleaning costs, improving semantic expression capabilities and system scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113901833B
    Figure CN113901833B
Patent Text Reader

Abstract

In the industry, text classification is achieved through algorithms, but there has always been a bottleneck in prediction quality (quality indicators recall rate and precision rate are about 70% to 80%) and it has been impossible to break through for a long time. There are two reasons that constrain the prediction quality of the algorithm: 1. The semantic expression ability of the algorithm is not enough to express the complex characteristics of massive text data, and 2. The training data itself is of poor quality and contains a lot of noise, which makes the algorithm unable to converge well. The method of realizing ultra-high-quality natural semantic intelligent audit provided by the present invention starts from these two aspects, proposes a CNN3&Wide dual-tower deep learning model, integrates low-order and high-order features, enriches semantic expression capabilities, and then partitions the data, cross-validates the data confidence of multiple models, retains probabilities, and automatically iterates to clean low-confidence data. After multiple rounds of iterations, the algorithm finally breaks through the bottleneck, and the prediction quality can reach "39 pure gold" (99.9%), providing a practical solution for realizing ultra-high-quality natural semantic intelligent audit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a natural semantic intelligent audit method for realizing ultra-high quality based on iterative cleaning of big data using a genetic algorithm and a dual-tower deep learning model. Background Art

[0002] In the era of big data, More is Different!!!

[0003] Traditional algorithms (rules, statistics) are only applicable to simple systems with simple features and limited number, for example, features in the thousands, which are easy for experts to understand and have the ability and energy to maintain. Such simple systems are often scenarios with limited data volume, and stand-alone systems where data can be stored on a hard disk. The industry already has many mature relational databases (such as MySQL, MSSQL) and algorithm frameworks (such as Scikit-Learn) to achieve stand-alone storage and stand-alone computing.

[0004] In the era of big data, systems will become very complex, and their features require tens of thousands of rules to maintain. Features are not easy to understand, and experts do not have the ability or energy to maintain them. At the same time, the amount of data is often very large, at the TB or even PB level, requiring many hard disks to store, and the concurrency of system services is also very high. At this time, the algorithm model (for example: change to a deep learning model), algorithm framework (for example: change to Tensorflow), storage technology architecture (for example: change to Kafka, HBase and HDFS distributed storage), and computing technology architecture (for example: change to Docker container cloud distributed computing) all need to undergo fundamental changes to adapt to business development needs.

[0005] Regarding algorithm models, deep learning has excellent performance in various complex task scenarios due to its powerful feature expression capabilities, such as natural semantic analysis, image recognition, adversarial generation, reinforcement learning, etc., and has been widely used in the industry. Among them, text classification tasks involve many application scenarios in the industry, such as community / email intelligent review, search engine / information flow click-through rate prediction, and the binary classification model outputs 1 / 0 to express deletion / retention and click / no click respectively. To achieve text classification tasks, deep learning models such as single-tower fully connected DNN (Deep Neutral Networks), convolutional neural network CNN (Convolutional Neural Networks), recurrent neural network GRU (Gate Recurrent Unit), and dual-tower cross feature network Deep & Cross are currently commonly used. The above deep learning models have been applied effectively in technical systems such as Youtube video recommendation, Google search engine, Google App Store, Google Mail, Huawei App Store, and Amazon product recommendation.

[0006] Stock bar is the core business of Dongcai. It has tens of millions of posts and hundreds of millions of views every day. It gathers the top financial traffic in the industry and plays an industry benchmark role. To maintain such a top traffic pool, daily content (comments and bullet screens) review and governance is an extremely heavy task for this business. Dongcai has invested thousands of editors to do manual review 24*7 hours, including first review, second review, filtering of low-quality content such as advertisements, insults, spam, rumors, etc., and deletion accounts for about 10%. With the development of the business, the number of posts is increasing day by day, and the expansion and management costs of the editorial team are getting higher and higher. With the intermittent and huge fluctuations in the market, the number of posts has shown an avalanche-like increase in a short period of time within the day, and the delay of manual review affects the user experience at critical times. The intelligent review system based on AI algorithm models (Artificial Intelligence Algorithm Models, referred to as: models) has been an urgent need for the stock bar business for many years. It is of great strategic significance to assist manual work to improve review efficiency, reduce operation and maintenance costs, and reduce peaks and fill valleys.

[0007] However, in long-term practice, people have found that even with the application of deep learning, in text classification tasks, the model quality indicators (Performance Indice, including recall rate and precision rate) have been hovering around the bottleneck of 70% to 80% and cannot be broken through. Systems with low quality indicators cannot be used in industries or enterprises with strict compliance and supervision requirements (such as stock forums), extremely high user experience requirements, and close relationship with money. They must meet the "39 Pure Gold" super high quality (Super High Performance, that is, recall rate and precision rate are both 99.9%) industry standards to realize the commercial value of the algorithm.

[0008] There are two reasons for this bottleneck:

[0009] 1. The existing technology does not care about data quality, assumes that data quality is flawless, and does not provide guidance on improving data quality. However, such an assumption is not in line with industrial reality. The real situation is that the cognitive ability of the editing team (the team that manually labels) is uneven, everyone's understanding and views are different, personal energy and task urgency also fluctuate over time, and complex conditions such as personnel replacement lead to noise such as wrong labels and inconsistencies in the data. Manual secondary review and intersection can reduce noise, but it still cannot achieve 100% noise reduction, but the cost doubles. The more ideal situation is three reviews, four reviews, or even all team members review together and reach a consensus, so that the noise is close to 0, but the huge cost is not in line with industrial reality. The relevant literature also only introduces some simple rules for standardized filtering. Simple rules cannot achieve the effect of accurate noise reduction for complex texts. The rules will bring additional noise while correcting the labels, which is a loss. Effective data cleaning is a very important part of improving the quality of algorithm prediction.

[0010] 2. The semantic expression ability of the single-tower model is still limited. For complex language environments, there is a problem that the model feature capacity is far less than the number of features in the training data set, and the trained model will have semantic blind spots. The dual-tower model has rich expression capabilities, but excessive feature crossover will lead to a large amount of redundancy in the model feature capacity, which far exceeds the number of features in the training data set and cannot converge, and the model prediction quality decreases. According to the given training data, designing a specific dual-tower model so that its feature capacity is just right for the number of features in the training data set is also a very important part of improving the prediction quality of the algorithm. Summary of the invention

[0011] The technical problem to be solved by the present invention is to solve the problem that the industry has always had low model quality indicators (including recall rate and precision rate) in text classification tasks, which lingers at the bottleneck of 70% to 80% and cannot be broken through.

[0012] In order to solve the above technical problems, the technical solution of the present invention is to provide a method for realizing ultra-high-quality natural semantic intelligent review, which is characterized by comprising the following steps:

[0013] Step 1: Establish a dual-tower neural network model, which includes:

[0014] Embedding layer: After the text is One-Hot vectorized by the single-word character dictionary, it is input into the embedding layer. The embedding layer is used to embed the high-dimensional text vector y0 in the original high-dimensional sparse space into the low-dimensional dense space to obtain the low-dimensional text vector y1. The dimension of the high-dimensional sparse space is D one-hot , D one-hot is the number of words in the single-word character dictionary, and the dimension of the low-dimensional dense space is D e , D e <<D one-hot ;

[0015] Cross network based on single-layer CNN and deep network based on multi-layer CNN:

[0016] The low-dimensional text vector y1 is input into the cross network and the deep network at the same time; the low-order feature y2 of the low-dimensional text vector y1 is extracted through the cross network, and the high-order feature y3 of the low-dimensional text vector y1 is extracted through the deep network;

[0017] Flattening layer: used to flatten the low-order feature y2 output by the cross network and the high-order feature y3 output by the deep network, respectively, to obtain the flattened low-order feature y2, denoted as Flatten(y2), and the flattened high-order feature y3, denoted as Flatten(y3);

[0018] Concatenate layer: used to concatenate Flatten(y2) and Flatten(y3) output by the Flatten layer into a vector [Flatten(y2), Flatten(y3)];

[0019] Two fully connected layers DNN and Sigmoid function output layer:

[0020] After the vector [Flatten(y2), Flatten(y3)] passes through two fully connected layers of DNN, Flatten(y2) and Flatten(y3) in the vector [Flatten(y2), Flatten(y3)] are fully crossed, and finally the predicted labeling result y is output through the Sigmoid function output layer;

[0021] Step 2: training the dual-tower neural network model obtained in step 1 to obtain M Nth generation dual-tower neural network models, where M is an integer greater than 1, including the following steps:

[0022] Step 201, set n=0;

[0023] Confidence 100% for true deletion / true retention label data, confidence 100% for wrong deletion / omission label data, confidence Different retention rates are set for wrongly deleted / omitted label data and uncertain label data, where the confidence For incorrectly deleted / omitted label data, different retention rates are set based on different confidence levels;

[0024] Step 202: M groups of data are formed based on the nth version of the training data set, and there is no difference between the M groups of data;

[0025] Step 203: Use M groups of data to train M isomorphic dual-tower neural network models established in step 1 to obtain M n-th generation dual-tower neural network models, and obtain the prediction labeling results given by the M dual-tower neural network models for each data in the grouped data;

[0026] For the same data:

[0027] If the manual labeling result of the data in the training data set is deleted, and the predicted labeling result given by the M dual-tower neural network models is also deleted, or if the manual labeling result of the data in the training data set is retained, and the predicted labeling result given by the M dual-tower neural network models is also retained, then the data is truly deleted / truly retained label data;

[0028] If the manual labeling result of the data in the training data set is deleted, and the predicted labeling result given by the M dual-tower neural network models is retained, or if the manual labeling result of the data in the training data set is retained, and the predicted labeling result given by the M dual-tower neural network models is deleted, then the data is 100% confidence wrong deletion / omission label data;

[0029] If the manual labeling result of the data in the training data set is to delete, and the predicted labeling result given by M1 of the M dual-tower neural network models is to delete, and the predicted labeling results given by the remaining dual-tower neural network models are to retain, or if the manual labeling result of the data in the training data set is to retain, and the predicted labeling result given by M1 of the M dual-tower neural network models is to delete, and the predicted labeling results given by the remaining dual-tower neural network models are to retain, then the data is confidence Wrongly deleted / omitted tag data;

[0030] If the confidence level of the erroneously deleted / omitted label data is 50%, the erroneously deleted / omitted label data is redefined as uncertain label data;

[0031] Step 204: Obtain the retention rate of each data in the training data set, and retain the data with a retention rate greater than the random number by generating a random number, and discard the data with a retention rate less than the random number;

[0032] Step 205, n=n+1, if n is greater than N, then exit, otherwise go to step 206;

[0033] Step 206: The data retained in the previous step is shuffled to obtain the nth version of the training data set, and then the process returns to step 202;

[0034] Step 3: At least one of the trained M Nth generation dual-tower neural network models provides a microservice of intelligent auditing to the outside through an interface, including the following steps:

[0035] The application implemented based on the dual-tower neural network model is packaged into an image as a whole, the application's operating environment is isolated from the machine system environment, the image is published to multiple machines, and instantiated into multiple containers in each machine. All containers in the machine provide microservices to the outside world in parallel; a domain name is configured for the microservice, and the pressure of access requests to the microservice is randomly distributed to each machine through the domain name server. The machine further randomly distributes the pressure of access requests to each container, thereby responding to the request to obtain the microservice.

[0036] Preferably, the cross network includes a one-dimensional convolution layer Conv1D with 32 convolution kernel filters, an activation layer LeakyReLU and a batch normalization layer BatchNormalization which are stacked in sequence.

[0037] Preferably, the deep network includes a one-dimensional convolution layer Conv1D with 32 convolution kernel filters, an activation layer LeakyReLU, a batch normalization layer BatchNormalization, a maximum pooling layer Maxpooling1D, a one-dimensional convolution layer Conv1D with 16 convolution kernel filters, an activation layer LeakyReLU, a batch normalization layer BatchNormalization, a maximum pooling layer Maxpooling1D, a one-dimensional convolution layer Conv1D with 8 convolution kernel filters, an activation layer LeakyReLU, a batch normalization layer BatchNormalization and a maximum pooling layer Maxpooling1D, which are stacked in sequence.

[0038] Preferably, the two fully connected layer DNNs include a first fully connected layer DNN with 250 units, a first activation layer LeakyReLU, a first random drop layer Dropout, a second fully connected layer DNN with 50 units, a second activation layer LeakyReLU, and a second random drop layer Dropout, which are stacked in sequence.

[0039] Preferably, the Sigmoid function output layer includes a fully connected layer DNN having only one unit, and the fully connected layer DNN uses the Sigmoid function to output the predicted labeling result y.

[0040] Preferably, when training the twin-tower neural network model, the twin-tower neural network model is trained using each piece of online environment data generated by the microservices already running in the online environment and the manual editing service, or the twin-tower neural network model is trained using offline environment data stored in the distributed column database HBase, including the following steps:

[0041] Each piece of online environment data generated by the running microservices and manual editing services in the online environment is written into the distributed message pipeline Kafka 1;

[0042] Migrate the online environment data written into the distributed message pipeline Kafka 1 to the distributed message pipeline Kafka 2 in the offline environment, and form M groups of data after data partitioning is implemented through the distributed message pipeline Kafka 2;

[0043] The training program for training the Nth generation dual-tower neural network model is packaged into a Docker image and published to different nodes for instantiation and operation through K8S. The Nth generation dual-tower neural network model pulls the Nth version of recent stream data and historical batch data from the distributed message pipeline Kafka 2 or the distributed columnar database HBase, and performs offline training in parallel.

[0044] The trained Nth generation dual-tower neural network model is written into the distributed file system HDFS for sharing among nodes, and the label data results predicted by the Nth generation dual-tower neural network model are written into the distributed columnar database HBase for subsequent training.

[0045] In order to break through the bottleneck of algorithm prediction quality and meet the industry standard of "39 pure gold", the present invention focuses on data quality and improves semantic expression ability, and provides a practical solution. Compared with the prior art, the present invention has the following characteristics:

[0046] 1. Design a dual-tower deep learning model with strong expressiveness and a feature capacity that is just right for the number of features in the training dataset;

[0047] 2. Based on the concept of legacy algorithms, design an automated data cleaning iterative process to achieve offline model training;

[0048] 3. Design the middleware technology architecture of the offline training system;

[0049] 4. Design a dynamic and horizontally scalable high-concurrency microservice system. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 It shows that the model capacity of the algorithm will affect the semantic expression ability and prediction performance indicators of the model. Ordinary models are not enough to express the data characteristics of massive texts.

[0051] Figure 2 The technical architecture of the CNN3&Wide dual-tower neural network model is illustrated, in which the cross network and deep network extract low-order and high-order features respectively, and the fusion of the two can effectively express the data features of massive texts;

[0052] Figure 3 It shows that there are a large number of reasonable outliers and unreasonable outliers in the training data set. These noises will cause the algorithm to fail to converge. Improving the quality of the training data set through data cleaning is an important part of improving the quality of the model.

[0053] Figure 4 The idea of ​​using genetic algorithm is shown in the figure. The data is divided into four partitions and cross-validated based on four isomorphic models. In each round of iteration, good quality data is retained and poor quality data is discarded according to probability, thus achieving automatic data cleaning.

[0054] Figure 5 The confidence obtained by cross-validation of four models is shown. Manual labels can be divided into true labels, wrong labels, and uncertain labels, and different iteration retention rates can be set.

[0055] Figure 6 It shows that after multiple rounds of iterations, the three performance indicators of the model (recall rate, precision rate, and F1) have been substantially improved and gradually converged to 1. In the 10th round of iteration, the performance indicators have reached "39 pure gold";

[0056] Figure 7 The double-review blind test mechanism is used to test the omission and error deletion rates of the model, and the effectiveness of the algorithm is proved by the indistinguishability between manual work and the algorithm.

[0057] Figure 8 It illustrates the technical architecture of integrating distributed storage and distributed computing to achieve parallel offline training of models.

[0058] Fig. 9It illustrates the distributed computing and response to high concurrent requests through a dynamically scalable microservice technology architecture. DETAILED DESCRIPTION

[0059] The present invention will be further described below in conjunction with specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention. In addition, it should be understood that after reading the content taught by the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms fall within the scope limited by the appended claims of the application equally.

[0060] The method for realizing ultra-high-quality natural semantic intelligent review disclosed in this embodiment specifically includes the following technical contents:

[0061] 1) Building an algorithm model

[0062] The quality of the algorithm model refers to the degree of consistency between the prediction results and the actual labeling results after the model is trained. The most intuitive way to measure it is through the deleted recall rate (Recall, predicted true ∩ actual true / actual true), precision rate (Precise, predicted true ∩ actual true / predicted true) and F1 (the harmonic mean of recall and precision). There are two most important factors affecting model performance:

[0063] First) The expressive power of the algorithm model

[0064] If the feature capacity of the algorithm model is much smaller than the number of features in the labeled training data set (hereinafter referred to as the "data set"), the algorithm model cannot fully describe the features of the data set, resulting in a blind spot in the algorithm model. If the feature capacity of the algorithm model is much larger than the number of features in the data set, the algorithm model over-describes the features of the data set, resulting in the algorithm model being unable to converge to a stable state. The feature capacity of the algorithm model must be similar to the number of features in the data set so that the algorithm model can fully express the data features and converge to a stable state.

[0065] Second) Data of algorithm model:

[0066] 1) Data quality: The ideal data quality is that the labeling results are 100% accurate, but the data quality in the real world is often not 100% accurate. Real data sets contain errors, inconsistencies, contradictions, and other noises. Inputting noisy data sets into the algorithm model for training will cause the algorithm model to not converge.

[0067] 2) Completeness of data: The ideal algorithm model input should include all dependent factors involved in the problem to be solved. If there are some missing dependent factors, it will affect the algorithm model's ability to analyze the problem.

[0068] The present invention solves the algorithm model problem from the above two aspects.

[0069] Considering the posts and comments in the "stock bar", the semantic environment is very complex and it is almost impossible to exhaust the rules. The number of features in the data set is very large. Various models are used for training on smaller data sets, such as Figure 1 As shown, from left to right, the feature capacity of the algorithm model is increasing, and the final quality index is getting better and better. Among them, the deep learning model containing high-order features has the best performance, the machine learning model that can only contain low-order features performs second, and the linear algorithm of approximate rules performs the worst. It shows that the linear component in the "Guba" data set does not have an absolute analytical advantage, and the contribution of nonlinear cross features cannot be directly ignored. It can be seen that designing a model based on deep learning is an inevitable choice of the present invention. Deep learning relies on a series of K-space nonlinear transformation operations to establish a complex mapping relationship between two real spaces, and has richer expression capabilities.

[0070] With reference to Google's Deep&Wide and Deep&Cross models and their variant models, the present invention has innovatively transformed a new dual-tower neural network model on the stock bar dataset after sufficient debugging, which is called the CNN3&Wide model. Figure 2 As shown, including:

[0071] Embedding Layer:

[0072] After the text is One-Hot vectorized by the single-word character dictionary, it is input into the embedding layer. The embedding layer is used to convert the original high-dimensional D one-hot The high-dimensional text vector y0 in sparse space is embedded into the low-dimensional D e The low-dimensional text vector y1 is obtained from the dense space. Among them, the number of dictionary words is D one-hot = 25460, the index of the space is 0, the character length is 50, and the dimension of the dense space is D e =30.

[0073] Cross Network and Deep Network:

[0074] The low-dimensional text vector y1 is input into the cross network and the deep network at the same time. The low-order features y2 of the low-dimensional text vector y1 are extracted through the cross network. The high-order features y3 of the low-dimensional text vector y1 are extracted through the deep network.

[0075] The cross network is usually implemented by a linear layer LR (Linear Regression), or a cross layer FM (Factorization Machines), or a cross layer Cross, or a stacked combination of at least any two of the linear layer LR, the cross layer FM and the cross layer Cross.

[0076] In this embodiment, the crossover network further includes:

[0077] 1) One-dimensional convolution layer Conv1D, D f = 32 convolutional filters, kernel size is D k =1, padding is the same, step size is 1, linear output; the one-dimensional convolution layer Conv1D is a commonly used one-dimensional convolutional neural network;

[0078] 2) Activation layer LeakyReLU, alpha = 0.2;

[0079] 3) Batch Normalization layer

[0080] Deep networks are usually implemented using convolutional neural networks (CNN), fully connected neural networks (DNN), or a stacked combination of convolutional neural networks (CNN) and fully connected neural networks (DNN).

[0081] In this embodiment, the deep network further includes the following stacked layers:

[0082] 1) One-dimensional convolution layer Conv1D, D f = 32 convolution filters, D k =kernel size is 3, padding is same, step size is 1, linear output;

[0083] 2) Activation layer LeakyReLU, alpha = 0.2;

[0084] 3) Batch Normalization layer;

[0085] 4) Maximum pooling layer Maxpooling1D, D p =pool size is 2;

[0086] 5) One-dimensional convolution layer Conv1D, D f = 16 convolution kernel filters, D k =kernel size is 3, padding is same, step size is 1, linear output;

[0087] 6) Activation layer LeakyReLU, alpha = 0.2;

[0088] 7) Batch Normalization layer;

[0089] 8) Maximum pooling layer Maxpooling1D, D p =pool size is 2;

[0090] 9) One-dimensional convolution layer Conv1D, D f = 8 convolution kernel filters, D k =kernel size is 3, padding is same, step size is 1, linear output;

[0091] 10) Activation layer LeakyReLU, alpha = 0.2;

[0092] 11) Batch Normalization layer;

[0093] 12) Maximum pooling layer Maxpooling1D, D p =pool size is 2;

[0094] Flatten layer:

[0095] The flattening layer flattens the low-order feature y2 output by the cross network and the high-order feature y3 output by the deep network, respectively, to obtain the flattened low-order feature y2, denoted as Flatten(y2), and the flattened high-order feature y3, denoted as Flatten(y3).

[0096] Concatenate layer:

[0097] Used to concatenate Flatten(y2) and Flatten(y3) output by the flatten layer Flatten into the vector [Flatten(y2), Flatten(y3)].

[0098] Two fully connected layers DNN and Sigmoid function output layer:

[0099] The vector [Flatten(y2), Flatten(y3)] passes through two fully connected layers of DNN, and finally outputs the predicted labeling result y through the Sigmoid function output layer.

[0100] Two fully connected layer DNNs are used to fully cross Flatten(y2) and Flatten(y3) in the vector [Flatten(y2), Flatten(y3)], further including the stacked:

[0101] 1) Fully connected layer 1 DNN, 250 units, linear output;

[0102] 2) Activation layer LeakyReLU, alpha = 0.2;

[0103] 3) Random dropout layer Dropout, with a dropout probability of 0.5. The random dropout layer Dropout randomly masks some units according to the dropout probability, which is usually used to prevent neural network overfitting;

[0104] 4) Fully connected layer 2 DNN, 50 units, linear output;

[0105] 5) Activation layer LeakyReLU, alpha = 0.2;

[0106] 6) Random dropout layer with a dropout probability of 0.5.

[0107] The Sigmoid function output layer includes a fully connected layer DNN with only one unit, and the fully connected layer DNN uses the Sigmoid function to output the predicted labeling result y.

[0108] Designing a deep learning model is a combination of science and art. In layman's terms, it is a process of continuous experimentation over a long period of time, observing the output results while looking for the corresponding data transformations and logical intuition behind the results.

[0109] The characteristics of the CNN3&Wide model disclosed in the present invention are:

[0110] 1. Deep networks use the local semantic associations and high computational efficiency of multi-layer CNNs to replace the commonly used DNNs, overcoming the shortcomings of DNNs that have too many parameters, cannot converge, and have poor effects on natural language tasks.

[0111] 2. The cross network uses a single-layer CNN to transmit the most original semantics, replacing the commonly used FM layer and Cross layer, making the network easier to converge. For the "Guba" dataset, the FM layer and the Cross layer have too strong expression capabilities and the features are over-extracted.

[0112] 3. Batch Normalization layer BatchNormalization can prevent parameter divergence and accelerate model convergence.

[0113] 4. Randomly discard the layer Dropout to prevent the model from overfitting.

[0114] 5. The activation layer LeakyReLU layer replaces the ReLU layer to prevent the reverse gradient of the model from disappearing and speed up the convergence of the model.

[0115] 2) Training the algorithm model

[0116] The CNN3&Wide model provided by the present invention is the result of optimization on the "stock bar" data set, and the (prediction) performance index is around 75%, which is still far from the ideal "39 pure gold".

[0117] According to common sense of technicians in this field, the model is based on artificially labeled data to train the model parameters of the neural network, and the output quality of the model is closely related to the quality of the input training labeled data set. Although the database may have accumulated billions of labeled data over the years, due to the long time span and the long history, the different editors of the database have changed several times, and their understanding of semantics is uneven, resulting in inconsistencies and contradictions in the labeled data. Figure 3 As shown in the figure, in the high-dimensional feature space, the data is marked differently according to the manual labels. Line A is the classification boundary given by the model, and the area between lines B and C is a fuzzy area. Outliers within the error tolerance range are semantically ambiguous, and such normal boundary effects are generally allowed to exist. Beyond lines B and C, points D and E are unreasonable outliers, which are manual labeling errors and abnormal boundary effects, which will seriously affect the output quality of the model.

[0118] The fundamental reason why the output quality of the CNN3&Wide model designed by the present invention encounters a bottleneck is that the data quality is not good enough. This situation is common in the industry. Without cleaning the data, it is impossible to break through the bottleneck of model quality. However, it is unrealistic to manually clean hundreds of millions of data, and it is also unrealistic to clean the data through tens of thousands of rules. Without cleaning the data, the model cannot become excellent, and the recall rate and precision rate cannot reach 99.9%, the ideal standard of "39 pure gold".

[0119] Inspired by genetic algorithms, the present invention designs an iterative process for automatic data cleaning based on cross-validation of four isomorphic models, such as Figure 4 and Figure 5 As shown, the following steps are included:

[0120] Step 1. Considering the inconsistency and contradiction of label data, the data in the dataset is shuffled and divided into 4 partitions. The data in each partition is used to train 4 isomorphic CNN3&Wide models from scratch. Although there is no difference between the 4 groups of data corresponding to the 4 partitions, and there is no essential difference in the output of the CNN3&Wide model, since the 4 isomorphic CNN3&Wide models have not seen each other's data partitions, any one of the 4 isomorphic CNN3&Wide models is used to evaluate the data of the other 3 partitions. In the figure, the Nth generation model refers to the one trained with the Nth version of the dataset, and N represents the number of iterations. It should be noted that the N+1th generation model is not obtained by reinforcement learning based on the Nth generation model, but is trained from scratch using the N+1th version of the dataset starting from the master model.

[0121] Step 2: Use the trained 4 CNN3&Wide models to re-evaluate the original data set, and cross-validate the output results of the 4 CNN3&Wide models to obtain: 100% confidence true deletion / true retention label data, 100% confidence wrong deletion / omission label data, 75% confidence wrong deletion / omission label data, 25% confidence wrong deletion / omission label data, and uncertain label data, such as Figure 5 shown.

[0122] Step 3: For the 100% confidence true deletion / true retention label data, 100% confidence wrong deletion / omission label data, 75% confidence wrong deletion / omission label data, 25% confidence wrong deletion / omission label data and uncertain label data, set different retention rates, such as Figure 5 As shown in the figure, the retention rate means that the probability of retaining data in the next round of iteration is determined by generating random numbers, otherwise it is directly discarded and does not enter the next round of iteration. The retained data is shuffled to obtain a new batch of partitioned data.

[0123] Step 4: Enter the next round of iteration.

[0124] After 10 rounds of iterations, the number of incorrectly deleted / mistakenly deleted label data and uncertain label data has decreased. As the dataset becomes cleaner, the quality indicators of the model are Figure 6 As shown in the figure, there is a substantial improvement, and it increases with the number of iterations, and the three quality indicators converge to 1. After 10 rounds of iterations, the overall data retention rate is 86%, that is, the total discarded data accounts for about 14% of the total. At this time, the recall rate and precision rate can reach the industrial standard of "39 pure gold". The quality indicators are inversely related to the overall data retention rate. In each round of iteration, poor quality data is discarded and only good quality data is retained. As the data quality improves, the model quality also improves.

[0125] Considering that each round of models is not the "final model", it is possible that some data features are not learned by the model. Therefore, before reaching the "final model", we should not be overconfident and adopt the "slow annealing" method, carefully set a larger retention rate, and only throw away some noise with high confidence in each round to retain enough data features for the next few rounds. If the "fast annealing" method is adopted and a lower retention rate is set, the model learned in the next few rounds will lose many data features, and a biased or incomplete model will be obtained.

[0126] A manual double-review blind test mechanism is adopted (the same data is reviewed by two editors, and the editors cannot see the labeling results of each other and the algorithm). The dates shown here are from March 3, 2021 to March 17, 2021. Ten thousand data are randomly sampled every day for testing, and the omission rate (the proportion of the retained data that should be deleted but is not deleted, such as Figure 7 A and C in the figure) and the wrong deletion rate (the proportion of deleted data that should be retained but is deleted, such as Figure 7 (as shown in B and D in the figure).

[0127] like Figure 7 As shown in A and B in the figure, taking the first trial as the benchmark, the omission and error deletion rates of the trained CNN3&Wide model provided by the present invention and the second trial were tested respectively, and it was found that the CNN3&Wide model provided by the present invention was slightly lower than that of the second trial.

[0128] like Figure 7 As shown in C and D in the figure, taking the second trial as the benchmark, the omission rate and error rate of the CNN3&Wide model and the first trial were tested respectively, and it was found that the CNN3&Wide model was slightly lower than that of the first trial.

[0129] This shows that the model quality index is within the error range of the manual double-blind review experiment. The output quality of the CNN3&Wide model provided by the present invention is no different from that of personal editing. The CNN3&Wide model provided by the present invention can be used as a "real seat".

[0130] Even by taking the intersection and using the labels with the same editing conclusions as the benchmark, it is impossible to guarantee that the intersection data is 100% accurate. Although the fluctuation of label data quality has decreased, it still exists. In an ideal situation without considering the cost, the entire editing team (for example, more than 10 people) should conduct a blind test and take the intersection as the benchmark. The fluctuation of label data quality can be approximately regarded as 0.

[0131] 3) Technical Architecture

[0132] The present invention adopts big data distributed storage middleware: including distributed message pipeline Kafka, distributed file system HDFS and distributed column database HBase, to realize parallel offline training of CNN3&Wide model, such as Figure 8 As shown:

[0133] The online environment has manual editing and model microservices for real-time operation and maintenance, and every piece of data generated will be written to Kafka1.

[0134] Migrate the Kafka 1 data in the online environment to the Kafka 2 in the offline environment, and implement data partitioning through Kafka 2.

[0135] The N-generation model is implemented using Tensorflow 2.0. The training program is packaged into a Docker image and published to different nodes for instantiation and operation through K8S (Kubernetes, a container cloud automated management and operation tool). The model pulls the N-th version of recent streaming data and historical batch data from Kafka 2 or HBase for parallel offline training.

[0136] The trained N-generation models are written to HDFS for easy sharing among nodes.

[0137] The label data results predicted by the N-generation model are written into HBase for subsequent training.

[0138] The reason for using Kafka is that Kafka has the characteristics of high throughput, high concurrency, and automatic partitioning. More importantly, the businesses are decoupled from each other and work independently without affecting each other. As a big data distributed message pipeline middleware, Kafka is the industry de facto standard.

[0139] Both HDFS and HBase are middleware of the Hadoop family. The reason for using HDFS is that it can store large blocks of data in a distributed manner, which is suitable for each node to share configuration files such as models. The reason for using HBase is that HBase has the characteristics of high concurrent read and write, strong consistency, and distributed columnar storage, which is suitable for big data persistence, real-time response to read and write, and big data sharing among various nodes. As distributed storage for big data, HDFS and HBase are the industry's de facto standards.

[0140] Tensorflow2.0 and Pytorch are both deep learning frameworks. Tensorflow2.0 has high computational efficiency and is widely used in industry, while Pytorch is simple and easy to use and widely used in academia. In the production system of financial technology companies, computational efficiency requirements are relatively high, so Tensorflow2.0 is selected and the development language is Python3.7.

[0141] Except for transaction system scenarios, in the big data era, it is not recommended to use stand-alone relational databases such as MySQL and MSSQL. On the one hand, a single-machine disk cannot store big data. On the other hand, the management cost is extremely high, and the flexibility of the data format and the read and write response are not as good as non-relational databases such as NoSQL.

[0142] The present invention uses the Flask framework to open the network port, and provides the 10th generation model of "Sanjiu Pure Gold" (1 to 4 of them) with intelligent audit services through the interface. Use Docker to package the entire application into an image, and isolate the application's operating environment from the machine (physical machine / virtual machine) system environment. Publish the image to multiple machines, and instantiate it into multiple containers to provide external services in parallel. Configure a domain name for the microservice of the intelligent audit application, such as Fig. 9 As shown in the figure, the domain name server randomly distributes the pressure of access requests to each machine, and the machine further randomly distributes the pressure of access requests to each container to obtain services. This microservice architecture can be dynamically parallelized and scalable according to the size of the access request volume, increasing the parallelism of the machine or the parallelism of the container in the machine. If a flood peak occurs, a message pipeline (such as Kafka) can be added in front of the domain name server to smooth the peak and fill the valley.

Claims

1. A natural semantic intelligent review method for achieving ultra-high quality, characterized in that: The following steps are involved: Step 1: Establish a dual-tower neural network model, which includes: Embedding layer: After the text is One-Hot vectorized by the single-word character dictionary, it is input into the embedding layer. The embedding layer is used to embed the high-dimensional text vector y0 in the original high-dimensional sparse space into the low-dimensional dense space to obtain the low-dimensional text vector y1. The dimension of the high-dimensional sparse space is D one-hot , D one-hot is the number of words in the single-word character dictionary, and the dimension of the low-dimensional dense space is D e , D e <<D one-hot ; Cross network based on single-layer CNN and deep network based on multi-layer CNN: The low-dimensional text vector y1 is input into the cross network and the deep network at the same time; the low-order feature y2 of the low-dimensional text vector y1 is extracted through the cross network, and the high-order feature y3 of the low-dimensional text vector y1 is extracted through the deep network; Flattening layer: used to flatten the low-order feature y2 output by the cross network and the high-order feature y3 output by the deep network, respectively, to obtain the flattened low-order feature y2, denoted as Flatten(y2), and the flattened high-order feature y3, denoted as Flatten(y3); Concatenate layer: used to concatenate Flatten(y2) and Flatten(y3) output by the Flatten layer into a vector [Flatten(y2), Flatten(y3)]; Two fully connected layers DNN and Sigmoid function output layer: After the vector [Flatten(y2), Flatten(y3)] passes through two fully connected layers of DNN, Flatten(y2) and Flatten(y3) in the vector [Flatten(y2), Flatten(y3)] are fully crossed, and finally the predicted labeling result y is output through the Sigmoid function output layer; Step 2: training the dual-tower neural network model obtained in step 1 to obtain M Nth generation dual-tower neural network models, where M is an integer greater than 1, including the following steps: Step 201, set n=0; True deletion / true retention label data, confidence level 100% False deletion / omission label data, confidence level Different retention rates are set for wrongly deleted / omitted label data and uncertain label data, where the confidence For incorrectly deleted / omitted label data, different retention rates are set based on different confidence levels; Step 202: M groups of data are formed based on the nth version of the training data set, and there is no difference between the M groups of data; Step 203: Use M groups of data to train M isomorphic dual-tower neural network models established in step 1 to obtain M n-th generation dual-tower neural network models, and obtain the prediction labeling results given by the M dual-tower neural network models for each data in the grouped data; For the same data: If the manual labeling result of the data in the training data set is deleted, and the predicted labeling result given by the M dual-tower neural network models is also deleted, or if the manual labeling result of the data in the training data set is retained, and the predicted labeling result given by the M dual-tower neural network models is also retained, then the data is truly deleted / truly retained label data; If the manual labeling result of the data in the training data set is deleted, and the predicted labeling result given by the M dual-tower neural network models is retained, or if the manual labeling result of the data in the training data set is retained, and the predicted labeling result given by the M dual-tower neural network models is deleted, then the data is 100% confidence wrong deletion / omission label data; If the manual labeling result of the data in the training data set is to delete, and the predicted labeling result given by M1 of the M dual-tower neural network models is to delete, and the predicted labeling results given by the remaining dual-tower neural network models are to retain, or if the manual labeling result of the data in the training data set is to retain, and the predicted labeling result given by M1 of the M dual-tower neural network models is to delete, and the predicted labeling results given by the remaining dual-tower neural network models are to retain, then the data is confidence Wrongly deleted / omitted tag data; If the confidence level of the erroneously deleted / omitted label data is 50%, the erroneously deleted / omitted label data is redefined as uncertain label data; Step 204: Obtain the retention rate of each data in the training data set, and retain the data with a retention rate greater than the random number by generating a random number, and discard the data with a retention rate less than the random number; Step 205, n=n+1, if n is greater than N, then exit, otherwise go to step 206; Step 206: The data retained in the previous step is shuffled to obtain the nth version of the training data set, and then the process returns to step 202; Step 3: At least one of the trained M Nth generation dual-tower neural network models provides a microservice of intelligent auditing to the outside through an interface, including the following steps: The application implemented based on the dual-tower neural network model is packaged into an image as a whole, the application's operating environment is isolated from the machine system environment, the image is published to multiple machines, and instantiated into multiple containers in each machine. All containers in the machine provide microservices to the outside world in parallel; a domain name is configured for the microservice, and the pressure of access requests to the microservice is randomly distributed to each machine through the domain name server. The machine further randomly distributes the pressure of access requests to each container, thereby responding to the request to obtain the microservice.

2. A method for realizing ultra-high-quality natural semantic intelligent review as claimed in claim 1, characterized in that: The cross network includes a one-dimensional convolution layer Conv1D with 32 convolution kernel filters, an activation layer LeakyReLU and a batch normalization layer BatchNormalization which are stacked in sequence.

3. A method for realizing ultra-high quality natural semantic intelligent review as claimed in claim 1, characterized in that: The deep network includes a one-dimensional convolution layer Conv1D with 32 convolution kernel filters, an activation layer LeakyReLU, a batch normalization layer BatchNormalization, a maximum pooling layer Maxpooling1D, a one-dimensional convolution layer Conv1D with 16 convolution kernel filters, an activation layer LeakyReLU, a batch normalization layer BatchNormalization, a maximum pooling layer Maxpooling1D, a one-dimensional convolution layer Conv1D with 8 convolution kernel filters, an activation layer LeakyReLU, a batch normalization layer BatchNormalization and a maximum pooling layer Maxpooling1D, which are stacked in sequence.

4. A method for realizing ultra-high quality natural semantic intelligent review as claimed in claim 1, characterized in that: The two fully connected layer DNNs include a first fully connected layer DNN with 250 units, a first activation layer LeakyReLU, a first random drop layer Dropout, a second fully connected layer DNN with 50 units, a second activation layer LeakyReLU, and a second random drop layer Dropout, which are stacked in sequence.

5. A method for realizing ultra-high quality natural semantic intelligent review as claimed in claim 1, characterized in that: The Sigmoid function output layer includes a fully connected layer DNN with only one unit, and the fully connected layer DNN uses the Sigmoid function to output the predicted labeling result y.

6. A method for realizing ultra-high quality natural semantic intelligent review as claimed in claim 1, characterized in that: When training the twin-tower neural network model, the twin-tower neural network model is trained using each piece of online environment data generated by the microservices already running in the online environment and the manual editing service, or the twin-tower neural network model is trained using the offline environment data stored in the distributed column database HBase, including the following steps: Each piece of online environment data generated by the running microservices and manual editing services in the online environment is written into the distributed message pipeline Kafka 1; Migrate the online environment data written into the distributed message pipeline Kafka 1 to the distributed message pipeline Kafka 2 in the offline environment, and form M groups of data after data partitioning is implemented through the distributed message pipeline Kafka 2; The training program for training the Nth generation dual-tower neural network model is packaged into a Docker image and published to different nodes for instantiation and operation through K8S. The Nth generation dual-tower neural network model pulls the Nth version of recent stream data and historical batch data from the distributed message pipeline Kafka 2 or the distributed columnar database HBase, and performs offline training in parallel. The trained Nth generation dual-tower neural network model is written into the distributed file system HDFS for sharing among nodes, and the label data results predicted by the Nth generation dual-tower neural network model are written into the distributed columnar database HBase for subsequent training.