5G edge computing-based quality management method and equipment
By deploying 5G edge computing equipment and support vector machine models in the factory, part image data can be analyzed in real time, which solves the problem of cloud processing delay, enables instant detection and control of part defects, and improves production efficiency and product quality.
Patent Information
- Application Number
- CN202410794919.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-10-01
AI Technical Summary
Existing part defect detection is processed in the cloud, causing delays and affecting the efficiency of production lines that require high real-time performance.
Adopting a quality management method based on 5G edge computing, by deploying 5G edge computing equipment at various data collection points in the factory, the support vector machine model is used to analyze image data in real time, identify surface defects of parts, and perform clustering and data output to achieve rapid feedback and control.
It realizes real-time detection and control of part defects, improves production efficiency and product quality, reduces data transmission delays, and improves real-time performance.
Smart Images

Figure CN118735872A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of production management technology, and in particular to a quality management method and device based on 5G edge computing. Background Art
[0002] Part defect detection is an important part of quality control in the manufacturing industry. It uses high-precision detection technology to identify flaws and damage on the surface of parts to ensure that products meet strict quality standards. This process involves the application of technologies such as image processing and machine learning. Through the analysis of part images by a well-trained detection system, defects such as scratches, cracks and pits are automatically identified. This detection technology not only improves production efficiency, but also greatly improves product quality, ensuring that products can withstand strict quality review before being delivered to customers.
[0003] Existing part defect detection is mainly processed in the cloud. Since part defect detection requires processing a large amount of image data, processing this data in the cloud requires uploading the image to the server and then downloading the processing results back to the local computer. This process will cause a long delay, affecting the efficiency of production lines with high real-time requirements. Summary of the invention
[0004] The purpose of the present invention is to provide a quality management method and device based on 5G edge computing, which aims to collect and control data in real time and improve production efficiency and product quality.
[0005] To achieve the above-mentioned purpose, in a first aspect, the present invention provides a quality management method based on 5G edge computing, comprising deploying a 5G edge computing device at the center of each data collection point in the factory;
[0006] Using historical part defect images to train a support vector machine model, the part defects include scratches, cracks, and pits;
[0007] Deploy the support vector machine model in 5G edge computing devices;
[0008] Use a high-definition camera to shoot the surface of the part and obtain high-resolution image data;
[0009] The image data is transmitted to the 5G edge computing device for analysis through the support vector machine model to identify surface defects and select the corresponding defect images;
[0010] Clustering defect images to obtain defect image groups;
[0011] Based on the defect image group, the corresponding production information is captured and packaged for output.
[0012] The specific steps of deploying 5G edge computing equipment at the center of each data collection point in the factory include:
[0013] Identify the various data collection points in the plant;
[0014] Collect the plane position coordinates of each data collection point;
[0015] The center position point is calculated based on all plane position coordinates using the least square method;
[0016] Deploy 5G edge computing devices at central locations.
[0017] Wherein, the data collection points include sensors, surveillance cameras and industrial robots.
[0018] The specific steps of using historical part defect images to train the support vector machine model, wherein the part defects include scratches, cracks and pits, include:
[0019] Collect historical part defect image data, which should include different types of defects, including scratches, cracks, and pits;
[0020] Preprocessing the collected image data;
[0021] Extract discriminative geometric and texture features from the preprocessed image;
[0022] Extract effective features from geometric features and texture features through principal component analysis;
[0023] Use the valid features to train the SVM model.
[0024] The specific steps of preprocessing the collected image data include:
[0025] Use median filtering to remove noise from the image;
[0026] Enhance defect features in images by adjusting contrast;
[0027] Separate defect areas from background areas in an image.
[0028] The specific steps of extracting effective features through principal component analysis include:
[0029] Normalize geometric features and texture features;
[0030] Calculate the covariance matrix between geometric features and texture features;
[0031] Solve the eigenvalues and corresponding eigenvectors of the covariance matrix;
[0032] Arrange the eigenvalues in descending order according to their size, and select the eigenvectors corresponding to the first a largest eigenvalues;
[0033] Construct a projection matrix using the selected a eigenvectors;
[0034] The projection matrix is used to transform the geometric and texture feature data into a low-dimensional space to obtain effective features.
[0035] The specific steps of photographing the surface of the part with a high-definition camera to obtain high-resolution image data include:
[0036] Set the illumination and camera parameters for taking photos;
[0037] Based on the camera parameters, the surface of the part is photographed to obtain high-resolution image data.
[0038] The specific steps of clustering the defect images to obtain a defect image group include:
[0039] Set the initial K value;
[0040] Randomly select K data points as the initial cluster centers;
[0041] Assign each data point to the nearest cluster center, and update the center of each cluster according to the assignment result. If the updated value of the cluster center is less than a certain threshold or the number of iterations reaches the set value, stop the iteration;
[0042] Based on the clustering results, similar defect images are classified into the same group.
[0043] In a second aspect, the present invention further provides a quality management device based on 5G edge computing, including a configuration module, a training module, a deployment module, a shooting module, an identification module, a clustering module and a data output module;
[0044] The configuration module is used to deploy 5G edge computing equipment at the center of each data collection point in the factory;
[0045] The training module is used to train the support vector machine model using historical part defect images, wherein the part defects include scratches, cracks and pits;
[0046] The deployment module is used to deploy the support vector machine model in the 5G edge computing device;
[0047] The shooting module is used to shoot the surface of the part through a high-definition camera to obtain high-resolution image data;
[0048] The recognition module is used to transmit the image data to the 5G edge computing device for analysis through a support vector machine model to identify surface defects and select corresponding defect images;
[0049] The clustering module is used to cluster the defect images to obtain a defect image group;
[0050] The data output module is used to capture corresponding production information based on the defect image group and package and output it.
[0051] A quality management method and device based on 5G edge computing of the present invention, first, deploys a 5G edge computing device at the center of each data collection point in the factory. This device can receive and process data from all corners of the factory, and quickly feed back the processing results to the production line. The support vector machine model is trained using historical part defect images. These defect images include scratches, cracks, pits and other types, and the model will learn how to identify these different defects. The trained support vector machine model is deployed in the 5G edge computing device. In this way, the model can analyze the collected image data in real time. The surface of the part is photographed by a high-definition camera to obtain high-resolution image data. These image data will be used for subsequent defect analysis. The image data is transmitted to the 5G edge computing device and analyzed using the deployed support vector machine model. The model will identify the surface defects in the image and select the corresponding defective images. The selected defective images are clustered to obtain defective image groups. The clustering algorithm will divide them into different groups according to the similarity between the images. Based on the clustered defective image group, the corresponding production information is captured. This information may include production batch, time, machine status, etc. The captured production information and defect image group are packaged and output. In this way, quality management personnel can quickly understand the defects in the production process and take corresponding measures, so that data can be collected and controlled in real time to improve production efficiency and product quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] 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 or the description of the prior art 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 work.
[0053] Figure 1 It is a flowchart of a quality management method based on 5G edge computing according to the first embodiment of the present invention.
[0054] Figure 2It is a flowchart of the first embodiment of the present invention, which deploys 5G edge computing equipment at the central location of each data collection point in the factory.
[0055] Figure 3 It is a flowchart of the first embodiment of the present invention for training a support vector machine model using historical part defect images, wherein the part defects include scratches, cracks and pits.
[0056] Figure 4 This is a flowchart of preprocessing collected image data according to the first embodiment of the present invention.
[0057] Figure 5 It is a flowchart of extracting effective features from geometric features and texture features through principal component analysis according to the first embodiment of the present invention.
[0058] Figure 6 This is a flow chart of the first embodiment of the present invention, which uses a high-definition camera to photograph the surface of a part to obtain high-resolution image data.
[0059] Figure 7 This is a flow chart of clustering defective images to obtain a defective image group according to the first embodiment of the present invention. DETAILED DESCRIPTION
[0060] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0061] First embodiment
[0062] See also Figure 1 to Figure 7 , the present invention provides a quality management method based on 5G edge computing, comprising:
[0063] S101 deploys 5G edge computing devices at the center of each data collection point in the factory;
[0064] The specific steps include:
[0065] S201 identifies various data collection points in the factory;
[0066] Through on-site inspections and in-depth research, the data collection points in the factory are systematically identified one by one. These data collection points include various sensors, high-definition surveillance cameras, and industrial robots that perform precise operations. Each device has its own unique role, but in the entire data collection network, they all need to be effectively connected with 5G edge computing devices.
[0067] S202 collects the plane position coordinates of each data collection point; these coordinates may be the horizontal coordinate and the vertical coordinate in a Cartesian coordinate system, or may be other coordinate systems suitable for factory scenarios.
[0068] In order to ensure that 5G edge computing devices can be accurately deployed at the center of the data collection point, it is necessary to collect the precise plane position coordinates of each data collection point. These coordinates can be based on the horizontal and vertical coordinates of the Cartesian coordinate system, or they can be determined by other appropriate coordinate systems based on the factory's unique layout and requirements.
[0069] S203 calculates the center position point using the least square method based on all plane position coordinates;
[0070] After collecting the plane position coordinates of all data collection points, the least squares method will be used to calculate and determine a central position point. The least squares method is a mathematical optimization method that can find the best fit line or curve. In this case, it is used to find the center of gravity of the polygon formed by all data collection points, that is, the central position point.
[0071] S204 deploys 5G edge computing devices at central locations.
[0072] Finally, according to the calculated central location point, the 5G edge computing equipment is precisely deployed here. In this way, the deployed equipment can serve all data collection points to the maximum extent, ensure the efficiency of data transmission and processing speed, and optimize the overall operation efficiency of the factory.
[0073] S102 uses historical part defect images to train a support vector machine model, wherein the part defects include scratches, cracks, and pits;
[0074] The specific steps include:
[0075] S301 collects historical part defect image data, where the image data should include different types of defects, including scratches, cracks, and pits;
[0076] First, a set of image data of historical part defects needs to be collected. These image data should cover different defect types to ensure that the model can learn various defect characteristics. In this step, the required image data can be obtained by using existing cameras on the production line or other specialized image acquisition equipment.
[0077] S302 pre-processes the collected image data;
[0078] Preprocess the collected image data to improve the quality and efficiency of subsequent image analysis. The specific steps include:
[0079] S401 uses median filtering to remove noise in the image;
[0080] Noise can be introduced by various factors in the production environment, such as vibration, electromagnetic interference, etc. Median filtering is a nonlinear filtering method that can effectively remove noise while retaining edge information in the image.
[0081] S402 enhances defect features in the image by adjusting contrast;
[0082] Proper contrast adjustment can help the model more clearly identify and distinguish defect areas from other areas. This step can be achieved through image enhancement techniques such as histogram equalization and gamma correction.
[0083] S403 separates the defect area from the background area in the image.
[0084] Edge detection algorithms are used to identify edges in an image. These operators determine the edge locations by calculating the gradient strength and direction of pixels in the image. In order to distinguish edges from noise, it is usually necessary to threshold the detected edges. This can be done by setting one or more thresholds to determine which edges are significant and which should be ignored. After edge detection, the detected edge pixels need to be connected to form a complete edge outline. This can be achieved using algorithms such as the Hough Transform. Once the edges are extracted and connected, the image can be segmented based on the edge outlines to separate defect areas from background areas.
[0085] S303 extracts discriminative geometric features and texture features from the preprocessed image;
[0086] The features extracted from the preprocessed image are divided into two categories: geometric features and texture features. Geometric features usually include information such as shape, size and position, while texture features involve the relative relationship between pixels, such as gray level co-occurrence matrix (GLCM), gray scale invariant feature transform (SZXZ), etc. These features may have different discrimination for different types of defects.
[0087] S304 extracts effective features from geometric features and texture features through principal component analysis;
[0088] PCA is a statistical method used to extract the main directions of variation in the data, which can explain most of the variability in the data. The specific steps include:
[0089] S501 normalizes geometric features and texture features;
[0090] Normalization is an important preprocessing step that helps ensure that all features are on the same scale and prevents the numerical size of some features from affecting the final PCA analysis results.
[0091] S502 calculates the covariance matrix between the geometric features and the texture features;
[0092] The covariance matrix can reflect the correlation between different features, which is the key for PCA to determine which features should be retained.
[0093] S503 solves the eigenvalues and corresponding eigenvectors of the covariance matrix;
[0094] Eigenvalues and eigenvectors are the core outputs of PCA analysis. The eigenvalues indicate the importance of each eigenvector, while the eigenvectors indicate the main direction of change of the data.
[0095] S504 arranges the eigenvalues in descending order according to their magnitudes, and selects the eigenvectors corresponding to the first a largest eigenvalues;
[0096] S505 constructs a projection matrix using the selected a eigenvectors;
[0097] This matrix will be used to transform the original feature data into a low-dimensional space that can retain most of the important information of the data.
[0098] S506 uses a projection matrix to transform the geometric feature and texture feature data into a low-dimensional space to obtain effective features.
[0099] These effective features will be used in subsequent defect identification tasks, and they can reduce the dimension of the data while retaining the most important information.
[0100] S305 uses the effective features to train the SVM model.
[0101] Using the training set data and the selected parameters, start training the SVM model. The SVM model will learn how to classify the data so that it can achieve the best classification effect on the test set. The training process includes calculating the support vector and the optimal hyperplane. After the training is completed, use the test set to evaluate the performance of the SVM model. Common evaluation indicators include accuracy, recall, F1 score, and area under the ROC curve (AUC). If the model performance is not ideal, you may need to go back to the previous steps and re-select features or tune parameters.
[0102] S103 deploys the support vector machine model in 5G edge computing devices;
[0103] The trained support vector machine model is converted into a format suitable for edge computing devices. Then, the model is deployed on the 5G edge computing device. In this way, the model can be inspected in real time at a location closer to the part, reducing data transmission delays and increasing inspection speed.
[0104] S104 uses a high-definition camera to shoot the surface of the part and obtain high-resolution image data;
[0105] The specific steps include:
[0106] S601 sets the illumination and camera parameters for taking photos;
[0107] Adjust the camera's illumination settings according to the part's surface material and color to ensure image quality. At the same time, set the camera's focal length, exposure time and other parameters to obtain clear, high-resolution images.
[0108] S602 photographs the surface of the part based on the camera parameters to obtain high-resolution image data.
[0109] Use a high-definition camera to capture the surface of the part and obtain image data with high resolution and rich details.
[0110] S105 transmits the image data to the 5G edge computing device for analysis through a support vector machine model to identify surface defects and select corresponding defect images;
[0111] S106 clusters the defect images to obtain a defect image group;
[0112] The specific steps include:
[0113] S701 sets the initial K value;
[0114] The K value is a key parameter in the clustering algorithm, which represents the number of clusters we want to divide the data into. The choice of the K value has an important impact on the clustering results and usually needs to be determined through experience or experiments.
[0115] S702 randomly selects K data points as initial cluster centers;
[0116] These cluster centers will serve as reference points for assigning the remaining data points to different clusters. Randomly selecting cluster centers can avoid biasing the results due to the choice of initial center points.
[0117] S703 assigns each data point to the nearest cluster center, updates the center of each cluster according to the assignment result, and stops the iteration if the updated value of the cluster center is less than a certain threshold or the number of iterations reaches a set value;
[0118] This step is achieved by calculating the distance from the data point to the cluster center. The data point will be assigned to the cluster with the closest cluster center. Then, the center of each cluster will be updated according to the assignment result, that is, the mean of all data points in each cluster will be calculated as the new cluster center. This process will be iterated continuously until the updated value of the cluster center is less than a preset threshold, or the number of iterations reaches a preset set value, at which time the clustering is considered to have converged and the iteration is stopped.
[0119] S704 classifies similar defect images into the same group according to the clustering result.
[0120] According to the clustering results, similar defect images are grouped into the same group. This step is the interpretation and application of the clustering results. The same defect images will be grouped into the same group, which will help to uniformly process and analyze these defect images in the future.
[0121] S107 captures the corresponding production information based on the defect image group and packages it for output.
[0122] After the defect images are clustered, each defect image group represents a specific defect type. The corresponding production information is captured according to these defect image groups, and the information is packaged and output for subsequent quality control and production improvement. In specific implementation, the corresponding product batch records, production time, operator information, equipment status and other production information in the production database can be queried according to the defect image group. The production database should contain the complete production history of the product, including raw material batch number, production process parameters, quality inspection results, etc. Then the queried production information is associated with the defect image group to determine the cause and location of the defect. Analyze the relationship between the defect image group and the production parameters to find out the process problems or equipment failures that cause the defects. The associated production information and defect information are sorted and packaged to form a report or data package. The output format can be PDF, CSV, XML, etc., to facilitate sharing and analysis between different departments and systems.
[0123] Based on the analysis results, generate improvement suggestions for the production process, such as adjusting process parameters, replacing equipment, strengthening employee training, etc.
[0124] In the second aspect, the present invention also provides a quality management device based on 5G edge computing, including a configuration module, a training module, a deployment module, a shooting module, an identification module, a clustering module and a data output module; the configuration module is used to deploy the 5G edge computing device at the center of each data collection point in the factory; the training module is used to train the support vector machine model using historical part defect images, and the part defects include scratches, cracks and pits; the deployment module is used to deploy the support vector machine model in the 5G edge computing device; the shooting module is used to shoot the part surface through a high-definition camera to obtain high-resolution image data; the identification module is used to transmit the image data to the 5G edge computing device for analysis through the support vector machine model to identify surface defects and select corresponding defect images; the clustering module is used to cluster the defect images to obtain a defect image group; the data output module is used to capture the corresponding production information based on the defect image group and package it for output.
[0125] In this embodiment, the configuration module is responsible for deploying the 5G edge computing device at the center of each data collection point in the factory. This step can determine the optimal deployment location through intelligent algorithms to ensure that the device can cover all data collection points and ensure the efficiency and stability of data transmission. The training module uses historical part defect images to train the support vector machine model. These defect images include various types such as scratches, cracks and pits to ensure that the model can identify and classify different defects. The training process involves steps such as data preprocessing, feature extraction and model optimization. Once the support vector machine model is trained, the deployment module deploys the model to the 5G edge computing device. In this way, the model can process image data from the high-definition camera in real time and perform defect identification. The shooting module uses a high-definition camera to shoot the surface of the part to obtain high-resolution image data. These image data will be used for subsequent defect analysis and identification. The shooting module also includes lighting control and image stabilization functions. The recognition module is responsible for transmitting the image data to the 5G edge computing device and analyzing it using the deployed support vector machine model. Through model processing, the recognition module can select the corresponding defect image, classify and mark it. The clustering module performs cluster analysis on the identified defective images and groups similar images into the same group. This step helps to discover patterns and trends of defects and provide data support for subsequent quality improvements. Based on the clustering results, the data output module captures the corresponding production information and packages it for output. This information includes production batch, time, operator, equipment status, etc., so that the quality control and production management teams can conduct in-depth analysis and decision-making. This can achieve an end-to-end quality monitoring and analysis process, which helps factories improve product quality, reduce defects and increase production efficiency.
[0126] What is disclosed above is only a preferred embodiment of the present invention, and it certainly cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiment and equivalent changes made according to the claims of the present invention still fall within the scope of the invention.
Claims
1. A quality management method based on 5G edge computing, It is characterized in that These include: deploying 5G edge computing devices at the center of each data collection point in the factory; Using historical part defect images to train a support vector machine model, the part defects include scratches, cracks, and pits; Deploy the support vector machine model in 5G edge computing devices; Use a high-definition camera to shoot the surface of the part and obtain high-resolution image data; The image data is transmitted to the 5G edge computing device for analysis through the support vector machine model to identify surface defects and select the corresponding defect images; Clustering defect images to obtain defect image groups; Based on the defect image group, the corresponding production information is captured and packaged for output.
2. A quality management method based on 5G edge computing as described in claim 1, characterized in that: The specific steps of deploying 5G edge computing devices at the central location of each data collection point in the factory include: Identify the various data collection points in the plant; Collect the plane position coordinates of each data collection point; The center position point is calculated based on all plane position coordinates using the least square method; Deploy 5G edge computing devices at central locations.
3. A quality management method based on 5G edge computing as described in claim 2, characterized in that: The data collection points include sensors, surveillance cameras and industrial robots.
4. A quality management method based on 5G edge computing as described in claim 3, characterized in that: The specific steps of using historical part defect images to train the support vector machine model, wherein the part defects include scratches, cracks and pits, include: Collect historical part defect image data, which should include different types of defects, including scratches, cracks, and pits; Preprocessing the collected image data; Extract discriminative geometric and texture features from the preprocessed image; Extract effective features from geometric features and texture features through principal component analysis; The SVM model is trained using valid features.
5. A quality management method based on 5G edge computing as described in claim 4, characterized in that: The specific steps of preprocessing the collected image data include: Use median filtering to remove noise from the image; Enhance defect features in images by adjusting contrast; Separate defect areas from background areas in an image.
6. A quality management method based on 5G edge computing as claimed in claim 5, characterized in that: The specific steps of extracting effective features through principal component analysis include: Normalize geometric features and texture features; Calculate the covariance matrix between geometric features and texture features; Solve the eigenvalues and corresponding eigenvectors of the covariance matrix; Arrange the eigenvalues in descending order according to their size, and select the eigenvectors corresponding to the first a largest eigenvalues; Construct a projection matrix using the selected a eigenvectors; The projection matrix is used to transform the geometric and texture feature data into a low-dimensional space to obtain effective features.
7. A quality management method based on 5G edge computing as claimed in claim 6, characterized in that: The specific steps of photographing the surface of the part by a high-definition camera to obtain high-resolution image data include: Set the illumination and camera parameters for taking photos; Based on the camera parameters, the surface of the part is photographed to obtain high-resolution image data.
8. A quality management method based on 5G edge computing as claimed in claim 7, characterized in that: The specific steps of clustering the defect images to obtain a defect image group include: Set the initial K value; Randomly select K data points as the initial cluster centers; Assign each data point to the nearest cluster center, and update the center of each cluster according to the assignment result. If the updated value of the cluster center is less than a certain threshold or the number of iterations reaches the set value, stop the iteration; Based on the clustering results, similar defect images are classified into the same group.
9. A quality management device based on 5G edge computing, characterized in that: It includes configuration module, training module, deployment module, shooting module, recognition module, clustering module and data output module; The configuration module is used to deploy 5G edge computing equipment at the center of each data collection point in the factory; The training module is used to train the support vector machine model using historical part defect images, wherein the part defects include scratches, cracks and pits; The deployment module is used to deploy the support vector machine model in the 5G edge computing device; The shooting module is used to shoot the surface of the part through a high-definition camera to obtain high-resolution image data; The recognition module is used to transmit the image data to the 5G edge computing device for analysis through a support vector machine model to identify surface defects and select corresponding defect images; The clustering module is used to cluster the defect images to obtain a defect image group; The data output module is used to capture corresponding production information based on the defect image group and package and output it.
