Intelligent Ruler Drawing Error Recognition System
By using geometric error analysis, real-time geometric adjustment, geometric feature enhancement and error correction evaluation modules in the intelligent ruler and compass drawing error identification system, combined with real-time learning of generative adversarial networks, the lack of real-time data processing capabilities and the need for new technologies in the existing technology are solved. To solve the problem of poor error type adaptability, it achieves high-accuracy and efficient geometric error identification and correction, improving the performance and reliability of the drawing system.
Patent Information
- Application Number
- CN202411052658.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-08-02
AI Technical Summary
Existing intelligent ruler and compass drawing error identification systems lack real-time data processing and advanced image processing capabilities under complex and rapidly changing design requirements, resulting in processing delays and insufficient accuracy, especially in application scenarios that require a high degree of image refinement. , and is not adaptable to new error types, limiting its effectiveness in new environments or unknown error scenarios.
Using the geometric error analysis module, real-time geometric adjustment module, geometric feature enhancement module and error correction evaluation module, through real-time learning and dynamic parameter optimization based on the generative adversarial network, instant response and high-accuracy identification of drawing data are achieved, combined with error distribution Statistical and historical data analysis, dynamically adjust design parameters to correct geometric errors.
It improves the response speed and accuracy of the recognition process, enhances the recognizability of geometric errors, improves the performance of the system when drawing fine images, reduces rework and time waste, optimizes the workflow, and ensures the high quality of drawing results. and reliability.
Smart Images

