Tendering string risk intelligent detection method based on heterogeneous graph reasoning

By constructing a heterogeneous graph reasoning method, the problem of identifying abnormal consistency among bid documents in bidding documents is solved. It realizes the automatic identification of rare consistency errors and seal features in bid documents, helps to identify bid rigging risks, and reduces the workload of manual labor.

CN123180710APending Publication Date: 2026-11-27SHAANXI INVESTMENT GRP HUASHAN TENDERING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611036853.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-13
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing tender document review methods struggle to identify unusual consistency among multiple tender documents for the same project, especially rare typos and similar seal features in non-critical fields, making it difficult to automatically identify bid rigging.

Method used

A method for intelligent detection of bid-rigging risk in bidding is constructed based on heterogeneous graph reasoning. By acquiring the text of the terms, address entities and legal entity seals of the bidding documents and tender documents, the method calculates the abnormal consistency score using rareness-weighted edit distance, constructs a heterogeneous graph and performs multi-layer message passing, and outputs the potential violation probability and the label of suspected bid-rigging groups.

Benefits of technology

It enables automatic identification of rare consistent typos between different bid documents and their association with the bidding documents, reducing manual comparison work, outputting groups of bidders suspected of bid rigging and their violation evidence, and assisting in identifying the risk of bid rigging.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180710A_ABST
    Figure CN123180710A_ABST
Patent Text Reader

Abstract

The application relates to the technical fields of natural language processing and bidding and tendering, and specifically discloses a bidding and tendering string bid risk intelligent detection method based on heterogeneous graph reasoning, which obtains a bidding document and at least two tender documents, extracts clause texts, address entities, error positions and legal person chapter image features; converts string bid identification clauses into rule embedding, calculates abnormal consistency scores through rareness weighted edit distance, constructs similar edges and format edges, forms a heterogeneous graph; performs multi-layer message passing based on an attention mechanism on the heterogeneous graph, and outputs the potential violation probability of each document node; performs fuzzy logic conjunction operation on the probability and the abnormal consistency score, and performs spectral clustering on the abnormal consistency score matrix, and outputs a tenderer group label with string bid suspicion; associates the group label with the original text of the string bid identification clause, and generates a risk labeling result; the application can automatically associate non-key field rare errors with string bid clauses, and assist in identifying surrounding string bid behaviors.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of natural language processing and bidding technology, specifically to an intelligent detection method for bid rigging risk based on heterogeneous graph reasoning. Background Technology

[0002] In actual bidding and procurement processes, bidding documents typically undergo multi-dimensional review before publication, focusing on compliance with laws and regulations, fair competition, keyword standardization, and the reasonableness of clauses. For example, bidding documents may contain statements that restrict or exclude potential bidders, clauses inconsistent with legal requirements, ambiguous wording, unreasonable key qualification conditions, or format and terminology incompatible with bidding and procurement rules. Failure to identify and correct these issues before publication can negatively impact the quality of the bidding documents and potentially lead to questions, complaints, and compliance risks.

[0003] Existing tender document review methods are gradually incorporating technical means such as rule bases, keyword detection, and natural language processing. By pre-configuring detection rules, the legality and compliance, fair competition, keyword standardization, and potential risk clauses in tender documents are automatically identified, and the detection results are displayed to the tendering agency or procuring entity to assist them in revising the content before the document is released. This reduces legal and compliance risks from the source and maintains a fair and competitive bidding environment.

[0004] However, the aforementioned intelligent reviews typically still primarily focus on rule matching, keyword identification, or format checks within a single tender document, aiming to identify unreasonable, controversial, or non-compliant clauses. Existing review methods struggle to automatically correlate and logically deduce cross-document anomalies with collusion clauses in tender documents when examining subtle connections such as identical rare typos, address discrepancies, or similar seal characteristics across multiple tender documents for the same project. This is particularly true when different tender documents exhibit similar or rare typos in non-critical fields. Therefore, a more comprehensive intelligent detection method is needed that integrates tender document clauses, tender document entity information, and multi-document anomaly consistency characteristics to assist in identifying hidden risks such as bid rigging and collusion. Summary of the Invention

[0005] The purpose of this invention is to provide an intelligent detection method for bid-rigging risk based on heterogeneous graph reasoning, so as to solve the problems mentioned above.

[0006] The objective of this invention can be achieved through the following technical solutions: The intelligent detection method for bid rigging risk based on heterogeneous graph reasoning includes the following steps: S1: Obtain the tender documents and at least two bid documents under the same tender project, extract the text of the terms from the tender documents, and extract the address entity, the location of the typo, and the image features of the legal person's seal from each bid document; S2: Transform the bid-rigging identification clauses in the bidding documents into differentiable first-order logic rules and embed them. Calculate the abnormal consistency score of the same fields between bid documents by using the rareness-weighted edit distance and construct similarity edges. Construct format edges based on the format requirements of a single bid document. Use clause nodes, entity nodes, and document nodes to form a heterogeneous graph. S3: Perform multi-layer message passing based on attention mechanism on heterogeneous graphs, so that document nodes receive rule embedding through constraint edges, aggregate abnormal consistency scores through similar edges, aggregate format satisfaction information through format edges, and output the potential violation probability of each document node. S4: Perform fuzzy logic conjunction operation on the potential violation probability and the abnormal consistency score to obtain the degree of satisfaction of the bid-rigging triggering condition. Then perform spectral clustering on the abnormal consistency score matrix of all bid documents to output the group label of bidders suspected of bid-rigging. S5: Associate the group tags of bidders with the original text of the bid-rigging identification clauses in the bidding documents to generate risk labeling results including abnormally similar locations and triggering clauses.

