Stainless steel picture recognition analysis method and system based on computer vision
Through computer vision and deep learning technology, the physical and organizational characteristics of stainless steel pictures are extracted and deep learning models are trained, which solves the problems of low efficiency and poor accuracy of traditional methods, and realizes efficient, accurate analysis and quality monitoring of stainless steel pictures.
Patent Information
- Application Number
- CN202411121891.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-08-15
AI Technical Summary
The existing stainless steel analysis methods rely on human eye observation and experience, are inefficient and difficult to guarantee, resulting in large labor consumption and construction period impacts.
Using stainless steel image recognition and analysis methods based on computer vision and deep learning technology, we can realize automated analysis and evaluation of stainless steel images by acquiring and preprocessing images, extracting physical features and organizational features, training machine models and integrating deep learning models.
It improves the accuracy and efficiency of stainless steel analysis, reduces artificial errors, and realizes accurate monitoring of material quality and guarantees of stainless steel quality.
Smart Images

Figure CN119006915A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of computer vision and material science and technology, and in particular to a stainless steel image recognition and analysis method and system based on computer vision. Background Art
[0002] Analyzing the structure of stainless steel and evaluating its performance are of great significance for ensuring product quality, improving manufacturing processes and optimizing performance. Understanding the structure of stainless steel can help us better understand its performance characteristics, and help to make reasonable material selection, process design and product improvement. Existing stainless steel analysis methods are mainly identified through metallographic analysis. Metallographic analysis is an important means of detecting the internal structure of metals in materials science and an important method for studying whether metal materials have failed. Traditional metallographic analysis methods usually rely on human observation and experience, which is inefficient and difficult to guarantee accuracy. In addition, the inspection results need to be reviewed repeatedly, which often affects the construction period and requires a lot of manpower. With the development of computer vision and artificial intelligence technology, the use of these technologies to automatically analyze metallographic images is of great significance to materials engineering, manufacturing and scientific research. Summary of the invention
[0003] In order to overcome the shortcomings of the prior art, the purpose of the present invention is to provide a stainless steel image recognition and analysis method and system based on computer vision. By introducing computer vision and deep learning technology, stainless steel images can be accurately and efficiently identified and analyzed to reduce human errors, achieve accurate monitoring of material quality, and ensure the quality and performance of stainless steel.
[0004] To achieve the above object, the present invention provides the following solution: a stainless steel image recognition and analysis method based on computer vision, comprising the following steps:
[0005] Obtaining a common image and a metallographic image of a stainless steel sample and performing image preprocessing to obtain an image set, and then extracting physical features and organizational features based on the image set;
[0006] Selecting and training a machine model using the image set, the physical features, and the tissue features, and integrating the trained machine models to obtain a deep learning model;
[0007] Analyze and predict newly input stainless steel images using the deep learning model to obtain evaluation results, loss conditions, and life predictions of the stainless steel images;
[0008] Generate visual reports based on analysis and prediction results.
[0009] Optionally, the image preprocessing includes grayscale processing, denoising processing, contrast enhancement processing and image segmentation processing; the physical characteristics include color, texture and shape; and the tissue characteristics include phase boundaries, pores and grains.
[0010] Optionally, the training process of the machine model includes appearance analysis training, performance analysis training, loss analysis training and life prediction training.
[0011] Optionally, the process of appearance analysis training is:
[0012] Integrate the common image and the physical features into an appearance image set, and perform spectrum measurement, denoising, color correction and white balance processing operations based on the appearance image set;
[0013] Based on the processed appearance image set, analyzing and extracting color histogram, brightness distribution, texture features and glossiness to obtain spectral data;
[0014] Using the spectral data, selecting a first machine model to calculate the chromaticity data of the stainless steel samples and the color difference between different samples;
[0015] The surface quality of the stainless steel is evaluated based on the chromaticity data and the color difference, thereby completing the appearance analysis training.
[0016] Optionally, the performance analysis training process is:
[0017] Selecting a second machine model, and inputting the pores, the phase boundaries and the grains into the second machine model for calculation and statistics;
[0018] Calculating the porosity of the pores and counting the size, shape and distribution of the pores, calculating the area and length of the phase boundary and counting the type of the phase boundary, calculating the average size distribution of the grains and analyzing the shape of the grains to obtain a performance data set;
[0019] The performance data set and the use environment information of the stainless steel sample are integrated to obtain an initial performance report, thereby completing the performance analysis training.
[0020] Optionally, the process of the loss analysis training is:
[0021] Combining the physical features and the tissue features by means of feature superposition to obtain a feature data set, and grouping and classifying different features in the feature data set;
[0022] Selecting a third machine model, training the third machine model using the feature data set to obtain a wear model, and implementing the wear analysis training;
[0023] Input the stainless steel samples into the wear model to obtain the wear degree and wear cause of each stainless steel sample; the wear cause is composed of various characteristics;
[0024] Among them, local sensitivity analysis technology is introduced into the wear model to identify the feature combination in the wear cause and the wear degree proportion of each feature.
[0025] Optionally, the lifespan prediction training process is:
[0026] selecting a fourth machine model, presetting an actual life value in the fourth machine model, and training the fourth machine model using the feature data set to obtain an initial prediction model;
[0027] Inputting the stainless steel sample into the initial prediction model to perform prediction and obtain a prediction result, and comparing and calculating the prediction result with the actual life value to obtain a prediction difference;
[0028] The feature importance of the comprehensive data set is calculated and obtained, and the life prediction model is adjusted and optimized in combination with the feature importance and the prediction difference to obtain the life prediction model and complete the life prediction training.
[0029] Optionally, the process of integrating the trained machine model to obtain a deep learning model is:
[0030] Designing a deep learning framework with a multi-input and multi-output structure, and integrating the first machine model, the second machine model, the wear model, and the life prediction model as sub-models into the deep learning framework to obtain an initial learning model;
[0031] Integrate the physical characteristics, the organizational characteristics, the wear data and the life data into a comprehensive data set that meets the input requirements, and train and optimize the initial learning model by combining the comprehensive data set and the introduced optimizer to obtain the deep learning model;
[0032] New stainless steel samples are input into the deep learning model for identification and analysis, and comprehensive performance evaluation results, loss conditions and life prediction values are output.
[0033] The present invention also provides a stainless steel image recognition and analysis system based on computer vision, comprising:
[0034] An image processing module, used to obtain a common image and a metallographic image of the stainless steel sample and perform image preprocessing to obtain an image set, and then extract physical features and organizational features based on the image set;
[0035] A model learning module, for selecting and training a machine model using the image set, the physical features, and the tissue features, and then integrating the trained machine model to obtain a deep learning model;
[0036] An image analysis module, used to analyze and predict newly input stainless steel images using the deep learning model to obtain evaluation results, loss conditions, and life predictions of the stainless steel images;
[0037] The visualization module is used to generate visualization reports based on the analysis and prediction results.
[0038] The present invention discloses the following technical effects by providing a stainless steel image recognition and analysis method and system based on computer vision:
[0039] 1. The present invention identifies and analyzes stainless steel by combining the physical appearance characteristics and key organizational structures of stainless steel, which can comprehensively and accurately identify and analyze stainless steel, improve the accuracy of identification and analysis results, and can find problems in a targeted manner, realize accurate quality monitoring, and ensure the quality and performance of stainless steel.
[0040] 2. By introducing computer vision and establishing a deep learning model, the present invention can achieve comprehensive performance evaluation, analyze the degree of material wear and predict service life. It can accurately and efficiently identify and analyze stainless steel images. Compared with traditional methods, the present invention has a high degree of automation, good accuracy and repeatability, improves the analysis efficiency of stainless steel, and reduces human errors.
[0041] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0043] Figure 1 A flow chart of a method provided by an embodiment of the present invention;
[0044] Figure 2 A system architecture diagram provided for an embodiment of the present invention. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0047] like Figure 1 As shown, the present invention provides a stainless steel image recognition and analysis method based on computer vision, comprising the following steps:
[0048] 1. Obtain ordinary images and metallographic images of stainless steel samples and perform image preprocessing to obtain an image set, and then extract physical features and organizational features based on the image set.
[0049] 1.1 The image preprocessing includes:
[0050] Grayscale processing, converting color images into grayscale images to reduce noise and calculation complexity;
[0051] De-noising, using Gaussian filtering, mean filtering or median filtering;
[0052] Enhance contrast processing, enhance image contrast through histogram equalization and other methods to make details clearer;
[0053] Image segmentation processing uses methods such as Otsu threshold and Canny edge detection to automatically segment images and highlight key structures.
[0054] 1.2 The physical characteristics include color, texture and shape.
[0055] 1.3 The organizational characteristics include
[0056] Phase boundary, use edge detection algorithms such as Sobel and Canny to extract phase boundaries, and use Harris corner detection or SIFT algorithm to extract phase boundary feature points;
[0057] Pores, using morphological operations such as opening and closing operations to identify pores, and applying region growing algorithm to low grayscale areas in the image to further refine pore features;
[0058] Grains,use the watershed algorithm to segment the image,identify and mark the grain boundaries, and calculate the area,perimeter and other geometric features of each grain.
[0059] 2. Using the image set, the physical features and the tissue features, select and train a machine model, and then integrate the trained machine model to obtain a deep learning model; the training process of the machine model includes appearance analysis training, performance analysis training, loss analysis training and life prediction training.
[0060] 2.1 The process of appearance analysis training is as follows:
[0061] Integrate the common image and the physical features into an appearance image set, and perform spectrum measurement, denoising, color correction and white balance processing operations based on the appearance image set;
[0062] Based on the processed appearance image set, the color histogram, brightness distribution, texture features and glossiness are analyzed and extracted to obtain spectral data; wherein, color histogram: the color channel is obtained by calculating the color histogram of the image. Brightness distribution: the brightness distribution histogram or cumulative distribution (CDF) representation of the image is analyzed. Texture features: the texture features of the surface are extracted by methods such as grayscale co-occurrence matrix (GL) and local binary pattern (LB). Gloss analysis: the glossiness of the material surface is analyzed by the size and shape of the reflected light spot of the image. A high glossiness usually indicates a high surface smoothness.
[0063] Using the spectral data, selecting a first machine model to calculate the chromaticity data of the stainless steel samples and the color difference between different samples;
[0064] The surface quality of the stainless steel is evaluated based on the chromaticity data and the color difference, thereby completing the appearance analysis training.
[0065] 2.2 The process of performance analysis training is as follows:
[0066] Selecting a second machine model, and inputting the pores, the phase boundaries and the grains into the second machine model for calculation and statistics;
[0067] Calculate the porosity of the pores (the ratio of pores to the total volume in the image) and count the size, shape and distribution of the pores; large pores and unevenly distributed pores usually reduce the strength and wear resistance of the material;
[0068] Calculate the area and length of the phase boundary. The longer the phase boundary, the easier it is for the material to slip and break under shear stress. And count the types of the phase boundary. Different phase boundaries will affect their durability. For example, the phase boundary between some phases (such as martensite and austenite) is more likely to become the source of fatigue cracks.
[0069] Calculating the average size distribution of the grains and analyzing the shape of the grains to obtain a performance data set; analyzing whether the shape of the grains is regular (such as round, circular), regular grains generally exhibit better mechanical properties;
[0070] The performance data set and the use environment information of the stainless steel sample are integrated to obtain an initial performance report, thereby completing the performance analysis training.
[0071] 2.3 The process of loss analysis training is as follows:
[0072] Combining the physical features and the tissue features by means of feature superposition to obtain a feature data set, and grouping and classifying different features in the feature data set;
[0073] Selecting a third machine model, training the third machine model using the feature data set to obtain a wear model, and implementing the wear analysis training;
[0074] Input the stainless steel samples into the wear model to obtain the wear degree and wear cause of each stainless steel sample; the wear cause is composed of various characteristics;
[0075] Among them, local sensitivity analysis technology is introduced into the wear model to identify the feature combination in the wear cause and the wear degree proportion of each feature.
[0076] If different combinations of features may lead to the same degree of wear, this can be identified through the wear model. For example, interpretability techniques (such as SHAP values, local sensitivity analysis) can be used to understand which features have a significant impact on wear, thereby identifying the specific feature combination where the problem lies.
[0077] The process of life prediction training described in 2.4 is as follows:
[0078] selecting a fourth machine model, presetting an actual life value in the fourth machine model, and training the fourth machine model using the feature data set to obtain an initial prediction model;
[0079] Inputting the stainless steel sample into the initial prediction model to perform prediction and obtain a prediction result, and comparing and calculating the prediction result with the actual life value to obtain a prediction difference;
[0080] The feature importance of the comprehensive data set is calculated and obtained to understand the influence of each feature on life prediction. The life prediction model is adjusted and optimized (including adjusting feature selection, model structure or hyperparameter setting) based on the feature importance and the prediction difference to obtain the life prediction model and complete the life prediction training.
[0081] 2.5 The process of integrating the trained machine model to obtain the deep learning model is:
[0082] Designing a deep learning framework with a multi-input and multi-output structure, and integrating the first machine model, the second machine model, the wear model, and the life prediction model as sub-models into the deep learning framework, while considering how to transfer features and output information to obtain an initial learning model;
[0083] Integrate the physical characteristics, the organizational characteristics, the wear data and the life data into a comprehensive data set that meets the input requirements, and train and optimize the initial learning model by combining the comprehensive data set and the introduced optimizer to obtain the deep learning model;
[0084] New stainless steel samples are input into the deep learning model for identification and analysis, and comprehensive performance evaluation results, loss conditions and life prediction values are output.
[0085] 3. Use the deep learning model to analyze and predict newly input stainless steel images to obtain evaluation results, loss conditions and life predictions of the stainless steel images.
[0086] 4. Generate visual reports based on analysis and prediction results.
[0087] like Figure 2 As shown, the present invention also provides a stainless steel image recognition and analysis system based on computer vision, comprising:
[0088] An image processing module, used to obtain a common image and a metallographic image of the stainless steel sample and perform image preprocessing to obtain an image set, and then extract physical features and organizational features based on the image set;
[0089] A model learning module, for selecting and training a machine model using the image set, the physical features, and the tissue features, and then integrating the trained machine model to obtain a deep learning model;
[0090] An image analysis module, used to analyze and predict newly input stainless steel images using the deep learning model to obtain evaluation results, loss conditions, and life predictions of the stainless steel images;
[0091] Visualization module, used to generate visual reports based on the analysis and prediction results
[0092] Therefore, the present invention provides a stainless steel image recognition and analysis method and system based on computer vision. By introducing computer vision and deep learning technology, it can accurately and efficiently identify and analyze stainless steel images to reduce human errors, achieve accurate monitoring of material quality, and ensure the quality and performance of stainless steel.
[0093] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0094] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A stainless steel image recognition and analysis method based on computer vision, characterized in that: The following steps are involved: Obtaining a common image and a metallographic image of a stainless steel sample and performing image preprocessing to obtain an image set, and then extracting physical features and organizational features based on the image set; Selecting and training a machine model using the image set, the physical features, and the tissue features, and integrating the trained machine models to obtain a deep learning model; Analyze and predict newly input stainless steel images using the deep learning model to obtain evaluation results, loss conditions, and life predictions of the stainless steel images; Generate visual reports based on analysis and prediction results.
2. The stainless steel image recognition and analysis method based on computer vision according to claim 1, characterized in that: The image preprocessing includes grayscale processing, denoising processing, contrast enhancement processing and image segmentation processing; the physical characteristics include color, texture and shape; the organizational characteristics include phase boundaries, pores and grains.
3. The stainless steel image recognition and analysis method based on computer vision according to claim 2 is characterized in that: The training process of the machine model includes appearance analysis training, performance analysis training, loss analysis training and life prediction training.
4. The stainless steel image recognition and analysis method based on computer vision according to claim 3 is characterized in that: The process of appearance analysis training is as follows: Integrate the common image and the physical features into an appearance image set, and perform spectrum measurement, denoising, color correction and white balance processing operations based on the appearance image set; Based on the processed appearance image set, analyzing and extracting color histogram, brightness distribution, texture features and glossiness to obtain spectral data; Using the spectral data, selecting a first machine model to calculate the chromaticity data of the stainless steel samples and the color difference between different samples; The surface quality of the stainless steel is evaluated based on the chromaticity data and the color difference, thereby completing the appearance analysis training.
5. The stainless steel image recognition and analysis method based on computer vision according to claim 4 is characterized in that: The process of the performance analysis training is as follows: Selecting a second machine model, and inputting the pores, the phase boundaries and the grains into the second machine model for calculation and statistics; Calculating the porosity of the pores and counting the size, shape and distribution of the pores, calculating the area and length of the phase boundary and counting the type of the phase boundary, calculating the average size distribution of the grains and analyzing the shape of the grains to obtain a performance data set; The performance data set and the use environment information of the stainless steel sample are integrated to obtain an initial performance report, thereby completing the performance analysis training.
6. The stainless steel image recognition and analysis method based on computer vision according to claim 5, characterized in that: The process of loss analysis training is: Combining the physical features and the tissue features by means of feature superposition to obtain a feature data set, and grouping and classifying different features in the feature data set; Selecting a third machine model, training the third machine model using the feature data set to obtain a wear model, and implementing the wear analysis training; Input the stainless steel samples into the wear model to obtain the wear degree and wear cause of each stainless steel sample; the wear cause is composed of various characteristics; Among them, local sensitivity analysis technology is introduced into the wear model to identify the feature combination in the wear cause and the wear degree proportion of each feature.
7. The stainless steel image recognition and analysis method based on computer vision according to claim 6 is characterized in that: The process of life prediction training is as follows: selecting a fourth machine model, presetting an actual life value in the fourth machine model, and training the fourth machine model using the feature data set to obtain an initial prediction model; Inputting the stainless steel sample into the initial prediction model to perform prediction and obtain a prediction result, and comparing and calculating the prediction result with the actual life value to obtain a prediction difference; The feature importance of the comprehensive data set is calculated and obtained, and the life prediction model is adjusted and optimized in combination with the feature importance and the prediction difference to obtain the life prediction model and complete the life prediction training.
8. The computer vision-based stainless steel image recognition and analysis method according to claim 7, characterized in that: The process of integrating the trained machine model to obtain a deep learning model is: Designing a deep learning framework with a multi-input and multi-output structure, and integrating the first machine model, the second machine model, the wear model, and the life prediction model as sub-models into the deep learning framework to obtain an initial learning model; Integrate the physical characteristics, the organizational characteristics, the wear data and the life data into a comprehensive data set that meets the input requirements, and train and optimize the initial learning model by combining the comprehensive data set and the introduced optimizer to obtain the deep learning model; New stainless steel samples are input into the deep learning model for identification and analysis, and comprehensive performance evaluation results, loss conditions and life prediction values are output.
9. A stainless steel image recognition and analysis system based on computer vision, characterized in that: include: An image processing module, used to obtain a common image and a metallographic image of the stainless steel sample and perform image preprocessing to obtain an image set, and then extract physical features and organizational features based on the image set; A model learning module, for selecting and training a machine model using the image set, the physical features, and the tissue features, and then integrating the trained machine model to obtain a deep learning model; An image analysis module, used to analyze and predict newly input stainless steel images using the deep learning model to obtain evaluation results, loss conditions, and life predictions of the stainless steel images; The visualization module is used to generate visualization reports based on the analysis and prediction results.
Citation Information
Patent Citations
Selective laser melting forming 316L stainless steel wear prediction method based on machine learning
CN114117684A
Stainless steel tablet press surface quality evaluation method based on optical means
CN114627125A
Intelligent identification and rating method for nonmetallic inclusions in steel based on deep learning
CN114694144A
Flying steel detection system and method based on machine vision
CN116523893A
Profile defect visual inspection method based on image processing
CN117152119A
