Mechanical drawing labeling and reviewing method and system based on large model and retrieval enhancement
By adopting a mechanical drawing annotation review method based on large models and retrieval enhancement, this method parses the character entities of drawing annotations and performs spatial clustering and type classification. Combined with a text embedding model finely tuned in the mechanical field, it performs standard clause retrieval and independent review, which solves the problems of low efficiency and poor accuracy in mechanical drawing annotation review. It realizes the automatic detection and resolution of cross-dimensional normative conflicts, and improves the automation level of review and the consistency of conclusions.
Patent Information
- Application Number
- CN202611362416.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-03
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies for mechanical drawing annotation review suffer from low efficiency, poor accuracy, and insufficient detection of cross-annotation specification conflicts, especially in large-scale drawing reviews where consistency and reproducibility are difficult to guarantee.
A mechanical drawing annotation review method based on large models and retrieval enhancement is adopted. By parsing the character entities of the drawing annotations, spatial clustering, type classification and topological relationship analysis, combined with a text embedding model finely tuned in the mechanical field, standard clause retrieval and independent review are carried out to generate a structured review report. Automated review is achieved through cross-dimensional conflict detection and progressive resolution.
It improves the retrieval accuracy and automation of compliance review of mechanical drawing annotations, enhances the consistency and reliability of review conclusions, solves the problems of attention forgetting and terminology confusion in long text reasoning using a single model, and realizes automatic detection and resolution of cross-dimensional normative conflicts.
Smart Images