[0007] As a further aspect of the present invention: the process of constructing the heterogeneous graph is as follows: Extract the text of the bid-rigging identification clause in the bidding documents, decompose it into conditional predicates and conclusion predicates, and map it into first-order logic rule embeddings in a continuous vector space; For every two tender documents, text pairs with the same fields are extracted, and an initial similarity is calculated using an edit distance algorithm based on character replacement cost weighting. Then, the initial similarity is penalized and weighted using the pre-statistical frequency of field values ​​to obtain an abnormal consistency score. The abnormal consistency score is used as a weight to establish identical edges between the corresponding entity nodes. The binary judgment result of whether a single tender document meets the format requirements is used as a format edge to connect the document node and the clause node.

[0008] As a further aspect of the present invention: the calculation of the initial similarity using an edit distance algorithm weighted by character replacement cost specifically includes: Obtain the first address text string corresponding to the first entity node to be compared and the second address text string corresponding to the second entity node; The preset character replacement cost matrix is ​​invoked. The replacement cost between each pair of characters in the character replacement cost matrix is ​​preset based on the reciprocal of the probability that the character pair co-occurs in the normal corpus. Among them, the replacement cost of rare typo character pairs is greater than that of common misspelled character pairs. The minimum weighted edit distance between two text strings is used as the initial similarity, where the minimum weighted edit distance is the minimum of the sum of insertion, deletion and replacement costs.

[0009] As a further aspect of the present invention: the output of the potential violation probability of each document node specifically includes: For each document node, rule embeddings, abnormal consistency scores, and format satisfaction information are collected from adjacent clause nodes or entity nodes along constraint edges, similarity edges, and format edges. A normalized attention weight is calculated for each edge, and the attention weight is determined by the similarity between the current features of the document node and the features of adjacent nodes. The information passed between adjacent nodes is weighted and summed according to attention weights to obtain the aggregate vector of document nodes; The aggregated vector is added to the features of the previous layer of the document node and then subjected to non-linear mapping to obtain the updated node features. This process is repeated until the number of layers reaches a preset value, and the document node features of the final layer are mapped to potential violation probabilities.

[0010] As a further aspect of the present invention: the step of weighting and summing the information transmitted between adjacent nodes according to attention weights to obtain the aggregate vector of document nodes specifically includes: Obtain the information vector passed from each adjacent node and the attention weight value calculated for the adjacent edges; Multiply each element in each information vector by its corresponding attention weight value to obtain a weighted information vector. All weighted information vectors are summed element-wise in the vector space to form a temporary aggregated vector; The temporary aggregate vector is added element-wise to the original feature vector of the current document node to output the aggregate vector of the document node.

[0011] As a further aspect of the present invention: the output of bidder group tags suspected of bid rigging specifically includes: The potential violation probability of each bid document and the corresponding abnormal consistency score are used as two fuzzy truth values. The product operation is used to obtain the degree of satisfaction of the bid-trading triggering condition of the bid document. Construct a square matrix based on the abnormal consistency scores between every two tender documents, and set the diagonal elements of the square matrix to zero to obtain the abnormal consistency score matrix. After normalizing each row of the abnormal consistency score matrix, the row mean is subtracted to obtain a Laplace matrix. The eigenvector corresponding to the second smallest eigenvalue of the Laplace matrix is ​​then used as the clustering indicator vector. Perform sign determination on the elements in the clustering indicator vector and output the group labels of bidders with the same sign.

[0012] As a further aspect of the present invention: the construction of a matrix based on the abnormal consistency scores between every two tender documents specifically includes: Obtain the unique identifiers for all tender documents and arrange them in order of document number to form an identifier sequence; Create an empty square matrix according to the row and column order of the identifier sequence, traverse each pair of tender documents, and fill the calculated abnormal consistency score into the positions corresponding to the row index and column index in the square matrix. Iterate through the diagonal positions of the matrix, set the value of each diagonal element to zero, and output the abnormal consistency score matrix.

[0013] As a further aspect of the present invention: the process for generating the risk labeling results is as follows: Based on the group labels of bidders suspected of bid rigging, extract the address text locations and typo locations that produce identical edges in the entity nodes corresponding to each bid document within the bidder group, and use them as a set of abnormal identical locations. Read the original text of the bid-rigging identification clause from the clause nodes of the tender document, and locate the start character offset and end character offset of the original text of the bid-rigging identification clause in the tender document; Each location in the set of abnormally similar locations is associated with and stored with the start offset and the end offset, forming a risk association pair; All risk associations are grouped and output according to the tender documents, resulting in risk labeling results including abnormally similar locations and original fragments of triggering clauses.

