A real-time detection and release system for production lines

By integrating a real-time detection and release system on the production line, using high-resolution cameras and attention mechanism CNN for image recognition, and combining SVM and rule engines for data analysis, real-time monitoring and quality control problems in traditional technologies are solved, and high-speed production lines are realized. The accurate identification and automated release of product quality improves production efficiency and product quality.

CN118261740BActive Publication Date: 2024-10-18CANGNAN COUNTY QIUSHI TRADITIONAL CHINESE MEDICINE INNOVATION RES INST
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410372755.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-29
Publication Date
2024-10-18
Estimated Expiration
2044-03-29

AI Technical Summary

Technical Problem

Traditional production line quality control relies on manual inspection or simple automated equipment, making it difficult to achieve real-time monitoring and instant feedback. This makes it difficult to guarantee product quality and production efficiency on high-speed production lines. The lack of accurate data support limits the improvement of production efficiency and product quality stability.

Method used

A real-time inspection and release system for production lines is designed, including an image acquisition module, an image processing module, a parameter acquisition module, a comprehensive data analysis module, a decision execution module and a feedback optimization module, using high-resolution industrial cameras and CNN enhanced with attention mechanisms. Image recognition, combined with SVM algorithm and rule engine for data analysis and decision-making, to achieve automated release and parameter optimization.

Benefits of technology

It achieves rapid and accurate identification of product surface defects and shape deviations, improves production line efficiency and product quality. Through instant feedback and adaptive optimization, it significantly improves detection accuracy and efficiency, maximizes production line operation efficiency, and reduces labor costs. Interventions and operational errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118261740B_ABST
    Figure CN118261740B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of production line management, and specifically to a real-time detection and release system for a production line, including an image acquisition module, an image processing module, a parameter acquisition module, a data comprehensive analysis module, a decision execution module, and a feedback optimization module; wherein the image acquisition module is used to capture the image data of products on the production line in real time; the image processing module analyzes the image; the parameter acquisition module collects the operating parameters of the production line in real time; the data comprehensive analysis module determines whether the product is released according to the standard; and the decision execution module automatically controls the start and stop of the release device. The present invention significantly improves the production efficiency and product quality of the manufacturing industry by realizing real-time monitoring, comprehensive analysis and parameter adaptive optimization of products on the production line, as well as efficient decision-making and automated release mechanisms, while reducing production costs, and provides strong technical support for the automation and intelligent upgrade of the manufacturing industry.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of production line management, and in particular to a real-time detection and release system for a production line. Background Art

[0002] With the rapid development of the manufacturing industry, the requirements for production efficiency and product quality are increasing. Especially in high-speed production lines, how to monitor product quality in real time and make quick release decisions has become a key factor in improving competitiveness. Traditional production line quality control mainly relies on manual inspection or simple automated equipment, which is not only time-consuming and labor-intensive, but also difficult to achieve real-time monitoring and instant feedback of the production process. Especially when processing a large number of products on a high-speed production line, its efficiency and accuracy are even more difficult to guarantee. In addition, due to the lack of effective data analysis and feedback mechanisms, production line parameter optimization and adjustment are usually based on experience and lack accurate data support, which to a certain extent limits the further improvement of production efficiency and the stability of product quality.

[0003] In view of the above background, the present invention needs to solve several key technical problems: first, how to achieve real-time and accurate monitoring of product quality without reducing the production speed, especially the need to quickly identify and evaluate quality indicators such as product surface defects and shape deviations; second, in the face of complex and changeable operating parameters on the production line, how to comprehensively analyze the relationship between these parameters and product quality to achieve more accurate quality control; third, how to automatically adjust production line parameters and optimize image processing algorithms based on real-time monitoring and analysis results to improve production efficiency and product quality; finally, it is necessary to build an efficient decision-making mechanism that can maximize the operating efficiency of the production line while ensuring product quality. Summary of the invention

[0004] Based on the above objectives, the present invention provides a production line real-time detection and release system.

[0005] A production line real-time detection and release system includes an image acquisition module, an image processing module, a parameter acquisition module, a data comprehensive analysis module, a decision execution module and a feedback optimization module; wherein,

[0006] Image acquisition module: used to capture the image data of products on the production line in real time and transmit the image data to the image processing module;

[0007] Image processing module: receives image data transmitted by the image acquisition module, applies a preset image recognition algorithm to analyze the image to identify the quality indicators of product surface defects and shape deviations, and transmits the recognition results to the data comprehensive analysis module;

[0008] Parameter collection module: used to collect the operating parameters of the production line in real time and transmit the operating parameters to the data comprehensive analysis module;

[0009] Data comprehensive analysis module: receives the output data of the image processing module and the parameter acquisition module, comprehensively analyzes the product quality and the operation status of the production line, determines whether to release the product according to the preset logical judgment criteria, and transmits the judgment results to the decision execution module;

[0010] Decision-making execution module: According to the judgment results of the data comprehensive analysis module, the release device is automatically controlled to start and stop, so as to ensure that only products that meet the quality standards are released;

[0011] Feedback optimization module: Adaptively adjust the image processing algorithm, product quality judgment criteria and preset values ​​of production line operation parameters based on actual release results and production line operation data.

[0012] Furthermore, the image acquisition module includes a high-resolution industrial camera and an image data transmission unit; wherein:

[0013] High-resolution industrial camera: used to capture high-definition image data of products on the production line in real time. The camera is equipped with autofocus and lighting adjustment functions to ensure that clear product images can be obtained under various production environment lighting conditions. The high-definition image data includes the surface texture, color difference, shape contour and size information of the product;

[0014] Image data transmission unit: used to transmit the image data captured by the industrial camera to the image processing module in real time. The image data transmission unit adopts a high-speed serial communication interface, including USB 3.0 and GigE interfaces, to ensure fast and stable transmission of image data without data loss or delay. The image data transmission unit also includes data encryption and compression functions to ensure the security and transmission efficiency of image data during transmission.