Figure CN123157889A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer-aided design and intelligent review technology, specifically to a method and system for reviewing mechanical drawings based on large models and enhanced retrieval. Background Technology
[0002] Currently, the industry's compliance review of mechanical drawing annotations mainly relies on process reviewers with extensive mechanical design experience, who manually compare each item against national standard clauses. However, due to the diverse types and large quantity of mechanical drawing annotations, and the numerous national standard clauses scattered across more than ten different standard documents, manual review is highly dependent on the reviewers' professional experience and concentration, making it prone to omissions due to fatigue or negligence. Furthermore, different reviewers may have differing interpretations of the same standard clause, leading to a lack of consistency and reproducibility in review conclusions. With the rapid development of the manufacturing industry towards digitalization and intelligence, product design cycles are constantly shortening, and the number of drawings is increasing significantly. The traditional manual review model is no longer sufficient to meet the current requirements for high-efficiency and high-quality drawing review, necessitating the development of automated mechanical drawing annotation review methods and systems.
[0003] To address the shortcomings of manual review, the industry has attempted to introduce automation technologies. Early solutions involved rule engine systems developed based on CAD platforms. These systems extracted and compared geometric elements and annotation text in drawings by writing hard-coded detection logic on the API interfaces of platforms like AutoCAD. However, this approach has inherent drawbacks: rule engines can only process formatted geometric element information and cannot understand the normative constraints in "technical effect" paragraphs written in natural language, leading to the complete neglect of such unstructured information during review; the rule logic is hard-coded into the system source code, requiring developers to modify the underlying code and redeploy when national standards are revised or non-standard designs are encountered, resulting in extremely high maintenance costs; and the rule engine treats annotation elements in drawings as isolated text strings, failing to model the spatial topology and logical binding relationships between annotations, thus hindering cross-element correlation review.
[0004] In recent years, with the rapid development of large language model technology, a solution has emerged that directly inputs the entire drawing into a multimodal large model for review. However, this solution also faces three levels of technical obstacles: At the standard clause retrieval level, general text embedding models are trained on general corpora and lack mechanical domain expertise. When performing vector retrieval of national standard clauses, they are prone to confusing terms that appear similar on the surface but have completely different technical meanings, such as "coaxiality" and "roundness," or "total runout" and "circular runout." The retrieval accuracy is far from meeting the requirements of engineering review. At the review reasoning level, the drawing description text can reach tens of thousands of tokens. When processing the latter half of the annotation, a single model forgets the datum definition and dimensional context of the former half, resulting in missed detections and logical illusions. At the review conclusion verification level, there may be implicit logical contradictions between the various judgments made by a single model on the entire drawing. For example, geometric tolerances may reference datum symbols that do not exist on the drawing, numerical constraints in technical requirements may be inconsistent with numerical values in certain annotations, and shape tolerance values may exceed the range allowed by the inclusive principle. The model itself cannot systematically detect and resolve the above-mentioned cross-annotation and cross-type specification conflicts. Summary of the Invention
[0005] The mechanical drawing annotation review method and system based on large model and retrieval enhancement proposed in this invention can at least solve one of the technical problems in the background art.
[0006] To achieve the above objectives, the present invention adopts the following technical solution: A mechanical drawing annotation review method based on large models and retrieval enhancement includes the following steps: S100: Input the mechanical engineering drawings to be reviewed and parse them. Extract the annotation character entities in the drawings and obtain the annotation text set after noise filtering. Use spatial clustering algorithm to merge the scattered annotation text sub-elements belonging to the same annotation into a complete annotation unit. S200: Classify the complete annotation units by type, and perform spatial topological relationship analysis on the classified annotation units to establish the association between annotation units, and output structured representation data carrying node type, spatial location and association relationship; S300: Obtain each labeled node in the structured representation data, input it into a text embedding model finely tuned by the mechanical field for vectorization representation, retrieve several standard clauses that match each labeled node in the pre-built standard clause library, and encapsulate the labeled node and the retrieved standard clauses into an associated review unit. S400: The associated review unit is distributed to multiple corresponding dedicated review units according to the type label of the labeled node. Each review unit independently reviews the label using a large language model and outputs a standardized review result containing the review conclusion and confidence level. S500: Summarizes the review results of all review units, performs cross-dimensional conflict detection, identifies normative conflicts between different annotations or different review conclusions, performs progressive resolution on the detected conflicts, and generates a structured review report.
[0007] As a preferred embodiment of the mechanical drawing annotation review method based on large model and retrieval enhancement described in this invention, step S100 includes: S110. Obtain the mechanical engineering drawing file to be reviewed, parse the annotation character entities in the drawing file, extract the text content and spatial coordinate information of each entity, and obtain the original annotation entity set. S120. Perform noise filtering on the original set of labeled entities to remove title bar text, pure punctuation marks and geometric tolerance fragments to obtain a set of candidate labeled entities. S130. Calculate the spatial distance between any two entities in the candidate labeled entity set, and classify entities whose spatial distance is less than the adaptive neighborhood radius into the same cluster to obtain the clustering assignment result. S140. For labeled entities within the same cluster, the text content is concatenated according to their spatial location and merged into a complete labeled unit to obtain a set of labeled units.
[0008] As a preferred embodiment of the mechanical drawing annotation review method based on large model and retrieval enhancement described in this invention, step S200 includes: S210. Obtain the complete annotation unit, and divide each annotation unit into at least one type among dimension annotation, geometric tolerance, roughness, datum symbol and technical requirement by regular pattern matching and priority sorting to obtain a classified annotation set; S220. Construct an index mapping from baseline letters to label identifiers for the baseline symbol type labels in the classification label set to obtain a baseline index table; S230. Traverse the geometric tolerance type labels in the classification label set, extract the reference letters they reference, use the breadth-first search algorithm to track the corresponding definition position of each reference letter in the reference index table, and establish the reference path from the label to the reference symbol. S240. Model the dimension annotations in the classification annotation set as a directed graph, use the depth-first search algorithm to detect the cycle structure in the directed graph, determine the closure state of the dimension chain based on the deviation between the cumulative weight of the cycle and the closure tolerance, write the reference path and the closure state into the association relationship field of the annotation node, and output the structured representation data.
[0009] As a preferred embodiment of the mechanical drawing annotation review method based on large model and retrieval enhancement described in this invention, step S300 includes: S310. Obtain each labeled node in the structured representation data, and adopt a differentiated query text construction strategy according to the type label of the labeled node. Add domain context words or retain the original text as query for each labeled type according to preset rules to obtain enhanced query text. S320. The enhanced query text is input into a text embedding model finely tuned in the mechanical field and encoded to obtain a normalized feature vector. S330. Using the feature vector, perform cosine similarity retrieval in the pre-built standard clause FAISS vector index to obtain several standard clauses with the highest similarity to each labeled node, along with their clause identifiers and similarity scores. S340. Each labeled node and the corresponding standard clauses are encapsulated into an association review unit, which includes basic label information, a list of search clauses, and topological context information.
[0010] As a preferred embodiment of the mechanical drawing annotation review method based on large model and retrieval enhancement described in this invention, wherein: the text embedding model fine-tuned in step S320, which is fine-tuned in the mechanical field, includes the following fine-tuning training process: S321. Based on the general Chinese text embedding model, positive pairs are generated from the mechanical standard clause library through synonym rewriting. Difficult negative samples that are similar on the surface but different in meaning are mined by combining similarity screening and manual review. A training dataset containing positive pairs and difficult negative samples is constructed. S322. Using a contrastive loss function with automatic negative sampling within batches, the weight matrices of the query layer, key layer, value layer, and feedforward layer of the base model are efficiently fine-tuned using a low-rank adaptation method to obtain a text embedding model fine-tuned in the mechanical domain.
[0011] As a preferred embodiment of the mechanical drawing annotation review method based on large model and retrieval enhancement described in this invention, step S400 includes: S410. Obtain the associated review unit, and route the review task to the corresponding dedicated review unit according to the type label of the marked node in each review unit. The dedicated review unit includes a size review unit, a geometric tolerance review unit, a roughness review unit, a datum symbol review unit, and a technical requirement review unit. S420. Each dedicated review unit independently reviews the annotations using a large language model, following a four-stage reasoning template: parsing the semantics of the annotations, comparing the indexed clauses, determining compliance conclusions, and citing the standard clauses. The output includes preliminary review results containing the review conclusions, confidence levels, reasoning processes, and the cited standard clause numbers. S430. Perform format parsing and error tolerance processing on the preliminary review results. If the parsing fails, perform downgrade processing, mark the review conclusion as a warning and add a manual review suggestion to obtain a standardized review result.
[0012] As a preferred embodiment of the mechanical drawing annotation review method based on large model and retrieval enhancement described in this invention, step S500 includes: S510. Summarize the standardized review results of all review units, aggregate the review conclusions according to the cited standard clauses to detect contradictions and conflicts of the same clauses, and detect specification conflicts such as missing references, contradictory annotation values and violation of tolerance correlation constraints through cross-labeling comparison, and obtain a conflict list. S520. For each conflict in the conflict list, perform confidence-based resolution and evidence chain back-check resolution in sequence. Mark the conflicts that cannot be resolved by the first two layers as requiring manual review and generate resolution results. S530. Based on the standardization review results and the resolution results, generate a structured review report.
[0013] As a preferred embodiment of the mechanical drawing annotation review method based on large model and retrieval enhancement described in this invention, step S510 involves detecting specification conflicts such as missing references, contradictory annotation values, and violations of tolerance association constraints through cross-annotation type correlation comparison, including: S511. Construct an index mapping from datum letters to annotation identifiers, traverse all geometric tolerance type annotations to extract the referenced datum letters, and mark datum letters that do not exist in the index mapping as datum missing conflicts. S512. Extract numerical constraints from the text of the technical requirement type annotation, compare the numerical constraints with the corresponding type of annotation values on the drawing, and mark the annotations with inconsistent values as annotation value conflicts. S513. Analyze the tolerance zone values of the dimension annotation and the tolerance values of the geometric tolerance annotation, and mark the shape tolerance values that exceed half of the corresponding dimension tolerance zone and the position tolerance values that exceed the corresponding dimension tolerance zone as tolerance association constraint violations.
[0014] As a preferred embodiment of the mechanical drawing annotation review method based on large model and retrieval enhancement described in this invention, step S530 involves sequentially performing confidence-priority resolution and evidence chain back-check resolution on each conflict in the conflict list, including: S531. Extract the confidence levels of multiple review conclusions involved in the conflict. When the difference between the maximum and minimum confidence levels exceeds a preset threshold, adopt the review conclusion with the highest confidence level as the resolution judgment and mark the conflict as resolved. S532. When the confidence difference does not exceed the preset threshold, the text embedding model finely tuned by the mechanical field is used to perform independent vector encoding and clause re-retrieval on the labeled text involved in the conflict. If the similarity of the first clause in the re-retrieval exceeds the similarity of the second clause by more than the preset leading threshold, the corresponding review conclusion is adopted as the resolution judgment, and the conflict is marked as resolved. S533. When the similarity of the first clause in the re-search does not exceed the preset leading threshold, the conflict is marked as requiring manual review.
[0015] A mechanical drawing annotation review system based on large model and retrieval enhancement includes: The feature extraction module is used to parse the mechanical engineering drawings to be reviewed, extract the annotation character entities and obtain the annotation text set after noise filtering. It uses a spatial clustering algorithm to merge scattered sub-elements into complete annotation units, performs type classification and spatial topology analysis on the annotation units, and outputs structured representation data carrying node type, spatial location and association relationship. The retrieval enhancement module is used to vectorize each labeled node in the structured representation data by inputting a text embedding model finely tuned in the mechanical field, and to retrieve matching clauses in a pre-built standard clause library and encapsulate them into an associated review unit. The multi-unit review and resolution module is used to distribute the associated review units to multiple dedicated review units according to the annotation type and conduct independent reviews using a large language model. After summarizing the review results, cross-dimensional conflict detection is performed, and the detected conflicts are automatically resolved through a progressive resolution strategy to generate a structured review report.
[0016] The beneficial effects of this invention are: This invention analyzes the annotation characters in the mechanical drawings to be reviewed and uses a spatial clustering algorithm to aggregate scattered sub-elements into complete annotation units. After type classification and spatial topological relationship analysis, these units are transformed into structured representation data carrying node types, spatial locations, and relationships. The query text for each annotation node is constructed according to its type and input into a text embedding model fine-tuned by mechanical domain contrastive learning for vectorization. Matching clauses are retrieved from a pre-built standard clause library and encapsulated into associated review units. These review units are then distributed to multiple dedicated review units according to annotation type. Each unit performs independent and parallel review using a large language model according to a unified four-stage reasoning template and outputs standardized review results. Based on this, cross-dimensional conflict detection is performed to identify cross-annotation and cross-type specification conflicts such as contradictions within the same clause, missing benchmarks, contradictory annotation values, and tolerance violations. A three-tiered progressive resolution strategy—confidence priority, evidence chain review, and escalation to manual verification—automatically resolves these conflicts, ultimately generating a structured review report and an interactive visual review report.
[0017] This invention addresses the problem of insufficient accuracy in standard clause retrieval due to severe semantic confusion in mechanical terminology in general text embedding models, the problem of missed inspections and logical inconsistencies caused by attention forgetting in long text reasoning of single models, and the problem of unreliable review results due to the lack of systematic detection and resolution of cross-dimensional normative conflicts in existing solutions. It achieves full-process automation from structured extraction of drawing annotations, precise domain retrieval, multi-unit collaborative review to cross-dimensional conflict resolution, effectively improving the retrieval accuracy and automation level of mechanical drawing annotation compliance review, and enhancing the consistency and reliability of multi-annotation collaborative review conclusions. Attached Figure Description
[0018] Figure 1 This is a flowchart illustrating an embodiment of the mechanical drawing annotation and review method based on large model and retrieval enhancement of the present invention. Figure 2 This is a detailed flowchart of the baseline reference chain tracing in the embodiment; Figure 3 This is a detailed flowchart of the dimensional chain closure detection in the embodiment; Figure 4 This is a flowchart of the fault tolerance parsing and degradation processing in the embodiment; Figure 5 This is a detailed flowchart of cross-dimensional conflict detection in the embodiment; Figure 6 This is a detailed flowchart of the three-layer progressive resolution in the embodiment; Figure 7 This is a functional block diagram of an embodiment of the mechanical drawing annotation and review system based on large model and retrieval enhancement of the present invention. Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, 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 some embodiments of the present invention, but not all embodiments.
[0020] like Figure 1 As shown, this invention proposes a mechanical drawing annotation review method based on large models and retrieval enhancement, including the following steps: Step S100: Input the mechanical engineering drawing to be reviewed and parse it. Extract the annotation character entities in the drawing and obtain the annotation text set after noise filtering. Use the spatial clustering algorithm to merge the scattered annotation text sub-elements belonging to the same annotation into a complete annotation unit. The DXF format mechanical engineering drawings to be reviewed are parsed using a file parsing interface (such as ezdxf). All text entities and leader entities in the drawing model space are traversed to extract the text content and spatial coordinate information of each entity. Noise filtering is performed on the extracted annotation character entities to remove interference text irrelevant to annotation review, such as title block text, drawing titles, pure punctuation marks, and geometric tolerance frame fragments, resulting in a candidate annotation entity set. The DBSCAN spatial clustering algorithm is then used to process this candidate annotation entity set. Using an adaptively determined neighborhood radius as the spatial aggregation criterion, scattered annotation text sub-elements that are physically adjacent on the drawing are grouped into the same cluster, thereby merging the originally scattered annotation character fragments into semantically complete annotation units (such as "φ25k6"), providing accurate basic annotation units for subsequent annotation type classification and topological relationship analysis.
[0021] Step S200: Classify the complete labeled units by type, and perform spatial topological relationship analysis on the classified labeled units to establish the association between labeled units, and output structured representation data carrying node type, spatial location and association relationship.
[0022] The complete set of annotation units output in step S100 is classified into five types (geometric tolerance terminology, roughness annotation, dimension annotation, datum symbol, and technical requirement text) using regular pattern matching and priority sorting strategies. Spatial topological relationship analysis is then performed on the classified annotation units: a breadth-first search algorithm is used to establish the reference path from geometric tolerance annotations to datum symbols; a depth-first search algorithm is used to model the dimension annotations as a directed graph and detect loop structures in the graph, determining the closure state of the dimension chain based on the deviation between the cumulative weight of the loop and the closure tolerance; the reference path and closure state are written into the association field of the corresponding annotation node; finally, all annotation units are uniformly converted into structured representation data in JSON format, achieving accurate conversion of annotation elements in mechanical drawings from unstructured characters to structured information, providing complete annotation semantics and topological context for subsequent standard clause retrieval.
[0023] S300. Obtain each labeled node in the structured representation data, input it into a text embedding model finely tuned for the mechanical field for vectorization representation, retrieve several standard clauses that match each labeled node in the pre-built standard clause library, and encapsulate the labeled node and the retrieved standard clauses into an associated review unit. Each labeled node is obtained from the structured representation data output in step S200. Adaptive query text construction is performed according to the type label of the labeled node. Domain context words are added to different types of labels according to preset rules, or the original text is retained as the query to obtain enhanced query text. The enhanced query text is input into a text embedding model fine-tuned for the mechanical domain for encoding. This fine-tuning model is based on a general text embedding model. A training dataset is constructed by generating positive examples of mechanical standard clauses and mining difficult negative samples. The parameters are efficiently fine-tuned using a contrastive loss function and a low-rank adaptation method to obtain feature vectors. Similarity retrieval is performed in a pre-built standard clause vector index using the feature vectors to obtain several standard clauses that match each labeled node and their similarity scores. Each labeled node and the retrieved standard clauses are encapsulated into an associated review unit to provide labeled semantic information and standard specification basis for subsequent multi-unit parallel review.
[0024] S400. Distribute the associated review units to multiple dedicated review units according to the type labels of the labeled nodes. Each review unit uses a large language model to independently review the labels and outputs standardized review results containing review conclusions and confidence levels. The associated review units output from step S300 are routed according to the type labels of the annotation nodes and distributed to multiple corresponding dedicated review units. The dimension review unit is responsible for reviewing the format standardization, tolerance value rationality, and dimensional chain closure of linear dimensions, diameters, radii, chamfers, threads, etc. The geometric tolerance review unit is responsible for reviewing the completeness of the geometric tolerance frame, the legality of the datum reference, and the rationality of the tolerance item selection. The roughness review unit is responsible for reviewing whether the surface roughness parameter values belong to the standard series values and whether the parameter codes are clearly marked. The datum symbol review unit is responsible for reviewing the standardization of datum letters and the connection relationship between the symbols and the measured elements. The technical requirements review unit is responsible for reviewing the standardization of the expression and numerical consistency of technical requirements texts such as heat treatment, surface treatment, and unspecified tolerances. Each review unit independently reviews the annotations using a large language model according to a unified four-stage reasoning template of analysis, comparison, judgment, and citation, and outputs standardized review results including review conclusions, confidence levels, reasoning processes, and the referenced standard clause numbers.
[0025] S500: Summarize the review results of all review units, perform cross-dimensional conflict detection, identify normative conflicts between different annotations or different review conclusions, perform progressive resolution on the detected conflicts, and generate a structured review report.
[0026] Summarize all review results output from step S400 and perform cross-dimensional conflict detection—aggregate review conclusions according to cited standard clauses to detect contradictions and conflicts within the same clause. Detect standard conflicts such as missing benchmarks, contradictory annotation values, tolerance violations, and inconsistent conclusions of similar annotations through cross-annotation type correlation comparison, and merge them to obtain a conflict list. Perform a three-level progressive resolution on the detected conflicts, adopting a strategy of prioritizing confidence, reviewing the evidence chain, and escalating to manual review to achieve automatic conflict resolution. Finally, based on the review results and resolution results, generate a structured review report and an interactive visual review report with color-coded overlay annotations.
[0027] Furthermore, this embodiment provides a mechanical drawing annotation review method based on large model and retrieval enhancement, step S100 including: Step S110: Obtain the mechanical engineering drawing file to be reviewed, parse the annotation character entities in the drawing file, extract the text content and spatial coordinate information of each entity, and obtain the original annotation entity set.
[0028] Mechanical engineering drawings are typically stored in DXF format in CAD systems. The annotation information in these drawings is not organized as complete annotations, but rather distributed across multiple text entities at the character level. For example, a diameter annotation "φ25k6" might be split into three independent TEXT entities in a DXF file: "φ" at coordinates (50.0, 100.0) represents the diameter symbol, "25" at coordinates (54.2, 100.1) represents the basic dimension value, and "k6" at coordinates (58.0, 100.0) represents the tolerance zone designation. By traversing all TEXT and MTEXT entities in the drawing model space through a parsing interface, the text content (entity.dxf.text) and insertion point coordinates (entity.dxf.insert) of each entity are read. Simultaneously, the plain text content of the MTEXT entities, after formatting and cleaning (removing CAD internal formatting marks such as color code \C, font code \F, height code \H), is extracted, resulting in the original set of annotation entities containing text strings and spatial location information. This character-level extraction method ensures that all annotation text information in the drawing is completely obtained, without missing any content due to the way the annotations are stored in CAD.
[0029] Step S120: Perform noise filtering on the original set of labeled entities to remove title bar text, pure punctuation marks and geometric tolerance fragments to obtain a set of candidate labeled entities.
[0030] In addition to the dimensions, tolerances, surface roughness, datum, and technical requirements that are of concern to the annotation review, mechanical engineering drawings also contain a large amount of distracting text unrelated to annotation standard review. For example, the border area of the drawing usually contains title block information (such as "Drawing", "Review", "Scale", "Material", "Drawing Number", "Version", date, and other management personnel and document attribute information). The blank areas of the drawing may contain independent geometric tolerance frame fragments (such as individual GD&T-specific symbols such as "⊥", "◎", "∥"—these symbols are themselves part of the geometric tolerance frame, but do not have independent review significance when separated from the frame context). In addition, the drawing may also contain non-annotation content such as pure punctuation marks, Roman numeral serial numbers, scale annotations (such as "1:2"), and date format numbers. By establishing a dictionary of noise keywords and regular expression matching rules, the original set of labeled entities is filtered one by one. Entities that match title bar keywords, contain only punctuation marks, belong to geometric tolerance fragment characters (single lowercase letters such as "b", "c", "k"), or match Roman numerals or date formats are marked as noise and removed. The candidate set of labeled entities is retained, which avoids the above irrelevant text from causing misidentification and invalid review requests in the subsequent clustering and review stages, thereby improving review efficiency.
[0031] Step S130: Calculate the spatial distance between any two entities in the candidate labeled entity set, and group entities whose spatial distance is less than the adaptive neighborhood radius into the same cluster to obtain the clustering assignment result.
[0032] The spatial position of each entity in the candidate annotation entity set reflects its actual physical position on the drawing—the spacing between character segments belonging to the same annotation on the drawing is usually much smaller than the spacing between different annotations. For example, the three character segments "φ", "25", and "k6" of the diameter annotation "φ25k6" are arranged sequentially in the horizontal direction of the drawing, with adjacent characters spaced only 2-4 mm apart, while the spacing between this annotation and the adjacent roughness annotation "Ra3.2" is usually more than 15 mm. DBSCAN (density-based spatial clustering algorithm) is used to perform cluster analysis on the spatial coordinates of the candidate annotation entity set—adaptively determining the neighborhood radius. That is, calculate the pairwise Euclidean distance between all labeled entities, and take one-third of the average distance from each entity to its nearest neighbor entity as the mean. The minimum cluster size (MinPts) is fixed at 2. The DBSCAN algorithm iterates through each entity and sets its value (minimum 4mm to avoid over-clustering). Points containing at least MinPts entities within their neighborhood are marked as core points. Entities with reachable density are grouped into the same cluster based on the connectivity of these core points. Isolated points in low-density regions are marked as noise points and processed independently. This adaptive density clustering method does not require pre-specifying the number of clusters and can automatically adapt to differences in annotation density across different drawings—for complex part drawings with dense annotations, smaller clusters are preferable. The value can accurately distinguish adjacent annotations; for simple part drawings with sparse annotations, a larger value... The value can still correctly aggregate the scattered sub-elements.
[0033] Step S140: For labeled entities within the same cluster, splice the text content according to their spatial location and merge them into complete labeled units to obtain a set of labeled units.
[0034] After DBSCAN clustering is completed, labeled entities within the same cluster are considered to belong to the same complete label. For each entity within a cluster, the text content is concatenated after being sorted according to its original spatial coordinates along the horizontal or vertical direction, while deduplication and formatting are performed. For example, a cluster contains three entities "φ", "25", and "k6". After spatial sorting, they are arranged sequentially along the X-axis. When merging the text, the diameter symbol "φ" is identified as a prefix and directly concatenated with the following numbers to obtain the complete labeled text "φ25k6". During the merging process, the original coordinate information of each entity is preserved, and the arithmetic mean of the coordinates of all entities within the cluster is taken as the unified spatial position of the labeled unit. At the same time, to prevent the erroneous merging of complete labels that actually belong to different labels but are spatially adjacent, the post-clustering processing checks each cluster—if all entities within a cluster are independent complete labels (not character fragments), they are split into independent labeled units instead of being forcibly merged. Finally, a set of labeled units consisting of complete labeled text, unified spatial coordinates, and cluster identifiers is obtained, laying the foundation for subsequent label type classification and topological relationship analysis.
[0035] For example, a cluster contains three labeled character entities: the diameter symbol "φ" located at coordinates (50.0, 100.0), the basic size number "25" located at coordinates (54.2, 100.1), and the tolerance zone code "k6" located at coordinates (58.0, 100.0). After spatial sorting, the text is concatenated to obtain the complete label "φ25k6". The arithmetic mean of the three fragment coordinates is taken to obtain the unified spatial location (54.07, 100.03). The preliminary type is determined to be "dimension label" with a confidence level of 0.95 by weighted voting. The original text, preliminary type, spatial coordinates and cluster identifier of the labeled unit are obtained.
[0036] Furthermore, step S200 includes: Step S210: Obtain the complete annotation unit, and divide each annotation unit into at least one type of dimension annotation, geometric tolerance, roughness, datum symbol and technical requirement through regular pattern matching and priority sorting to obtain a classified annotation set.
[0037] The type of the merged text (raw_text) of each annotation unit output in step S140 is determined. Since a preliminary classification has been performed in step S100, this step further confirms and corrects the classification based on the preliminary classification—by taking the merged complete annotation text as input, the classification logic is re-executed to obtain a more accurate type determination result.
[0038] The classification adopts a strategy that combines regular pattern matching and priority sorting: priority is given to matching the geometric tolerance type with the highest discrimination, and the determination is made by detecting whether the annotation text contains GD&T (geometric dimensions and tolerances) special terms or special symbols (such as "⊥", "◎", "∥", etc.).
[0039] Secondly, the roughness type is matched by detecting whether the text is prefixed with "Ra" or "Rz", or whether the text is purely numerical and the value belongs to the standard Ra series (0.8, 1.6, 3.2, 6.3, 12.5, 25, etc.); thirdly, the reference symbol type is matched by detecting whether the text is a single uppercase letter (AP, excluding letters I, O, Q that are easily confused with numbers) or an "AB" type compound reference format.
[0040] Then, the dimension annotation type is matched by detecting whether the text begins with the diameter symbol "φ" or "Ø", the radius symbol "R", the chamfer symbol "C", or the thread symbol "M", or contains symmetrical tolerance "±" or limit deviation "+ / -", or is a "number × number" keyway / spline format, or is purely numerical (such as linear dimension values).
[0041] Finally, the technical requirement type is matched by checking whether the text contains keywords related to heat treatment processes ("tempering", "carburizing", "quenching", "tempering", "annealing", "normalizing"), surface treatment keywords ("galvanizing", "chrome plating", "blackening", "oxidation", "phosphating"), hardness value formats ("HB", "HRC", "HV" followed by numbers), unspecified tolerances ("unspecified fillet", "unspecified chamfer", "general tolerance", "universal tolerance"), processing requirements ("deburring", "sharp edge blunting", "chamfering"), and assembly inspection requirements ("assembly", "installation", "adjustment", "testing", "inspection", "detection", "cleaning", "coating" combined with "requirements", "instructions", "notes", "regulations", "conditions") and other engineering terms.
[0042] For annotations that match multiple types simultaneously (such as the pure number "3.2", which could be either a roughness value or a linear dimension), the final classification result is determined by priority order (Geometric tolerance > Roughness > Datum symbol > Dimension) and confidence score, resulting in a set of classified annotations. For example, if the merged text of an annotation unit is "φ25k6", during reclassification, it matches the dimension pattern starting with "φ" with a confidence score of 0.95, which is much higher than the lower confidence score obtained during the initial classification based solely on character fragments. Therefore, its type is ultimately confirmed as a dimension annotation.
[0043] Step S220: Construct an index mapping from baseline letters to label identifiers for the baseline symbol type labels in the classification label set to obtain a baseline index table.
[0044] The classification annotation set output in step S210 is traversed, and all annotation units of type "baseline symbol" are selected. The text content of each baseline symbol annotation (i.e., a single baseline letter, such as "A", "C", "D", etc.) is extracted. Using the baseline letter as the key and the corresponding annotation identifier as the value, a hash index mapping table from baseline letter to annotation identifier is constructed. During the construction process, the baseline letters are validated for standardization—excluding the letters I, O, and Q, which are easily confused with the numbers "1" and "0" and the letter "O" respectively, to comply with the standard requirements for baseline letter naming in GB / T1182. At the same time, the spatial coordinates of each baseline symbol annotation on the drawing are recorded to provide a positional reference for subsequent baseline reference chain tracing. For example, if a pump cover drawing has only one baseline symbol annotation—text "A", annotation identifier "DAT_001", coordinates (68.18, 161.14)—then the index mapping table is constructed as {"A":"DAT_001"}. In the subsequent step S230, this index mapping table will serve as the target lookup table for BFS datum reference chain tracing—each datum letter referenced by the geometric tolerance annotation must have a corresponding entry in the index mapping table; otherwise, it will be judged as a missing datum.
[0045] Step S230: Traverse the geometric tolerance type labels in the classification label set, extract the reference letters they reference, use the breadth-first search algorithm to track the corresponding definition position of each reference letter in the reference index table, and establish the reference path from the label to the reference symbol.
[0046] like Figure 2As shown, all annotation units of type "Geometric Tolerance" are selected from the classification annotation set output in step S210, and datum reference chain tracing is performed on each geometric tolerance annotation. First, the text content of the geometric tolerance annotation is parsed using regular expressions to extract the datum letters referenced in its datum cell. The text format of the geometric tolerance annotation is usually "tolerance type, tolerance value, datum letter" (such as "coaxiality φ0.02A-B"). The third cell is the datum cell, which contains a single datum letter (such as "A") or a compound datum letter sequence (such as "AB"). In a compound datum, each letter is separated by a hyphen "-" to indicate a reference axis or reference plane jointly determined by multiple datums.
[0047] Each extracted datum letter is searched one by one in the datum index mapping table (datum_index) constructed in step S220. If the datum letter exists in the index table, its annotation and spatial coordinates on the drawing are recorded, and the measured feature (such as the outer cylindrical surface, end plane, axis, center of symmetry, etc.) pointed to by the datum symbol is further confirmed, establishing a complete reference path from the geometric tolerance annotation through the datum symbol to the measured feature. If the datum letter does not exist in the index table, it is marked as a datum missing conflict, indicating that the geometric tolerance annotation references a datum that is not actually defined on the drawing. For example, if the text of a geometric tolerance annotation is "coaxiality φ0.02A-B", the extracted datum letters are {"A", "B"}. The index mapping table {"A": "DAT_001"} is searched. "A" exists, and the corresponding annotation DAT_001 is located at coordinates (68.18, 161.14), pointing to the outer cylindrical surface. "B" does not exist in the index mapping table and is recorded as a datum missing conflict. This layer-by-layer tracking strategy based on breadth-first search (BFS) can completely reconstruct the reference chain from the geometric tolerance frame, through the datum symbol, and finally to the measured feature, providing basic data for conflict detection in the subsequent S500 stage A-chain (datum consistency verification).
[0048] Step S240: Model the dimension annotations in the classification annotation set as a directed graph, use the depth-first search algorithm to detect the cycle structure in the directed graph, determine the closure state of the dimension chain based on the deviation between the cumulative weight of the cycle and the closure tolerance, write the reference path and the closure state into the association relationship field of the annotation node, and output the structured representation data.
[0049] like Figure 3As shown, all annotation units of the type "dimension annotation" are screened from the classification annotation set output in step S210. A dimension annotation directed graph is constructed by taking the endpoint positions of the dimension annotations as vertices of the graph, the dimension annotations as directed edges connecting the vertices, and the values of the dimension annotations as edge weights. The specific construction method is as follows: parse the text content of each dimension annotation to obtain its value as the edge weight, take the spatial coordinates of the annotation as the geometric position reference of the edge, and take the two end positions of the annotation as the start and end points of the directed edge. If the text pattern of the annotation is a diameter or radius annotation, the start and end points are the center of the circle and the boundary point of the measured feature, respectively; if it is a linear dimension annotation, the start and end points are the two endpoints of the dimension extension line, respectively.
[0050] Taking the pump cover drawing as an example, an example of the structured representation data finally output in the above step S200 is as follows: Among them, the annotation "DIM_003" is classified as a dimension annotation, and the original text "φ3-counterbore " represents a counterbore machining feature with a diameter of 3 mm. The reference path in its association relationship field is empty (this dimension annotation does not reference a datum symbol), the dimension chain state is open loop (the dimension chain where this annotation is located has 4 open endpoints, and there may be missing dimension annotations), and the coordinate position is (129.65, 177.96). The annotation "DAT_001" is classified as a datum symbol, and the original text "A" represents the datum A on the drawing. The reference path in its association relationship field records the outer cylindrical surface pointing to the measured feature. The above structured representation data will be taken out one by one in the subsequent step S300, encoded through adaptive query construction and fine-tuned embedding model, and then the matching national standard clauses will be retrieved in the standard clause library.
[0051] After the graph construction is completed, the depth-first search (DFS) algorithm is used to traverse each connected component in the graph. The coloring state is maintained for each vertex (white means unvisited, gray means in the current search stack, and black means exploration is completed). Starting from any white vertex, it recursively goes deep, enters the next vertex along the directed edge and marks the current vertex as gray. If a gray vertex (i.e., still in the current search stack) is encountered during the search process, it indicates that a directed cycle, i.e., a dimension chain loop, is found.
[0052] For each detected loop, calculate the cumulative sum of the weights of all edges on the loop, and compare it with the loop's closure label value (if any) to obtain the cumulative difference. If the cumulative difference is within the closure tolerance range (the average of the minimum dimensional tolerances on the drawing), the dimension chain is determined to be a closed loop, self-consistent, and with complete and self-consistent labeling. If the cumulative difference exceeds the closure tolerance range, the dimension chain is determined to be over-constrained and has contradictory labeling values. If, after traversal, there are vertices with zero in-degree or zero out-degree (i.e., isolated endpoints referenced by only one dimension label), the dimension chain is determined to be an open loop and may have missing dimension labels. Write the dimension chain number, loop position, and closure status (closed loop self-consistent / over-constrained / open loop incomplete) of each dimension label into the association field of that label node.
[0053] After completing the dimension chain detection, a unique node identifier (node_id) is assigned to each annotation unit in the annotation unit set, in the format of "type prefix_serial number" (e.g., "DIM_003" represents the third dimension annotation, "GTOL_001" represents the first geometric tolerance annotation, "ROUGH_002" represents the second roughness annotation, "DAT_001" represents the first datum symbol, and "TECH_005" represents the fifth technical requirement). At the same time, the datum reference path generated by S230 is written into the association relationship field of the corresponding annotation node. Finally, the output is a structured representation data containing all annotation nodes, node identifiers carried by each node, node type, original text, parsed values, coordinate positions, classification confidence, and association relationships.
[0054] Taking the pump cover drawing as an example, the structured characterization data finally output by step S200 above is as follows: { "drawing_name": "Pump cover drawing.dxf", "total_annotations": 27, "type_distribution": { Technical Requirements: 11 Roughness: 6, Dimensions: 7 "Reference symbol": 1, "Unknown": 2 }, "topology": { "datum_chains": [], "dimension_chains": 1, "dimension_chain_status": "open", "open_ends": 4 }, "annotations": { "node_id": "DIM_003", "node_type": "Dimension Annotation", "raw_text": "φ3-Counterbore ", "value": "φ3-Counterbore ", "position": { "x": 129.65, "y": 177.96, "w": 25, "h": 8}, "confidence": 0.95, "context": { "datum_refs": [], "dim_chain_id": 1, "dim_chain_status": "open", "related_nodes": ["DIM_001", "DIM_002"] } }, { "node_id": "DAT_001", "node_type": "Datum Symbol", "raw_text": "A", "value": "A", "position": { "x": 68.18, "y": 161.14, "w": 25, "h": 8}, "confidence": 0.50, "context": { "datum_refs": [], "referenced_by": [], "feature_type": "External Cylindrical Surface" } }, { "node_id": "ROUGH_002", "node_type": "roughness", "raw_text": "3.2", "value": "3.2", "position": { "x": 52.86, "y": 135.80, "w": 20, "h": 6}, "confidence": 0.75, "context": { "datum_refs": [], "dim_chain_id": null, "related_nodes": [] } }, { "node_id": "TECH_005", "node_type": "Technical Requirements", "raw_text": "The casting must undergo heat treatment to determine its hardness". "value": "The casting requires heat treatment; hardness", "position": { "x": 67.22, "y": 106.35, "w": 25, "h": 8}, "confidence": 0.85, "context": { "datum_refs": [], "constraints": { "heat_treatment": "heat treatment", "material_type": "casting" } } } ] } Further, step S300 includes: Step S310: Obtain each labeled node in the structured representation data, and adopt a differentiated query text construction strategy according to the type label of the labeled node. Add domain context words or retain the original text as query for each labeled type according to preset rules to obtain enhanced query text.
[0055] Each annotation node is extracted one by one from the annotations array in the structured representation data output in step S240. The node_type field of each annotation node is read to determine its annotation type. Different query text construction rules are adopted for different annotation types. For annotations of geometric tolerance type—the text of this type of annotation is usually GD&T specific terms such as "coaxiality", "circular runout", "perpendicularity", "roundness", "cylindricity" etc. These terms only appear in specific geometric tolerance clauses in national standard documents and have extremely high retrieval distinguishability—the raw text of the annotation is directly used as the retrieval query without adding any type prefix, so as to avoid diluting the accurate retrieval signal by adding general prefixes (such as "geometric tolerance:") to pull the vector to the general clauses of GB / T1184. For dimensioning, the construction rules are further subdivided based on the differences in tolerance expression: If the dimension text contains the symmetrical tolerance symbol "±" (e.g., "25±0.1"), the keyword "symmetrical tolerance limit deviation notation method" is added to precisely match the standard clauses on symmetrical tolerance notation in GB / T4458.5; if the dimension text contains the limit deviation symbol "+ / -" (e.g., "φ35+0.050 / +0.034"), the keyword "limit deviation notation method" is added; if the dimension text is in the format of diameter / radius / chamfer / thread (e.g., "φ25k6", "R3", "C2", "M20"), the contextual prefix "mechanical drawing dimensioning" is added to associate it with the general clauses of dimensioning in GB / T4458.4. For roughness type dimensioning, the contextual term "surface roughness notation symbol roughness parameter" is added to distinguish between the clauses on "notation specifications" and the clauses on "parameter definitions and series values" in GB / T131 (the two are easily confused in keyword matching). For reference symbol type annotations—the text of which is usually a single uppercase letter (such as "A" or "C"), single letters are easily retrieved as irrelevant clauses when lacking context—add the contextual term "mechanical drawing reference symbol annotation" to provide a complete semantic context for retrieval. For technical requirement type annotations, add the contextual term "mechanical drawing technical requirement specification" to associate them with self-made clauses of process specifications (such as the TECH-PROCESS series) and general tolerance clauses in GB / T1804. Through the above-mentioned query text construction strategy differentiated by type, the retrieval accuracy of each type of annotation can be significantly improved by optimizing the query text on the input side without modifying the embedding model weights.
[0056] Step S320: Encode the enhanced query text into a text embedding model finely tuned in the mechanical field to obtain a normalized feature vector.
[0057] After adding the standard instruction prefix of the BGE model to the enhanced query text generated in step S310, it is input into the text embedding model Emb_mech, which has been fine-tuned for the mechanical domain, for vector encoding. This fine-tuned model is based on the general Chinese text embedding model BGE-base-zh-v1.5 (output vector dimension 768). Parameters are efficiently fine-tuned by injecting a low-rank adaptation matrix at the top of the model. The fine-tuning training data is generated from the GB / T mechanical standard clause library through synonym rewriting using a large language model to produce positive pairs (a total of 827 training pairs). A combination of cosine similarity interval filtering and manual verification is used to mine difficult negative samples in the mechanical field that appear similar on the surface but have drastically different technical meanings (such as "coaxiality" and "roundness"—both are GD&T terms and both contain the character "degree," making them easily confused in vector space; however, the former describes the degree of overlap between the axes of two cylindrical surfaces, while the latter describes the roundness of the profile of a single cylindrical cross-section). A training dataset containing positive pairs and difficult negative samples is constructed, and a contrastive loss function with automatic negative sampling within batches is used for model training. This significantly enhances the semantic discrimination ability of the fine-tuned embedding model in mechanical terminology. During encoding, the model maps the enhanced query text to a 768-dimensional floating-point vector and performs L2 normalization on this vector (i.e., dividing each component of the vector by its L2 norm to make the normalized vector have a magnitude of 1), resulting in a normalized feature vector. This normalized feature vector can then be used to directly calculate cosine similarity in subsequent similarity retrieval through vector dot product, simplifying the retrieval process.
[0058] Step S330: Use the feature vector to perform a similarity search in the pre-built standard clause vector index to obtain several standard clauses that match each annotation node, along with their clause identifiers and similarity scores.
[0059] The normalized feature vector obtained in step S320 is used as the query vector, and a nearest neighbor search is performed in the pre-built standard clause vector index. The process of building the standard clause vector index is as follows: all structured national standard clauses (a total of 174 clauses, covering 13 national standard documents such as GB / T1182 General Rules for Geometric Tolerances, GB / T1184 Unspecified Tolerance Values for Shape and Position Tolerances, GB / T131 Symbols and Notation for Surface Roughness, GB / T1804 Unspecified Tolerances for General Tolerances, GB / T4458.4 Dimensioning, GB / T4458.5 Dimensioning and Fit Notation, GB / T4459.7 Representation of Rolling Bearings, GB / T14665 Rules for CAD Drawing in Mechanical Engineering, etc., are extracted from PDF text and segmented by clause number) are entered into the Emb_mech model for encoding and L2 normalization. The feature vectors of each clause are stored in the vector index and a mapping table from vector to clause identifier is established.
[0060] During retrieval, the inner product of the query vector and the feature vectors of each clause in the vector index is calculated one by one (this inner product value, after L2 normalization, is equivalent to cosine similarity, with a value range of [-1, 1], and a larger value indicates a better semantic match). The clauses are sorted from largest to smallest according to their inner product values, and the top few clauses are taken as the retrieval results. Each result includes a clause identifier (clause_id), a clause content summary (content_preview), the name of the standard document to which it belongs (standard), and a similarity score (similarity). Taking the roughness annotation ROUGH_002 in the pump cover diagram as an example, its feature vector after enhanced query text encoding is retrieved in the standard clause vector index. The clause with the highest similarity is "TECH-PROCESS-009" (surface roughness parameter annotation specification), with a similarity score of 0.87; the second and third ranked clauses are related clauses of GB / T131-2006, with similarity scores of 0.82 and 0.76, respectively. For the technical requirement annotation TECH_001 "Height Direction Auxiliary Datum", the top-3 terms returned by the feature vector retrieval after the enhanced query text encoding are GB-T4458.4-2003_1 (Basic Methods of Dimensioning, similarity 0.435), GB-T1182-2018_8_2_4 (Datum Section, similarity 0.409), and GB-T14665-2012_3_5 (Font Specification, similarity 0.399). It can be seen that the retrieval similarity of technical requirement annotations is generally low (approximately 0.4~0.45). This is because the technical requirement text is a natural language description, which inherently has a significant semantic gap with the strict technical expressions of standard terms—this also reflects the necessity of domain-specific fine-tuning of the embedding model.
[0061] Step S340: Encapsulate each labeled node and the corresponding standard clauses into an association review unit. The association review unit includes basic label information, a list of search clauses, and topological context information.
[0062] For each labeled node in the structured representation data, the basic label information (node ID, node type, raw text, position) output in steps S210 to S240, the topological context (datum reference path, dim chain ID, dim chain status, related node list) output in step S230, and the Top-K standard clauses retrieved in step S330 (each clause includes clause ID, content preview, and similarity score) are encapsulated in a unified data structure to generate an association review unit. Each association review unit establishes a one-to-many association mapping relationship between the labeled node and the standard clause, enabling downstream review units to directly obtain the complete standard clause content associated with the labeled node as the basis for review. Simultaneously, the topological context information is used to understand the spatial location of the labeled node in the drawing and its logical relationship with other labeled nodes, providing structured input data for cross-dimensional consistency detection.
[0063] Taking the roughness annotation ROUGH_002 in the pump cover drawing as an example, the associated review unit after encapsulation in step S300 is: { "node_id": "ROUGH_002", "annotation": { "raw_text": "3.2", "node_type": "roughness", "position": { "x": 52.86, "y": 135.80, "w": 20, "h": 6}, "confidence": 0.75 }, "top5_clauses": [ { "clause_id": "TECH-PROCESS-009", "content_preview": "Surface roughness parameter annotations should include the parameter designation (e.g., Ra) and a numerical value, with the unit being micrometers (μm)..." "similarity": 0.87 } ] } The associated review unit will be distributed to the roughness review unit. This unit reads the annotation text "3.2" from the annotation field and the clause "Surface roughness parameter annotations should include parameter codes" from the top5_clauses. It then reviews the annotation according to the four-stage reasoning template: Parse→Compare→Judge→Cite. In the Compare stage, it finds that the annotation text only provides the value 3.2 without specifying the parameter code Ra / Rz. In the Judge stage, it determines that the annotation lacks the necessary parameter type identification, issues a FAIL conclusion, and cites clause TECH-PROCESS-009 as evidence. In the Cite stage, it outputs the cited clause number to complete the evidence anchoring. Step S300 is now complete. After all associated review units are generated according to the number of annotations, they will serve as the unified input for the parallel review of multiple units in step S400.
[0064] Further, step S400 includes: Step S410: Obtain the associated review unit, and route the review task to the corresponding dedicated review unit according to the type label of the node marked in each review unit. The dedicated review unit includes a dimension review unit, a geometric tolerance review unit, a roughness review unit, a datum symbol review unit, and a technical requirement review unit.
[0065] From all the associated review units output in step S340, review units are retrieved one by one. The node_type value of the annotation field is read to determine the type label of the annotation. The review task is routed to the corresponding dedicated review unit according to the type label. The review unit with node_type "dimension annotation" is distributed to the dimension review unit. This unit is responsible for reviewing the format standardization of annotations such as linear dimensions, diameter (φ / Ø), radius (R), chamfer (C), thread (M), keyway (e.g., "8×7×40") and angle (e.g., "60°") (e.g., whether the diameter symbol φ is missing, whether the dimension number is crossed by the drawing line, whether the terminal form of the dimension line is consistent), the reasonableness of the tolerance value (e.g., the matching of the IT standard tolerance grade with the code k6 with the basic dimension, whether the decimal places of the upper and lower deviations in the symmetrical tolerance ± annotation are aligned), and the closure of the dimension chain (whether the cumulative error of the dimension chain link is over-constrained or open-loop).
[0066] Distribute the review unit with node_type "Geometric Tolerance" to the Geometric Tolerance Review Unit. This unit is responsible for reviewing the completeness of the tolerance frames filled in the GD&T annotations for coaxiality, circular runout, total runout, perpendicularity, parallelism, angularity, position, symmetry, roundness, cylindricity, straightness, flatness, line profile, and surface profile, etc. (whether the frame contains the three necessary parts: tolerance type symbol frame, tolerance value frame, and datum frame), the legality of datum references (whether the referenced datum letters are clearly defined in the drawing and whether the direction of the datum symbol correctly points to the measured feature), and the rationality of the tolerance item selection (e.g., for cylindrical surface features, roundness / cylindricity should be preferred over flatness, and the independence principle symbol should be used). Symbols related to inclusion requirements (Whether the use conforms to the design intent).
[0067] The review unit with node_type "roughness" is assigned to the roughness review unit. This unit is responsible for reviewing whether the surface roughness parameter values belong to the standard series values (Ra0.8 / 1.6 / 3.2 / 6.3 / 12.5 / 25, etc.), whether the parameter code (Ra / Rz) is clearly marked (avoiding only marking the raw value such as "3.2" without specifying whether it is Ra or Rz, causing ambiguity in processing), and whether the symbol drawing is standardized (whether the direction of removing the material symbol and not removing the material symbol is correct). The review unit with node_type "datum symbol" is assigned to the datum symbol review unit. This unit is responsible for reviewing the standardization of the datum letters (whether the letters I, O, Q that are confused with the numbers "1" and "0" are avoided, and whether non-standard letters such as X / Y / Z that are not defined in the standard are used), and whether the connection between the symbol triangle and the measured element is clear and unambiguous.
[0068] The review unit with node_type "Technical Requirements" is distributed to the Technical Requirements Review Unit. This unit is responsible for reviewing the description of heat treatment processes (e.g., the applicability of the hardness range in "Temperature Treatment 220-250HB" to the corresponding materials), surface treatment requirements (e.g., whether the coating thickness is specified in "Zinc Plating"), unspecified tolerance declarations (e.g., whether the standard version referenced in "Unspecified Fillet Radius R3" is the current valid version), hardness value format standardization (e.g., the format of hardness symbol suffix values such as HB / HB / HRC / HV), machining process descriptions (e.g., whether "Carburizing and Quenching" includes carburizing depth requirements), and assembly inspection instructions (e.g., the completeness and feasibility of cleanliness / anti-loosening / sealing clauses in assembly requirements). The review units operate independently and in parallel—five types of review tasks—dimensional annotation, geometric tolerances, surface roughness, datum symbols, and technical requirements—are performed simultaneously without waiting for each other, significantly improving the review efficiency of complex drawings containing over a hundred annotation elements.
[0069] Step S420: Each dedicated review unit independently reviews the annotations using a large language model, following the four-stage reasoning template of parsing the annotation semantics, comparing the indexed clauses, determining compliance conclusions, and citing standard clauses. The preliminary review results include the review conclusions, confidence levels, reasoning processes, and the cited standard clause numbers.
[0070] After receiving the associated review unit routed to it, each dedicated review unit reviews the annotations using a large language model according to a unified four-stage inference template.
[0071] The first stage – Parsing the annotation semantics: The model reads the original text, node type, and coordinate position of the annotations in the associated review unit, and parses the engineering semantic structure of the annotations from the original text. For example, for dimension annotations, it parses the annotation type, basic dimension value, tolerance expression method, and tolerance value; for geometric tolerance annotations, it parses the tolerance type, tolerance value, and referenced datum letter; for roughness annotations, it parses the parameter code and parameter value; for datum symbol annotations, it parses the datum letter; and for technical requirement annotations, it parses the technical field involved and the quantitative constraint values contained therein.
[0072] The second stage – Compare the indexing clauses: The model compares the semantic annotations parsed in the first stage with the standard clauses retrieved from the associated review unit, checking whether the annotation format conforms to the format specifications stipulated in the clauses, whether the numerical values are within the recommended range stipulated in the clauses, whether the benchmark references conform to the reference rules stipulated in the clauses, and whether the numerical constraints in the technical requirements are consistent.
[0073] The third stage – Judging the compliance conclusion: The model integrates the analysis and comparison results from the first two stages and gives a compliance judgment and a quantitative confidence score for the label. If all aspects of the label meet the requirements of the standard clauses, it is judged as PASS (compliant). If there is a clear violation of the standard clauses, it is judged as FAIL (non-compliant). If there is a potential problem but it is not enough to be judged as a clear violation, it is judged as WARN (warning). The confidence score reflects the model's degree of confidence in the judgment conclusion, ranging from 0 to 1.
[0074] Phase 4 – Citation Criteria (Cite): The model outputs the specific citation clause number used as the basis for this review, along with specific suggested modifications to that citation.
[0075] When each dedicated review unit calls the large language model API, a low temperature parameter is used to ensure the consistency and reproducibility of the output conclusions. At the same time, the input context of each review unit is controlled within a reasonable length to avoid long-term forgetting of attention due to excessively long input text.
[0076] Step S430: Perform format parsing and error tolerance processing on the preliminary review results. If parsing fails, perform downgrade processing, mark the review conclusion as a warning and add manual review suggestions to obtain standardized review results.
[0077] like Figure 4 As shown, the actual output of the large language model may exhibit format deviations due to the model's own characteristics—for example, appending explanatory text before or after the returned JSON structure, or wrapping the JSON within Markdown code block tags. To address such deviations, this step implements a three-level fault-tolerant parsing strategy: Level 1: Directly parse the raw text returned by the model into JSON; if parsing is successful, extract the standardized review result; Level 2: If Level 1 parsing fails, search for and extract the first legally closed JSON object structure from the returned text using regular expressions for secondary parsing; Level 3: If Level 2 parsing still fails, automatically downgrade the review conclusion of the annotation to WARN, set the confidence level to a lower value, and mark "Large language model parsing failed, downgraded processing" during the inference process, and add a "Manual review recommended" prompt to the modification suggestions. Through the above three-level fault-tolerant strategy, it is ensured that even occasional API call anomalies will not interrupt the review process. Each annotation ultimately obtains a standardized review result containing uniform fields and standard format, which is then aggregated as input data for step S500 cross-dimensional conflict detection and progressive resolution.
[0078] After the fault-tolerance processing in step S430, the standardized review results are output: { "node_id": "ROUGH_002", "node_type": "roughness", "raw_text": "3.2", "position": { "x": 52.86, "y": 135.80, "w": 20, "h": 6}, "unit_type": "roughness inspection unit", "verdict": "FAIL", "confidence": 0.95, "reasoning": "The annotation is '3.2', but the roughness parameter type (such as Ra or Rz) is not specified. According to TECH-PROCESS-009, surface roughness parameter annotations should include the parameter code and value. The current annotation is missing the parameter code, making it impossible to determine whether it is Ra or Rz, which does not meet the specification requirements." "cited_clause": "TECH-PROCESS-009", "Suggestions": "It is recommended to change the label to 'Ra 3.2' or 'Rz 3.2', clearly specify the parameter type, and ensure that the numerical unit is micrometers (μm)." } Further, step S500 includes: Step S510: Summarize the standardized review results of all review units, aggregate the review conclusions according to the cited standard clauses to detect contradictions and conflicts within the same clause, and detect specification conflicts such as missing references, contradictory annotation values, and violations of tolerance-related constraints through cross-labeling type correlation comparison, and obtain a conflict list.
[0079] like Figure 5 As shown, all 27 standardized review results output in step S430 are summarized and five complementary cross-dimensional conflict detection chains are executed.
[0080] Article 1 - Detection of Conflicts in the Same Clause (Intra Chain): Aggregate and group all review results according to the standard clause identifier (cited_clause field) cited in the review conclusions of each annotation, and detect situations where the same standard clause yields conflicting review conclusions on different annotations.
[0081] Article 2 - Datum Consistency Detection (A-Chain): Construct an index mapping (datum_index) from datum letters to annotation identifiers, traverse the review results of all geometric tolerance type annotations and extract the datum letters referenced in their original annotation text, and check whether each datum letter exists in the index mapping - if it does not exist, it is marked as a datum missing conflict (severity level: ERROR), and if the same datum is referenced repeatedly, it is marked as a duplicate datum conflict.
[0082] Article 3 - Numerical Conflict Detection (B-Chain): Extract numerical constraint information from the original text of the technical requirement type annotation using regular expressions, and compare the extracted constraint values with the corresponding type of dimension annotation values on the drawing. If the annotation value is less than the value specified in the technical requirements, it is marked as a numerical conflict.
[0083] Article 4 - Tolerance Correlation Violation Detection (C-Chain): Tolerance zone analysis is performed on dimension annotations, tolerance values are extracted from geometric tolerance annotations, and correlation determination is made according to the Envelope Requirement principle - if the shape tolerance value exceeds half of the relevant dimension tolerance zone or the position tolerance value exceeds the relevant dimension tolerance zone, it is marked as a tolerance correlation conflict.
[0084] Article 5 - Consistency Detection of Similar Annotation Conclusions (D-Chain): All review results are grouped and aggregated according to annotation type and text mode to check whether different annotations of the same type and mode lead to contradictory review conclusions.
[0085] Step S520: For each conflict in the conflict list, perform confidence-based resolution and evidence chain back-check resolution in sequence. Conflicts that cannot be resolved by the first two layers are marked as requiring manual review, and resolution results are generated.
[0086] like Figure 6 As shown, for each conflict in the conflict list generated in step S510, a three-level progressive resolution is performed.
[0087] The first layer—confidence-based resolution (L1): Extract the confidence (confidence field) of multiple review conclusions involved in the conflict, calculate the difference Δ between the maximum and minimum confidence values. If Δ exceeds the preset threshold (Δconfidence>0.15), it indicates that the degree of certainty between the review conclusions is significantly different, and the judgment of the party with the higher confidence has a sufficient reliability advantage. The review conclusion with the highest confidence is directly adopted as the final resolution judgment, and the conflict is marked as resolved (RESOLVED).
[0088] The second layer—Evidence Chain Retrospective Resolution (L2): When the first layer fails to resolve the conflict (the confidence differences between the review conclusions are small, Δ≤0.15), the process backtracks to the fine-tuned embedding model Emb_mech in step S300—independently vectorizing the annotated text involved in the conflict, and re-searching the Top-K clauses in the standard clause vector index; if the cosine similarity of the first clause (Top-1) in the re-search results exceeds the similarity of the second clause (Top-2) by more than a preset threshold (Δsim>0.1), it indicates that the semantic matching between the annotated text and the Top-1 clause has a significant advantage, the evidence chain is solid, and the review conclusion corresponding to the clause is adopted as the resolution judgment, marking the conflict as resolved. The L2 layer reuses the fine-tuned embedding model in step S300 to form a closed-loop design of "retrieval → review → resolution"—the evidence retrospective in the resolution stage uses the same domain semantic space (Emb_mech model) as the retrieval stage, ensuring the consistency between the resolution judgment and the retrieval results.
[0089] The third layer – upgraded manual review (L3): When neither the first nor the second layer can resolve the conflict (the confidence levels of the conflicting parties are similar and the evidentiary advantage of the L2 re-retrieval is not obvious), automated means can no longer provide a reliable automatic resolution decision. The conflict is marked as requiring manual review (ESCALATED), and conflict details (conflict type, list of involved annotations, review and reasoning process of each party, summary of re-retrieval results, etc.) are presented to the reviewers along with the review report for manual judgment.
[0090] For example, in the pump cover diagram, the conflict CONF-INTRA-002 (TECH-PROCESS-009 clause arrives at contradictory conclusions {WARN, FAIL} on six roughness annotations) cannot be resolved by L1 if the confidence difference between the annotations is 0.10 ≤ 0.15. After L2 evidence chain review, the similarity of the first clause leading the second clause by only 0.08 ≤ 0.1 indicates no significant evidentiary advantage. Ultimately, L3 escalation is triggered, marking the conflict as ESCALATED, attaching the original text of all six roughness annotations, the review conclusion, the reasoning process, and the re-search results. Manual review is recommended to determine the applicability of TECH-PROCESS-009 clause to raw numerical roughness annotations. Pump cover Figure 5 The conflict resolution results are as follows: L1 resolved 1 (20%), L2 resolved 0 (0%), and L3 upgraded 4 (80%). All conflict resolution results are summarized hierarchically to generate resolution result data.
[0091] Step S530: Generate a structured review report based on the standardization review results and the resolution results.
[0092] The standardized review results from step S430 are merged with the resolution results from step S520 to generate a structured review report. This report includes summary statistics (total number of annotations, PASS / WARN / FAIL category counts, compliance rate, number of conflict detections and resolutions, and conflict distribution by resolution level), detailed review results (review conclusion, confidence level, reasoning process, cited clauses, and modification suggestions for each annotation), conflict details (type of each conflict, involved annotations, resolution level, reason for resolution, and final status), and resolution pipeline data. Taking the pump cover diagram as an example, the final review report summary is: out of 27 annotations, 4 are PASS, 11 are WARN, and 12 are FAIL. A total of 5 cross-dimensional conflicts were detected. After three-level progressive resolution, 1 conflict was automatically resolved at L1, and 4 required manual review. An interactive visual review report is also generated, with color-coded review markers superimposed on the drawing rendering base (green = PASS, orange = WARN, red = FAIL, red dashed outer ring = associated conflict exists). Viewing can be filtered by review conclusion type and conflict status.
[0093] Taking the pump cover drawing as an example, the final output of the structured review report in step S500 is as follows: { "drawing_name": "Pump cover drawing.dxf", "pipeline": "S1->S2->S3 (LLM Review + Arbitration + Resolution)", "summary": { "total_annotations": 27, "pass_count": 4, "fail_count": 12, "warn_count": 11, "conflicts_detected": 5, "conflicts_resolved": 1, "conflicts_escalated": 4, "resolution_by_layer": { "L1": 1, "L2": 0, "L3": 4} } } Reference Figure 7 Another aspect of the present invention relates to a mechanical drawing annotation review system based on large model and retrieval enhancement, for performing the above-mentioned mechanical drawing annotation review method based on large model and retrieval enhancement, including a feature extraction module 10, a retrieval enhancement module 20 and a multi-unit review and resolution module 30; The feature extraction module 10 is used to parse the mechanical engineering drawings to be reviewed, extract the annotation character entities and obtain the annotation text set after noise filtering, use spatial clustering algorithm to merge the scattered annotation text sub-elements belonging to the same annotation into complete annotation units, classify the annotation units by type, and perform spatial topology relationship analysis on the classified annotation units to establish the reference relationship and dimension chain relationship between annotation units, and output structured representation data carrying node type, spatial position and relationship; The retrieval enhancement module 20 is used to construct differentiated query text for each labeled node in the structured representation data according to the type label of the labeled node, input the text embedding model fine-tuned by mechanical domain contrastive learning for vectorization representation, retrieve several standard clauses that match each labeled node in the pre-built standard clause vector index, and encapsulate the labeled node and the retrieved standard clauses into an associated review unit. The multi-unit review and resolution module 30 is used to distribute the associated review units to multiple corresponding dedicated review units according to the type labels of the labeled nodes. Each review unit uses a large language model to independently review the labels according to the four-stage inference template and outputs standardized review results. After summarizing all review results, cross-dimensional conflict detection is performed to identify cross-label and cross-type specification conflicts. The detected conflicts are automatically resolved through a three-layer progressive resolution strategy to generate a structured review report.
[0094] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0095] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0096] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A mechanical drawing annotation review method based on large model and retrieval enhancement, characterized in that, Includes the following steps: S100: Input the mechanical engineering drawings to be reviewed and parse them. Extract the annotation character entities in the drawings and obtain the annotation text set after noise filtering. Use spatial clustering algorithm to merge the scattered annotation text sub-elements belonging to the same annotation into a complete annotation unit. S200: Classify the complete annotation units by type, and perform spatial topological relationship analysis on the classified annotation units to establish the association between annotation units, and output structured representation data carrying node type, spatial location and association relationship; S300: Obtain each labeled node in the structured representation data, input it into a text embedding model finely tuned by the mechanical field for vectorization representation, retrieve several standard clauses that match each labeled node in the pre-built standard clause library, and encapsulate the labeled node and the retrieved standard clauses into an associated review unit. S400: The associated review unit is distributed to multiple corresponding dedicated review units according to the type label of the labeled node. Each review unit independently reviews the label using a large language model and outputs a standardized review result containing the review conclusion and confidence level. S500: Summarizes the review results of all review units, performs cross-dimensional conflict detection, identifies normative conflicts between different annotations or different review conclusions, performs progressive resolution on the detected conflicts, and generates a structured review report.
2. The mechanical drawing annotation review method based on large model and retrieval enhancement according to claim 1, characterized in that: Step S100 includes: S110. Obtain the mechanical engineering drawing file to be reviewed, parse the annotation character entities in the drawing file, extract the text content and spatial coordinate information of each entity, and obtain the original annotation entity set. S120. Perform noise filtering on the original set of labeled entities to remove title bar text, pure punctuation marks and geometric tolerance fragments to obtain a set of candidate labeled entities. S130. Calculate the spatial distance between any two entities in the candidate labeled entity set, and classify entities whose spatial distance is less than the adaptive neighborhood radius into the same cluster to obtain the clustering assignment result. S140. For labeled entities within the same cluster, the text content is concatenated according to their spatial location and merged into a complete labeled unit to obtain a set of labeled units.
3. The mechanical drawing annotation review method based on large model and retrieval enhancement according to claim 1, characterized in that: Step S200 includes: S210. Obtain the complete annotation unit, and divide each annotation unit into at least one type among dimension annotation, geometric tolerance, roughness, datum symbol and technical requirement by regular pattern matching and priority sorting to obtain a classified annotation set; S220. Construct an index mapping from baseline letters to label identifiers for the baseline symbol type labels in the classification label set to obtain a baseline index table; S230. Traverse the geometric tolerance type labels in the classification label set, extract the reference letters they reference, use the breadth-first search algorithm to track the corresponding definition position of each reference letter in the reference index table, and establish the reference path from the label to the reference symbol. S240. Model the dimension annotations in the classification annotation set as a directed graph, use the depth-first search algorithm to detect the cycle structure in the directed graph, determine the closure state of the dimension chain based on the deviation between the cumulative weight of the cycle and the closure tolerance, write the reference path and the closure state into the association relationship field of the annotation node, and output the structured representation data.
4. The mechanical drawing annotation review method based on large model and retrieval enhancement according to claim 1, characterized in that: Step S300 includes: S310. Obtain each labeled node in the structured representation data, and adopt a differentiated query text construction strategy according to the type label of the labeled node. Add domain context words or retain the original text as query for each labeled type according to preset rules to obtain enhanced query text. S320. The enhanced query text is input into a text embedding model finely tuned in the mechanical field and encoded to obtain a normalized feature vector. S330. Using the feature vector, perform cosine similarity retrieval in the pre-built standard clause FAISS vector index to obtain several standard clauses with the highest similarity to each labeled node, along with their clause identifiers and similarity scores. S340. Each labeled node and the corresponding standard clauses are encapsulated into an association review unit, which includes basic label information, a list of search clauses, and topological context information.
5. The mechanical drawing annotation review method based on large model and retrieval enhancement according to claim 4, characterized in that: The text embedding model fine-tuned in step S320, which is based on mechanical domain principles, undergoes a fine-tuning training process that includes: S321. Based on the general Chinese text embedding model, positive pairs are generated from the mechanical standard clause library through synonym rewriting. Difficult negative samples that are similar on the surface but different in meaning are mined by combining similarity screening and manual review. A training dataset containing positive pairs and difficult negative samples is constructed. S322. Using a contrastive loss function with automatic negative sampling within batches, the weight matrices of the query layer, key layer, value layer, and feedforward layer of the base model are efficiently fine-tuned using a low-rank adaptation method to obtain a text embedding model fine-tuned in the mechanical domain.
6. The mechanical drawing annotation review method based on large model and retrieval enhancement according to claim 1, characterized in that: Step S400 includes: S410. Obtain the associated review unit, and route the review task to the corresponding dedicated review unit according to the type label of the marked node in each review unit. The dedicated review unit includes a size review unit, a geometric tolerance review unit, a roughness review unit, a datum symbol review unit, and a technical requirement review unit. S420. Each dedicated review unit independently reviews the annotations using a large language model, following a four-stage reasoning template: parsing the semantics of the annotations, comparing the indexed clauses, determining compliance conclusions, and citing the standard clauses. The output includes preliminary review results containing the review conclusions, confidence levels, reasoning processes, and the cited standard clause numbers. S430. Perform format parsing and error tolerance processing on the preliminary review results. If the parsing fails, perform downgrade processing, mark the review conclusion as a warning and add a manual review suggestion to obtain a standardized review result.
7. The mechanical drawing annotation review method based on large model and retrieval enhancement according to claim 1, characterized in that: Step S500 includes: S510. Summarize the standardized review results of all review units, aggregate the review conclusions according to the cited standard clauses to detect contradictions and conflicts of the same clauses, and detect specification conflicts such as missing references, contradictory annotation values and violation of tolerance correlation constraints through cross-labeling comparison, and obtain a conflict list. S520. For each conflict in the conflict list, perform confidence-based resolution and evidence chain back-check resolution in sequence. Mark the conflicts that cannot be resolved by the first two layers as requiring manual review and generate resolution results. S530. Based on the standardization review results and the resolution results, generate a structured review report.
8. The mechanical drawing annotation review method based on large model and retrieval enhancement according to claim 7, characterized in that: Step S510 involves detecting specification conflicts such as missing references to benchmarks, contradictory annotation values, and violations of tolerance association constraints through cross-annotation type correlation comparison, including: S511. Construct an index mapping from datum letters to annotation identifiers, traverse all geometric tolerance type annotations to extract the referenced datum letters, and mark datum letters that do not exist in the index mapping as datum missing conflicts. S512. Extract numerical constraints from the text of the technical requirement type annotation, compare the numerical constraints with the corresponding type of annotation values on the drawing, and mark the annotations with inconsistent values as annotation value conflicts. S513. Analyze the tolerance zone values of the dimension annotation and the tolerance values of the geometric tolerance annotation, and mark the shape tolerance values that exceed half of the corresponding dimension tolerance zone and the position tolerance values that exceed the corresponding dimension tolerance zone as tolerance association constraint violations.
9. The mechanical drawing annotation review method based on large model and retrieval enhancement according to claim 7, characterized in that: Step S530 involves sequentially performing confidence-based resolution and evidence chain lookup resolution on each conflict in the conflict list, including: S531. Extract the confidence levels of multiple review conclusions involved in the conflict. When the difference between the maximum and minimum confidence levels exceeds a preset threshold, adopt the review conclusion with the highest confidence level as the resolution judgment and mark the conflict as resolved. S532. When the confidence difference does not exceed the preset threshold, the text embedding model finely tuned by the mechanical field is used to perform independent vector encoding and clause re-retrieval on the labeled text involved in the conflict. If the similarity of the first clause in the re-retrieval exceeds the similarity of the second clause by more than the preset leading threshold, the corresponding review conclusion is adopted as the resolution judgment, and the conflict is marked as resolved. S533. When the similarity of the first clause in the re-search does not exceed the preset leading threshold, the conflict is marked as requiring manual review.
10. A mechanical drawing annotation review system based on large model and retrieval enhancement, used to execute the mechanical drawing annotation review method based on large model and retrieval enhancement as described in any one of claims 1 to 9, characterized in that, include: The feature extraction module (10) is used to parse the mechanical engineering drawings to be reviewed, extract the annotation character entities and obtain the annotation text set after noise filtering, use the spatial clustering algorithm to merge the scattered sub-elements into complete annotation units, perform type classification and spatial topology analysis on the annotation units, and output structured representation data carrying node type, spatial location and association relationship; The retrieval enhancement module (20) is used to vectorize each labeled node in the structured representation data by inputting a text embedding model finely tuned by the mechanical domain, and to retrieve matching clauses in the pre-built standard clause library and encapsulate them into an associated review unit. The multi-unit review and resolution module (30) is used to distribute the associated review units to multiple dedicated review units according to the annotation type and conduct independent reviews using a large language model. After summarizing the review results, cross-dimensional conflict detection is performed, and the detected conflicts are automatically resolved through a progressive resolution strategy to generate a structured review report.