[0014] As a further aspect of the present invention: the step of associating and storing each location in the abnormally similar location set with a start offset and an end offset respectively to form a risk association pair specifically includes: Obtain the coordinates of a location from the set of abnormally similar locations, as well as the start and end offsets of the original text of the clause for identifying tampering; Create a risk record using location coordinates, start offset, and end offset as three fields; Extract the original text segment between the start and end offsets from the tender document and append it to the risk record; Until all location coordinates in the set of abnormally similar locations have been processed, the output is a set of risk association pairs consisting of multiple risk records.

[0015] The beneficial effects of this invention are: (1) It can automatically identify rare consistency errors in non-critical information fields (such as addresses) between different tender documents and associate the abnormal similarity with the clauses on bid rigging in the tender documents, thereby providing clear risk clues for the auxiliary judgment of bid rigging behavior and reducing the workload of manually comparing multiple documents page by page.

[0016] (2) By constructing a heterogeneous graph composed of multiple types of nodes and edges that integrate text similarity, format compliance and logical rules, and using the attention mechanism to transmit information, a comprehensive reasoning of the implicit relationship between multiple bid documents is realized. Without relying on the preset bid-rigging behavior pattern, the label of the bidder group suspected of bid-rigging and its corresponding specific violation basis can be output. Attached Figure Description

[0017] The invention will now be further described with reference to the accompanying drawings.

[0018] Figure 1 This is a flowchart of the method of the present invention; Figure 2 This is a flowchart illustrating the process of constructing the heterogeneous graph in this invention. Figure 3 This is a flowchart illustrating the process of outputting the potential violation probability of each document node in this invention. Detailed Implementation

[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0020] Please see Figure 1 As shown, this invention is an intelligent detection method for bid-rigging risk based on heterogeneous graph reasoning, comprising the following steps: S1: Obtain the tender documents and at least two bid documents under the same tender project, extract the text of the terms from the tender documents, and extract the address entity, the location of the typo, and the image features of the legal person's seal from each bid document; S2: Transform the bid-rigging identification clauses in the bidding documents into differentiable first-order logic rules and embed them. Calculate the abnormal consistency score of the same fields between bid documents by using the rareness-weighted edit distance and construct similarity edges. Construct format edges based on the format requirements of a single bid document. Use clause nodes, entity nodes, and document nodes to form a heterogeneous graph. S3: Perform multi-layer message passing based on attention mechanism on heterogeneous graphs, so that document nodes receive rule embedding through constraint edges, aggregate abnormal consistency scores through similar edges, aggregate format satisfaction information through format edges, and output the potential violation probability of each document node. S4: Perform fuzzy logic conjunction operation on the potential violation probability and the abnormal consistency score to obtain the degree of satisfaction of the bid-rigging triggering condition. Then perform spectral clustering on the abnormal consistency score matrix of all bid documents to output the group label of bidders suspected of bid-rigging. S5: Associate the group tags of bidders with the original text of the bid-rigging identification clauses in the bidding documents to generate risk labeling results including abnormally similar locations and triggering clauses.

[0021] In S1, the tender documents and at least two bid documents for the same tender project are obtained. The text of the terms and conditions is extracted from the tender documents, and the address entity, the location of any typos, and the image features of the legal representative's seal are extracted from each bid document. Specifically, this includes: Obtain the tender documents and at least two bid documents for the same bidding project. The specific data acquisition process is as follows: The tender documents and bid documents uploaded by the user through the client are received via the data input interface of the computing device. The tender documents and bid documents are in PDF or OFD format. If the documents are scanned, an optical character recognition engine is used to perform text recognition on the image areas to obtain an editable text stream. Simultaneously, the original image data from each document is extracted using a file parser for subsequent seal feature extraction.

[0022] Extract clause text from the tender documents. Specifically, use preset chapter heading regular expressions to locate the starting position of the clauses, and combine paragraph indentation and numbering hierarchy to divide the continuous text into independent clause units. Each clause unit is identified by its number and title, and its body text is stored as the clause text.

[0023] Address entities are extracted from each tender document. Specifically, the text stream of the tender document is segmented and tagged with parts of speech. Then, a sequence labeling model based on a bidirectional long short-term memory network is used to identify fields where address indicators such as "province", "city", "district", "road", and "number" appear consecutively. The identified consecutive character sequences are used as address entities, and the start and end character positions of the entity in the original file are recorded.

[0024] Extract typographical errors from each tender document. Specifically: a commonly used address dictionary is pre-built, which contains standard address names and their corresponding common correct spellings; the extracted address entities are compared character-level with the standard addresses in the dictionary. If there are differences in characters but similar shapes or pronunciations, the difference is determined to be a typographical error, and the paragraph number and character offset relative to the beginning of the paragraph are recorded.

