A bidding text similarity detection system and detection method

By combining the deep learning model with BiLSTM and CW2Vec, combined with the twin network and PCA dimensionality reduction, the problem of insufficient semantic information extraction in Chinese bidding text similarity detection is solved, the accuracy and efficiency of detection are improved, and the cost of manual review is reduced.

CN118520864BActive Publication Date: 2024-10-15YANGTZE THREE GORGES EQUIPMENT & MATERIALS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410996347.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-15
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

When the existing technology calculates the similarity of Chinese bid text, the semantic information is insufficiently extracted and the training time is too long, resulting in low accuracy and efficiency, and it is difficult to effectively detect the similarity of the bid text.

Method used

The deep learning model is combined with the Bidirectional Long Short-term Memory Network (BiLSTM) and the Chinese Word Vector Model (CW2Vec). Through preprocessing and feature extraction, the twin network is used for similarity calculation, and combined with principal component analysis (PCA) dimensionality reduction to improve the model. accuracy and adaptability.

Benefits of technology

It improves the accuracy of bid text similarity detection, reduces manual review costs, and the model can be continuously trained with the accumulation of data to improve the recognition accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118520864B_ABST
    Figure CN118520864B_ABST
Patent Text Reader

Abstract

A bidding text similarity detection system and detection method, including a supplier bidding document generation client and an online detection subsystem connected to the client. The client includes an information collection module and an encryption upload module, and the online detection subsystem includes a decryption module, a text analysis module based on a deep learning algorithm, a data storage module, and an information push module. The information collection module is used to collect the original text data input by the supplier. The encryption upload module is used to encrypt the original text data, and the data storage module is used to store the bidding text data and the model output results. Before the bid is opened, the decryption module decrypts the encrypted bidding text, and finally, according to the model output results, the list of suppliers that need to be reviewed and the parts of their bidding documents that are detected to be too similar are pushed to the bidding agency or the bidding party for review to detect collusion in bidding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of text similarity detection, and in particular relates to a bidding text similarity detection system and a detection method. Background Art

[0002] Collusion in bidding has been rampant, and detection of violations before the bid opening has become a necessary process for many bidding projects. Generally speaking, if the texts of two or more bids are too similar, they will be considered suspected of collusion and should be further identified. However, bidding documents usually have hundreds of pages. If they are reviewed entirely manually, the efficiency is too low, and information technology tools are needed to assist in text similarity comparison.

[0003] Most of the existing technologies for processing bid texts use distance measurement methods based on Euclidean distance or cosine distance to determine the similarity of the entire bid text. The accuracy of identifying similar texts is low, and due to the existence of fixed templates in the bid document text, it is easy to cause misjudgment of the results, resulting in unnecessary manual review costs.

[0004] Bidirectional Long Short-Term Memory Network BiLSTM (full name: Bi-directional Long Short-Term Memory) is a method that carries information across multiple time steps. It can extract time step information from the forward and reverse directions, so that it can consider both the previous and the following information. It performs well in tasks such as time series and natural language processing.

[0005] The bidirectional encoder representation model BERT (full name: bidirectional encoder representations from Transformer) is a pre-trained language model based on the Transformer architecture proposed by Devlin et al. in 2018. Through its key features such as bidirectionality, pre-training methods and Transformer architecture, it has achieved significant performance improvements in the field of natural language processing, especially in question answering, text classification, named entity recognition and other tasks. The Chinese word vector model CW2Vec (full name: Chinese Word to Vector) is a word vector model tailored to the characteristics of Chinese. It considers the stroke information of Chinese characters to train word vectors, and can effectively extract the semantic information of Chinese text. It has achieved good results in natural language processing tasks such as Chinese text classification, sentiment analysis, and machine translation.

[0006] The twin network defines two network structures with the same structure and shared parameters, which can be used to learn the similarity between given data. Most of the existing studies on calculating text similarity based on deep learning models use the twin network as the basic structure, but there are shortcomings such as insufficient semantic information extraction and long training time. How to effectively use deep learning models to calculate the similarity of Chinese bidding texts, fully extract semantic information from Chinese texts, and improve the accuracy and adaptability of the model is an urgent problem that researchers in this technical field need to solve. Summary of the invention

[0007] The technical problem to be solved by the present invention is to provide a bidding text similarity detection system and detection method, which can collect different parts of the bidding documents through the detection system, and perform text mining through a deep learning algorithm, record the similarity judgment results between the bidding documents of each supplier, and push the list of suppliers that need to be reviewed and the parts of their bidding documents that are suspected to have too high similarity to the agency or the tendering party.

[0008] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0009] A bidding text similarity detection system includes a bidding document generation client, which is electrically connected to an online detection subsystem; the bidding document generation client includes an information collection module and an encryption upload module; the online detection subsystem includes a data storage module, a decryption module, a text analysis module and an information push module; the encryption upload module is electrically connected to the data storage module;

[0010] The information collection module is used to collect the original text data of the bidding text;