[0015] Furthermore, the image processing module includes an image decoding unit, an image recognition algorithm processing unit and a result output unit; wherein,

[0016] Image decoding unit: used to receive the image data transmitted by the image acquisition module, perform decoding processing, and convert it into a standard format for analysis by the image recognition algorithm processing unit. The image decoding unit supports fast decoding of multiple image data formats, ensuring seamless connection and efficient transmission of data from acquisition to processing stage;

[0017] Image recognition algorithm processing unit: The image recognition algorithm uses CNN enhanced by the attention mechanism as the core to analyze the decoded image data. By introducing the attention mechanism, the algorithm can automatically identify and focus on the area in the image, which includes the quality indicators of tiny defects or shape deviations on the surface of the product, so as to improve the accuracy and efficiency of recognition. The attention mechanism enables the model to give priority to the image parts that affect the final recognition results when processing images, which can effectively improve the model's ability to detect complex or tiny defects;

[0018] Result output unit: used to receive the results analyzed by the image recognition algorithm processing unit, and output the identified product quality information, including defect type, location, and severity, to the data comprehensive analysis module in the form of structured data.

[0019] Furthermore, the image recognition algorithm processing unit specifically includes:

[0020] Feature extraction: First, use the convolutional neural network layer to extract features from the decoded image data. The calculation formula for extracting features using the convolution operation is: F ij =∑ m ∑ n I (i+m)(j+n) K mn , where F ij is the eigenvalue at position i,j on the feature map; I (i+m)(j+n) is the pixel value of the input image at position (i+m, j+n); K mn is the weight value of the convolution kernel at position m,n. The convolution kernel is used to extract the features of the image. m,n is the size index of the convolution kernel, which is used to traverse the entire convolution kernel.

[0021] Application of attention mechanism: The attention mechanism module is used to weight the feature map to highlight the features and suppress irrelevant information. The calculation of attention weight is specifically implemented through the Softmax function. The calculation formula is as follows: Among them, A ij is the attention weight at position i, j on the feature map F; is the eigenvalue F at position i, j ij The exponential function value of is used to calculate the attention weight; k, l are indices used to traverse all positions on the feature map F to calculate the sum in the denominator;

[0022] Feature reweighting: Use the calculated attention weights to reweight the original feature map to strengthen the model's attention to the areas with defects or shape deviations in the image. The specific feature reweighting calculation formula is:

[0023] F ij ′=F ij ×Aij , where F ij ′ is the feature value of the weighted feature map at position i, j, indicating the feature point weighted by the attention mechanism; F ij is the eigenvalue at position i, j on the feature map before weighting; A ij is the attention weight of the position, which determines F ij Contribution in the weighted feature map F′;

[0024] Classification and identification: Finally, the weighted feature map is used to classify and identify product defects.

[0025] Furthermore, the specific steps of classification and identification include:

[0026] First, the weighted feature map F′ is fused through the convolution layer and the pooling layer to compress the feature space and extract higher-level features for classification decisions. Specifically, multiple convolution and pooling layers are used for processing. The specific operation formula is:

[0027] Convolution operation: F ij ″=∑ m ∑ n F (i+m)(j+n) 'K mn ,

[0028] Pooling operation: P ij =max(F a:b,c:d ″), where F ij ″ is the feature value at position i, j on the feature map after the convolution operation, representing a higher level of image features; F (i+m)(j+n) ′ is the eigenvalue of the weighted feature map at position (i+m, j+n) in the previous step; K mn is the weight value of the convolution kernel at the position (m, n) in this convolution operation; P ij is the feature value at position i, j on the feature map after the pooling operation; a:b, c:d are the area covered by the pooling window, which is used to perform the maximum pooling operation within this range;

[0029] Then, the feature map after feature fusion is passed through the fully connected layer to convert the high-dimensional feature vector into the prediction score corresponding to each category. The operation formula of the fully connected layer is: k =∑ i W ki P i +b k , where Y k is the prediction score corresponding to the kth category, which is the output of the fully connected layer and is used to indicate the probability that the image belongs to each category; W kiis the weight connecting the i-th input node and the k-th output node in the fully connected layer; P i is the output value of the i-th node from the previous layer; b k is the bias term of the kth output node;

[0030] Finally, the Softmax function is used to convert the prediction score into a probability distribution for the final defect classification. The calculation formula of the Softmax function is: Among them, S k is the probability of belonging to the kth category; is the predicted score Y of the kth category k The index of ; j is the index, which traverses all categories and is used to calculate the denominator of the Softmax function to ensure that the sum of the probabilities of all categories is 1.

[0031] Furthermore, the parameter acquisition module includes a sensor unit, a data conversion unit and a parameter transmission unit, wherein:

[0032] Sensor unit: used to monitor and collect the operating parameters of the production line in real time. The sensor unit is equipped with a variety of sensors, including temperature sensors, pressure sensors and speed sensors. The temperature sensor is used to monitor the temperature conditions of various areas of the production line; the pressure sensor is used to measure the pressure of the production line equipment and products during the manufacturing process; the speed sensor is used to record the speed of the product movement on the production line;

[0033] Data conversion unit: receives the analog signal collected by the sensor unit and converts it into a digital signal for computer processing. The data conversion unit specifically uses analog-to-digital converter technology to ensure that the analog data collected from the sensor can be converted into a digital format without information loss;

[0034] Parameter transmission unit: used to transmit the digital signal converted by the data conversion unit to the data comprehensive analysis module.

[0035] Furthermore, the data comprehensive analysis module includes a data receiving unit, a comprehensive analysis unit, a judgment logic unit and a result output unit; wherein,

