A method and system for evaluating the surface quality of parts based on a grinding machine
Through machine learning and multi-modal data fusion technology, combined with augmented reality technology, the subjectivity and uncertainty problems of traditional evaluation methods are solved, accurate and stable evaluation of the surface quality of parts is achieved, and the efficiency and quality of the production process are improved. .
Patent Information
- Application Number
- CN202411006375.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-25
AI Technical Summary
Traditional parts surface quality assessment methods are limited by manual subjective judgment and uncertainty factors, resulting in unstable assessment results and lack of objectivity, and it is difficult to accurately judge the surface quality after sanding machine treatment.
Using a surface quality assessment method for parts based on a sanding machine, by acquiring and preprocessing surface image data, using machine learning algorithms to establish a correlation model between image features and quality, and combining multi-modal data fusion technology and augmented reality technology to achieve real-time Evaluate.
It improves the accuracy and reliability of surface quality assessment of parts and components, provides more objective and stable quality assessment results, and helps operators find problems in time and optimize the production process.
Smart Images

Figure CN118537339B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of sanding machine parts, and in particular to a method and system for evaluating the surface quality of sanding machine parts. Background Art
[0002] In the field of automobile manufacturing, the surface quality of parts has a vital impact on the appearance and performance of the car, but traditional quality assessment methods often have some disadvantages. For example, deburring machines can help solve quality defects such as burrs and edge burrs on the surface of parts, improve the consistency of surface quality and the overall quality level. However, traditional quality assessment methods are still subject to human subjective judgment and uncertainty factors, and there are problems such as inconsistent assessment standards and large errors.
[0003] In addition, due to the uncertainty factors in the sanding process during the manufacturing process, such as the degree of wear and process parameters, it is difficult for traditional quality assessment methods to accurately judge the quality of the surface of parts. At the same time, the disadvantages of existing technologies also include: manual subjective judgment is easily affected by individual experience and subjective factors, resulting in unstable and lack of objectivity in the assessment results, and even with the use of traditional measurement tools, it is difficult to completely eliminate measurement errors, resulting in inaccurate quality assessment results. Therefore, we need a more accurate and automated assessment method to cope with complex manufacturing environments and quality management needs. Summary of the invention
[0004] The purpose of the present invention is to provide a method and system for evaluating the surface quality of parts based on a sanding machine to improve the above problems. In order to achieve the above purpose, the technical solution adopted by the present invention is as follows:
[0005] In a first aspect, the present application provides a method for evaluating the surface quality of parts based on a sanding machine, comprising:
[0006] Acquire first data of a component surface image, and preprocess the first data according to a preset standard, wherein the preprocessing includes resizing, graying, and denoising, to obtain preprocessed first surface image data of the component;
[0007] Extracting and analyzing image features of the first surface image data using a machine learning algorithm based on the first surface image data, and establishing a correlation model between the surface quality of the component and the image features; wherein the correlation model uses a supervised learning method to automatically learn and establish a nonlinear mapping relationship between the surface quality of the component and the image features through the image data of the training set and the corresponding quality assessment data;
[0008] Based on the correlation model and the needs of component surface quality assessment, multimodal data fusion technology is used to comprehensively analyze the data obtained by different surface quality assessment methods to obtain comprehensive analysis results; the multimodal data fusion technology uses data fusion algorithms to integrate the data obtained by different assessment methods, and the comprehensive analysis results include surface roughness, surface defects and temperature distribution information;
[0009] Through correlation analysis, the comprehensive analysis results are associated with material properties to obtain the correlation coefficients between different surface quality evaluation indicators and material properties. Regression analysis is performed based on the correlation coefficients to establish a mathematical model between component surface quality evaluation indicators and material properties.
[0010] The second data of the component surface image after the sanding machine is obtained, and the second data is input into the mathematical model to obtain the component surface quality result, and the augmented reality technology is used for real-time evaluation, and finally the real-time evaluation result of the component surface quality is obtained. Combined with the previous comprehensive analysis results, the final evaluation report of the component surface quality based on the sanding machine is comprehensively generated.
[0011] Preferably, the first data of the component surface image is obtained, and the first data is preprocessed according to a preset standard, wherein the preprocessing includes resizing, graying and denoising, to obtain the preprocessed first surface image data of the component, which includes:
[0012] Using the Canny edge detection algorithm, the first data of the acquired component surface image is analyzed, the local gradient change of the image in the first data is detected to obtain edge information in the image, and the edge information is processed by edge detection to obtain the pixel position of the edge of the component in the image;
[0013] Based on the pixel position of the edge of the component in the image, the edge of the component is marked by edge detection, and the surface image of the component is segmented into the component area and the background area according to the region growing segmentation algorithm;
[0014] According to the segmented component area image and background area, the color image is converted into a grayscale image through grayscale processing to obtain a grayscale image of the component surface;
[0015] The median filter is used to remove noise and perform noise elimination on the grayscale image of the component surface to obtain the first surface image data of the component after preprocessing.
[0016] Preferably, the image features of the first surface image data are extracted and analyzed using a machine learning algorithm based on the first surface image data to establish a correlation model between the surface quality of the component and the image features, which includes:
[0017] Using computer vision technology to extract image features from the first surface image data, obtaining first feature information, second feature information, and third feature information, wherein the first feature information is color feature extracted using a histogram and color moment method, the second feature information is texture feature extracted using a gray level co-occurrence matrix method, and the third feature information is shape feature extracted using an edge detection and contour extraction method;
[0018] The extracted first feature information, the second feature information and the third feature information are combined and screened to form a final feature vector, and the final feature vector is subjected to dimensionality reduction processing using a principal component analysis method to obtain a feature vector after dimensionality reduction;
[0019] The feature vector after dimensionality reduction is input into the supervised learning algorithm, and the association model between the surface quality of parts and image features is obtained by learning the nonlinear mapping relationship between the surface quality of parts and image features.
[0020] Preferably, based on the correlation model and the demand for component surface quality assessment, multimodal data fusion technology is used to comprehensively analyze the data obtained by different surface quality assessment methods to obtain a comprehensive analysis result, which includes:
[0021] Obtain the data obtained by various surface quality assessment methods, including raw data obtained by different assessment methods such as component surface roughness measurement, optical inspection and thermal imaging inspection, clean the raw data, remove outliers and fill in missing values, correct and normalize the pre-processed raw data, and use the processing results as input data for multimodal data fusion;
[0022] The data obtained by each evaluation method in the processing results are subjected to feature extraction to extract representative and discriminative feature vectors, and the feature vectors obtained by each evaluation method are combined to form an integrated feature vector, the calculation formula of which is as follows:
[0023] {F}_{feature}=\left [ {{f}_{1}{f}_{2},{...f}_{m}} \right ]\, \,
[0024] In the formula, F 特征 represents the integrated eigenvector, f m represents the mth feature, and m represents the total number of all features;
[0025] The integrated feature vector is input into the preset analysis model, and after analysis and processing, a comprehensive analysis result is finally obtained. The comprehensive analysis result includes the overall situation of the surface quality of the parts, including surface roughness, surface defects and temperature distribution information.
[0026] Preferably, the comprehensive analysis results are correlated with the material properties through correlation analysis to obtain the correlation coefficients between different surface quality evaluation indicators and material properties, and regression analysis is performed based on the correlation coefficients to establish a mathematical model between the surface quality evaluation indicators of parts and materials properties, including:
[0027] Obtain the performance data of the materials used in the parts, including the mechanical properties, wear resistance and corrosion resistance of the materials;
[0028] The Spearman correlation coefficient is used to calculate the correlation coefficient between each evaluation index in the comprehensive analysis result and the material performance data, and the correlation coefficient between different surface quality evaluation indexes and the material performance data is obtained;
[0029] Based on the results of the correlation coefficient, an appropriate regression model is selected to establish a mathematical model between the surface quality evaluation index of the component and the performance data of the material, where the regression model includes linear regression and polynomial regression, in which the surface quality evaluation index is used as the independent variable and the material performance index is used as the dependent variable.
[0030] Preferably, the correlation coefficient between each evaluation index in the comprehensive analysis result and the performance data of the material is calculated, and the calculation formula is as follows:
[0031]
[0032] In the formula, n is the sample size, ρ is the probability, which means the probability that all numbers in the randomly selected integer sequence are different. d i Represents the rank difference between two variables.
[0033] Preferably, the real-time evaluation using augmented reality technology ultimately obtains a real-time evaluation result of the surface quality of the component, which includes:
[0034] Extract the required features from the surface quality results of the parts to obtain the first extracted features, and use the first extracted features and the preset quality standards as two sets of data for comparison;
[0035] According to the image processing and pattern recognition algorithm, the two sets of data are matched and processed to obtain the matching processing result;
[0036] Based on the matching processing results, the evaluation results are superimposed on the real-time image using augmented reality technology to obtain real-time evaluation results of the surface quality of parts.
[0037] In a second aspect, the present application also provides a component surface quality evaluation system based on a sanding machine, comprising:
[0038] An acquisition module is used to acquire first data of a component surface image, and preprocess the first data according to a preset standard, wherein the preprocessing includes resizing, graying and denoising, to obtain the preprocessed first surface image data of the component;
[0039] Establishing module: for extracting and analyzing the image features of the first surface image data by using a machine learning algorithm according to the first surface image data, and establishing a correlation model between the surface quality of the component and the image features; wherein the correlation model uses a supervised learning method to automatically learn and establish a nonlinear mapping relationship between the surface quality of the component and the image features through the image data of the training set and the corresponding quality assessment data;
[0040] Analysis module: Based on the correlation model and the needs of component surface quality assessment, the multimodal data fusion technology is used to comprehensively analyze the data obtained by different surface quality assessment methods to obtain comprehensive analysis results. The multimodal data fusion technology uses data fusion algorithms to integrate the data obtained by different assessment methods, and the comprehensive analysis results include surface roughness, surface defects and temperature distribution information.
[0041] Correlation module: used to correlate the comprehensive analysis results with material properties through correlation analysis, obtain the correlation coefficients between different surface quality evaluation indicators and material properties, and perform regression analysis based on the correlation coefficients to establish a mathematical model between the surface quality evaluation indicators of parts and materials properties;
[0042] Evaluation module: used to obtain the second data of the component surface image after the sanding machine, input the second data into the mathematical model to obtain the component surface quality result, and use augmented reality technology for real-time evaluation, and finally obtain the real-time evaluation result of the component surface quality. Combined with the previous comprehensive analysis results, the final evaluation report of the component surface quality based on the sanding machine is comprehensively generated.
[0043] The beneficial effects of the present invention are:
[0044] The present invention is based on a method of multimodal data fusion using a sanding machine to integrate the data obtained by different surface quality assessment methods into feature vectors. These feature vectors reflect various quality characteristics of the surface of parts, such as roughness, defects, temperature distribution, etc. By inputting these feature vectors into a preset analysis model for analysis and processing, a comprehensive analysis result is obtained, which can comprehensively evaluate the quality of the surface of parts and provide an important reference for the production process.
[0045] The present invention adopts a multimodal data fusion method to integrate data from different evaluation methods, avoiding the limitations and errors that may exist in a single evaluation method, having higher accuracy and reliability, and helping to improve the level of evaluation of the surface quality of parts.
[0046] The present invention uses augmented reality technology to superimpose the evaluation results on the real-time image, so that the operator can intuitively observe the quality of the component surface. It can help the operator to promptly discover surface quality problems and take corresponding measures to adjust and improve them, thereby improving the efficiency and quality of the production process.
[0047] The comprehensive analysis results provided by the present invention can provide a scientific basis for production adjustment and improvement. The operator can adjust the production parameters in a targeted manner according to the evaluation results and optimize the working state of the sanding machine, thereby better meeting product quality requirements and improving production efficiency.
[0048] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or be understood by implementing the embodiments of the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0050] Figure 1 It is a schematic flow chart of a method for evaluating the surface quality of parts based on a sanding machine according to an embodiment of the present invention;
[0051] Figure 2 It is a schematic diagram of the structure of the component surface quality evaluation system based on the sanding machine described in an embodiment of the present invention.
[0052] In the figure: 701, acquisition module; 7011, analysis and detection unit; 7012, marking unit; 7013, first processing unit; 7014, second processing unit; 702, establishment module; 7021, extraction unit; 7022, third processing unit; 7023, input learning unit; 703, analysis module; 7031, fourth processing unit; 7032, combination unit; 7033, analysis and processing unit; 704, association module; 7041, acquisition unit; 7042, calculation unit; 7043, establishment unit; 705, evaluation module; 7051, feature extraction unit; 7052, fifth processing unit; 7053, real-time evaluation unit. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0054] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance. Example 1
[0055] This embodiment provides a method for evaluating the surface quality of parts based on a sanding machine.
[0056] See also Figure 1 , the figure shows that the method includes step S100, step S200, step S300, step S400 and step S500.
[0057] S100, obtaining first data of a component surface image, and preprocessing the first data according to a preset standard, wherein the preprocessing includes resizing, graying, and denoising, to obtain preprocessed first surface image data of the component.
[0058] It can be understood that step S100 includes S101, S102, S103 and S104, wherein:
[0059] S101, using the Canny edge detection algorithm, analyzing the first data of the obtained component surface image, detecting the local gradient change of the image in the first data, obtaining edge information in the image, and performing edge detection processing on the edge information to obtain the pixel position of the component edge in the image;
[0060] S102, based on the pixel position of the edge of the component in the image, the edge of the component is marked by edge detection, and the component surface image is segmented into a component area and a background area according to a region growing segmentation algorithm;
[0061] It should be noted that, first, the original color image is converted into a grayscale image, because it is more convenient to perform edge detection on a grayscale image and reduces the amount of calculation; the image is smoothed using a Gaussian filter to remove noise in the image; the gradient of the image is calculated using the Sobel operator, and the gradient amplitude and direction of each pixel can be obtained by performing a convolution operation on the image. These gradient values reflect the change in the grayscale of the pixel in the image, which can help find the edge in the image. After obtaining the gradient image, non-maximum suppression is performed to make the detected edge more refined and accurate. Non-maximum suppression processes the gradient image and only retains the pixel points with the largest local gradient change, thereby obtaining the edge information in the image. This edge information includes the position and direction of the edge of the component. Next, the pixel position of the edge of the component is obtained by processing the edge information, which involves converting the edge information into pixel position information, and the edge position of the component can be accurately located. Finally, the pixel position of the edge of the component is marked, which can be achieved by marking the edge pixel points in the image as specific values or colors, and the edge position of the component can be clearly seen on the image, providing an accurate data basis for subsequent segmentation and evaluation. Through the Canny edge detection algorithm, the edge information in the image can be accurately detected, and the edge position of the parts can be accurately marked, providing a reliable basis for subsequent processing.
[0062] S103, converting the color image into a grayscale image according to the segmented component region image and the background region through grayscale processing to obtain a grayscale image of the component surface;
[0063] It should be noted that the color image needs to be grayscaled according to the segmented component area image and background area to obtain a grayscale image of the component surface. The technical effect of this step is to convert the color image into a grayscale image, thereby reducing the complexity of the data and the amount of calculation, while retaining the main features of the image and providing a basis for subsequent processing.
[0064] S104 , applying a median filter to remove noise, performing noise elimination processing on the grayscale image of the component surface, and obtaining the first surface image data of the component after preprocessing.
[0065] It should be noted that it is necessary to combine professional image processing and signal processing knowledge, and the formula of the median filter is as follows:
[0066]
[0067] in, represents the pixel value of the processed image, f(s,t) represents the pixel value of the original image, (s,t) represents the coordinates of the pixel, and the median operation medmed refers to taking the median of the pixel values in the neighborhood; this filter can effectively remove noise from the image and maintain the edge information of the image, thereby reducing noise interference in the image and improving the quality and clarity of the image.
[0068] In summary, through the processing of steps S103 and S104, the pre-processed first surface image data of the component are obtained. These image data have better quality and availability, and provide a reliable basis for subsequent evaluation and analysis.
[0069] S200. Based on the first surface image data, use a machine learning algorithm to extract and analyze image features of the first surface image data, and establish a correlation model between the surface quality of the component and the image features; wherein the correlation model uses a supervised learning method to automatically learn and establish a nonlinear mapping relationship between the surface quality of the component and the image features through the image data of the training set and the corresponding quality assessment data.
[0070] It can be understood that step S200 includes S201, S202 and S203, wherein:
[0071] S201, extracting image features from the first surface image data using computer vision technology to obtain first feature information, second feature information, and third feature information, wherein the first feature information is color feature extracted using a histogram and color moment method, the second feature information is texture feature extracted using a gray level co-occurrence matrix method, and the third feature information is shape feature extracted using an edge detection and contour extraction method;
[0072] It should be noted that, first, the color features in the image are extracted by the histogram and color moment methods. The histogram describes the distribution of various colors in the image, while the color moment is used to describe the statistical characteristics of the color distribution. These characteristics can effectively characterize the color characteristics of the image, such as the brightness, saturation and hue of the color. In practical applications, the color features can be used to distinguish the differences in different materials or surface quality, and then the corresponding quality assessment and classification can be carried out. Secondly, the texture features of the image are extracted by the gray level co-occurrence matrix method; the gray level co-occurrence matrix is a statistical method to describe the texture structure of the image, which can quantify the gray level change relationship between pixels in the image. By analyzing the texture features, the texture information about the image surface, such as particle size and shape, can be obtained; this information is of great significance for the quality assessment of parts and components, because different texture features may be associated with different quality problems. Finally, the shape features of the image are extracted by edge detection and contour extraction methods; edge detection can help find the boundaries of objects in the image, while contour extraction can further extract the shape information of the object, and can be used to describe the shape and structure of the parts and components, thereby evaluating the quality of the parts and components; for example, the shape features can be used to detect defects or shape deformation of the parts and components. Among them, edge detection methods include but are not limited to Gaussian blur, calculating image gradient, non-maximum suppression and edge connection methods, while contour extraction methods usually involve connected region analysis, that is, by performing connectivity analysis of pixel points in the binary image, finding each connected region in the image and extracting its boundary information as the contour.
[0073] S202, merging and screening the extracted first feature information, the second feature information and the third feature information to form a final feature vector, and performing dimensionality reduction processing on the final feature vector using a principal component analysis method to obtain a feature vector after dimensionality reduction;
[0074] S203, inputting the feature vector after dimension reduction into a supervised learning algorithm, and obtaining a correlation model between the surface quality of the component and the image features by learning the nonlinear mapping relationship between the surface quality of the component and the image features.
[0075] It should be noted that in step S202, the key is to integrate the various features extracted from the image to construct a more comprehensive and representative feature vector. In this process, the importance and discrimination of the features need to be considered to ensure that the final feature vector can effectively characterize the quality information of the surface of the component. Among them, principal component analysis is a commonly used dimensionality reduction method. Its core idea is to map the high-dimensional feature space to a low-dimensional subspace through linear transformation, retain as much original data information as possible, reduce the dimension of the feature vector, reduce the computational complexity and storage space requirements, and retain the main feature information, so as to better reflect the inherent structure and pattern of the data. Among them, the dimensionality reduction process includes standardizing the final feature vector so that the mean of each feature is zero and the variance is 1, then calculating the covariance matrix of the feature vector, performing eigenvalue decomposition on the covariance matrix, obtaining the eigenvalue and the corresponding eigenvector, selecting the most important eigenvector as the principal component according to the size of the eigenvalue, and projecting the original data into a new feature space composed of the selected principal component. In this way, the eigenvector after dimensionality reduction is obtained, in which each sample corresponds to a point in the new feature space. The dimension of the original data is reduced to a lower dimension, thereby reducing the redundancy and complexity of the data. This helps to simplify the data analysis and modeling process while retaining the most important feature information in the data. In step S203, the feature vector after dimensionality reduction is input into the supervised learning algorithm to learn the nonlinear mapping relationship between the surface quality of parts and image features, thereby obtaining the association model between the surface quality of parts and image features. Using the supervised learning algorithm, a mapping relationship model between the surface quality of parts and image features is established by learning and training the existing data; the supervised learning algorithm can deduce the mapping law between the input features and the output labels based on the existing data set by analyzing the relationship between the data, thereby realizing the prediction and classification of new data. Among them, this process is based on the in-depth understanding and analysis of the data, as well as the continuous optimization and adjustment of the model. The final association model can be used to evaluate the surface quality of parts in real time and provide guidance for adjustments and improvements in the production process. The technical effect of these two steps is that through the extraction, integration and dimensionality reduction of image features, as well as the training and modeling of the supervised learning algorithm, the effective association between the surface quality of parts and image features is realized, which provides a reliable basis for real-time evaluation and quality control. Through these technical means, the rapid and accurate evaluation of the surface quality of parts can be achieved, which provides important support for quality management and optimization in the production process.
[0076] S300. Based on the correlation model and the need for component surface quality assessment, multimodal data fusion technology is used to comprehensively analyze the data obtained by different surface quality assessment methods to obtain a comprehensive analysis result; the multimodal data fusion technology uses a data fusion algorithm to integrate the data obtained by different assessment methods, and the comprehensive analysis result includes surface roughness, surface defects and temperature distribution information.
[0077] It can be understood that step S300 includes S301, S302 and S303, wherein:
[0078] S301, obtaining data obtained by various surface quality assessment methods, including raw data obtained by different assessment methods such as component surface roughness measurement, optical inspection and thermal imaging inspection, cleaning the raw data, removing outliers and filling missing values, and correcting and normalizing the pre-processed raw data, and using the processing results as input data for multimodal data fusion;
[0079] It should be noted that step S301 aims to obtain the raw data obtained by various surface quality assessment methods and preprocess them in preparation for subsequent multimodal data fusion; first, the data obtained by different assessment methods, such as component surface roughness measurement, optical inspection and thermal imaging inspection, are collected as raw data; then, these raw data are cleaned to remove outliers and fill in missing values to ensure the accuracy and completeness of the data quality; then, the preprocessed raw data is corrected and normalized, and the data is mapped to the same scale to eliminate the dimensional differences between different assessment methods. The technical effect of this step is to improve the accuracy and comparability of the data and provide reliable input data for subsequent data fusion.
[0080] S302, extracting features from the data obtained by each evaluation method in the processing results, extracting a feature vector with representativeness and discrimination, and combining the feature vectors obtained by each evaluation method to form an integrated feature vector, the calculation formula of which is as follows:
[0081] {F}_{feature}=\left [ {{f}_{1}{f}_{2},{...f}_{m}} \right ]\, \,
[0082] In the formula, F 特征 represents the integrated eigenvector, f m represents the mth feature, and m represents the total number of all features;
[0083] It should be noted that feature extraction is performed on the data obtained by each evaluation method in the processing results, which includes extracting representative and discriminative feature vectors to describe the feature information observed by different surface quality evaluation methods; for each evaluation method, specific feature extraction technology can be applied, such as using computer vision technology to extract color, texture, shape and other features from the image; then, the feature vectors obtained by each evaluation method are combined to form an integrated feature vector, and the feature information obtained by different evaluation methods is integrated in step S302, thereby improving the comprehensiveness and characterization ability of the data.
[0084] S303, input the integrated feature vector into a preset analysis model, and after analysis and processing, finally obtain a comprehensive analysis result, wherein the comprehensive analysis result includes the overall situation of the surface quality of the parts, wherein the overall situation includes surface roughness, surface defects and temperature distribution information.
[0085] It should be noted that, specifically, it is necessary to pre-design and establish an analysis model that can receive the input feature vector and evaluate the surface quality of the parts according to the information of the feature vector; this analysis model can be a machine learning model, such as a support vector machine, a neural network, etc., or a statistical model or other types of models; the integrated feature vector is used as input and passed to the preset analysis model, where these feature vectors contain important feature information after processing and extraction of data obtained from different surface quality evaluation methods, such as color features, texture features, shape features, etc.; the preset analysis model will analyze and process the input feature vector, which involves complex mathematical operations, pattern recognition, statistical analysis and other processes to extract relevant information about the surface quality of parts from the feature vector; after analysis and processing, the preset analysis model will output a comprehensive analysis result. This result reflects the overall situation of the surface quality of the parts, which may include information such as surface roughness, surface defects and temperature distribution. This information can be used to evaluate the quality status of parts and guide subsequent production process adjustments and improvements.
[0086] S400. Through correlation analysis, the comprehensive analysis results are associated with material properties to obtain the correlation coefficients between different surface quality evaluation indicators and material properties. Regression analysis is performed based on the correlation coefficients to establish a mathematical model between component surface quality evaluation indicators and material properties.
[0087] It can be understood that step S400 includes S401, S402 and S403, wherein:
[0088] S401. Obtaining performance data of materials used in parts, wherein the performance data includes mechanical properties, wear resistance and corrosion resistance indicators of the materials;
[0089] S402, using the Spearman correlation coefficient, calculating the correlation coefficient between each evaluation index in the comprehensive analysis result and the performance data of the material, and obtaining the correlation coefficient between different surface quality evaluation indexes and the performance data of the material;
[0090] S403. Select an appropriate regression model based on the result of the correlation coefficient, and establish a mathematical model between the surface quality evaluation index of the component and the performance data of the material, wherein the regression model includes linear regression and polynomial regression, wherein the surface quality evaluation index is used as an independent variable and the material performance index is used as a dependent variable.
[0091] It should be noted that in this embodiment, the integrated feature vector is input into the preset analysis model. This step can be understood as providing the feature vector to a pre-built model, which can perform complex data analysis and processing based on the input feature vector. Specifically, the analysis model may use various machine learning algorithms or statistical methods, such as support vector machines and random forests, and the model has learned the relationship between the surface quality feature vector and the quality situation of the parts during the training phase. Secondly, after analysis and processing, the model processes the input feature vector, which may include feature weighting, data normalization, feature selection and other operations, so as to better adapt to the specific surface quality assessment problem of parts; wherein, the specific method of analysis and processing may vary depending on the application scenario and data characteristics, and may include data preprocessing, feature engineering and other steps to ensure the accuracy and reliability of the model. Finally, after analysis and processing, the model will obtain a comprehensive analysis result, that is, the overall situation of the surface quality of the parts, and the result may include information on multiple aspects such as surface roughness, surface defects and temperature distribution. This result can be obtained through the output of the model, usually presented in numerical or visual form; this result can provide important reference for adjustments and improvements in the production process, help optimize the parts manufacturing process, and improve product quality and production efficiency.
[0092] S500, obtaining second data of the component surface image after the sanding machine, inputting the second data into the mathematical model to obtain the component surface quality result, and using augmented reality technology to perform real-time evaluation, and finally obtaining the real-time evaluation result of the component surface quality, and combining the previous comprehensive analysis results to comprehensively generate the final component surface quality evaluation report based on the sanding machine.
[0093] It can be understood that step S500 includes S501, S502 and S503, wherein:
[0094] S501, extracting required features from the component surface quality results to obtain first extracted features, and using the first extracted features and the preset quality standard as two sets of data for comparison;
[0095] It should be noted that, in extracting the required features from the surface quality results of the parts, specific image processing algorithms and feature extraction methods are used to extract features related to the surface quality. In this embodiment, according to the actual situation, the histogram and color moment method may be used to extract color features, the gray level co-occurrence matrix method may be used to extract texture features, and the edge detection and contour extraction method may be used to extract shape features. The extracted features are screened and merged, representative and distinguishing features are selected, and the feature vectors obtained by each evaluation method are combined to form an integrated feature vector.
[0096] S502, performing matching processing on two sets of data according to image processing and pattern recognition algorithms to obtain matching processing results;
[0097] It should be noted that the extracted feature vectors and preset quality standards are converted into a suitable data format for matching processing; image processing and pattern recognition algorithms are used to perform feature matching on the two sets of data, and the similarity or difference between the feature vectors and the preset standards is compared. Commonly used matching algorithms include feature point matching algorithms and area matching algorithms, etc.; based on the results of the matching processing, the degree of matching between the surface quality characteristics of the parts and the expected quality standards is evaluated to determine whether the quality meets the standards.
[0098] S503 . Based on the matching processing result, the evaluation result is superimposed on the real-time image using augmented reality technology to obtain a real-time evaluation result of the surface quality of the component.
[0099] It should be noted that the evaluation results obtained by matching are superimposed on the real-time image of the parts in a virtual form, so that the operator can intuitively observe the quality of the surface of the parts; based on augmented reality technology, the calculated quality evaluation results are superimposed on the real-time image to ensure that the superimposed evaluation results can be accurately presented on the real-time image; the superposition step is: it is necessary to ensure that the evaluation results obtained by matching have the same coordinate system and scale as the real-time image, which usually involves image registration or posture estimation technology to ensure that the evaluation results can be correctly superimposed on the real-time image; it can be achieved by image superposition, that is, superimposing the graphics or marks of the evaluation results at a specific position of the real-time image. The superimposed graphics can be lines, labels, color blocks, etc., to represent different quality conditions or abnormal information; adjusting the transparency and reducing the transparency of the superimposed graphics can make it merge with the real-time image while retaining the visibility of the real-time image; as the real-time image changes, the evaluation results obtained by matching also need to be updated and superimposed in real time; it is necessary to add a real-time update mechanism in the algorithm of image superposition processing to ensure that the evaluation results are synchronized with the real-time image. Finally, the superimposed evaluation results are fed back to the operator in real time so that he can understand the surface quality of the parts in a timely manner and take necessary adjustments and improvement measures. Example 2
[0100] like Figure 2 As shown, this embodiment provides a component surface quality evaluation system based on a sanding machine, see Figure 2 The system comprises:
[0101] Acquisition module 701: used to acquire first data of a component surface image, and preprocess the first data according to a preset standard, wherein the preprocessing includes resizing, graying and denoising, to obtain preprocessed first surface image data of the component;
[0102] Establishing module 702: for extracting and analyzing the image features of the first surface image data using a machine learning algorithm based on the first surface image data, and establishing a correlation model between the surface quality of the component and the image features; wherein the correlation model uses a supervised learning method to automatically learn and establish a nonlinear mapping relationship between the surface quality of the component and the image features through the image data of the training set and the corresponding quality assessment data;
[0103] Analysis module 703: Based on the correlation model and the demand for component surface quality assessment, the multimodal data fusion technology is used to comprehensively analyze the data obtained by different surface quality assessment methods to obtain a comprehensive analysis result; wherein the multimodal data fusion technology uses a data fusion algorithm to integrate the data obtained by different assessment methods, wherein the comprehensive analysis result includes surface roughness, surface defects and temperature distribution information;
[0104] Correlation module 704: used to correlate the comprehensive analysis results with the material properties through correlation analysis, obtain the correlation coefficients between different surface quality evaluation indicators and material properties, and perform regression analysis based on the correlation coefficients to establish a mathematical model between the component surface quality evaluation indicators and material properties;
[0105] Evaluation module 705: used to obtain the second data of the component surface image after the sanding machine, input the second data into the mathematical model to obtain the component surface quality result, and use augmented reality technology to perform real-time evaluation, and finally obtain the real-time evaluation result of the component surface quality, and combine the previous comprehensive analysis results to comprehensively generate the final evaluation report of the component surface quality based on the sanding machine.
[0106] Specifically, the acquisition module 701 includes:
[0107] The analysis and detection unit 7011 is used to analyze the first data of the obtained component surface image by using the Canny edge detection algorithm, detect the local gradient change of the image in the first data, obtain the edge information in the image, and perform edge detection processing on the edge information to obtain the pixel position of the component edge in the image;
[0108] The marking unit 7012 is used to mark the edge of the component through edge detection based on the pixel position of the edge of the component in the image, and to segment the component surface image into a component area and a background area according to a region growing segmentation algorithm;
[0109] The first processing unit 7013 is used to convert the color image into a grayscale image according to the segmented component region image and the background region through grayscale processing to obtain a grayscale image of the component surface;
[0110] The second processing unit 7014 is used for applying a median filter to remove noise, performing noise elimination processing on the grayscale image of the component surface, and obtaining the first surface image data of the component after preprocessing.
[0111] Specifically, the establishment module 702 includes:
[0112] Extraction unit 7021: used to extract image features from the first surface image data using computer vision technology to obtain first feature information, second feature information and third feature information, wherein the first feature information is color feature extracted using a histogram and color moment method, the second feature information is texture feature extracted using a gray level co-occurrence matrix method, and the third feature information is shape feature extracted using an edge detection and contour extraction method;
[0113] The third processing unit 7022 is used to merge and filter the extracted first feature information, second feature information and third feature information to form a final feature vector, and use the principal component analysis method to perform dimension reduction processing on the final feature vector to obtain a feature vector after dimension reduction;
[0114] Input learning unit 7023: used to input the feature vector after dimension reduction into the supervised learning algorithm, and obtain the association model between the surface quality of the component and the image features by learning the nonlinear mapping relationship between the surface quality of the component and the image features.
[0115] Specifically, the analysis module 703 includes:
[0116] The fourth processing unit 7031 is used to obtain data obtained by various surface quality assessment methods, including raw data obtained by different assessment methods such as component surface roughness measurement, optical inspection and thermal imaging inspection, clean the raw data, remove outliers and fill missing values, correct and normalize the pre-processed raw data, and use the processing results as input data for multimodal data fusion;
[0117] The combination unit 7032 is used to extract features from the data obtained by each evaluation method in the processing results, extract a feature vector with representativeness and discrimination, and combine the feature vectors obtained by each evaluation method to form an integrated feature vector. The calculation formula is as follows:
[0118] {F}_{feature}=\left [ {{f}_{1}{f}_{2},{...f}_{m}} \right ]\, \,
[0119] In the formula, F 特征 represents the integrated eigenvector, f m represents the mth feature, and m represents the total number of all features;
[0120] Analysis and processing unit 7033: used to input the integrated feature vector into a preset analysis model, and finally obtain a comprehensive analysis result after analysis and processing. The comprehensive analysis result includes the overall situation of the surface quality of the parts, wherein the overall situation includes surface roughness, surface defects and temperature distribution information.
[0121] Specifically, the association module 704 includes:
[0122] Acquisition unit 7041: used to acquire performance data of materials used in parts, wherein the performance data includes mechanical properties, wear resistance and corrosion resistance performance indicators of the materials;
[0123] Calculation unit 7042: used to calculate the correlation coefficient between each evaluation index in the comprehensive analysis result and the performance data of the material using the Spearman correlation coefficient, so as to obtain the correlation coefficient between different surface quality evaluation indexes and the performance data of the material;
[0124] Establishing unit 7043: for selecting an appropriate regression model based on the result of the correlation coefficient, and establishing a mathematical model between the surface quality evaluation index of the component and the performance data of the material, wherein the regression model includes linear regression and polynomial regression, wherein the surface quality evaluation index is used as an independent variable and the material performance index is used as a dependent variable.
[0125] Specifically, the evaluation module 705 includes:
[0126] The feature extraction unit 7051 is used to extract the required features from the surface quality results of the parts to obtain the first extracted features, and the first extracted features and the preset quality standards are used as two sets of data for comparison;
[0127] The fifth processing unit 7052 is used to perform matching processing on two sets of data according to image processing and pattern recognition algorithms to obtain matching processing results;
[0128] Real-time evaluation unit 7053: used to superimpose the evaluation result on the real-time image based on the matching processing result by using augmented reality technology to obtain the real-time evaluation result of the surface quality of the component.
[0129] It should be noted that, regarding the system in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0130] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0131] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for evaluating the surface quality of parts based on a sanding machine, characterized in that: include: Acquire first data of a component surface image, and preprocess the first data according to a preset standard, wherein the preprocessing includes resizing, graying, and denoising, to obtain preprocessed first surface image data of the component; Extracting and analyzing image features of the first surface image data using a machine learning algorithm based on the first surface image data, and establishing a correlation model between the surface quality of the component and the image features; wherein the correlation model uses a supervised learning method to automatically learn and establish a nonlinear mapping relationship between the surface quality of the component and the image features through the image data of the training set and the corresponding quality assessment data; Based on the correlation model and the needs of component surface quality assessment, multimodal data fusion technology is used to comprehensively analyze the data obtained by different surface quality assessment methods to obtain comprehensive analysis results; the multimodal data fusion technology uses data fusion algorithms to integrate the data obtained by different assessment methods, and the comprehensive analysis results include surface roughness, surface defects and temperature distribution information; Through correlation analysis, the comprehensive analysis results are associated with material properties to obtain the correlation coefficients between different surface quality evaluation indicators and material properties. Regression analysis is performed based on the correlation coefficients to establish a mathematical model between component surface quality evaluation indicators and material properties. Acquire second data of the component surface image after the sanding machine, input the second data into the mathematical model to obtain the component surface quality result, and use augmented reality technology to perform real-time evaluation, finally obtain the real-time evaluation result of the component surface quality, and combine the previous comprehensive analysis results to comprehensively generate the final component surface quality evaluation report based on the sanding machine; Among them, the comprehensive analysis results are associated with material properties through correlation analysis to obtain the correlation coefficients between different surface quality evaluation indicators and material properties, and regression analysis is performed based on the correlation coefficients to establish a mathematical model between the surface quality evaluation indicators of parts and materials properties, including: Obtain the performance data of the materials used in the parts, including the mechanical properties, wear resistance and corrosion resistance of the materials; The Spearman correlation coefficient is used to calculate the correlation coefficient between each evaluation index in the comprehensive analysis result and the material performance data, and the correlation coefficient between different surface quality evaluation indexes and the material performance data is obtained; Select an appropriate regression model based on the result of the correlation coefficient, and establish a mathematical model between the surface quality evaluation index of the component and the performance data of the material, wherein the regression model includes linear regression and polynomial regression, wherein the surface quality evaluation index is used as an independent variable and the material performance index is used as a dependent variable; Among them, the integrated feature vector is input into the preset analysis model, that is, the feature vector is provided to a pre-built model, and the model can perform data analysis and processing according to the input feature vector, wherein the analysis model adopts support vector machine or random forest, and this model has learned the relationship between the surface quality feature vector and the quality situation of the parts in the training stage; after analysis and processing, the model processes the input feature vector, including feature weighting, data normalization and feature selection, and then evaluates the surface quality of the parts; wherein, the processing method includes data preprocessing and feature engineering, and finally after analysis, the model will obtain a comprehensive analysis result, that is, the overall situation of the surface quality of the parts, wherein the results of the overall situation include surface roughness, surface defects and temperature distribution information, and are output through the model.
2. The method for evaluating the surface quality of parts based on a sanding machine according to claim 1, characterized in that: The first data of the component surface image is obtained, and the first data is preprocessed according to a preset standard, wherein the preprocessing includes resizing, graying and denoising, to obtain the preprocessed first surface image data of the component, including: Using the Canny edge detection algorithm, the first data of the obtained component surface image is analyzed, the local gradient change of the image in the first data is detected to obtain edge information in the image, and the edge information is processed by edge detection to obtain the pixel position of the component edge in the image; Based on the pixel position of the edge of the component in the image, the edge of the component is marked by edge detection, and the surface image of the component is segmented into the component area and the background area according to the region growing segmentation algorithm; According to the segmented component area image and background area, the color image is converted into a grayscale image through grayscale processing to obtain a grayscale image of the component surface; The median filter is used to remove noise and perform noise elimination on the grayscale image of the component surface to obtain the first surface image data of the component after preprocessing.
3. The method for evaluating the surface quality of parts based on a sanding machine according to claim 1, characterized in that: The method uses a machine learning algorithm to extract and analyze the image features of the first surface image data based on the first surface image data, and establishes a correlation model between the surface quality of the component and the image features, including: Using computer vision technology to extract image features from the first surface image data, obtaining first feature information, second feature information, and third feature information, wherein the first feature information is color feature extracted using a histogram and color moment method, the second feature information is texture feature extracted using a gray level co-occurrence matrix method, and the third feature information is shape feature extracted using an edge detection and contour extraction method; The extracted first feature information, the second feature information and the third feature information are combined and screened to form a final feature vector, and the principal component analysis method is used to perform dimension reduction processing on the final feature vector to obtain a feature vector after dimension reduction; The feature vector after dimensionality reduction is input into the supervised learning algorithm, and the association model between the surface quality of parts and image features is obtained by learning the nonlinear mapping relationship between the surface quality of parts and image features.
4. The method for evaluating the surface quality of parts based on a sanding machine according to claim 1, characterized in that: Based on the correlation model and the demand for component surface quality assessment, multimodal data fusion technology is used to comprehensively analyze the data obtained by different surface quality assessment methods to obtain comprehensive analysis results, including: Obtain the data obtained by various surface quality assessment methods, including raw data obtained by different assessment methods such as component surface roughness measurement, optical inspection and thermal imaging inspection, clean the raw data, remove outliers and fill in missing values, correct and normalize the pre-processed raw data, and use the processing results as input data for multimodal data fusion; The data obtained by each evaluation method in the processing results are subjected to feature extraction to extract representative and discriminative feature vectors, and the feature vectors obtained by each evaluation method are combined to form an integrated feature vector, the calculation formula of which is as follows: In the formula, F 特征 represents the integrated eigenvector, f m represents the mth feature, and m represents the total number of all features; The integrated feature vector is input into the preset analysis model, and after analysis and processing, a comprehensive analysis result is finally obtained. The comprehensive analysis result includes the overall situation of the surface quality of the parts, including surface roughness, surface defects and temperature distribution information.
5. The method for evaluating the surface quality of parts based on a sanding machine according to claim 1, characterized in that: The correlation coefficient between each evaluation index in the comprehensive analysis result and the performance data of the material is calculated, and the calculation formula is as follows: In the formula, n is the sample size, p is the probability, which represents the probability that all numbers in a randomly selected integer sequence are different. d Represents the rank difference between two variables.
6. The method for evaluating the surface quality of parts based on a sanding machine according to claim 1, characterized in that: The real-time evaluation using augmented reality technology ultimately obtains the real-time evaluation results of the surface quality of the parts, including: Extract the required features from the surface quality results of the parts to obtain the first extracted features, and use the first extracted features and the preset quality standards as two sets of data for comparison; According to the image processing and pattern recognition algorithm, the two sets of data are matched and processed to obtain the matching processing result; Based on the matching processing results, the evaluation results are superimposed on the real-time image using augmented reality technology to obtain real-time evaluation results of the surface quality of parts.
7. A system for evaluating the surface quality of parts based on a sanding machine, based on the method for evaluating the surface quality of parts based on a sanding machine according to claim 1, characterized in that: include: An acquisition module is used to acquire first data of a component surface image, and preprocess the first data according to a preset standard, wherein the preprocessing includes resizing, graying and denoising, to obtain the preprocessed first surface image data of the component; Establishing module: for extracting and analyzing the image features of the first surface image data by using a machine learning algorithm according to the first surface image data, and establishing a correlation model between the surface quality of the component and the image features; wherein the correlation model uses a supervised learning method to automatically learn and establish a nonlinear mapping relationship between the surface quality of the component and the image features through the image data of the training set and the corresponding quality assessment data; Analysis module: Based on the correlation model and the needs of component surface quality assessment, the multimodal data fusion technology is used to comprehensively analyze the data obtained by different surface quality assessment methods to obtain comprehensive analysis results. The multimodal data fusion technology uses data fusion algorithms to integrate the data obtained by different assessment methods, and the comprehensive analysis results include surface roughness, surface defects and temperature distribution information. Correlation module: used to correlate the comprehensive analysis results with material properties through correlation analysis, obtain the correlation coefficients between different surface quality evaluation indicators and material properties, and perform regression analysis based on the correlation coefficients to establish a mathematical model between the surface quality evaluation indicators of parts and materials properties; Evaluation module: used to obtain the second data of the surface image of the component after the sanding machine, input the second data into the mathematical model to obtain the surface quality result of the component, and use the augmented reality technology to perform real-time evaluation, and finally obtain the real-time evaluation result of the surface quality of the component, and combine the previous comprehensive analysis results to comprehensively generate the final evaluation report of the surface quality of the component based on the sanding machine; Wherein, the association module includes: Acquisition unit: used to obtain the performance data of the materials used in the parts, where the performance data includes the mechanical properties, wear resistance and corrosion resistance of the materials; Calculation unit: used to calculate the correlation coefficient between each evaluation index in the comprehensive analysis result and the performance data of the material using the Spearman correlation coefficient, and obtain the correlation coefficient between different surface quality evaluation indexes and the performance data of the material; Establishment unit: used to select an appropriate regression model based on the result of the correlation coefficient, and to establish a mathematical model between the surface quality evaluation index of the component and the performance data of the material, wherein the regression model includes linear regression and polynomial regression, wherein the surface quality evaluation index is used as an independent variable and the material performance index is used as a dependent variable.
8. The component surface quality evaluation system based on a sanding machine according to claim 7, characterized in that: The acquisition module includes: An analysis and detection unit is used to analyze the first data of the obtained component surface image by using the Canny edge detection algorithm, detect the local gradient change of the image in the first data, obtain edge information in the image, and process the edge information through edge detection to obtain the pixel position of the component edge in the image; Marking unit: used to mark the edge of the component through edge detection based on the pixel position of the edge of the component in the image, and segment the component surface image into the component area and the background area according to the region growing segmentation algorithm; The first processing unit is used for converting the color image into a grayscale image according to the segmented component area image and the background area through grayscale processing to obtain a grayscale image of the component surface; The second processing unit is used for applying a median filter to remove noise, performing noise elimination processing on the grayscale image of the surface of the component, and obtaining the first surface image data of the component after preprocessing.
9. The component surface quality evaluation system based on a sanding machine according to claim 7, characterized in that: The establishment module includes: Extraction unit: used for extracting image features from the first surface image data by using computer vision technology to obtain first feature information, second feature information and third feature information, wherein the first feature information is color feature extracted by using histogram and color moment method, the second feature information is texture feature extracted by using gray level co-occurrence matrix method, and the third feature information is shape feature extracted by using edge detection and contour extraction method; The third processing unit is used to merge and filter the extracted first feature information, second feature information and third feature information to form a final feature vector, and use the principal component analysis method to perform dimension reduction processing on the final feature vector to obtain a feature vector after dimension reduction; Input learning unit: used to input the feature vector after dimension reduction into the supervised learning algorithm, and obtain the association model between the surface quality of parts and image features by learning the nonlinear mapping relationship between the surface quality of parts and image features.
Citation Information
Patent Citations
Melanoma texture feature extraction system and method
CN117094956A
Plastic master batch quality inspection method and system based on machine vision
CN117095005A
Track defect detection method and system
CN117218107A
Textile production quality prediction method based on data identification
CN117273554A
Intelligent detection method and system for mold pressing temperature of optical glass
CN117388314A