[0011] The encryption upload module is used to encrypt and upload the original text data to the data storage module;

[0012] The data storage module is used to store original text data and number the text before storage;

[0013] The decryption module is used to read the bidding text segment to be analyzed from the original text data in the data storage module and decrypt it, and transmit the decrypted data to the text analysis module;

[0014] The text analysis module is used for data preprocessing and text analysis;

[0015] The information push module is used to read data from the data storage module and push the text part with too high similarity that needs to be reviewed to the reviewer to detect collusion and bid rigging behavior; the too high similarity refers to: exceeding the set similarity threshold.

[0016] A detection method for a bid text similarity detection system, including the following methods:

[0017] S1: Collect the bid texts entered by suppliers and encrypt and upload them;

[0018] S2: Decrypt the bid texts before the bid opening and perform data preprocessing on the bid texts;

[0019] S3: Build a deep learning model and use the training set to train the deep learning model;

[0020] S4: After the deep learning model is trained, combine the preprocessed bid texts of all bid suppliers in two technical solutions or two service solutions, and then input them into the trained deep learning model to obtain the prediction results. The combination of two technical solutions or two service solutions includes pairwise combination of technical solutions and pairwise combination of service solutions, and does not include the combination of technical solutions and service solutions.

[0021] Preferably, the sub-steps of step S2 are as follows:

[0022] s2.1: Select the bid texts to be compared according to the preset scheme of the bidding agency or the tenderer;

[0023] s2.2: Unify the character encoding of the bid texts;

[0024] s2.3: Remove the useless information, and the useless information includes special symbols, spaces, line breaks, uniform resource locators, email addresses, and frequently occurring repeated content; among them, frequently occurring means that the same text appears more than 10 times; special symbols include geometric shapes, arrows, and emojis;

[0025] s2.4: Use the stop word list to remove the stop words related to the bid document text, and the stop words include "de", "he", and "a";

[0026] s2.5: Perform word segmentation on the bid texts to be compared, and input the word segmentation results into the word vector model.

[0027] Preferably, the sub-steps of step S3 are as follows:

[0028] s3.1: In the feature extraction layer of the deep learning model, use the bidirectional encoding representation model and the Chinese word vector model to extract semantic information, and splice the output vectors of the language model and the word vector model;

[0029] s3.2: Use the principal component analysis algorithm to perform dimensionality reduction processing on the vectors after feature extraction;

[0030] s3.3: Input the vector sequence after dimensionality reduction by the principal component analysis algorithm into the bidirectional long short-term memory network;

[0031] s3.4: A random dropout layer is added after the bidirectional LSTM layer;

[0032] S3.5: Perform similarity calculation on the vectors output by the twin network of the deep learning model and output the similarity or not result.

[0033] Preferably, the sub-steps of step s3.1 are as follows:

[0034] 1) The bidirectional encoding representation model uses the encoding module in the converter model. The multi-head self-attention mechanism of the encoding module first calculates the self-attention:

[0035] Given the embedding vector X of the input sequence, we have , , ,in , and are learnable weight matrices, Q represents query, K represents key, V represents value, Q, K and V are all linear transformations of the input sequence, then the self-attention score is calculated as follows:

[0036] ;

[0037] ;

[0038] represents the self-attention score;

[0039] represents the normalized exponential function;

[0040] Represents the original value of the i-th element of the input vector;

[0041] represents the transpose of key K;

[0042] Represents the original value of the i-th element of the input vector; It means taking each element of the input vector as an exponent and then summing it, where e represents a natural constant and C represents the length of the vector; for example, if the input vector is [1,2,3], ;

[0043] The self-attention score indicates the importance of the information of other words in the sequence when processing the i-th word; is the dimension of the key, which is used to scale the dot product result to prevent the value entering the normalized exponential function from being too large; the multi-head self-attention mechanism splits the input sequence into multiple "heads", each of which performs the self-attention operation independently, and then concatenates the results and passes an additional weight matrix Perform a linear transformation that allows the model to simultaneously focus on different representation subspaces in the input sequence:

[0044] ;

[0045] Represents the score matrix of the multi-head self-attention mechanism;

[0046] Concat() represents the concatenation operation. The values ​​of are connected in parallel to form a matrix;

[0047] represents the self-attention score of each "head", ;

[0048] n represents the number of heads, usually 6-16;

[0049] 2) In the Chinese word vector model, the similarity function between words and context is defined as follows:

[0050] ;

[0051] in is the similarity function between word w and context c, Represents an n-ary stroke vector corresponding to the current word, is the word vector of its corresponding context word, is the n-ary stroke set of the current word w, and q is the set n-ary stroke elements; based on the word w, the prediction of the context c is modeled and the normalized exponential function is used for simulation prediction. The objective function is as follows:

[0052] ;

[0053] in is the objective function, which means the probability of context c appearing when word w appears, c′ is a randomly selected word in the vocabulary V, called a negative sample; represents the similarity function between word w and a randomly selected context c′;