[0036] Data receiving unit: used to receive data from the image processing module and parameter acquisition module. It uses high-speed data interface technology to ensure real-time and accurate data transmission. The data receiving unit supports multiple data formats, including image recognition results and production line operation parameters.

[0037] Comprehensive analysis unit: It uses the support SVM algorithm to conduct comprehensive analysis on the received data. The SVM supervised learning model is used to analyze data and identify patterns. It is suitable for product quality classification and production line status evaluation. The comprehensive analysis unit uses the SVM model to classify product quality information and production line operation parameters to determine whether the product meets the quality standards and evaluate whether the production line operation status is normal;

[0038] Judgment logic unit: Based on the rule engine technology, it decides whether to release the product according to the preset logical judgment criteria. The rule engine automatically executes the decision-making process based on the analysis results of the comprehensive analysis unit and the preset rules to determine whether the product meets the release conditions;

[0039] Result output unit: transmits the decision result of the judgment logic unit to the decision execution module.

[0040] Furthermore, the comprehensive analysis unit specifically includes:

[0041] Data preprocessing: standardize the received data, including product quality information and production line operation parameters including temperature, pressure, and speed;

[0042] Feature selection: Select features that have an impact on classification from the preprocessed data, including defect features in the image recognition results and operating parameters of the production line;

[0043] SVM model training: Use the selected features and existing historical data to train the SVM model. SVM separates different categories of data by constructing one or more hyperplanes. The optimization problem is to find the hyperplane that maximizes the interval between data points. The specific formula is: Among them, w is the normal vector of the hyperplane, which is used to define the decision boundary of classification; b is the bias term; ξ i is the loose variable; C is the regularization parameter, which controls the trade-off between the interval width and the classification error; n is the number of samples in the training data set, that is, the total number of qualified and unqualified product samples collected by the production line inspection system;

[0044] Classification decision: Use the trained SVM model to classify the newly received data to determine whether the product meets the quality standards and whether the production line is operating normally. The specific classification function is:

[0045] Among them, f(x) is a classification decision function, which is used to determine whether the product is qualified based on the input feature x; To pass feature mapping After mapping the input data x to a high-dimensional space, the dot product with the hyperplane normal vector w is used to calculate the position of the input data on both sides of the decision boundary; is the feature mapping function; sign(·) is the sign function.

[0046] Furthermore, the judgment logic unit specifically includes:

[0047] First, the judgment logic unit receives the classification decision result from the comprehensive analysis unit, which indicates whether each product meets the quality standard and whether the production line is running normally. The result is represented by a binary label L, where L = 1 indicates that the product meets the quality standard and the production line is running normally, and L = 0 indicates that it does not meet the quality standard.

[0048] Application judgment criteria: The judgment logic unit evaluates the received classification results according to the preset logical judgment criteria, which are represented by the logic function F(L, T), where T is the actual observation value of the metric standard related to product quality and production line status, and T threshold is the safety threshold of the metric, and the specific function is expressed as:

[0049]

[0050] Decision execution: Based on the output of the logic function, the judgment logic unit generates the final release or interception instruction. When F(L, T) = 1, it means that the product meets the release conditions, that is, it meets the quality standards and all operating parameters are within the safety threshold; conversely, when any condition is not met, F(L, T) = 0, it means that the product will not be released.

[0051] Furthermore, the feedback optimization module includes a data collection unit, an analysis and evaluation unit, an optimization decision unit and a parameter adjustment unit; wherein,

[0052] Data collection unit: used to collect the actual release results and operation data of the production line in real time, including whether the product is released, the type and number of defects detected, and the parameters of temperature, pressure and speed of the production line;

[0053] Analysis and Evaluation Unit: Conducts in-depth analysis and evaluation of the data collected by the data collection unit, using data analysis and machine learning algorithms to analyze the causes and frequencies of product failures and the correlation with the operating status of the production line, thereby identifying factors that affect product quality and production efficiency;

[0054] Optimization decision unit: Based on the analysis results of the analysis and evaluation unit, the optimization algorithm is used to generate adjustment plans for image processing algorithm parameters, product quality judgment standards and production line operation parameters;

[0055] Parameter adjustment unit: According to the adjustment plan proposed by the optimization decision unit, it automatically adjusts the parameter settings of the image processing algorithm, the product quality judgment standard and the preset values ​​of the production line operation parameters. The parameters are adjusted by using a programmed logic controller and software interface technology.

[0056] Beneficial effects of the present invention:

[0057] The present invention, through the integrated image acquisition module and image processing module, can quickly identify product surface defects, shape deviations and other quality indicators. This real-time monitoring mechanism not only greatly improves the work efficiency of the production line and reduces the losses caused by product quality problems, but also enables production line operators to quickly respond to various quality problems through the instant feedback mechanism, thereby realizing dynamic optimization and adjustment of the production process. Compared with traditional manual inspection or simple automated equipment, the present invention significantly improves the accuracy and efficiency of product inspection while ensuring production speed.

[0058] The present invention accurately evaluates product quality and production status by comprehensively utilizing image processing results and real-time monitored production line operating parameters, such as temperature, pressure, speed, etc. Based on these comprehensive analysis results, the feedback optimization module further realizes adaptive optimization of production line operating parameters and image processing algorithms, which not only ensures the stability of product quality, but also intelligently adjusts parameters according to the actual operation of the production line, greatly improving production efficiency and resource utilization, and reducing production costs.

[0059] The present invention, through the judgment logic unit and the decision execution module, can quickly make a decision on whether to release the product based on the comprehensive analysis data. The system not only maximizes the operating efficiency of the production line, but also significantly reduces the need for manual intervention through the automated release mechanism, further reducing the possibility of operational errors. Compared with traditional methods, it provides a more intelligent and efficient quality control and product release solution for the production line, significantly improving the automation and intelligence level of the manufacturing industry. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the technical solutions in the present invention or 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 in the following description are only for the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0061] Figure 1 A schematic diagram of a production line real-time detection and release system according to an embodiment of the present invention;