[0025] Extract the image features of the legal representative seal from each bid document. Specifically: from the original image data of the bid document, use a color space threshold segmentation method to locate red circular or elliptical regions, then screen out candidate seal regions through Hough circle transformation; calculate the histogram of oriented gradients for the pixels in each candidate region to obtain a fixed-dimensional numerical vector as the image feature of the legal representative seal, and store it in association with the identifier of the bid document.

[0026] Please refer to Figure 2 , in S2, the bid-rigging determination clauses in the tender document are converted into differentiable first-order logic rule embeddings, the same fields between bid documents are calculated for abnormal consistency scores through rarity-weighted edit distance and similarity edges are constructed, the compliance of a single bid document with format requirements is used to construct format edges, and clause nodes, entity nodes and document nodes form a heterogeneous graph, specifically including: Obtain the first address text string corresponding to the first entity node and the second address text string corresponding to the second entity node that need to be compared.

[0027] Invoke a preset character substitution cost matrix. The construction method of the matrix is as follows: pre-collect 1 million correct Chinese address texts as a normal corpus, and count the occurrence times of each character among all commonly used Chinese characters (a total of 6763 characters). For any two different characters, the initial value of their substitution cost is set to 1. Then, according to the manually annotated common typo comparison table, the substitution cost of each pair of characters (such as "的" and "地", "在" and "再") is set to 0.5. At the same time, rare erroneous character pairs with occurrence times less than 5 are collected from historical bid document review records, such as "区" and "去", and the substitution cost of this pair of characters is set to 2.0. For all other character pairs, the substitution cost is kept at 1.

[0028] A dynamic programming algorithm is used to calculate the minimum weighted edit distance between the first address text string and the second address text string. The dynamic programming process is as follows: create a two-dimensional table with the number of rows equal to the length of the first text string plus 1 and the number of columns equal to the length of the second text string plus 1, initialize the element at the upper left corner of the table to 0, sequentially initialize the elements in the first row to the cumulative sum of insertion costs from 0 to the length of the first text string (each insertion cost is set to 1), and sequentially initialize the elements in the first column to the cumulative sum of deletion costs from 0 to the length of the second text string (each deletion cost is set to 1). Then calculate the value of each position in the table row by row and column by column, and the value of each position is the minimum of the following three values: the value of the upper position plus the deletion cost 1, the value of the left position plus the insertion cost 1, and the value of the upper left position plus the substitution cost (the substitution cost is obtained from the character substitution cost matrix according to the two characters at the corresponding position). Finally, the value at the lower right corner of the table is the minimum weighted edit distance. The minimum weighted edit distance is recorded as the initial similarity, which is equal to the minimum weighted edit distance.

[0029] An abnormal consistency score is obtained by penalizing and weighting the initial similarity score using pre-statistically counted field values. Specifically, the frequency of occurrence of each unique address string in the normal address corpus is pre-counted.

[0030] For the first and second address text strings, their occurrence counts are obtained and denoted as the first and second frequency, respectively. A penalty factor is calculated: the natural logarithm of the first and second frequency strings is taken to obtain the first and second logarithms; the smaller of the first and second logarithms is divided by the larger value to obtain the ratio; this ratio is used as the penalty factor. The anomaly consistency score is equal to the initial similarity multiplied by this penalty factor. For example, if the initial similarity is 2, the first frequency string is 12500, its natural logarithm is approximately 9.43, and the second frequency string is 0. Since the natural logarithm is undefined, it is set to 0 when the frequency is 0, resulting in a ratio of 0 and an anomaly consistency score of 0. If both frequencies are greater than 0, the anomaly consistency score is less than or equal to the initial similarity. Finally, using the calculated anomaly consistency score as the weight, a similar edge is established between the first and second entity nodes.

[0031] The binary determination result of whether a single tender document meets the format requirements is used as a format edge to connect document nodes and clause nodes. The process of determining the format requirements is as follows: extract the image features of the legal representative's seal from the tender document to obtain a fixed-dimensional numerical vector; perform cosine similarity calculation on this vector and the pre-stored standard legal representative's seal template vector (obtained by collecting images of legal legal representative's seals and calculating their directional gradient histograms). The cosine similarity is equal to the dot product of the two vectors divided by the product of their respective magnitudes. If the cosine similarity is greater than 0.8, it is determined to meet the format requirements, and the binary result is recorded as 1; otherwise, it is determined to not meet the requirements, and the binary result is recorded as 0. This binary result is used as the weight of the format edge to connect the document node corresponding to the tender document with the clause node in the tender document regarding the format requirements of the legal representative's seal.

[0032] The clause nodes, entity nodes, document nodes, as well as identical edges, constraint edges (constraint edges are implicitly established by rule embedding, that is, each clause node and document node are connected through rule embedding vectors), and format edges obtained above together constitute a heterogeneous graph.

[0033] Please see Figure 3 As shown, in S3, multi-layer message passing based on an attention mechanism is performed on the heterogeneous graph. Document nodes receive rule embeddings through constraint edges, aggregate abnormal consistency scores through similar edges, aggregate format satisfaction information through format edges, and output the potential violation probability of each document node. Specifically, this includes: For each document node, information transmitted from adjacent nodes is collected along three types of edges. Specifically: along constraint edges, the rule embedding vector carried by adjacent clause nodes is collected, and this vector has a dimension of 128; along similarity edges, the abnormal consistency score carried by adjacent entity nodes is collected, and this score is a real number; along format edges, the format satisfaction information carried by adjacent clause nodes is collected, and this information is a real number with a value of 0 or 1. The above three types of information are uniformly converted into a 128-dimensional vector representation: the rule embedding vector does not need to be converted, the abnormal consistency score is formed into a 128-dimensional vector by copying it 128 times, and the format satisfaction information is also copied 128 times to form a 128-dimensional vector. For each document node, let its current layer (the...) be... The feature vector of the layer is ; The feature vector representing a node. Represents a 128-dimensional real vector space; For each linked document node With neighboring nodes Edges (edge ​​type is) ), calculate a raw attention score: ; in, This represents the attention score. It is a trainable 128×128 dimensional weight matrix used to map node features to edge types. Related feature space; This represents a vector concatenation operation, which concatenates two 128-dimensional vectors into a 256-dimensional vector. It is a trainable 256-dimensional vector used as attention parameters. Indicates the transpose operation; The activation function has a negative slope of 0.2. This formula gives the document node... For adjacent nodes The unnormalized attention score.