[0054] The loss function based on n-ary strokes is as follows:

[0055] ;

[0056] in, is the S-type activation function:

[0057] ;

[0058] is the set of all words in the current word window, D is all the texts in the training corpus, is the number of randomly selected words, It is a negative example Sampling based on word frequency distribution;

[0059] 3) The vectors extracted from the bidirectional encoding representation model and the Chinese word vector model are concatenated as the input of the bidirectional long short-term memory network;

[0060] f(seq)=Concat(bidirectional encoding representation model BERT(seq), Chinese word vector model CW2Vec(seq));

[0061] Among them, seq is the input word sequence, and Concat() concatenates two vectors.

[0062] Preferably, the implementation steps of the principal component analysis algorithm are as follows:

[0063] (1) After normalizing the original data, the data is organized into a matrix X of size N × M by columns;

[0064] (2) Find the covariance matrix C of matrix X;

[0065] (3) Find the eigenvalues ​​and corresponding eigenvectors of matrix C;

[0066] (4) Take the K largest eigenvalues ​​and arrange them from largest to smallest, and arrange their corresponding eigenvectors row by row into a matrix P;

[0067] (5) Y = PX is the data matrix after dimensionality reduction, which is arranged in columns and has a matrix size of K × M.

[0068] Preferably, in step s3.3, the bidirectional long short-term memory network is composed of two independent long short-term memory network layers, each layer extracts information of the input sequence from the forward and reverse pairs respectively, each long short-term memory network layer contains multiple neurons, each neuron receives the input sequence and the hidden state of the previous time step as input, and each neuron includes three control structures: input gate , Forget Gate , output gate , and cell status and hidden state :

[0069] ;

[0070] ;

[0071] ;

[0072] ;

[0073] ;

[0074] in, is the input of the time step, is the hidden state of the previous time step, is the cell state at the previous time step, , , , , They are input gate, forget gate, output gate, cell state and hidden state respectively; is the S-type activation function, and Represent the weight matrix and bias term of the input gate respectively; and Represent the weight matrix and bias term of the forget gate respectively; and Represent the weight matrix and bias term of the output gate respectively; and Respectively represent the weight matrix and bias term of the cell state; tanh is the hyperbolic tangent activation function:

[0075] ;

[0076] The forward and backward transmission process of the bidirectional long short-term memory network is:

[0077] ;

[0078] ;

[0079] in and Respectively represent the semantic information of the time step extracted from the forward and backward directions, is the hidden state at the forward time t-1, It is the hidden state at the reverse time t+1. Finally, the forward and backward long short-term memory networks are concatenated to obtain the output at time t. :

[0080] ;

[0081] Concat() means concatenating two vectors; represents the hidden state at the forward time t, Represents the hidden state at the reverse time t.

[0082] Preferably, in step s3.5, the deep learning model output layer uses cosine similarity to calculate the distance between vector A and vector B. The cosine similarity calculation formula is as follows:

[0083] ;

[0084] Use the binary cross entropy function binary_crossentropy as the loss function:

[0085] ;

[0086] Among them, n is the number of samples, that is, the number of data in the training set. is the label value 0 or 1 for the text similarity or dissimilarity of the i-th group of comparisons. is the probability that the i-th group of contrasting texts are predicted to be similar.

[0087] Preferably, after step S4 is completed, step S5 is performed: based on the model output results and the judgment rules preset by the bidding agency or the tendering party, the list of suppliers that need to be reviewed and the parts of their bid documents that are suspected to be too similar are pushed to the bidding agency or the tendering party for review to detect collusion in bidding.

[0088] A processing module executes a program instruction for a detection method of a bidding text similarity detection system.

[0089] The present invention can achieve the following beneficial effects:

[0090] The present invention can collect different parts of supplier bidding documents and perform text similarity detection based on actual bidding business; the accuracy of text similarity judgment is high, avoiding wasting too much labor costs on reviewing suppliers suspected of bid collusion; the deep learning-based model can be continuously trained during actual use as system data is accumulated to improve the accuracy of model recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0091] The present invention will be further described below in conjunction with the accompanying drawings and embodiments:

[0092] Figure 1 It is a schematic diagram of the composition structure of a bidding text similarity detection system;

[0093] Figure 2 A detection method for a bidding text similarity detection system;

[0094] Figure 3 This is a schematic diagram of the deep learning model structure of the present invention.

[0095] In the figure: bidding document generation client 1, information collection module 101, encryption upload module 102, online detection subsystem 2, decryption module 201, text analysis module 202, data storage module 203, information push module 204. DETAILED DESCRIPTION

[0096] Embodiment 1:

[0097] The preferred solution is Figure 1 As shown, a bidding text similarity detection system includes a bidding document generation client, which is electrically connected to an online detection subsystem; the bidding document generation client includes an information collection module and an encryption upload module; the online detection subsystem includes a data storage module, a decryption module, a text analysis module and an information push module; the encryption upload module is electrically connected to the data storage module;