[0062] Figure 2 Schematic diagram of a comprehensive analysis module according to an embodiment of the present invention. DETAILED DESCRIPTION

[0063] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.

[0064] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0065] like Figure 1-2 As shown, a real-time detection and release system for a production line includes an image acquisition module, an image processing module, a parameter acquisition module, a data comprehensive analysis module, a decision execution module, and a feedback optimization module; wherein,

[0066] Image acquisition module: used to capture the image data of products on the production line in real time and transmit the image data to the image processing module;

[0067] Image processing module: receives image data transmitted by the image acquisition module, applies a preset image recognition algorithm to analyze the image to identify the quality indicators of product surface defects and shape deviations, and transmits the recognition results to the data comprehensive analysis module;

[0068] Parameter collection module: used to collect the operating parameters of the production line in real time and transmit the operating parameters to the data comprehensive analysis module;

[0069] Data comprehensive analysis module: receives the output data of the image processing module and the parameter acquisition module, comprehensively analyzes the product quality and the operation status of the production line, determines whether to release the product according to the preset logical judgment criteria, and transmits the judgment results to the decision execution module;

[0070] Decision-making execution module: According to the judgment results of the data comprehensive analysis module, the release device is automatically controlled to start and stop, so as to ensure that only products that meet the quality standards are released;

[0071] Feedback optimization module: Adaptively adjust the image processing algorithm, product quality judgment criteria and preset values ​​of production line operation parameters according to the actual release results and production line operation data to optimize system performance.

[0072] The image acquisition module includes a high-resolution industrial camera and an image data transmission unit; wherein:

[0073] High-resolution industrial camera: used to capture high-definition image data of products on the production line in real time. The camera is equipped with autofocus and lighting adjustment functions to ensure that clear product images can be obtained under various production environment lighting conditions. The high-definition image data includes the product's surface texture, color difference, shape contour and size information;

[0074] Image data transmission unit: used to transmit the image data captured by the industrial camera to the image processing module in real time. The image data transmission unit adopts high-speed serial communication interface, including USB 3.0 and GigE interface, to ensure fast and stable transmission of image data without data loss or delay. The image data transmission unit also includes data encryption and compression functions to ensure the security and transmission efficiency of image data during transmission;

[0075] The image acquisition module achieves efficient, high-quality image capture and real-time, secure data transmission of products on the production line through close cooperation between high-resolution industrial cameras and image data transmission units, providing accurate and detailed raw data for the image processing module, ensuring the detection accuracy and response speed of the entire system.

[0076] The image processing module includes an image decoding unit, an image recognition algorithm processing unit and a result output unit; wherein,

[0077] Image decoding unit: used to receive the image data transmitted by the image acquisition module, perform decoding processing, and convert it into a standard format for analysis by the image recognition algorithm processing unit. The image decoding unit supports fast decoding of multiple image data formats, ensuring seamless connection and efficient transmission of data from acquisition to processing stage;

[0078] Image recognition algorithm processing unit: The image recognition algorithm uses CNN enhanced by the attention mechanism as the core to analyze the decoded image data. By introducing the attention mechanism, the algorithm can automatically identify and focus on the area in the image, which includes the quality indicators of tiny defects or shape deviations on the surface of the product, so as to improve the accuracy and efficiency of recognition. The attention mechanism enables the model to give priority to the image parts that affect the final recognition results when processing images, which can effectively improve the model's ability to detect complex or tiny defects;

[0079] Result output unit: used to receive the results of the image recognition algorithm processing unit analysis, and output the identified product quality information, including defect type, location, and severity, to the data comprehensive analysis module in the form of structured data. This unit ensures accurate information transmission and rapid response, and supports subsequent comprehensive analysis and decision-making processes;

[0080] Through the above units, the image processing module can effectively and accurately identify key quality indicators such as product surface defects and shape deviations from high-speed transmitted image data, and quickly and accurately transmit the recognition results to the data comprehensive analysis module, providing strong technical support for real-time inspection and automatic release on the production line. By introducing CNN enhanced by the attention mechanism, this module significantly improves the recognition ability and processing efficiency of image details, meeting the high standards for product quality control on high-speed production lines.

[0081] The image recognition algorithm processing unit specifically includes:

[0082] Feature extraction: First, use the convolutional neural network layer to extract features from the decoded image data. The calculation formula for extracting features using the convolution operation is: F ij =∑ m ∑ n I (i+m)(j+n) K mn , where F ij It is the feature value at position i, j on the feature map, representing the feature point obtained after the convolution operation, reflecting the local features of the position on the image; (i+m)(j+n) is the pixel value of the input image at position (i+m, j+n). In the present invention, this value corresponds to the pixel intensity of the product image at that position on the production line; K mn is the weight value of the convolution kernel (or filter) at position m, n. The convolution kernel is used to extract image features, such as edges, textures, etc.; m, n is the size index of the convolution kernel, which is used to traverse the entire convolution kernel;

[0083] Application of attention mechanism: The attention mechanism module is used to weight the feature map to highlight the features and suppress irrelevant information. The calculation of attention weight is specifically implemented through the Softmax function. The calculation formula is as follows: Among them, A ij is the attention weight at position i, j on the feature map F, calculated by the Softmax function. This weight determines the importance of the feature at that position in subsequent processing; is the eigenvalue F at position i, j ij The exponential function value of is used to calculate the attention weight; k, l are indices used to traverse all positions on the feature map F to calculate the sum in the denominator;

[0084] Feature reweighting: Use the calculated attention weights to reweight the original feature map to strengthen the model's attention to the defect or shape deviation area in the image. The calculation of this step can be expressed as the element-by-element product of the feature map and its corresponding attention weight. The specific feature reweighting calculation formula is:

[0085] Fij ′=F ij ×A ij , where F ij ′ is the feature value of the weighted feature map at position i, j, which represents the feature point weighted by the attention mechanism. This value can better represent the information of important features in the image, such as the key visual clues of product defects; F ij is the eigenvalue at position i, j on the feature map before weighting; A ij is the attention weight of the position, which determines F ij Contribution in the weighted feature map F′;

[0086] Classification and identification: Finally, the weighted feature map is used to classify and identify product defects;

[0087] Through the above steps, the image recognition algorithm processing unit can accurately identify quality indicators such as product surface defects and shape deviations in the decoded image data, and transmit the recognition results to the data comprehensive analysis module, providing reliable technical support for real-time detection and automatic release of the production line.

[0088] The specific steps of classification and identification include:

[0089] First, the weighted feature map F′ is fused through the convolution layer and the pooling layer to compress the feature space and extract higher-level features for classification decisions. Specifically, multiple convolution and pooling layers are used for processing. The specific operation formula is:

[0090] Convolution operation: F ij ″=∑ m ∑ n F (i+m)(j+n) 'K mn ,

[0091] Pooling operation: P ij =max(F a:b,c:d ″), where F ij ″ is the feature value at position i, j on the feature map after the convolution operation, representing a higher level of image features; F (i+m)(j+n) ′ is the eigenvalue of the weighted feature map at position (i+m, j+n) in the previous step; K mn is the weight value of the convolution kernel at the position (m, n) in this convolution operation; P ij It is the feature value at position i, j on the feature map after the pooling operation, representing the most significant feature in an area, which is used to reduce the feature dimension and the amount of calculation; a:b, c:d is the area covered by the pooling window, which is used to perform the maximum pooling operation within this range;

[0092] Then, the feature map after feature fusion is passed through the fully connected layer to convert the high-dimensional feature vector into the prediction score corresponding to each category. The operation formula of the fully connected layer is: k =∑ j W ki P i +b k , where Y k is the prediction score corresponding to the kth category, which is the output of the fully connected layer and is used to indicate the probability that the image belongs to each category; W ki is the weight connecting the i-th input node and the k-th output node in the fully connected layer; P i is the output value of the i-th node from the previous layer (i.e., the pooling layer or another fully connected layer); b k is the bias term of the kth output node, which is used to adjust the output value of the node;

[0093] Finally, the Softmax function is used to convert the prediction score into a probability distribution for the final defect classification. The calculation formula of the Softmax function is: Among them, S k is the probability of belonging to the kth category, which means the probability value of the image being classified into the kth category after being processed by the Softmax function; is the predicted score Y of the kth category k The index of is used to calculate the probability of the category; j is the index, which traverses all categories and is used to calculate the denominator of the Softmax function to ensure that the sum of the probabilities of all categories is 1;

[0094] Through the above steps, after the weighted feature map undergoes feature fusion, fully connected layer processing, and Softmax classification, the algorithm can identify and classify different types of defects in the image, such as cracks, scratches, shape deviations, etc., providing accurate data support for product quality control on the production line.

[0095] The parameter acquisition module includes a sensor unit, a data conversion unit and a parameter transmission unit, wherein:

[0096] Sensor unit: used to monitor and collect the operating parameters of the production line in real time. The sensor unit is equipped with a variety of sensors, including temperature sensors, pressure sensors and speed sensors. The temperature sensor is used to monitor the temperature conditions of each area of ​​the production line to ensure that the temperature during the production process meets the product quality requirements; the pressure sensor is used to measure the pressure of the production line equipment and products during the manufacturing process. The key is to ensure that the mechanical pressure is within the safe and specified range; the speed sensor is used to record the speed of the product movement on the production line to ensure the smoothness and timeliness of the production process; each sensor technology adopts high-precision and high-stability electronic measurement technology, which can capture the operating parameters in real time and accurately;

[0097] Data conversion unit: receives the analog signal collected by the sensor unit and converts it into a digital signal for computer processing. The data conversion unit specifically uses analog-to-digital converter (ADC) technology to ensure that the analog data collected from the sensor can be converted into a digital format without information loss;

[0098] Parameter transmission unit: used to transmit the digital signal converted by the data conversion unit to the data comprehensive analysis module. This unit adopts high-speed data communication protocol, such as Ethernet or wireless transmission technology, to ensure the real-time and stability of data transmission;

[0099] Through the above units, the parameter acquisition module can effectively monitor and collect key operating parameters from the production line in real time, including temperature, pressure and speed, ensuring that these parameters can be transmitted and analyzed quickly and accurately, thereby providing key data support for product quality control and optimization on the production line.

[0100] The data comprehensive analysis module includes a data receiving unit, a comprehensive analysis unit, a judgment logic unit and a result output unit; wherein,

[0101] Data receiving unit: used to receive data from the image processing module and parameter acquisition module. It uses high-speed data interface technology to ensure real-time and accurate data transmission. The data receiving unit supports multiple data formats, including image recognition results and production line operation parameters (such as temperature, pressure, speed);

[0102] Comprehensive analysis unit: The SVM algorithm is used to perform comprehensive analysis on the received data. The SVM supervised learning model is used to analyze data and identify patterns. It is suitable for product quality classification and production line status evaluation. The comprehensive analysis unit uses the SVM model to classify product quality information (such as the identified defect type) and production line operation parameters to determine whether the product meets the quality standards and evaluate whether the production line operation status is normal;

[0103] Judgment logic unit: Based on rule engine technology, it decides whether to release the product according to the preset logical judgment criteria. The rule engine automatically executes the decision-making process based on the analysis results of the comprehensive analysis unit and preset rules (such as product quality standards and production line safety operation parameters) to determine whether the product meets the release conditions. The rule engine provides a flexible and efficient way to manage and execute decision logic, and it is easy to update and maintain judgment criteria;