[0034] For document nodes Calculate the normalized attention weights for all neighboring nodes (denoted as N): ;in, Based on the natural constant An exponential function with base 1. This normalization ensures that the sum of the attention weights of all neighboring nodes is 1.

[0035] The information passed from neighboring nodes is weighted and summed according to the attention weights mentioned above to obtain the aggregate vector of the document nodes. Specifically: for each neighboring node... The information vector it transmits (i.e., from) Nodes by edge type The 128-dimensional vector passed in is multiplied by the corresponding attention weights. This yields a weighted information vector; all weighted information vectors are summed element-wise to obtain a 128-dimensional temporary aggregated vector; then the temporary aggregated vector is combined with the original feature vector of the current document node. Perform element-wise addition and output the aggregate vector of document nodes: ;in, Represents a document node The set of all adjacent nodes. The formula explicitly provides the method for calculating the aggregate vector.

[0036] The aggregated vector is added to the features of the previous layer of the document node, and then subjected to a non-linear mapping to obtain the updated node features. Specifically: the aggregated vector... The input is fed into a two-layer feedforward neural network. The first layer maps 128 dimensions to 256 dimensions using the ReLU activation function; the second layer maps 256 dimensions back to 128 dimensions without using an activation function. The output of the feedforward neural network is then compared with the document node's... eigenvectors of the layer By adding element by element, we get the first... Feature vectors of the layer: ; Where FFN represents the transformation of the two feedforward neural network layers mentioned above. The above process is repeated until the preset number of layers L is reached, where L is set to 3 layers.

[0037] The document node feature vectors of the final layer (layer L) are mapped to potential violation probabilities. Specifically, the feature vectors of layer L are taken... The input is passed to a fully connected layer with an input dimension of 128 and an output dimension of 1. The output value is then compressed to the range of 0 to 1 using a sigmoid function. This value represents the potential violation probability of the document node (i.e., the tender document). The potential violation probability is calculated for each tender document under the same bidding project.

[0038] In S4, the potential violation probability and the abnormal consistency score are combined using fuzzy logic to obtain the degree of fulfillment of the bid-rigging triggering condition. Then, spectral clustering is performed on the abnormal consistency score matrix of all bid documents to output the group labels of bidders suspected of bid-rigging, specifically including: Calculate the collusion trigger condition satisfaction level for each bid document. Specifically, for each bid document under the same bidding project, obtain the potential violation probability of that bid document calculated in step three. This probability is a real number between 0 and 1. Simultaneously, obtain the abnormal consistency score between that bid document and other bid documents (taking the maximum abnormal consistency score between that bid document and all other bid documents as the abnormal consistency score corresponding to that bid document). Treat the potential violation probability and the abnormal consistency score as two fuzzy truth values, and perform a product operation, that is, multiply the two values ​​together. The product is the collusion trigger condition satisfaction level for that bid document. This satisfaction level also ranges from 0 to 1; a higher value indicates a higher risk of collusion.

[0039] Construct the anomaly consistency scoring matrix. This includes the following sub-steps: The first step is to obtain unique identifiers for all bid documents. Each bid document was assigned an internal number during the parsing process in the first step, starting from 1 and incrementing sequentially, for a total of M bid documents, where M is at least 2. These internal numbers are then arranged in ascending order to form an identifier sequence, for example, 1, 2, 3, ..., M.

[0040] The second step is to create an empty square matrix according to the row and column order of the identifier sequence. This square matrix has M rows and M columns, and initially each position is empty.

[0041] The third step is to iterate through each pair of bid documents. For any two bid documents, their internal numbers are i and j, where i and j both range from 1 to M. Obtain the abnormal consistency score between these two bid documents, which was calculated in the second step (this score was obtained when constructing the similarity edges). Fill the abnormal consistency score into the position of the i-th row and j-th column of the square matrix, and also fill it into the position of the j-th row and i-th column, making the matrix symmetric.