[0098] The information collection module is used to collect the original text data of the bidding text;

[0099] The encryption upload module is used to encrypt and upload the original text data to the data storage module;

[0100] The data storage module is used to store original text data and number the text before storage;

[0101] The decryption module is used to read the bidding text segment to be analyzed from the original text data in the data storage module and decrypt it, and transmit the decrypted data to the text analysis module;

[0102] The text analysis module is used for data preprocessing and text analysis;

[0103] The information push module is used to read data from the data storage module and push the text part with too high similarity that needs to be reviewed to the reviewer to detect collusion and bid rigging behavior; the too high similarity refers to: exceeding the set similarity threshold.

[0104] Among them, the bidding document generation client collects text data according to different parts of the bidding document. For example, a bidding project requires the bidding document to include a quotation sheet, performance certificate, technical plan, safety plan, after-sales service plan, project team configuration, deviation table, qualification review materials, etc. The supplier needs to enter the corresponding information of the above different parts into the designated location of the client.

[0105] The information collection module is used to collect the original text data entered by the supplier. According to relevant legal requirements, the bid text should be encrypted and saved before the bid opening. After the encryption upload module encrypts and uploads the original text data, the data storage module is used to store the original text data, and before storing, the text of different parts is numbered. Before the bid opening, the decryption module reads the bid text fragments that need to be analyzed from the data storage module and decrypts them, and transmits the decrypted data to the text analysis module. The data storage module will store the judgment results. For example, for the technical service solution text of supplier A, if it is similar to the technical service solution text of supplier B, the text number of supplier B's technical service solution is stored in the field of its similarity judgment. If the technical service solution text of supplier A is similar to the technical service solution texts of multiple suppliers, the numbers of similar texts are stored in sequence in the field of its similarity judgment, and separated by commas. The information push module reads data from the data storage module, and pushes the list of suppliers that need to be reviewed and the parts of their bid documents that are detected to be too similar to each other to the bidding agency or the bidding party for review to detect collusion and bidding behavior.

[0106] The collected text data is encrypted and uploaded to the data storage module of the online detection subsystem. Before storing the original text data, the data storage module numbers the different parts of the text and stores them in the database. Before the bid is opened, the decryption module reads data from the data storage module and sends the decrypted data to the text analysis module. After being processed by the deep learning model in the text analysis module, the result of whether the text is similar is output and the result is stored in the data storage module. After all the bid texts of all bidding suppliers are fully tested, the information push module reads the result data from the data storage module, and pushes the list of suppliers that need to be reviewed and the parts of their bid documents that are detected to be too similar to each other to the bidding agency or the tendering party for review to detect collusion in bidding.

[0107] The information push module pushes information by pushing messages within the site, and the bidding agency or the bidding party can download the result file online.

[0108] Embodiment 2:

[0109] A detection method for a bidding text similarity detection system, such as Figure 2-3 As shown in the figure, the deep learning model is a twin network structure. The two network structures are the same and share parameters. The specific structure is: input layer->feature extraction layer->PCA dimension reduction->BiLSTM layer->Dropout layer->output layer. Figure 3 middle Represents the input word segmentation, Represents the vector after feature extraction and dimensionality reduction, i.e., the input of the LSTM time step. and Represent the neurons in the forward LSTM layer and the backward LSTM layer respectively, represents the output of a time step concatenated from the outputs of the forward and backward LSTMs. Figure 3 The superscripts A and B represent two different sentence sequences. LSTM stands for Long Short-Term Memory Network. BiLSTM stands for Bidirectional Long Short-Term Memory Network. BiLSTM layer stands for Bidirectional Long Short-Term Memory Network layer. Dropout layer stands for Random Dropout layer. CW2Vec stands for Chinese word vector model. PCA stands for Principal Component Analysis algorithm. BERT stands for Bidirectional Encoding Representation Model. The feature extraction layer is the result vector of the concatenated BERT model and CW2Vec model.

[0110] The steps of this method are:

[0111] S1: Collect the original text data of the bidding documents entered by the supplier, i.e. the bidding text, and encrypt and upload it.

[0112] In specific use, the supplier uploads different parts of the bidding document through the bidding document generation client. For example, when uploading the bidding document, Supplier A needs to upload the bidding letter, company qualifications, and performance certificates in the business part, the bidding quotation sheet in the price part, and the technical part. The technical plan, acceptance plan, project team service configuration and other different parts of the text information. After all parts are uploaded, the client automatically generates a completed PDF bidding document, and the encryption module encrypts the original text information and uploads it to the data storage module. Before storing the bidding text data, the data storage module numbers the text of different parts and stores them in the database. In this embodiment, the numbering rule is: four-digit bidding document different part number + four-digit supplier number + three-digit serial number.

[0113] S2: Decrypt the bid text before opening the bid and perform data preprocessing on the bid text.

[0114] When the bid opening time published in the tender notice arrives, the decryption module automatically decrypts the supplier's bidding information and performs data preprocessing. In this embodiment, the steps of data preprocessing are as follows:

[0115] s2.1: Select the bid texts to be compared according to the preset plan of the bidding agency or the bidding party. For example, only select the testing performance part, technical service plan, and after-sales service plan.

[0116] s2.2: Unify character encoding. Unify the upper and lower case of English characters, and unify Chinese characters to simplified Chinese and full-width characters.

[0117] S2.3: Remove useless information such as special symbols other than common punctuation marks, spaces, line breaks, URLs, email addresses, frequently occurring repeated content, etc. URL stands for: Uniform Resource Locator. Among them, frequently occurring means that the same text appears more than 10 times; special symbols include geometric shapes, arrows, and emojis;

[0118] S2.4: Use a stop word list to remove stop words related to the tender document text, such as "de", "he", "a", etc. Removing stop words generally does not affect the understanding of sentences and can reduce the computational load of the model.

[0119] S2.5: In this embodiment, the Chinese word segmentation tool in Pyhanlp is used to segment the tender texts to be compared, and the segmentation results are input into the CW2Vec model. The syntactic analyzer integrated in Pyhanlp has good effects, and the word segmentation tool performs well in natural language processing tasks such as Chinese word segmentation, part-of-speech tagging, and named entity recognition. Before inputting into the BERT model, add the [CLS] tag at the beginning of each sentence and the [SEP] tag at the end of the sentence. Pyhanlp is a natural language processing library in the programming language Python.

[0120] S3: As Figure 3 shown, construct a deep learning model and use the training set to train the deep learning model.

[0121] After the preprocessing step is completed, the deep learning model in the text analysis module starts to analyze the segmentation results. In this embodiment, the steps of model construction and training are as follows:

[0122] S3.1: In the feature extraction layer, this embodiment uses the pre-trained language model BERT and the Chinese word vector model CW2Vec suitable for Chinese to extract semantic information, and splices the output vectors of the two models.

[0123] 1) Bidirectional encoding representation model BERT uses a bidirectional Transformer model. BERT uses large-scale text that is not related to specific tasks for unsupervised training and learns the general connotation of language through two tasks: one is the masked language model, which randomly uses [MASK] to mask some words. [MASK] refers to a label used to mask words, and then tries to predict the masked words based on the context, so as to learn the association and contextual representation between words. In this embodiment, 15% of the characters in the sentence are randomly selected for masking; the other task is the next sentence prediction, which randomly selects two sentences and then determines whether the two sentences are continuous, so as to learn sentence-level representation. Transformer model is: a converter model. The full English name of the masked language model is: Masked Language Model.

[0124] The input of the BERT model is a concatenated vector of a word vector, a text vector, and a position vector. In this embodiment, the word vector is a randomly initialized vector of a single Chinese character, and the values ​​of the text vector and the position vector are automatically learned during the model training process. The final output of the BERT model is a 768-dimensional text vector.

[0125] BERT uses the encoder module in the Transformer model. The encoder's multi-head self-attention mechanism first calculates the self-attention: given the embedding vector X of the input sequence, we have , , ,in , , is a learnable weight matrix. The query, key, and value are all linear transformations of the input sequence. The query is coded as Q, the key is coded as K, and the value is coded as V. The encoder module is an encoding module.

[0126] Then the self-attention score is calculated as follows:

[0127] ;

[0128] ;

[0129] The self-attention score indicates the importance of the information of other words in the sequence when processing the i-th word. is the dimension of the key, which is used to scale the dot product result and prevent the values entering the softmax function from being too large. The multi-head self-attention mechanism splits the input sequence into multiple "heads", i.e., heads, each head independently performs the self-attention operation, then the results are concatenated and linearly transformed through an additional weight matrix to allow the model to simultaneously focus on different representation subspaces in the input sequence.

[0130] ;

[0131] Among them:

[0132] ;

[0133] In this embodiment, a BERT model with 12 layers of Transformer Encoder is adopted, the vocabulary size is 28996, and the number of heads in each Attention layer is 12.

[0134] 2) The stroke structure and order of Chinese characters contain a large amount of semantic information. For example, characters like "wood", "forest", and "jungle" have certain similarities both in meaning and strokes. The CW2Vec model utilizes the stroke structure information of Chinese characters to obtain word vectors, thereby extracting the semantic information of Chinese. In this embodiment, the steps for the CW2Vec model to construct word vectors are as follows:

[0135] Obtaining stroke features: Obtain the stroke features of the words segmented in step s25. For example, the character "big" contains stroke information "one, slash, dot", while the character "person" contains "slash, dot".

[0136] Digitizing stroke features: Represent each stroke information with a number. For example, in the above example, the stroke information of "big" and "person" is digitized as "134" and "34", and the stroke information of the word "adult" is "13434".

[0137] N-gram stroke features: Set a sliding window with a value of n, and sequentially extract the n-grams features of the stroke order of the words. For example, for the 3-gram features of the word "adult", the possible features extracted are "134", "343", and "434", and then the stroke order of the words is converted into a vector according to the One-hot encoding.