[0104] Result output unit: transmits the decision result of the judgment logic unit to the decision execution module. This unit adopts a standardized communication interface to ensure that the decision result can be quickly and accurately transmitted to the decision execution module to guide the automated release operation of the production line;

[0105] Through the above units, the data comprehensive analysis module can accurately and comprehensively process and analyze the data from the image processing module and the parameter acquisition module, use SVM to classify and analyze product quality and production line status, and combine the rule engine for efficient decision-making. This process ensures the accuracy of product release decisions and the automation of operations, and improves the efficiency of the production line and product quality.

[0106] The comprehensive analysis unit specifically includes:

[0107] Data preprocessing: Standardize the received data, including product quality information and production line operating parameters including temperature, pressure, and speed, to ensure that all input variables have a uniform impact on the model;

[0108] Feature selection: Select features that have an impact on classification from the preprocessed data, including defect features in the image recognition results and operating parameters of the production line;

[0109] SVM model training: Use the selected features and existing historical data to train the SVM model. SVM separates different categories of data by constructing one or more hyperplanes. The optimization problem is to find the hyperplane that maximizes the interval between data points. The specific formula is: Wherein, w is the normal vector of the hyperplane, which is used to define the decision boundary of classification. In the scenario of the present invention, w represents the direction of the decision boundary for distinguishing qualified and unqualified products from product image features and production line operation parameters; b is a bias term, which acts together with w to adjust the position of the hyperplane. In real-time detection of production lines, b helps to adjust the classification threshold to adapt to different quality standards; ξ i is a loose variable that allows some data points to violate the hard interval requirement. In practical applications, this means allowing the system to tolerate classification errors to a certain extent to improve the generalization ability of the model. C is a regularization parameter that controls the trade-off between interval width and classification error. In production line quality inspection, by adjusting C, the model's sensitivity to outliers and the need for classification accuracy of all products can be balanced. n is the number of samples in the training data set, that is, the total number of qualified and unqualified product samples collected by the production line inspection system.

[0110] Classification decision: Use the trained SVM model to classify the newly received data to determine whether the product meets the quality standards and whether the production line is operating normally. The specific classification function is:

[0111] Wherein, f(x) is a classification decision function, which is used to judge whether a product is qualified according to the input feature x. In the present invention, f(x) evaluates the quality status of the product based on the product image features and operating parameters; To pass feature mapping After mapping the input data x to a high-dimensional space, the dot product with the hyperplane normal vector w is used to calculate the position of the input data on both sides of the decision boundary; is a feature mapping function that maps the original input space to a higher-dimensional feature space to solve nonlinear classification problems in production line inspection systems. This enables the model to handle complex product quality assessment problems, such as identifying multiple types of defects. sign(·) is a symbol function that maps the original input space to a higher-dimensional feature space to solve nonlinear classification problems in production line inspection systems. The positive or negative value of returns the classification result, that is, qualified (+1) or unqualified (-1);

[0112] Through this series of steps, the comprehensive analysis unit accurately and comprehensively processes the data provided by the image processing module and the parameter acquisition module, and uses the SVM algorithm to perform effective classification analysis to evaluate the quality of the product and the operating status of the production line.

[0113] The judgment logic unit specifically includes:

[0114] First, the judgment logic unit receives the classification decision result from the comprehensive analysis unit, which indicates whether each product meets the quality standard and whether the production line is running normally. The result is represented by a binary label L, where L = 1 indicates that the product meets the quality standard and the production line is running normally, and L = 0 indicates that it does not meet the quality standard.

[0115] Application judgment criteria: The judgment logic unit evaluates the received classification results according to the preset logical judgment criteria, which are represented by the logic function F(L, T), where T is the actual observation value of the metric standard related to product quality and production line status, and T threshold is the safety threshold of the metric, and the specific function is expressed as:

[0116]

[0117] Decision execution: Based on the output of the logic function, the judgment logic unit generates the final release or interception instruction. When F(L, T) = 1, it means that the product meets the release conditions, that is, it meets the quality standards and all operating parameters are within the safety threshold; on the contrary, when any condition is not met (i.e. L = 0 or T>T threshold ) When F(L, T) = 0, it means that the product will not be released;

[0118] Through the above process, the judgment logic unit ensures that only products that meet the quality standards and are in normal production line operation status are released, thereby improving production efficiency and product quality and ensuring the safe operation of the production line.

[0119] The feedback optimization module includes a data collection unit, an analysis and evaluation unit, an optimization decision unit and a parameter adjustment unit; among which,

[0120] Data collection unit: used to collect the actual release results and operation data of the production line in real time, including whether the product is released, the type and number of defects detected, and the parameters of temperature, pressure and speed of the production line. This unit adopts high-speed data acquisition technology to ensure the comprehensiveness and real-time nature of data collection;

[0121] Analysis and evaluation unit: Conduct in-depth analysis and evaluation of the data collected by the data collection unit, using data analysis and machine learning algorithms, such as cluster analysis and association rule learning, to analyze the causes and frequencies of product failures and the correlation with the operating status of the production line, thereby identifying factors that affect product quality and production efficiency;

[0122] Optimization decision unit: Based on the analysis results of the analysis and evaluation unit, an optimization algorithm, such as a genetic algorithm or a simulated annealing algorithm, is used to generate adjustment plans for image processing algorithm parameters, product quality judgment criteria, and production line operation parameters; this unit takes into account the balance between production efficiency and product quality to achieve optimal production performance;

[0123] Parameter adjustment unit: According to the adjustment plan proposed by the optimization decision unit, it automatically adjusts the parameter settings of the image processing algorithm, the product quality judgment standard and the preset values ​​of the production line operation parameters. Specifically, it uses a programmable logic controller (PLC) and software interface technology to adjust the parameters.