[0042] The fourth step is to iterate through the diagonal positions of the matrix, that is, all positions where the row index equals the column index (row 1, column 1; row 2, column 2; ..., row M, column M). Force the value of each diagonal element to 0, because the abnormal consistency score of the same tender document is meaningless. After completing the above steps, an M x M matrix is ​​output, called the abnormal consistency score matrix.

[0043] Perform spectral clustering on the abnormal consistency score matrix. This includes the following sub-steps: The first step is to normalize each row of the matrix. For the i-th row, calculate the sum of all elements (M values) in that row, and denote it as the row sum. Then, divide each element in that row by the row sum to obtain the normalized value. In this way, the sum of all elements in each row becomes 1.

[0044] The second step is to calculate the mean of each row. For the normalized i-th row, sum the M values ​​in the row and divide by M to obtain the row mean. Then, subtract the row mean from each element in the row to obtain a new matrix, called the centered matrix.

[0045] The third step is to multiply the centered matrix by its transpose to obtain an M-row, M-column Laplace matrix. The specific multiplication process is as follows: for the element in the p-th row and q-th column of the new matrix, it is equal to the dot product of the p-th row vector of the centered matrix and the q-th row vector of the centered matrix (i.e., the corresponding elements are multiplied and then summed).

[0046] The fourth step is to calculate the eigenvalues ​​and eigenvectors of the Laplace matrix. This is done using a power-law iteration method: A random M-dimensional vector is initialized. The vector is repeatedly multiplied by the Laplace matrix and then normalized until the vector no longer changes significantly, yielding the eigenvector corresponding to the largest eigenvalue. This eigenvector component is subtracted from the original matrix, and the iteration continues to obtain the second largest eigenvalue, and so on, until all eigenvalues ​​are obtained. The eigenvector corresponding to the second smallest eigenvalue (i.e., the second eigenvalue sorted from smallest to largest) is then extracted. This vector has M components, each corresponding to a tender document, and is called the clustering indicator vector.

[0047] The clustering indicator vector is used to determine the sign of each element, outputting labels for bidder groups suspected of bid rigging. Specifically, each component of the clustering indicator vector is iterated; if the value of the component is greater than or equal to 0, the corresponding bid is marked as positive; if the value is less than 0, it is marked as negative. All bids marked as positive form one group, and all bids marked as negative form another group. A list of bid document internal numbers for each group is output as the labels for bidder groups suspected of bid rigging. Groups consisting of bids with abnormally high consistency scores are identified as suspected bid rigging groups.

[0048] In S5, the bidder group tags are associated with the original text of the bid-rigging identification clauses in the bidding documents to generate risk labeling results, including abnormal similarity locations and triggering clauses, specifically including: Based on the group labels of bidders suspected of bid rigging, extract the address text locations and typo locations of the identical edges in the entity nodes corresponding to each bid document within the group, and use them as a set of abnormal identical locations.

[0049] Specifically, the process involves: obtaining a list of internal IDs for all bid documents tagged as positive from the bidder group labels, for example, [2, 5, 7]. For each internal ID in the list, locating the corresponding document node in the constructed heterogeneous graph, and then traversing all identical edges connected to that document node. Each identical edge connects the document node to an entity node of another bid document (this entity node stores the location information of the address text in the original bid document). Two fields are read from this entity node: address text position and typo position. The address text position is recorded as the starting character offset (counting from the first character of the file) and the ending character offset of the address entity in the bid document; the typo position is recorded as the offset of the character that caused the typo relative to the beginning of the paragraph and the paragraph number it belongs to.

[0050] The above information (including bid document number, start offset, end offset, paragraph number, and character offset) is compiled into a single location record. All bid documents marked as positive and their associated identical edges are then merged to form a set of abnormally similar locations.

[0051] Read the original text of the bid-rigging identification clause from the clause nodes of the tender document, and locate the start and end character offsets of the original text of the clause in the tender document.

[0052] Specifically, in the heterogeneous graph constructed in the second step, the rule document node corresponding to the tender document is located, and the clause node associated with the constraint edge connected to that node is found. This clause node already stores the original text content of the clause, as well as the start and end character offsets of the clause within the full text of the tender document, during the first step of parsing the tender document. The start character offset represents the number of characters from the beginning of the document to the first character of the clause, and the end character offset represents the number of characters from the beginning of the document to the last character of the clause.

[0053] For example, if a clause identifying tag tampering starts at character 1024 and ends at character 2048, then the starting offset is 1024 and the ending offset is 2048. These two offsets, along with the original text of the clause, are then read out.

[0054] Each location in the set of abnormally similar locations is associated with a start offset and an end offset, forming a risk association pair. This includes the following sub-steps: The first step is to extract a location record from the set of abnormally similar locations. This record contains the tender document number, the starting offset of the address text, the ending offset of the address text, the paragraph number where the typo occurred, and the offset of the typo character.