[0138] In the CW2Vec model, the similarity function between a word and its context is defined as follows:

[0139] ;

[0140] Among them represents an n-gram stroke vector corresponding to the current word, is the word vector of its corresponding context word, is the n-ary stroke set of the current word w, and q is the set n-ary stroke elements. Based on the word w, the prediction of context c is modeled and the softmax function is used for simulation prediction. The objective function is as follows:

[0141] ;

[0142] Among them, c′ is a randomly selected word, called a “negative sample”. The loss function based on n-ary strokes is as follows:

[0143] ;

[0144] in, is the Sigmoid function:

[0145] ;

[0146] is the set of all words in the current word window, D is all the texts in the training corpus, is the number of randomly selected words, It is a negative example Sampling based on word frequency distribution.

[0147] 3) In this embodiment, the vectors extracted from the BERT model and the CW2Vec model are concatenated as the input of the BiLSTM network.

[0148] ;

[0149] in, is the input word sequence.

[0150] s3.2: Use the PCA algorithm to reduce the dimension of the vector after feature extraction.

[0151] The output dimension of the BERT model is 768, and after splicing the output dimension of the CW2Vec model, it reaches thousands of dimensions. Dimensionality reduction of the model can reduce the complexity of calculation and effectively remove data noise, thereby improving the accuracy of the model. The implementation steps of the PCA algorithm are as follows:

[0152] (1) After normalizing the original data, form an N×M matrix X by column;

[0153] (2) Find the covariance matrix C of matrix X;

[0154] (3) Find the eigenvalues ​​and corresponding eigenvectors of matrix C;

[0155] (4) Take the K largest eigenvalues ​​and arrange them from largest to smallest, and arrange their corresponding eigenvectors row by row into a matrix P;

[0156] (5) Y = PX is the data matrix after dimensionality reduction, which is arranged in columns and has a matrix size of K × M.

[0157] s3.3: Input the vector sequence after PCA dimension reduction into the bidirectional long short-term memory network BiLSTM.

[0158] BiLSTM consists of two independent LSTM layers, each of which extracts information from the input sequence from the forward and reverse pairs. Each LSTM layer contains multiple neurons, each of which receives the input sequence and the hidden state of the previous time step as input. Each neuron includes three control structures: input gate , Forget Gate , output gate , and cell status and hidden state .

[0159] ;

[0160] ;

[0161] ;

[0162] ;

[0163] ;

[0164] in, is the input of the time step, is the hidden state of the previous time step, is the cell state at the previous time step, , , , , They are input gate, forget gate, output gate, cell state and hidden state respectively; is the S-type activation function, and Represent the weight matrix and bias term of the input gate respectively; and Represent the weight matrix and bias term of the forget gate respectively; and Represent the weight matrix and bias term of the output gate respectively; and Respectively represent the weight matrix and bias term of the cell state; tanh is the hyperbolic tangent activation function:

[0165] ;

[0166] The process of LSTM forward and backward transmission is:

[0167] ;

[0168] ;

[0169] in is the hidden state at the forward time t-1, It is the hidden state at the reverse time t+1. Finally, the forward and backward LSTMs are concatenated to obtain the output at time t.

[0170] ;

[0171] s3.4: This embodiment also adds a Dropout layer after the bidirectional LSTM layer.

[0172] The Dropout layer randomly discards some neurons so that the model can continue to learn from other information after losing some information, thereby enhancing the robustness of the model and preventing overfitting. In this embodiment, the Dropout ratio is set to 0.3.

[0173] S3.5: Perform similarity calculation on the vector output by the twin network and output the similarity result.

[0174] The model output layer described in this embodiment uses cosine similarity to calculate the vector distance, and the cosine similarity calculation formula is as follows:

[0175] ;

[0176] Use the binary cross entropy function binary_crossentropy as the loss function:

[0177] ;

[0178] Among them, n is the number of samples, that is, the number of data in the training set. is the label value 0 or 1 for the text similarity or dissimilarity of the i-th group of comparisons. is the probability that the i-th group of contrasting texts are predicted to be similar.

[0179] The model combines the Adam optimization algorithm with momentum and adaptive learning rate. The learning rate is set to 0.0001. In order to avoid gradient explosion, the gradient clipping threshold is set to -5 to 5.

[0180] In this embodiment, the model is trained using the Chinese text similarity dataset lcqmc open sourced by Harbin Institute of Technology. Preferably, the data storage module can store text data that has been manually reviewed and dynamically expand the size of the training set.

[0181] Some data samples of the lcqmc dataset are shown in Table 1:

[0182] Table 1 Training set examples:

[0183]

[0184] The following are two examples of bidding texts to be tested for similarity:

[0185] "When receiving a customer service call, we will immediately provide feedback to the person in charge of the after-sales service department."

[0186] "Our company will feedback the user's maintenance information to the after-sales person in charge as soon as possible."