Figure CN118570437B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of error recognition, and in particular to an intelligent ruler drawing error recognition system. Background Art
[0002] The field of error recognition technology mainly focuses on detecting and correcting errors that occur in data processing, image generation, speech recognition, or other technical applications through automated methods. It is widely used in computer vision, machine learning, manufacturing quality control, and medical image processing. The error recognition system uses algorithms to analyze the accuracy of input data and identifies potential errors or anomalies through pattern recognition. The key is to improve the accuracy and efficiency of the automation process, reduce human intervention, and thus improve the stability and reliability of operations.
[0003] Among them, the intelligent ruler drawing error recognition system is an automated system that applies error recognition technology, which is specifically used to detect and correct errors in the drawing process. Its main use is to provide higher drawing accuracy in engineering design, architectural drawing, mechanical manufacturing and education. By automatically identifying size errors, symmetry errors or geometric inaccuracies, the system helps users reduce repetitive work, improve production efficiency, and ensure the high quality of drawing results.
[0004] Existing technologies lack the ability to process real-time data and advanced image processing. In the face of complex and rapidly changing design requirements, this limits the flexibility and immediacy of processing, resulting in processing delays and insufficient accuracy, especially in application scenarios that require a high degree of image refinement. Existing technologies mostly rely on predefined error patterns and are not adaptable to newly emerging error types, which limits their effectiveness in new environments or unknown error scenarios, resulting in reduced drawing efficiency and increased drawing costs. Summary of the invention
[0005] The purpose of the present invention is to solve the shortcomings in the prior art and to propose an intelligent ruler drawing error recognition system.
[0006] In order to achieve the above object, the present invention adopts the following technical solution: an intelligent ruler drawing error recognition system, the system comprising:
[0007] The geometric error analysis module calculates the distribution statistics of basic geometric error frequency and error type based on the ruler drawing data, sets the initial parameters through the error distribution, executes the baseline learning process, and trains the standard geometric error set to obtain the baseline geometric configuration;
[0008] The real-time geometry adjustment module receives new design drawing error data in real time based on the baseline geometry configuration and utilizes an online learning mechanism, calculates the frequency and type of current geometry errors, compares the data changes before and after, performs parameter reconfiguration, and continuously optimizes the error identification process to obtain dynamic geometry parameters;
[0009] The geometric feature enhancement module applies a generative adversarial network based on the dynamic geometric parameters to optimize image clarity and edge details, inputs features into the tuning process, optimizes the accuracy of geometric error recognition, and obtains geometric feature recognition information;
[0010] The error correction evaluation module analyzes the identified geometric error type and frequency based on the geometric feature identification information, compares the design standard and historical data, judges the error severity, and uses the judgment result to adjust the design parameters to generate a geometric correction result.
[0011] The present invention is improved in that the calculation steps of the error frequency and error type distribution statistics are specifically as follows:
[0012] Based on the ruler drawing data, the geometric error information is extracted and the occurrence frequency of multiple types of errors is calculated using the formula:
[0013]
[0014] Generates the total number of errors of each type, where Indicates The total number of class errors, Indicates The number of events of class error, is the iteration variable;
[0015] Based on the total number of errors of each type described, calculate the error type frequency using the formula:
[0016]
[0017] The weighted error frequency result is obtained, where is the weighted The frequency of class errors, It is The total number of class errors, is the total number of error categories;
[0018] Based on the weighted error frequency results, the weighted mean and weighted standard deviation of the frequencies are calculated using the formula:
[0019]
[0020] and
[0021]
[0022] The distribution statistics results are obtained, among which, is the average of the weighted error frequencies, is the standard deviation of the weighted error frequencies, is the weighted The frequency of class errors, is the total number of error categories.
[0023] The present invention is improved in that the step of obtaining the baseline geometric configuration is specifically as follows:
[0024] Based on the error distribution data, the key types of geometric errors are determined using the formula:
[0025]
[0026] Get the selected error type, where is the initial parameter setting, Is the error type The fundamental frequency, Is with error type The weight of the association, Is the error type The number of occurrences, is the logarithmic transformation of the number of occurrences;
[0027] Based on the selected error type, the geometric configuration parameters are adjusted to optimize the probability of error occurrence, using the formula:
[0028]
[0029] Get the optimized geometric configuration parameters ,in, is the initial parameter setting, is the time-dependent learning rate, is the loss function For parameters The gradient of is the error reduction, is the parameter adjustment amplitude.
[0030] The present invention is improved in that the calculation steps of the current geometric error frequency and type are specifically as follows:
[0031] Based on the baseline geometry configuration, new design drawing error data is received in real time, the error type is classified, and the number of occurrences of real-time updates is calculated using a cumulative counting method:
[0032]
[0033] Get real-time error type counts, where It's time point Target error type The cumulative number of occurrences of It's time point The error count, It's at the time The new dataset received, is an indicator function, indicating that if the data Error type , then it is 1, otherwise it is 0;
[0034] Based on the real-time error type count, the real-time frequency of each error is calculated, combined with the time correlation of the error data, using a weighted formula:
[0035]
[0036] Get the real-time error type frequency, where It's time point Error Type The real-time frequency, is the weight factor for new data, is the total number of data points in the time window, It's time point Target error type The cumulative number of occurrences of
[0037] Integrate the real-time error type frequency and the real-time error type count, using the formula:
[0038]
[0039] Get the current geometric error frequency and type, where: is a vector containing the real-time frequencies of the error types, Indicates the corresponding error type at the time point frequency.
[0040] The present invention is improved in that the step of obtaining the dynamic geometric parameters is specifically as follows:
[0041] According to the real-time analysis data, the current data changes of geometric errors are identified and parameter adjustment judgments are made using the formula:
[0042]
[0043] Get the proposed adjustments to the geometric parameters ,in, is the sensitivity parameter to adjust, is the error trend of the current monitoring, is the target error trend;
[0044] Based on the proposed adjustments to the geometric parameters, new geometric parameters are calculated using the formula:
[0045]
[0046] Get the adjusted geometric parameters , to obtain dynamic geometric parameters, where are the geometric parameters currently used, is the proposed adjustment of the geometric parameters.
[0047] The present invention is improved in that the steps of optimizing the image clarity and edge details are specifically as follows:
[0048] Based on the dynamic geometric parameters, the current image data is analyzed to determine the baseline clarity and edge details, and the image is preliminarily processed using the formula:
[0049]
[0050] Enhanced image contrast ,in, is the original image contrast, is the adjustment factor, which is used to control the contrast adjustment strength. is the adjustment factor calculated based on the geometric parameters;
[0051] Based on the enhanced image contrast, a generative adversarial network is applied to refine the image edges and optimize detail visibility, using the formula:
[0052]
[0053] Get optimized edge details ,in, is the original edge detail, are the GAN model parameters, is the edge optimization parameter.
[0054] The present invention is improved in that the step of obtaining the geometric feature recognition information is specifically as follows:
[0055] The edge detection algorithm is used to analyze the geometric image and extract key geometric features using the formula:
[0056]
[0057] Get edge strength ,in, and are the pixel gradients in the horizontal and vertical directions, is the gradient boosting factor;
[0058] Based on the edge strength, the extracted features are classified to identify the type of geometric error using the formula:
[0059]
[0060] Get the classification probability of geometric shapes , is the weight matrix, is the bias term, is the activation function, used to output probability, is the edge strength.
[0061] The present invention is improved in that the step of obtaining the geometric correction result is specifically as follows:
[0062] Based on the geometric feature identification information, data extraction is performed to analyze the error type and frequency using the formula:
[0063]
[0064] Get the average error frequency ,in, It is Error instances of geometric features, represents the total number of samples;
[0065] Based on the average error frequency, compared to the design criteria and historical data, the error severity is assessed using the formula:
[0066]
[0067] Get the error severity assessment results ,in, is the historical error mean, is the standard deviation of the error, is the mean error frequency;
[0068] Based on the error severity assessment, parameter design adjustments are made using the formula:
[0069]
[0070] Get the geometric correction result ,in, is the original parameter value, is the adjustment factor, is the target error threshold, It is the error severity assessment result.
[0071] Compared with the prior art, the advantages and positive effects of the present invention are:
[0072] In the present invention, by real-time updating and dynamic adjustment of geometric parameters, an immediate response to changes in drawing data is provided, the response speed and processing accuracy of the recognition process are improved, and a generative adversarial network is used to optimize image clarity and edge details, further enhancing the recognizability of geometric errors, improving the performance of the system in drawing fine images, and the ability to analyze and compare design standards and historical data, allowing the system to judge and correct geometric errors, enhancing the accuracy and reliability of drawing results, effectively reducing rework and time waste, and optimizing the workflow. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Figure 1 is a system flow chart of the present invention;
[0074] Figure 2 is a flow chart for calculating the error frequency and error type distribution statistics in the present invention;
[0075] Figure 3 A flowchart for obtaining the baseline geometry configuration in the present invention;
[0076] Figure 4 is a flow chart for calculating the frequency and type of the current geometric error in the present invention;
[0077] Figure 5 This is a flow chart for obtaining dynamic geometric parameters in the present invention;
[0078] Figure 6 This is a flow chart for optimizing image clarity and edge details in the present invention;
[0079] Figure 7 This is a flow chart for obtaining geometric feature recognition information in the present invention;
[0080] Figure 8 This is a flow chart for obtaining the geometric correction results in the present invention. DETAILED DESCRIPTION
[0081] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0082] In the description of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating positions or positional relationships, are based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, in the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0083] Example
[0084] See also Figure 1 The present invention provides a technical solution: an intelligent ruler drawing error recognition system comprises:
[0085] The geometric error analysis module calculates the distribution statistics of basic geometric error frequency and error type based on the ruler drawing data, sets the initial parameters through the error distribution, executes the baseline learning process, and trains the standard geometric error set to obtain the baseline geometric configuration;
[0086] The real-time geometry adjustment module is based on the baseline geometry configuration and uses the online learning mechanism to receive new design drawing error data in real time, calculate the frequency and type of current geometry errors, compare the data changes before and after, reconfigure parameters, and continuously optimize the error identification process to obtain dynamic geometry parameters;
[0087] The geometric feature enhancement module uses a generative adversarial network based on dynamic geometric parameters to optimize image clarity and edge details, input features into the tuning process, optimize the accuracy of geometric error recognition, and obtain geometric feature recognition information;
[0088] The error correction evaluation module analyzes the type and frequency of the identified geometric errors based on the geometric feature recognition information, compares the design standards and historical data, judges the severity of the errors, and uses the judgment results to adjust the design parameters and generate geometric correction results.
[0089] The baseline geometry configuration includes preliminary error standards, learning rate benchmarks, and initial weight settings. The dynamic geometry parameters include update frequency, parameter adjustment range, and real-time performance indicators. The geometry feature recognition information includes detail recovery level and error identification information. The geometry correction results include correction process, parameter tuning results, and implementation effect evaluation results.
[0090] See also Figure 2 , the calculation steps of error frequency and error type distribution statistics are as follows:
[0091] Based on the ruler drawing data, the geometric error information is extracted and the occurrence frequency of multiple types of errors is calculated using the formula:
[0092]
[0093] Generates the total number of errors of each type, where Indicates The total number of class errors, Indicates The number of events of class error, It is an iteration variable, used for calculation in the summation process;
[0094] Based on the total number of errors of each type, calculate the error type frequency using the formula:
[0095]
[0096] The weighted error frequency result is obtained, where is the weighted The frequency of class errors, It is The total number of class errors, is the total number of error categories;
[0097] Based on the weighted error frequency results, calculate the weighted mean and weighted standard deviation of the frequency using the formula:
[0098]
[0099] and
[0100]
[0101] The distribution statistics results are obtained, among which, is the average of the weighted error frequencies, is the standard deviation of the weighted error frequencies, is the weighted The frequency of class errors, is the total number of error categories.
[0102] Assume there are three error types, the number of events of each type
[0103] ;
[0104] ;
[0105] .
[0106] The total number of errors of each type is calculated as follows:
[0107] For the first type of error:
[0108]
[0109] For the second type of error:
[0110]
[0111] For the third type of error:
[0112]
[0113] Type I errors occurred 5 times, Type II errors 3 times, and Type III errors 2 times.
[0114] Using the above results, assuming and ;
[0115] Calculate the total number of errors:
[0116]
[0117] Calculate frequency For each category:
[0118]
[0119]
[0120] Similarly, calculate and ,result It means that the first type of error accounts for about 63.4% in the weighted frequency distribution. The result shows that the weighted calculation of error frequency not only takes into account the absolute number of errors, but also the diversity of error types and the complexity of each type of error.
[0121] Assumptions , calculate the mean and standard deviation:
[0122] average value:
[0123]
[0124] Standard Deviation:
[0125]
[0126] The average error frequency calculated is 0.333 and It is 0.21, which indicates the average level of the error distribution and its degree of variability.
[0127] See also Figure 3 , the steps to obtain the baseline geometry configuration are as follows:
[0128] Based on the error distribution data, the key types of geometric errors are determined using the formula:
[0129]
[0130] Get the selected error type, where is the initial parameter setting, Is the error type The fundamental frequency, Is with error type The weight of the association, Is the error type The number of occurrences, is the logarithmic transformation of the number of occurrences;
[0131] Based on the selected error type, adjust the geometric configuration parameters to optimize the probability of error occurrence, using the formula:
[0132]
[0133] Get the optimized geometric configuration parameters ,in, is the initial parameter setting, is the time-dependent learning rate, is the loss function For parameters The gradient of is the error reduction, is the parameter adjustment amplitude.
[0134] Assume there are three error types:
[0135] 0.2, 0.5, 0.3;
[0136] 1.0, 2.0, 1.5;
[0137] Occurrence It is 10, 5, 15.
[0138] Calculate each type of (Based on natural logarithms):
[0139]
[0140]
[0141]
[0142] Substitute the values into the formula to calculate the score:
[0143]
[0144]
[0145]
[0146] The second error type has the highest score, so It is the second type.
[0147] Assuming that the above selection The learning rate is 0.5. is 0.1, is -0.3 (indicating reduced error), is 0.04, is 0.2.
[0148] Calculate ratio
[0149]
[0150] renew :
[0151]
[0152] Optimized parameters is 0.506, indicating a slight parameter adjustment to reduce the error.
[0153] See also Figure 4 , the calculation steps of the current geometric error frequency and type are as follows:
[0154] Based on the baseline geometry configuration, new design drawing error data is received in real time, the error type is classified, and the number of occurrences of real-time updates is calculated using the cumulative counting method:
[0155]
[0156] Get real-time error type counts, where It's time point Target error type The cumulative number of occurrences of It's time point The error count, It's at the time The new dataset received, is an indicator function, indicating that if the data Error type , then it is 1, otherwise it is 0;
[0157] Based on the real-time error type count, the real-time frequency of each error is calculated, combined with the time correlation of the error data, and the weighted formula is used:
[0158]
[0159] Get the real-time error type frequency, where It's time point Error Type The real-time frequency, is the weight factor for new data, is the total number of data points in the time window, It's time point Target error type The cumulative number of occurrences of
[0160] Combine the real-time error type frequency and the real-time error type count using the formula:
[0161]
[0162] Get the current geometric error frequency and type, where: is a vector containing the real-time frequencies of the error types, Indicates the corresponding error type at the time point frequency.
[0163] Assume that at time ,have Sub-specific type Errors;
[0164] Assume that at time , receiving a new data set Contains 3 new errors Example.
[0165] Calculate the current time Error count:
[0166]
[0167] So, time When the error type The cumulative count is updated to 13 times.
[0168] set up , ;
[0169] Previous time point Frequency .
[0170] calculate:
[0171]
[0172]
[0173] So, time When the error type The real-time frequency of updates is 0.0552.
[0174] Assume there are three types of errors and have calculated the time Real-time frequencies: 0.0552, 0.0300, 0.0450.
[0175] calculate:
[0176]
[0177] Indicates at time Real-time frequency of all error types.
[0178] See also Figure 5 , the specific steps for obtaining dynamic geometric parameters are:
[0179] According to the real-time analysis data, the current data changes of geometric errors are identified and parameter adjustment judgments are made using the formula:
[0180]
[0181] Get the proposed adjustments to the geometric parameters ,in, is the sensitivity parameter to adjust, is the error trend of the current monitoring, is the target error trend;
[0182] Based on the proposed adjustments to the geometric parameters, new geometric parameters are calculated using the formula:
[0183]
[0184] Get the adjusted geometric parameters , to obtain dynamic geometric parameters, where are the geometric parameters currently used, is the proposed adjustment of the geometric parameters.
[0185] Assume the following data:
[0186] is 0.45;
[0187] is 0.30;
[0188] Set to 0.5.
[0189] Calculate the adjustment :
[0190]
[0191] This means that, based on the difference between the current error trend and the target trend, the recommended adjustment of the geometric parameters is 0.075.
[0192] Assuming the current geometry parameters is 1.00, calculate the new geometric parameters
[0193]
[0194] The new geometry parameter value is 1.075, reflecting a slight adjustment to the current design to achieve better error performance.
[0195] See also Figure 6 , the optimization steps for image clarity and edge details are as follows:
[0196] Based on dynamic geometric parameters, the current image data is analyzed to determine the baseline clarity and edge details, and the image is preliminarily processed using the formula:
[0197]
[0198] Enhanced image contrast ,in, is the original image contrast, is the adjustment factor, which is used to control the contrast adjustment strength. It is an adjustment factor calculated based on geometric parameters, reflecting the impact of geometric errors on image quality;
[0199] Based on the enhanced image contrast, a generative adversarial network is applied to refine the image edges and optimize the visibility of details, using the formula:
[0200]
[0201] Get optimized edge details ,in, is the original edge detail, are the GAN model parameters, is the edge optimization parameter.
[0202] Assume the following parameters:
[0203] is 100;
[0204] is 0.05;
[0205] Serves 2.
[0206] Calculate the contrast after enhancement:
[0207]
[0208] The results show that the contrast ratio increased from 100 to 110, improving the clarity of the image.
[0209] set up is the original edge data, such as [0.1, 0.2, 0.3];
[0210] parameter Set to 0.05 and 1.1 respectively.
[0211]
[0212] Assuming that the GAN model enhances edge details, the result is [0.11, 0.22, 0.33], indicating that the edge details are slightly improved after GAN processing.
[0213] See also Figure 7 , the specific steps for obtaining geometric feature recognition information are:
[0214] The edge detection algorithm is used to analyze the geometric image and extract key geometric features using the formula:
[0215]
[0216] Get edge strength ,in, and are the pixel gradients in the horizontal and vertical directions, is the gradient boosting factor;
[0217] Based on the edge strength, the extracted features are classified to identify the type of geometric errors using the formula:
[0218]
[0219] Get the classification probability of geometric shapes , is the weight matrix, is the bias term, is the activation function, used to output probability, is the edge strength.
[0220] Assume that in a certain image region, the horizontal gradient , vertical gradient ,and ;
[0221] Calculate edge strength :
[0222]
[0223] It shows that the edge strength is 44.16, indicating that the image features in this area are more obvious.
[0224] Assumptions .
[0225]
[0226] Assuming that after softmax conversion, the classification probability , indicating that there is a 98% probability that the features in the image belong to the predetermined category.
[0227] See also Figure 8 , the specific steps for obtaining the geometric correction results are:
[0228] Based on the geometric feature recognition information, data extraction is performed to analyze the error type and frequency using the formula:
[0229]
[0230] Get the average error frequency ,in, It is Error instances of geometric features, represents the total number of samples;
[0231] Based on the average error frequency, compared to the design standard and historical data, the error severity is assessed using the formula:
[0232]
[0233] Get the error severity assessment results ,in, is the historical error mean, is the standard deviation of the error, is the mean error frequency;
[0234] Based on the error severity assessment, parameter design adjustments are made using the formula:
[0235]
[0236] Get the geometric correction result ,in, is the original parameter value, is the adjustment factor, is the target error threshold, It is the error severity assessment result.
[0237] Assume there are 5 error instances with values of 0.5, 0.3, 0.2, 0.4 and 0.1. Plug the values into the formula:
[0238]
[0239] What you get It means that in this set of samples, the average error of each geometric feature is 0.3, which helps to analyze the overall error level.
[0240] Assuming that from historical data and ;
[0241] Using the above calculation :
[0242]
[0243] Score It means that the current error frequency is more than twice the historical standard deviation, indicating that the error level is high and requires attention.
[0244] set up , , ,use :
[0245]
[0246] The new design parameter value is 49, which means that based on the evaluation of the error severity, the design parameter was adjusted down by 1 to reduce the error.
[0247] The above are only preferred embodiments of the present invention and are not intended to limit the present invention in other forms. Any technician familiar with the profession may use the technical contents disclosed above to change or modify them into equivalent embodiments with equivalent changes and apply them to other fields. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. Intelligent ruler drawing error recognition system, characterized by: The system comprises: The geometric error analysis module calculates the distribution statistics of basic geometric error frequency and error type based on the ruler drawing data, sets the initial parameters through the error distribution, executes the baseline learning process, and trains the standard geometric error set to obtain the baseline geometric configuration; The real-time geometry adjustment module receives new design drawing error data in real time based on the baseline geometry configuration and utilizes an online learning mechanism, calculates the frequency and type of current geometry errors, compares the data changes before and after, performs parameter reconfiguration, and continuously optimizes the error identification process to obtain dynamic geometry parameters; The geometric feature enhancement module applies a generative adversarial network based on the dynamic geometric parameters to optimize image clarity and edge details, inputs features into the tuning process, optimizes the accuracy of geometric error recognition, and obtains geometric feature recognition information; The error correction evaluation module analyzes the type and frequency of the identified geometric errors based on the geometric feature identification information, compares the design standards and historical data, judges the severity of the errors, and uses the judgment results to adjust the design parameters and generate geometric correction results; The baseline geometry configuration includes a preliminary error standard, a learning rate benchmark, and an initial weight setting; the dynamic geometry parameters include an update frequency, a parameter adjustment range, and a real-time performance index; the geometry feature recognition information includes a detail recovery level and error identification information; and the geometry correction result includes a correction process, a parameter tuning result, and an implementation effect evaluation result; The calculation steps of the current geometric error frequency and type are specifically as follows: Based on the baseline geometry configuration, new design drawing error data is received in real time, the error type is classified, and the number of occurrences of real-time updates is calculated using a cumulative counting method: Get real-time error type counts, where It's time point Target error type The cumulative number of occurrences of It's time point The error count, It's at the time The new dataset received, is an indicator function, indicating that if the data Error type , then it is 1, otherwise it is 0; Based on the real-time error type count, the real-time frequency of each error is calculated, combined with the time correlation of the error data, using a weighted formula: Get the real-time error type frequency, where It's time point Error Type The real-time frequency, is the weight factor for new data, is the total number of data points in the time window, It's time point Target error type The cumulative number of occurrences of Integrate the real-time error type frequency and the real-time error type count, using the formula: Get the current geometric error frequency and type, where: is a vector containing the real-time frequencies of the error types, Indicates the corresponding error type at the time point frequency; The steps for optimizing the image clarity and edge details are specifically as follows: Based on the dynamic geometric parameters, the current image data is analyzed to determine the baseline clarity and edge details, and the image is preliminarily processed using the formula: Enhanced image contrast ,in, is the original image contrast, is the adjustment factor, which is used to control the contrast adjustment strength. is the adjustment factor calculated based on the geometric parameters; Based on the enhanced image contrast, a generative adversarial network is applied to refine the image edges and optimize detail visibility, using the formula: Get optimized edge details ,in, is the original edge detail, are the GAN model parameters, is the edge optimization parameter; The steps for obtaining the geometric feature recognition information are specifically as follows: The edge detection algorithm is used to analyze the geometric image and extract key geometric features using the formula: Get edge strength ,in, and are the pixel gradients in the horizontal and vertical directions, is the gradient boosting factor; Based on the edge strength, the extracted features are classified to identify the type of geometric error using the formula: Get the classification probability of geometric shapes , is the weight matrix, is the bias term, is the activation function, used to output probability, is the edge strength.
2. The intelligent ruler drawing error recognition system according to claim 1, characterized in that: The calculation steps of the error frequency and error type distribution statistics are specifically as follows: Based on the ruler drawing data, the geometric error information is extracted and the occurrence frequency of multiple types of errors is calculated using the formula: Generates the total number of errors of each type, where Indicates The total number of class errors, Indicates The number of events of class error, is the iteration variable; Based on the total number of errors of each type described, calculate the error type frequency using the formula: The weighted error frequency result is obtained, where is the weighted The frequency of class errors, It is The total number of class errors, is the total number of error categories; Based on the weighted error frequency results, the weighted mean and weighted standard deviation of the frequencies are calculated using the formula: and The distribution statistics results are obtained, among which, is the average of the weighted error frequencies, is the standard deviation of the weighted error frequencies, is the weighted The frequency of class errors, is the total number of error categories.
3. The intelligent ruler drawing error recognition system according to claim 1, characterized in that: The steps for obtaining the baseline geometric configuration are specifically as follows: Based on the error distribution data, the key types of geometric errors are determined using the formula: Get the selected error type, where is the initial parameter setting, Is the error type The fundamental frequency, Is with error type The weight of the association, Is the error type The number of occurrences, is the logarithmic transformation of the number of occurrences; Based on the selected error type, the geometric configuration parameters are adjusted to optimize the probability of error occurrence, using the formula: Get the optimized geometric configuration parameters ,in, is the initial parameter setting, is the time-dependent learning rate, is the loss function For parameters The gradient of is the error reduction, is the parameter adjustment amplitude.
4. The intelligent ruler drawing error recognition system according to claim 1, characterized in that: The steps for obtaining the dynamic geometric parameters are specifically as follows: According to the real-time analysis data, the current data changes of geometric errors are identified and parameter adjustment judgments are made using the formula: Get the proposed adjustments to the geometric parameters ,in, is the sensitivity parameter to adjust, is the error trend of the current monitoring, is the target error trend; Based on the proposed adjustments to the geometric parameters, new geometric parameters are calculated using the formula: Get the adjusted geometric parameters , to obtain dynamic geometric parameters, where are the geometric parameters currently used, is the proposed adjustment of the geometric parameters.
5. The intelligent ruler drawing error recognition system according to claim 1, characterized in that: The steps for obtaining the geometric correction result are specifically as follows: Based on the geometric feature identification information, data extraction is performed to analyze the error type and frequency using the formula: Get the average error frequency ,in, It is Error instances of geometric features, represents the total number of samples; Based on the average error frequency, compared to the design criteria and historical data, the error severity is assessed using the formula: Get the error severity assessment results ,in, is the historical error mean, is the standard deviation of the error, is the mean error frequency; Based on the error severity assessment results, parameter design adjustments are made using the formula: Get the geometric correction result ,in, is the original parameter value, is the adjustment factor, is the target error threshold, It is the error severity assessment result.
