Machine learning-based component primitive recognition method
By using the component element identification method based on machine learning and using the SVM algorithm to analyze the element feature values, the problem of seamless connection between the three-dimensional design and cost of power transmission and transformation projects is solved, the identification accuracy and work efficiency are improved, and the existing technology is solved. The problem of low recognition accuracy.
Patent Information
- Application Number
- CN202410666187.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-10-01
AI Technical Summary
It is difficult to apply the existing technology to seamlessly connect the three-dimensional design and cost of power transmission and transformation projects, and the identification accuracy of design drawings is low, resulting in heavy workload and poor identification accuracy for technical and economic personnel.
The component primitive identification method based on machine learning is adopted. By analyzing the characteristic values of the primitives, the SVM algorithm is used to train the model, divide the diagram groups, calculate the characteristic variables and input them into the trained model, and output the matching results to improve the recognition accuracy.
It improves the accuracy and usability of drawing recognition, reduces the workload of building three-dimensional measurement software models, and improves the accuracy of design measurement and the work efficiency of technical and economic personnel.
Smart Images

Figure CN118734384A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of engineering cost, and specifically to a method for identifying component graphics based on machine learning. Background Art
[0002] In recent years, power transmission and transformation engineering design has been vigorously promoting three-dimensional design. However, at this stage, it is limited by the depth of design specifications and the difficulty in unifying data dimensions. It is difficult to achieve seamless connection between three-dimensional design and cost of power transmission and transformation engineering in actual application. For components that are not required to be modeled in the three-dimensional design modeling specifications, technical and economic personnel mainly use manual calculations and design cost-raising methods to calculate the project quantity, and the technical and economic personnel carry out the list quota. The present invention is based on the electrical inventory, extracts all the attribute fields required by technical and economic personnel from the electrical inventory, efficiently completes the work, improves the standardization and accuracy of the project cost, further changes and optimizes the cost management method of power engineering, reduces the model construction workload of three-dimensional quantity calculation software, improves the accuracy of design quantity raising and improves the work efficiency of technical and economic personnel, and improves the quality and efficiency of power grid engineering management.
[0003] At present, the mainstream method is for technical personnel to manually model using two-dimensional drawings, build three-dimensional models and input relevant calculation quantities and cost attributes, and then manually confirm the list and quota. The existing technology has the defects of low accuracy in design drawing recognition and high requirements for design drawing accuracy. Summary of the invention
[0004] 1. Technical issues to be resolved
[0005] In view of the shortcomings of the prior art, the present invention provides a component primitive recognition method based on machine learning. The present invention analyzes the common and unique feature values of different components, and based on these features, trains these component feature values through machine learning algorithms to locate and recognize specific types of components. After recognition, the recognition accuracy and usability are improved. The problem of heavy workload for technical and economic personnel is solved, and the problem of low recognition accuracy is solved.
[0006] (II) Technical solution
[0007] To achieve the above objectives, the present invention is implemented by the following technical solutions: A component primitive recognition method based on machine learning comprises the following steps:
[0008] S1. Divide all the elements in the drawing into multiple groups according to the same layer and color;
[0009] S2. Calculate multiple eigenvalue variables of the graph group;
[0010] S3. Input the feature value variables into the model trained by machine learning;
[0011] S4. Matching by model output.
[0012] Preferably, the characteristic variables of the plurality of characteristic value variables of the calculation graph group in S2 are: number of graph elements, length, angle, and connection relationship.
[0013] Preferably, the step S3. of inputting the characteristic value variables into the model trained by machine learning to establish the learning training model comprises the following steps:
[0014] a. Use DWG drawings as training samples;
[0015] b. Input the eigenvalues between primitives;
[0016] c. Learning through SVM algorithm training;
[0017] d. Output the trained model.
[0018] Preferably, the S4. matching by model output comprises the following steps:
[0019] Ⅰ. Prepare materials and components to be identified;
[0020] I I. Import the trained model;
[0021] II I. Input the characteristic values of the components to be identified into the model;
[0022] IV. Output build type.
[0023] Preferably, the S4. identification method of constructing a large column sample by matching the model output is: Figure 3 As shown, analysis of the column specimen is performed.
[0024] Preferably, the characteristics of the column template component include: column number, cross-sectional form, cross-sectional size, elevation value, longitudinal reinforcement layout position information, longitudinal reinforcement information, stirrup layout position information, and stirrup reinforcement information.
[0025] Preferably, the S4. identification method of identifying large column samples by matching the model output is: using SVM algorithm to input the characteristic values of the column sample components for training and learning on a large number of drawings containing tabular column samples.
[0026] Preferably, the S4. identification method of constructing a large column sample by matching the model output is: after the SVM outputs the model file, the above-mentioned characteristic value of the component to be identified is calculated, inputted into the model, and the identification result is outputted.
[0027] (III) Beneficial effects
[0028] The present invention provides a component primitive recognition method based on machine learning, which has the following beneficial effects:
[0029] Different components in DWG drawings have common and special feature values (color, line type, length, angle, number of arcs, line segment direction, layer name, intersection point, etc.). By using machine learning algorithms to train these component feature values, specific types of components can be located and identified. After identification, the accuracy and usability of identification are improved. Through machine learning, the accuracy of identification of various drawings is improved, and the usability of identification rules is indirectly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A model output matching flow chart of the component primitive recognition method based on machine learning proposed in the present invention;
[0031] Figure 2 Establish a flow chart for the learning and training model of the component primitive recognition method based on machine learning proposed in the present invention;
[0032] Figure 3 This is a characteristic analysis diagram of the column sample component of the component element recognition method based on machine learning proposed in the present invention. DETAILED DESCRIPTION
[0033] The following will combine multiple embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0034] Embodiment 1:
[0035] The embodiment of the present invention provides a component graphic element recognition method based on machine learning, comprising the following steps: S1. dividing all graphic elements in a drawing into multiple graphic groups according to the same layer and color;
[0036] S2. Calculate multiple eigenvalue variables of the graph group;
[0037] S3. Input the feature value variables into the model trained by machine learning;
[0038] S4. Matching by model output.
[0039] The characteristic variables for calculating multiple eigenvalue variables of the graph group are: number of graph elements, length, angle, and connection relationship.
[0040] The establishment of a learning training model for inputting feature value variables into a machine learning trained model includes the following steps:
[0041] a. Use DWG drawings as training samples;
[0042] b. Input the eigenvalues between primitives;
[0043] c. Learning through SVM algorithm training;
[0044] d. Output the trained model.
[0045] Among them, different components in DWG drawings have common and special feature values (color, line type, length, angle, number of arcs, line segment direction, layer name, intersection point). By using machine learning algorithms to train these component feature values, specific types of components can be located and identified. The following is a table of some feature values of specific components:
[0046]
[0047]
[0048]
[0049] The machine learning algorithm can use SVM (support vector machine), the process is as follows Figure 1 , Figure 2 shown.
[0050] Embodiment 2:
[0051] The embodiment of the present invention provides a component primitive recognition method based on machine learning, comprising the following steps:
[0052] S1. Divide all the elements in the drawing into multiple groups according to the same layer and color;
[0053] S2. Calculate multiple eigenvalue variables of the graph group;
[0054] S3. Input the feature value variables into the model trained by machine learning;
[0055] S4. Matching by model output.
[0056] The characteristic variables for calculating multiple eigenvalue variables of the graph group are: number of graph elements, length, angle, and connection relationship.
[0057] The establishment of a learning training model for inputting feature value variables into a machine learning trained model includes the following steps:
[0058] a. Use DWG drawings as training samples;
[0059] b. Input the eigenvalues between primitives;
[0060] c. Learning through SVM algorithm training;
[0061] d. Output the trained model.
[0062] The characteristic value variables of the graphic elements are as follows:
[0063]
[0064]
[0065]
[0066] Embodiment three:
[0067] The embodiment of the present invention provides a component primitive recognition method based on machine learning, comprising the following steps:
[0068] S1. Divide all the elements in the drawing into multiple groups according to the same layer and color;
[0069] S2. Calculate multiple eigenvalue variables of the graph group;
[0070] S3. Input the feature value variables into the model trained by machine learning;
[0071] S4. Matching by model output.
[0072] The characteristic variables for calculating multiple eigenvalue variables of the graph group are: number of graph elements, length, angle, and connection relationship.
[0073] The establishment of a learning training model for inputting feature value variables into a machine learning trained model includes the following steps:
[0074] a. Use DWG drawings as training samples;
[0075] b. Input the eigenvalues between primitives;
[0076] c. Learning through SVM algorithm training;
[0077] d. Output the trained model.
[0078] like Figure 3 As shown in the figure, the column sample component recognition method for machine learning is:
[0079] Step 1: Analyze the table column template components, including the following design element features: the whole is a table, with column number, cross-section form (rectangular, circular), cross-section size (rectangular length and width, circular diameter), elevation value, longitudinal reinforcement position information, longitudinal reinforcement information, stirrup reinforcement position information, stirrup reinforcement information;
[0080] Step 2: Use the SVM algorithm to input the feature values in the first step for training and learning on a large number of drawings containing table column templates;
[0081] Step 3: After SVM outputs the model file, the above-mentioned characteristic values of the component to be identified are calculated, input into the model, and the identification result is output.
[0082] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A component element recognition method based on machine learning, characterized in that: The following steps are involved: S1. Divide all the elements in the drawing into multiple groups according to the same layer and color; S2. Calculate multiple eigenvalue variables of the graph group; S3. Input the feature value variables into the model trained by machine learning; S4. Matching by model output.
2. The component primitive recognition method based on machine learning according to claim 1, characterized in that: The characteristic variables of the plurality of characteristic value variables of the graph group calculated in S2 are: number of graph elements, length, angle, and connection relationship.
3. The component primitive recognition method based on machine learning according to claim 1, characterized in that: The step S3. of inputting the feature value variables into the machine learning trained model comprises the following steps: a. Use DWG drawings as training samples; b. Input the eigenvalues between primitives; c. Learning through SVM algorithm training; d. Output the trained model.
4. The component primitive recognition method based on machine learning according to claim 1, characterized in that: The S4. model output matching comprises the following steps: Ⅰ. Prepare materials and components to be identified; II. Import the trained model; III. Input the characteristic value of the component to be identified into the model; IV. Output build type.
5. The component primitive recognition method based on machine learning according to claim 1, characterized in that: The S4. identification method of the large column sample by matching the model output is as follows: analyzing the large column sample component as shown in FIG3 .
6. The component primitive recognition method based on machine learning according to claim 5 is characterized in that: The characteristics of the column template component include: column number, cross-sectional form, cross-sectional size, elevation value, longitudinal reinforcement layout position information, longitudinal reinforcement steel bar information, stirrup layout position information, and stirrup steel bar information.
7. The component primitive recognition method based on machine learning according to claim 1, characterized in that: The S4. identification method of large column samples by matching the model output is: using the SVM algorithm to input the characteristic values of the column sample components for training and learning on a large number of drawings containing tabular column samples.
8. The component primitive recognition method based on machine learning according to claim 1, characterized in that: The S4. identification method of the large column sample is to match the model output and construct the identification method as follows: after the SVM outputs the model file, the above-mentioned characteristic values of the component to be identified are calculated, input into the model, and the identification result is output.
Citation Information
Cited By
Method and device for identifying component basis, storage medium and electronic device
CN121884381A