[0187] S4: After the deep learning model training is completed, the pre-processed bidding texts of all bidding suppliers are combined into two technical solutions or two service solutions, and then input into the trained deep learning model to obtain the prediction results.

[0188] For example, if you need to detect the technical service solution part in the bidding document, then combine the parts of all suppliers in pairs and input them into the model to obtain the prediction results of 1 for similarity and 0 for dissimilarity.

[0189] Finally, a confusion matrix of all text similarity judgment results is obtained. The data storage module will store the judgment results. For example, for the technical service solution text of supplier A, if it is similar to the technical service solution text of supplier B, the text number of supplier B's technical service solution is stored in its similarity judgment field; if the technical service solution text of supplier A is similar to the technical service solution texts of multiple suppliers, the numbers of similar texts are stored in sequence in its similarity judgment field and separated by commas.

[0190] After step S4 is completed, proceed to step S5: based on the model output results and the judgment rules preset by the bidding agency or the tendering party, the list of suppliers that need to be reviewed and the parts of their bid documents that are suspected to be too similar will be pushed to the bidding agency or the tendering party for review to detect collusion in bidding.

[0191] In this embodiment, similarity determination rules are pre-set by the bidding agency or the bidding party before collecting bid texts. For example, when the technical service plan, after-sales service plan, and performance certificates are similar, the bid documents are determined to be similar and there is suspected collusion in bidding, which requires a review.

[0192] The above embodiments are only preferred technical solutions of the present invention and should not be regarded as limiting the present invention. The protection scope of the present invention shall be the technical solutions recorded in the claims, including equivalent replacement solutions of the technical features in the technical solutions recorded in the claims. That is, equivalent replacement improvements within this scope are also within the protection scope of the present invention.

Claims

1. A bidding text similarity detection system, characterized by: It includes a tender document generation client, which is electrically connected to an online detection subsystem; the tender document generation client includes an information collection module and an encrypted upload module; The online detection subsystem includes a data storage module, a decryption module, a text analysis module, and an information push module; The encrypted upload module is electrically connected to the data storage module; The information collection module is used to collect the original text data of the tender text; The encrypted upload module is used to encrypt and upload the original text data to the data storage module; The data storage module is used to store the original text data and number the original text data before storage; The decryption module is used to read and decrypt the tender text fragments that need to be analyzed from the original text data in the data storage module, and transmit the decrypted data to the text analysis module; The text analysis module is used for data preprocessing and text analysis; The information push module is used to read data from the data storage module and push the text parts with too high detection similarity that need to be reviewed to the reviewer to detect the behavior of collusive bidding; The so-called "too high similarity" means: exceeding the set similarity threshold; The detection method of the tender text similarity detection system includes the following steps: S1: Collect the tender texts entered by suppliers and encrypt and upload them; S2: Decrypt the tender texts before the bid opening and perform data preprocessing on the tender texts; S3: Build a deep learning model and use the training set to train the deep learning model; After the deep learning model is trained, combine the preprocessed tender texts of all tender suppliers in two technical solutions or two service solutions, and then input them into the trained deep learning model to obtain the prediction results; The sub-steps of step S3 are as follows: s3.1: In the feature extraction layer of the deep learning model, use a bidirectional encoding representation model and a Chinese word vector model to extract semantic information, and splice the output vectors of the language model and the word vector model; s3.2: Use the principal component analysis algorithm to perform dimensionality reduction processing on the vectors after feature extraction; s3.3: Input the vector sequence after dimensionality reduction by the principal component analysis algorithm into a bidirectional long short-term memory network; s3.4: A random dropout layer is also added after the bidirectional long short-term memory network layer; S3.5: Perform similarity calculation on the vectors output by the twin network of the deep learning model and output the result of similarity or not.

2. A bidding text similarity detection system according to claim 1, characterized in that: The system executes the following method steps: The sub-steps of step S2 are as follows: s2.1: Select the tender texts to be compared according to the preset scheme of the bidding agency or the tenderer; s2.2: Unify the character encoding of the tender texts; s2.3: Remove the useless information, and the useless information includes special symbols, spaces, line breaks, uniform resource locators, email addresses, and frequently occurring repeated content; among them, "frequently occurring" means: the same text appears more than 10 times; special symbols include geometric shapes, arrows, and emoticons; s2.4: Use the stop word list to remove the stop words related to the tender document text respectively, and the stop words include "de", "he", and "a". s2.5: Perform word segmentation on the bidding texts that need to be compared, and input the word segmentation results into the word vector model.