[0055] The second step is to create a risk record using the bid document number, address text start offset, address text end offset, typo paragraph number, typo character offset, and the start and end offsets of the bid rigging identification clause read from the bidding document, all recorded in that location, as fields.

[0056] The third step involves extracting the corresponding original text fragment from the complete text stream of the tender document based on the start and end offsets of the collusion identification clause. The extraction method is as follows: extract all characters (inclusive) between the start and end offsets from the text string of the tender document to form a substring. This substring is then appended to the risk record created in the previous step as the original text of the trigger clause.

[0057] Fourth, repeat steps one through three until all location records in the abnormally similar location set have been processed. The final output is a risk association pair set, consisting of multiple risk records, each corresponding to an abnormally similar location and the original text of the triggering clause.

[0058] All risk association pairs are grouped and output according to the tender documents, resulting in risk labeling results including abnormal similarity locations and original fragments of triggering clauses. Specifically: Each risk record in the risk association pair set is traversed, and grouped according to the tender document number in the record, with all risk records of the same number grouped together. For each group, a list of abnormal similarity locations (including address text offsets and typographical errors) and original fragments of triggering clauses corresponding to that tender document number are extracted. The grouped information is then organized into structured data; For example, each group includes: a tender document number, a list of abnormally similar locations (each list item includes the address start offset, address end offset, typo paragraph number, and typo character offset), and a fragment of the original text of a triggering clause. This structured data is ultimately output as a risk labeling result, used to highlight abnormally similar locations on the user interface and display the triggered bid-rigging identification clauses.

[0059] The working principle of this invention is as follows: Obtain the tender documents and at least two bid documents for the same bidding project; extract the clause text from the tender documents and extract the address entity, typo location, and legal representative seal image features from each bid document; transform the collusion identification clauses in the tender documents into differentiable first-order logic rules for embedding; calculate the abnormal consistency score of identical fields between bid documents using rareness-weighted edit distance and construct similarity edges; simultaneously construct format edges based on format satisfaction; and construct a heterogeneous graph with clause nodes, entity nodes, and document nodes; perform multi-layer message passing based on an attention mechanism on the heterogeneous graph, enabling document nodes to receive rule embeddings through constraint edges, aggregate abnormal consistency scores through similarity edges, and aggregate format satisfaction information through format edges, outputting the potential violation probability of each document node; perform fuzzy logic conjunction operation on the potential violation probability and abnormal consistency score to obtain the collusion trigger condition satisfaction degree; perform spectral clustering on the abnormal consistency score matrix of all bid documents to output the group label of bidders suspected of collusion; associate the bidder group label with the original text of the collusion identification clauses in the tender documents to generate risk labeling results containing abnormal similarity locations and trigger clauses.

[0060] The foregoing has provided a detailed description of one embodiment of the present invention, but this description is merely a preferred embodiment and should not be construed as limiting the scope of the invention. All equivalent variations and modifications made within the scope of the claims of this invention should still fall within the patent coverage of this invention.

Claims

1. A method for intelligent detection of bid-rigging risk in bidding based on heterogeneous graph reasoning, characterized in that, Includes the following steps: S1: Obtain the tender documents and at least two bid documents under the same tender project, extract the text of the terms from the tender documents, and extract the address entity, the location of the typo, and the image features of the legal person's seal from each bid document; S2: Transform the bid-rigging identification clauses in the bidding documents into differentiable first-order logic rules and embed them. Calculate the abnormal consistency score of the same fields between bid documents by using the rareness-weighted edit distance and construct similarity edges. Construct format edges based on the format requirements of a single bid document. Use clause nodes, entity nodes, and document nodes to form a heterogeneous graph. S3: Perform multi-layer message passing based on attention mechanism on heterogeneous graphs, so that document nodes receive rule embedding through constraint edges, aggregate abnormal consistency scores through similar edges, aggregate format satisfaction information through format edges, and output the potential violation probability of each document node. S4: Perform fuzzy logic conjunction operation on the potential violation probability and the abnormal consistency score to obtain the degree of satisfaction of the bid-rigging triggering condition. Then perform spectral clustering on the abnormal consistency score matrix of all bid documents to output the group label of bidders suspected of bid-rigging. S5: Associate the bidder group tags with the original text of the bid-rigging identification clauses in the bidding documents to generate risk labeling results including abnormally similar locations and triggering clauses.

2. The intelligent detection method for bid-rigging risk based on heterogeneous graph reasoning according to claim 1, characterized in that, The process of constructing the heterogeneous graph is as follows: Extract the text of the bid-rigging identification clause in the bidding documents, decompose it into conditional predicates and conclusion predicates, and map it into first-order logic rule embeddings in a continuous vector space; For every two tender documents, text pairs with the same fields are extracted, and an initial similarity is calculated using an edit distance algorithm based on character replacement cost weighting. Then, the initial similarity is penalized and weighted using the pre-statistical frequency of field values ​​to obtain an abnormal consistency score. The abnormal consistency score is used as a weight to establish identical edges between the corresponding entity nodes. The binary judgment result of whether a single tender document meets the format requirements is used as a format edge to connect the document node and the clause node.