[0124] The present invention is intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A real-time detection and release system for a production line, characterized by: It includes image acquisition module, image processing module, parameter acquisition module, data comprehensive analysis module, decision execution module and feedback optimization module; among them, Image acquisition module: used to capture image data of products on the production line in real time and transmit the image data to the image processing module; Image processing module: Receives image data transmitted by the image acquisition module, applies a preset image recognition algorithm to analyze the image to identify quality indicators such as product surface defects and shape deviations, and transmits the recognition results to the data comprehensive analysis module; The image processing module includes an image decoding unit, an image recognition algorithm processing unit and a result output unit; wherein, Image decoding unit: used to receive image data transmitted by the image acquisition module, perform decoding processing, and convert it into a standard format for analysis by the image recognition algorithm processing unit. The image decoding unit supports fast decoding of multiple image data formats, ensuring seamless connection and efficient transmission of data from acquisition to processing; Image recognition algorithm processing unit: This unit uses a CNN-based image recognition algorithm enhanced with an attention mechanism as its core to analyze decoded image data. By introducing an attention mechanism, the algorithm automatically identifies and focuses on image regions, including quality indicators of minor surface defects or shape deviations, to improve recognition accuracy and efficiency. The attention mechanism enables the model to prioritize image portions that influence the final recognition result, effectively enhancing the model's ability to detect complex or minor defects. Result output unit: used to receive the analysis results of the image recognition algorithm processing unit and output the identified product quality information, including defect type, location, and severity, to the data comprehensive analysis module in the form of structured data; The image recognition algorithm processing unit specifically includes: Feature extraction: First, use the convolutional neural network layer to extract features from the decoded image data. The calculation formula for extracting features using the convolution operation is: F ij =∑ m ∑ n I (i+m)(j+n) K mn , where F ij is the eigenvalue at position i, j on the feature map; I (i+m)(j+n) is the pixel value of the input image at position (i+m, j+n); K mn is the weight value of the convolution kernel at position m,n, and the convolution kernel is used to extract the features of the image; m,n is the size index of the convolution kernel, which is used to traverse the entire convolution kernel; Application of attention mechanism: The attention mechanism module is used to weight the feature map to highlight the features and suppress irrelevant information. The calculation of attention weight is specifically implemented through the Softmax function. The calculation formula is as follows: Among them, A ij is the attention weight at position i, j on the feature map F; is the eigenvalue F at position i,j ij The exponential function value of is used to calculate the attention weight; k, l is the index used to traverse all positions on the feature map F to calculate the sum in the denominator; Feature reweighting: Use the calculated attention weights to reweight the original feature map to strengthen the model's attention to areas with defects or shape deviations in the image. The specific feature reweighting calculation formula is: F ij ′=F ij ×A ij , where F ij ′ is the eigenvalue of the weighted feature map at position i, j, which represents the feature point weighted by the attention mechanism; F ij is the eigenvalue at position i, j on the feature map before weighting; A ij is the attention weight of the position, which determines F ij Contribution in the weighted feature map F′; Classification and identification: Finally, the weighted feature map is used to classify and identify product defects; The specific steps of classification and identification include: First, the weighted feature map F′ is fused through the convolution layer and the pooling layer to compress the feature space and extract higher-level features for classification decision making. Specifically, multiple convolution and pooling layers are used for processing. The specific operation formula is: Convolution operation: F ij ″=∑ m ∑ n F (i+m)(j+n) 'K mn , Pooling operation: P ij =max(F a:b,c:d ″), where F ij ″ is the eigenvalue at position i, j on the feature map after the convolution operation, representing a higher-level image feature; F (i+m)(j+n) ′ is the eigenvalue of the weighted feature map at position (i+m,j+n) in the previous step; K mn is the weight value of the convolution kernel at the (m,n) position in this convolution operation; P ij is the eigenvalue at position i, j on the feature map after the pooling operation; a:b,c:d is the area covered by the pooling window, which is used to perform the maximum pooling operation within this range; Then, the feature map after feature fusion is passed through the fully connected layer to convert the high-dimensional feature vector into the prediction score corresponding to each category. The operation formula of the fully connected layer is: k =∑ i W ki P i +b k , where Y k is the prediction score corresponding to the kth category, which is the output of the fully connected layer and is used to indicate the probability that the image belongs to each category; W ki is the weight connecting the i-th input node and the k-th output node in the fully connected layer; P i is the output value of the i-th node from the previous layer; b k is the bias term of the kth output node; Finally, the Softmax function is used to convert the predicted score into a probability distribution for the final defect classification. The calculation formula of the Softmax function is: Among them, S k is the probability of belonging to the kth category; is the predicted score Y of the kth category k The index of j is used to traverse all categories and calculate the denominator of the Softmax function to ensure that the sum of the probabilities of all categories is 1. Parameter acquisition module: used to collect the operating parameters of the production line in real time and transmit the operating parameters to the data comprehensive analysis module; Data comprehensive analysis module: Receives output data from the image processing module and parameter acquisition module, comprehensively analyzes product quality and production line operation status, determines whether to release the product based on preset logical judgment criteria, and transmits the judgment results to the decision execution module; Decision-making execution module: Based on the judgment results of the data comprehensive analysis module, it automatically controls the start and stop of the release device to ensure that only products that meet quality standards are released; Feedback optimization module: Adaptively adjusts the image processing algorithm, product quality judgment standards and preset values ​​of production line operating parameters based on actual release results and production line operation data.

2. A production line real-time detection and release system according to claim 1, characterized in that: The image acquisition module includes a high-resolution industrial camera and an image data transmission unit; wherein: High-resolution industrial cameras: These capture real-time, high-definition image data of products on the production line. Equipped with autofocus and lighting adjustment features, these cameras ensure clear product images under various production lighting conditions. These high-definition image data includes product surface texture, color variations, shape, outline, and size information. Image data transmission unit: used to transmit image data captured by the industrial camera to the image processing module in real time. The image data transmission unit uses high-speed serial communication interfaces, including USB 3.0 and GigE interfaces, to ensure fast and stable transmission of image data without data loss or delay. The image data transmission unit also includes data encryption and compression functions to ensure the security and transmission efficiency of image data during transmission.