3. A bidding text similarity detection system according to claim 1, characterized in that: The system performs the following method steps: The sub-steps of step s3.1 are as follows: 1) The bidirectional encoding representation model uses the encoding module in the converter model. The multi-head self-attention mechanism of the encoding module first calculates the self-attention: Given the embedding vector X of the input sequence, we have , , ,in , and are learnable weight matrices, Q represents query, K represents key, V represents value, Q, K and V are all linear transformations of the input sequence, then the self-attention score is calculated as follows: ; ; in, represents the self-attention score; represents the transpose of key K; represents the normalized exponential function; Represents the original value of the i-th element of the input vector; It means taking each element of the input vector as an exponent and then summing them, where e represents a natural constant and C represents the length of the vector; The self-attention score indicates the importance of the information of other words in the sequence when processing the i-th word; is the dimension of the key; the multi-head self-attention mechanism splits the input sequence into multiple heads, each of which performs self-attention operations independently, and then concatenates the results and passes an additional weight matrix Perform a linear transformation that allows the model to simultaneously focus on different representation subspaces in the input sequence: ; in, Represents the score matrix of the multi-head self-attention mechanism; Concat() represents the concatenation operation. The values ​​of are connected in parallel to form a matrix; represents the self-attention score of each "head", ; n represents the number of heads; 2) In the Chinese word vector model, the similarity function between words and context is defined as follows: ; in is the similarity function between word w and context c, Represents an n-ary stroke vector corresponding to the current word, is the word vector of its corresponding context word, is the n-ary stroke set of the current word w, and q is the set n-ary stroke elements; based on the word w, the prediction of the context c is modeled and the normalized exponential function is used for simulation prediction. The objective function is as follows: ; in is the objective function, which means the probability of context c appearing when word w appears, c′ is a randomly selected word in the vocabulary V, called a negative sample; represents the similarity function between word w and a randomly selected context c′; The loss function based on n-ary strokes is as follows: ; in, is the S-type activation function: ; is the set of all words in the current word window, D is all the texts in the training corpus, is the number of randomly selected words, It is a negative example Sampling based on word frequency distribution; 3) The vectors extracted from the bidirectional encoding representation model and the Chinese word vector model are concatenated as the input of the bidirectional long short-term memory network; f(seq)=Concat(bidirectional encoding representation model BERT(seq), Chinese word vector model CW2Vec(seq)); Among them, seq is the input word sequence, Concat() concatenates two vectors, BERT represents the bidirectional encoding representation model; CW2Vec represents the Chinese word vector model.

4. A bidding text similarity detection system according to claim 2, characterized in that: The system performs the following method steps: The implementation steps of the principal component analysis algorithm are as follows: (1) After normalizing the original data, the data is organized into a matrix X of size N × M by columns; (2) Find the covariance matrix C of matrix X; (3) Find the eigenvalues ​​and corresponding eigenvectors of matrix C; (4) Take the K largest eigenvalues ​​and arrange them from largest to smallest, and arrange their corresponding eigenvectors row by row into a matrix P; (5) Y = PX is the data matrix after dimensionality reduction, which is arranged in columns and has a matrix size of K × M.

5. A bidding text similarity detection system according to claim 1, characterized in that: The system performs the following method steps: In step s3.3, the bidirectional long short-term memory network is composed of two independent long short-term memory network layers, each layer extracts information of the input sequence from the forward and reverse pairs respectively, each long short-term memory network layer contains multiple neurons, each neuron receives the input sequence and the hidden state of the previous time step as input, and each neuron includes three control structures: input gate , Forget Gate , output gate , and cell status and hidden state : ; ; ; ; ; in, is the input of the time step, is the hidden state of the previous time step, is the cell state at the previous time step, , , , , They are input gate, forget gate, output gate, cell state and hidden state respectively; is the S-type activation function, and Represent the weight matrix and bias term of the input gate respectively; and Represent the weight matrix and bias term of the forget gate respectively; and Represent the weight matrix and bias term of the output gate respectively; and Respectively represent the weight matrix and bias term of the cell state; tanh is the hyperbolic tangent activation function: ; The forward and backward transmission process of the bidirectional long short-term memory network is: ; ; in and Respectively represent the semantic information of the time step extracted from the forward and backward directions, is the hidden state at the forward time t-1, is the hidden state at the reverse time t+1, and They represent the xth and -xth powers of the natural constant e respectively; finally, the forward and backward long short-term memory networks are concatenated to obtain the output at time t : ; It represents the concatenation of two vectors; represents the hidden state at the forward time t, Represents the hidden state at the reverse time t.

6. A bidding text similarity detection system according to claim 1, characterized in that: The system performs the following method steps: In step s3.5, the output layer of the deep learning model uses cosine similarity to calculate the distance between vector A and vector B. The cosine similarity calculation formula is as follows: ; Use the binary cross entropy function as the loss function: ; Among them, n is the number of samples, that is, the number of data in the training set. is the label value 0 or 1 for the text similarity or dissimilarity of the i-th group of comparisons. is the probability that the i-th group of contrasting texts are predicted to be similar.

7. A bidding text similarity detection system according to claim 1, characterized in that: The system executes the following method steps: After step S4 is completed, step S5 is performed: based on the model output results and the judgment rules preset by the bidding agency or the tendering party, the list of suppliers that need to be reviewed and the parts of their bid documents that are suspected to be too similar are pushed to the bidding agency or the tendering party for review to detect collusion in bidding.