3. The intelligent detection method for bid-rigging risk based on heterogeneous graph reasoning according to claim 2, characterized in that, The initial similarity is calculated using an edit distance algorithm weighted by character replacement cost, specifically including: Obtain the first address text string corresponding to the first entity node to be compared and the second address text string corresponding to the second entity node; The preset character replacement cost matrix is ​​invoked. The replacement cost between each pair of characters in the character replacement cost matrix is ​​preset based on the reciprocal of the probability that the character pair co-occurs in the normal corpus. Among them, the replacement cost of rare typo character pairs is greater than that of common misspelled character pairs. The minimum weighted edit distance between two text strings is used as the initial similarity, where the minimum weighted edit distance is the minimum of the sum of insertion, deletion and replacement costs.

4. The intelligent detection method for bid rigging risk based on heterogeneous graph reasoning according to claim 1, characterized in that, The output of the potential violation probability for each document node specifically includes: For each document node, rule embeddings, abnormal consistency scores, and format satisfaction information are collected from adjacent clause nodes or entity nodes along constraint edges, similarity edges, and format edges. A normalized attention weight is calculated for each edge, and the attention weight is determined by the similarity between the current features of the document node and the features of adjacent nodes. The information passed between adjacent nodes is weighted and summed according to attention weights to obtain the aggregate vector of document nodes; The aggregated vector is added to the features of the previous layer of the document node and then subjected to non-linear mapping to obtain the updated node features. This process is repeated until the number of layers reaches a preset value, and the document node features of the final layer are mapped to potential violation probabilities.

5. The intelligent detection method for bid-rigging risk based on heterogeneous graph reasoning according to claim 4, characterized in that, The step of weighting and summing the information transmitted between adjacent nodes according to attention weights to obtain the aggregate vector of document nodes specifically includes: Obtain the information vector passed from each neighboring node and the attention weight value calculated for the adjacent edges; Multiply each element in each information vector by its corresponding attention weight value to obtain a weighted information vector. All weighted information vectors are summed element-wise in the vector space to form a temporary aggregated vector; The temporary aggregate vector is added element-wise to the original feature vector of the current document node to output the aggregate vector of the document node.

6. The intelligent detection method for bid-rigging risk based on heterogeneous graph reasoning according to claim 1, characterized in that, The output of the bidder group tags suspected of bid rigging specifically includes: The potential violation probability of each bid document and the corresponding abnormal consistency score are used as two fuzzy truth values. The product operation is used to obtain the degree of satisfaction of the bid-trading triggering condition of the bid document. Construct a square matrix based on the abnormal consistency scores between every two tender documents, and set the diagonal elements of the square matrix to zero to obtain the abnormal consistency score matrix. After normalizing each row of the abnormal consistency score matrix, the row mean is subtracted to obtain a Laplace matrix. The eigenvector corresponding to the second smallest eigenvalue of the Laplace matrix is ​​then used as the clustering indicator vector. Perform sign determination on the elements in the clustering indicator vector and output the group labels of bidders with the same sign.

7. The intelligent detection method for bid rigging risk based on heterogeneous graph reasoning according to claim 6, characterized in that, The construction of a matrix based on the abnormal consistency scores between every two bid documents specifically includes: Obtain the unique identifiers for all tender documents and arrange them in order of document number to form an identifier sequence; Create an empty square matrix according to the row and column order of the identifier sequence, traverse each pair of tender documents, and fill the calculated abnormal consistency score into the positions corresponding to the row index and column index in the square matrix. Iterate through the diagonal positions of the matrix, set the value of each diagonal element to zero, and output the abnormal consistency score matrix.

8. The intelligent detection method for bid rigging risk based on heterogeneous graph reasoning according to claim 1, characterized in that, The process of generating the risk labeling results is as follows: Based on the group labels of bidders suspected of bid rigging, extract the address text locations and typo locations that produce identical edges in the entity nodes corresponding to each bid document within the bidder group, and use them as a set of abnormal identical locations. Read the original text of the bid-rigging identification clause from the clause nodes of the tender document, and locate the start character offset and end character offset of the original text of the bid-rigging identification clause in the tender document; Each location in the set of abnormally similar locations is associated with and stored with the start offset and the end offset, forming a risk association pair; All risk associations are grouped and output according to the tender documents, resulting in risk labeling results including abnormally similar locations and original fragments of triggering clauses.

9. The intelligent detection method for bid rigging risk based on heterogeneous graph reasoning according to claim 8, characterized in that, The step of associating and storing each location in the abnormally similar location set with a start offset and an end offset to form a risk association pair specifically includes: Obtain the coordinates of a location from the set of abnormally similar locations, as well as the start and end offsets of the original text of the clause for identifying tampering; Create a risk record using location coordinates, start offset, and end offset as three fields; Extract the original text segment between the start and end offsets from the tender document and append it to the risk record; Until all location coordinates in the set of abnormally similar locations have been processed, the output is a set of risk association pairs consisting of multiple risk records.