3. A production line real-time detection and release system according to claim 1, characterized in that: The parameter acquisition module includes a sensor unit, a data conversion unit and a parameter transmission unit, wherein: Sensor unit: used to monitor and collect the operating parameters of the production line in real time. This sensor unit is equipped with multiple sensors, including temperature sensors, pressure sensors, and speed sensors. The temperature sensor is used to monitor the temperature conditions in various areas of the production line; the pressure sensor is used to measure the pressure of production line equipment and products during the manufacturing process; and the speed sensor is used to record the speed of product movement on the production line. Data conversion unit: Receives the analog signal collected by the sensor unit and converts it into a digital signal for computer processing. The data conversion unit specifically uses analog-to-digital converter technology to ensure that the analog data collected from the sensor can be converted into digital format without information loss; Parameter transmission unit: used to transmit the digital signal converted by the data conversion unit to the data comprehensive analysis module.

4. A production line real-time detection and release system according to claim 1, characterized in that: The data comprehensive analysis module includes a data receiving unit, a comprehensive analysis unit, a judgment logic unit and a result output unit; wherein, Data receiving unit: used to receive data from the image processing module and parameter acquisition module. It uses high-speed data interface technology to ensure real-time and accurate data transmission. The data receiving unit supports multiple data formats, including image recognition results and production line operation parameters. Comprehensive analysis unit: uses the SVM algorithm to perform comprehensive analysis on the received data. The SVM supervised learning model is used to analyze data and identify patterns. It is suitable for product quality classification and production line status assessment. The comprehensive analysis unit uses the SVM model to classify product quality information and production line operating parameters to determine whether the product meets the quality standards and assess whether the production line is operating normally. Judgment logic unit: Based on rule engine technology, it decides whether to release products according to preset logical judgment criteria. The rule engine automatically executes the decision-making process based on the analysis results of the comprehensive analysis unit and preset rules to determine whether the product meets the release conditions; Result output unit: transmits the decision result of the judgment logic unit to the decision execution module.

5. A production line real-time detection and release system according to claim 4, characterized in that: The comprehensive analysis unit specifically includes: Data preprocessing: Standardize the received data, including product quality information and production line operating parameters such as temperature, pressure, and speed; Feature selection: Select features that have an impact on classification from preprocessed data, including defect features in image recognition results and production line operating parameters; SVM model training: The SVM model is trained using the selected features and existing historical data. SVM separates different categories of data by constructing one or more hyperplanes. The optimization problem is to find the hyperplane that maximizes the interval between data points. The specific formula is: Among them, w is the normal vector of the hyperplane, which is used to define the decision boundary of the classification; b is the bias term; ξ i is the loosening variable; C is the regularization parameter, which controls the trade-off between the interval width and the classification error; n is the number of samples in the training data set, that is, the total number of qualified and unqualified product samples collected by the production line inspection system; Classification decision: Use the trained SVM model to classify the newly received data to determine whether the product meets the quality standards and whether the production line is operating normally. The specific classification function is: Among them, f(x) is the classification decision function, which is used to judge whether the product is qualified based on the input feature x; To pass feature mapping After mapping the input data x into high-dimensional space, the dot product with the hyperplane normal vector w is used to calculate the position of the input data on both sides of the decision boundary; is the feature mapping function; sign(·) is the sign function.

6. A production line real-time detection and release system according to claim 5, characterized in that: The judgment logic unit specifically includes: First, the judgment logic unit receives the classification decision results from the comprehensive analysis unit. The results indicate whether each product meets the quality standards and whether the production line is operating normally. The results are represented as a binary label L, where L = 1 indicates that the product meets the quality standards and the production line is operating normally, and L = 0 indicates that it does not meet the quality standards. Application judgment criteria: The judgment logic unit evaluates the received classification results according to the preset logical judgment criteria, which is represented by the logic function F(L, T), where T is the actual observation value of the metric of product quality and production line status, and T threshold is the safety threshold of the metric, and the specific function is expressed as: Decision execution: Based on the output of the logic function, the judgment logic unit generates the final release or interception instruction. When F(L, T) = 1, it means that the product meets the release conditions, that is, it meets the quality standards and all operating parameters are within the safety threshold; conversely, when any condition is not met (F(L, T) = 0), it means that the product will not be released.

7. The real-time detection and release system for a production line according to claim 1, characterized in that: The feedback optimization module includes a data collection unit, an analysis and evaluation unit, an optimization decision unit and a parameter adjustment unit; wherein, Data collection unit: used to collect the actual release results and operation data of the production line in real time, including whether the product is released, the type and number of defects detected, and the temperature, pressure and speed parameters of the production line; Analysis and Evaluation Unit: This unit conducts in-depth analysis and evaluation of the data collected by the data collection unit. It uses data analysis and machine learning algorithms to analyze the causes and frequencies of product failures and their correlation with production line operating conditions, thereby identifying factors that affect product quality and production efficiency. Optimization decision-making unit: Based on the analysis results of the analysis and evaluation unit, it uses optimization algorithms to generate adjustment plans for image processing algorithm parameters, product quality judgment standards, and production line operation parameters; Parameter adjustment unit: According to the adjustment plan proposed by the optimization decision unit, it automatically adjusts the parameter settings of the image processing algorithm, the product quality judgment standards and the preset values ​​of the production line operation parameters. Specifically, it uses a programmed logic controller and software interface technology to adjust the parameters.

Citation Information

Patent Citations

  • Intelligent factory production online monitoring and analysis system based on machine vision

    CN116841262A

  • Standard quality detection management platform based on image detection and recognition

    CN117252851A