Posture monitoring and early warning method for hot-formed components

By dynamically adjusting light source parameters and multi-modal image acquisition technology, combined with a deep vision network, the problem of high-temperature radiation interference in the posture monitoring of thermoformed components is solved, accurate monitoring and automatic early warning of component postures are achieved, and the efficiency of the manufacturing industry is improved. Production efficiency and product quality.

CN118470873BActive Publication Date: 2024-10-18TIANJIN TAIZHENG MACHINERY
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410906257.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-18
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

In the thermoforming generation process, the high-temperature radiation interference of thermoformed components leads to inaccurate image acquisition and the inability to accurately monitor the component pose.

Method used

A programmable light source matrix is ​​used to dynamically adjust light source parameters, combined with multi-modal image acquisition and depth vision network, and post-processing technology is used to enhance image clarity and contrast, extract component pose characteristics, and set early warning thresholds to issue early warning signals.

Benefits of technology

It achieves the acquisition of clear and accurate image data under extreme thermal conditions, improves the accuracy and robustness of pose detection, ensures accurate monitoring and automatic early warning of component poses, reduces manual intervention, and improves production efficiency. and product quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470873B_ABST
    Figure CN118470873B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of image processing technology, and in particular to a method for monitoring and early warning of the posture of a thermoformed component. The present invention optimizes the thermal radiation characteristics of the thermoformed component by dynamically adjusting light source parameters, thereby significantly improving the imaging quality and ensuring that clear and accurate image data can be obtained even when the component is under extreme thermal conditions, thereby solving the problem of inaccurate image recognition caused by thermal radiation interference in traditional monitoring methods. The present invention integrates multiple image data acquisition methods such as RGB, near-infrared and far-infrared, provides rich visual information, and combines post-processing technology to enhance the recognition capability of component features and improve the accuracy and robustness of posture detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a method for monitoring and warning the posture of a hot-formed component. Background Art

[0002] At present, in the hot forming process, the heated components need to be transported to the bottom of the stamping part by the material removal equipment, and positioned by the limit pins and the limit holes of the components. However, after the components are placed, they need to be manually observed to see if they are aligned.

[0003] At present, in the prior art, a camera is used to monitor whether a component is aligned. However, when the camera is used to acquire an image, the light emitted by the heated component will cause very high interference to the image acquisition, and it is impossible to confirm whether the component is aligned, resulting in inaccurate component position acquired through image recognition.

[0004] Therefore, a hot-formed component posture monitoring and early warning method that can solve the above problems is needed. Summary of the invention

[0005] The present invention provides a method for monitoring and early warning of the posture of a thermoformed component. The present invention optimizes the thermal radiation characteristics of the thermoformed component by dynamically adjusting light source parameters, thereby significantly improving the imaging quality and ensuring that clear and accurate image data can be obtained even when the component is in extreme thermal conditions, thereby solving the problem of inaccurate image recognition caused by thermal radiation interference in traditional monitoring methods. The present invention integrates multiple image data acquisition methods such as RGB, near-infrared and far-infrared, provides rich visual information, and combines post-processing technology to enhance the ability to recognize component features and improve the accuracy and robustness of posture detection.

[0006] The technical solution adopted by the present invention to solve the above technical problems is: a thermoforming component posture monitoring and early warning method, which is used to monitor the component posture in a thermoforming monitoring system. The thermoforming monitoring system includes a programmable light source matrix, a multimodal image acquisition unit and an automatic monitoring control unit. The thermoforming component posture monitoring and early warning method includes the following steps:

[0007] Step S1: using a programmable light source matrix to dynamically adjust light source parameters according to the thermal radiation characteristics of the thermoformed component to optimize the imaging environment;

[0008] Step S2: collecting image data of the component through a multimodal image acquisition unit, and integrating the image data into a CPU in an automated monitoring control unit;

[0009] Step S3: performing post-processing on the collected images through the CPU in the automated monitoring control unit to filter out the interference light emitted by the components and enhance the clarity and contrast of the component images;

[0010] Step S4: Apply a multi-scale deep visual network to process the image and extract the current posture features of the component;

[0011] Step S5: preset a component posture deviation threshold, match the current posture feature of the component with the preset standard component posture, and if the posture deviation exceeds the preset threshold, an audible and visual notification alarm is issued through the automatic monitoring control unit.

[0012] Furthermore, the step S1 uses a programmable light source matrix to dynamically adjust light source parameters according to the thermal radiation characteristics of the thermoformed component to optimize the imaging environment, including:

[0013] Step S1-1: real-time monitoring of the thermal radiation intensity and distribution characteristic data of the component surface during the hot forming process by an integrated thermal imaging sensor or a thermal radiation monitoring device;

[0014] Step S1-2: Based on the monitored thermal radiation data, the CPU in the programmable light source matrix calculates a light source adjustment strategy, which includes but is not limited to adjusting the brightness, color temperature, light emission band and irradiation direction of the light source.

[0015] Furthermore, in step S1-2, the CPU in the programmable light source matrix calculates the light source adjustment strategy, including:

[0016] Step S1-2-1: Preliminary processing of the thermal radiation data collected from the thermal imaging sensor or thermal radiation monitoring device is performed by the image quality optimization system, including filtering to remove noise, correcting errors, and standardizing to ensure the accuracy and availability of the data;

[0017] Step S1-2-2: extracting the maximum value, average value, distribution pattern, change rate of thermal radiation intensity and temperature gradient of the component surface from the preprocessed data;

[0018] Step S1-2-3: Based on historical data and physical models, a mathematical relationship between light source adjustment and imaging quality is established in the image quality optimization system;

[0019] Step S1-2-4: Using the particle swarm optimization algorithm, a set of initial light source parameter configurations are randomly generated through particle swarm initialization, each particle represents a light source adjustment strategy, and an initial speed and position are assigned to each particle;

[0020] Step S1-2-5: Calculate the image quality index corresponding to each particle through the CPU in the programmable light source matrix according to the physical model and historical data;

[0021] Step S1-2-6: if the image quality index generated by the current particle position is better than the image quality index previously recorded by the particle, then update pBest; if the image quality index generated by the current particle position is better than the image quality index previously recorded by all particles in the particle group, then update gBest;

[0022] Among them, pBest represents the optimal solution experienced by each particle during the search process, and gBest represents the optimal solution found so far in the entire particle swarm;

[0023] Step S1-2-7: Repeat steps S1-2-5 to S1-2-6 until the predetermined number of iterations is reached. After the final solution iteration is completed, the gBest position in the particle swarm represents the light source adjustment strategy;

[0024] Step S1-2-8: The CPU in the programmable light source matrix controls the current, voltage and pulse width of each light source unit in the light source matrix according to the calculated strategy instructions to adjust the brightness, color temperature and direction.

[0025] Furthermore, the image data of the component in step S2 includes RGB image data, near-infrared image data and far-infrared image data.

[0026] Furthermore, in step S3, post-processing the collected images by the CPU in the automated monitoring control unit includes:

[0027] Step S3-1: receiving raw image data from the multimodal image acquisition unit through the CPU in the automated monitoring control unit, performing frequency domain filtering on the image, and removing image noise caused by thermal radiation;

[0028] Step S3-2: extracting the changes of the component relative to the background from the continuous image sequence using a background difference algorithm;

[0029] Step S3-3: adjusting the grayscale distribution of the image by histogram equalization and adaptive contrast, enhancing the contrast of the image, and making the features of the component obvious;

[0030] Step S3-4: using a sharpening filter to enhance the image edges and improve the visibility of details;

[0031] Step S3-5: Integrate the processed image data into the real-time display interface to prepare for subsequent component posture analysis.

[0032] Furthermore, the step S3-2 uses a background difference algorithm to extract the change of the component relative to the background from the continuous image sequence, including:

[0033] Step S3-2-1: Select one or more frames of images from the beginning of the continuous image sequence as background reference;

[0034] Step S3-2-2: Creating a composite background image by averaging the selected reference frames;

[0035] Step S3-2-3: performing pixel-by-pixel difference calculation on the component current image and the comprehensive background image to obtain a difference map;

[0036] Step S3-2-4: using median filtering to perform denoising on the difference map;

[0037] Step S3-2-5: Setting a threshold to process and distinguish the change area and noise of the difference map, the difference value below the threshold is set to zero, and the pixels above the threshold represent dynamic elements;

[0038] Step S3-2-6: Perform connectivity analysis on the difference map after threshold processing, aggregate adjacent dynamic elements into one area, and thus define the motion area of ​​the component.

[0039] Furthermore, in step S4, the multi-scale deep visual network is applied to process the image to extract the current posture features of the component, including:

[0040] Step S4-1: The multi-scale deep visual network extracts multi-scale features of components in the image in real time through convolutions of different sizes;

[0041] Step S4-2: Integrate the extracted multi-scale features into a comprehensive feature vector through weighted fusion;

[0042] Step S4-3: Based on the comprehensive feature vector, the fully connected layer in the multi-scale deep visual network is used to further extract the current posture features of the component;

[0043] Step S4-4: Based on the extracted current posture features of the component, the posture parameters of the component are output through the regression layer.

[0044] Furthermore, the multi-scale features of the component include edge features, texture features, shape features and local second-order statistical features; the current posture features of the component include the position features of the component and the rotation angle features of the component; the posture parameters of the component include but are not limited to the specific position coordinates of the component and the rotation angle of the component.

[0045] Furthermore, the component posture deviation threshold in step S5 includes a component position coordinate threshold and a component rotation angle range threshold.

[0046] Furthermore, the step S5 of matching the current posture feature of the component with the preset standard component posture includes:

[0047] Step S5-1: Calculate the difference between the current pose coordinates of the component and the standard pose coordinates of the component to obtain the deviation of the component in the x and y directions;

[0048] Step S5-2: Compare the rotation parameters of the current posture of the component with the standard posture of the component, and calculate the angle difference;

[0049] Step S5-3: If the deviation is within the component position coordinate threshold and the angle difference is within the component rotation angle range threshold, the component is positioned by a limit pin; if the deviation exceeds the component position coordinate threshold or the angle difference exceeds the component rotation angle range threshold, a warning signal is sent to the automatic monitoring control unit.

[0050] The advantages of the present invention are: 1. Automatic optimization of the imaging environment: The present invention optimizes the thermal radiation characteristics of thermoformed components by dynamically adjusting light source parameters, and offsets or minimizes the impact of thermal radiation on imaging by adjusting brightness, color, and direction parameters, thereby significantly improving imaging quality. It can ensure that the multimodal image acquisition unit obtains clear and accurate component image data, and solves the problem of inaccurate image recognition caused by thermal radiation interference in traditional monitoring methods.

[0051] 2. Multimodal image fusion improves monitoring accuracy: The present invention integrates multiple image data collection such as RGB, near-infrared and far-infrared, provides rich visual information, and combines post-processing technology to enhance the ability to recognize component features and improve the accuracy and robustness of posture detection.

[0052] 3. Intelligent analysis driven by deep learning: The present invention adopts a multi-scale deep visual network, which can automatically extract the key posture information of components from multi-dimensional features. It not only improves the speed of posture recognition, but also greatly improves the recognition accuracy, ensuring the rapid and accurate judgment of component posture, and providing a solid foundation for subsequent automated control.

[0053] 4. Efficient early warning mechanism: Through the preset posture deviation threshold, the hot forming monitoring system of the present invention can instantly determine whether the component posture meets the production requirements. Once a deviation exceeding the threshold is detected, an early warning signal is immediately triggered, avoiding production accidents caused by component positioning errors and ensuring production efficiency and product quality.

[0054] 5. Unattended automated operation: The entire monitoring and early warning process does not require human intervention, and full automation is achieved from image acquisition, processing, analysis to abnormal alarm, which greatly reduces labor costs, while improving the safety and continuous operation capacity of the production line, and adapting to the modern manufacturing industry's demand for efficient automated production.

[0055] 6. Refined quality control: Through precise posture deviation detection and early warning, the present invention can timely adjust the posture deviation of components during the production process, reduce the scrap rate caused by incorrect posture, and improve the quality and consistency of the overall product.

[0056] In summary, the present invention successfully solves the image interference problem caused by high temperature in the hot forming process through a series of innovative technical means, realizes accurate monitoring and automatic early warning of component posture, and is of great significance to improving the production efficiency and product quality of the manufacturing industry. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0058] Figure 1 A flow chart of the hot-formed component posture monitoring and early warning method provided by the present invention. DETAILED DESCRIPTION

[0059] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] Embodiment 1: Figure 1 The flowchart of the method for monitoring and early warning of the posture of a hot-formed component provided by the present invention is as follows: Figure 1 The thermoforming component posture monitoring and early warning method shown is used to monitor the component posture in a thermoforming monitoring system. The thermoforming monitoring system includes a programmable light source matrix, a multimodal image acquisition unit and an automatic monitoring control unit. The thermoforming component posture monitoring and early warning method includes the following steps:

[0061] Step S1: Use a programmable light source matrix to dynamically adjust light source parameters according to the thermal radiation characteristics of the thermoformed component to optimize the imaging environment; the imaging environment refers to the ideal lighting conditions created for image acquisition. The programmable light source matrix is ​​a group of light sources that can be precisely controlled. Their task is to offset or minimize the impact of thermal radiation on imaging by adjusting brightness, color, and direction parameters. For example, if a component causes light reflection or overexposure, the light source matrix will adjust the brightness or angle and use light of a specific wavelength to reduce these interferences so that subsequent image acquisition can be carried out under more ideal lighting conditions. The light source matrix itself does not directly participate in the capture of the image, but creates a good external environment for image acquisition.

[0062] Specifically, it includes step S1-1: real-time monitoring of the thermal radiation intensity and distribution characteristics of the component surface during the hot forming process by an integrated thermal imaging sensor or a thermal radiation monitoring device; wherein the integrated thermal imaging sensor is a non-contact sensor that can capture and convert thermal energy into electrical signals, thereby generating a thermal image. Thermal imaging sensors (such as thermopiles, microbolometers or pyroelectric detectors) can detect infrared radiation in a wide band, covering from near infrared to far infrared regions. Such sensors can respond quickly to temperature changes and record the thermal distribution of the component surface in real time, including hot spots, cold spots and temperature gradients, etc., and provide quantitative data of thermal radiation intensity and distribution characteristics. Among them, the external thermal radiation monitoring device includes a thermal radiation meter or an infrared scanning system, which can scan the component from a certain distance to obtain a wider range of thermal field information, have higher accuracy and resolution, can provide more detailed component thermal radiation intensity data, and can generate a two-dimensional or three-dimensional thermal radiation distribution map; further, the thermal radiation intensity and distribution characteristics data include thermal radiation intensity: refers to the radiation energy emitted from a unit area of ​​the component surface per unit time, in units of watts per square meter (W / m²). Temperature distribution diagram: Displays the temperature difference of each point on the component surface in the form of an image, and uses different colors to represent different temperature ranges, which can help intuitively understand the thermal distribution characteristics of the component. Thermal radiation spectrum characteristics: Records the distribution of thermal radiation in different wavelength ranges. Time series data: Thermal radiation intensity and temperature data that changes over time, used to analyze the temperature changes and thermal effects of components during the hot forming process.

[0063] Step S1-2: Based on the monitored thermal radiation data, the optimal light source adjustment strategy is calculated through the CPU in the programmable light source matrix (the CPU, as the main controller, is responsible for receiving data from the thermal imaging sensor, executing advanced algorithms to analyze the data, and formulating a light source adjustment strategy accordingly. The CPU has a high degree of flexibility and versatility, can run various complex software algorithms, and is suitable for processing large amounts of data and executing complex decision logic). The light source adjustment strategy includes but is not limited to adjusting the brightness, color temperature, light band and irradiation direction of the light source;

[0064] Furthermore, in step S1-2, the CPU in the programmable light source matrix calculates the light source adjustment strategy, including:

[0065] Step S1-2-1: Perform preliminary processing on the thermal radiation data collected from the thermal imaging sensor or thermal radiation monitoring device through an image quality optimization system (the image quality optimization system is integrated in the automated monitoring control unit of the programmable light source matrix, and is closely connected with the thermal radiation monitoring sensor, the programmable light source matrix, and the imaging device, so as to ensure real-time acquisition of thermal radiation data, rapid response, and adjustment of the light source to optimize imaging conditions), including filtering to remove noise, correcting errors, and standardization, to ensure the accuracy and availability of the data;

[0066] Step S1-2-2: extracting the maximum value, average value, distribution pattern, change rate of thermal radiation intensity and temperature gradient of the component surface from the preprocessed data;

[0067] Step S1-2-3: Based on historical data and physical models, a mathematical relationship between light source adjustment and imaging quality is established in the image quality optimization system; the historical data refers to the data records collected in the past when the hot forming process was carried out under similar or identical conditions, including the thermal radiation characteristics of the component (maximum value, average value, distribution pattern, rate of change of radiation intensity, and temperature gradient on the surface of the component), light source parameter adjustment, and corresponding imaging quality (signal-to-noise ratio SNR, contrast, and clarity of the image). These data reflect the actual impact of light source adjustment on the imaging effect and provide an empirical basis for establishing a mathematical model. The physical model adopts the illumination model, thermal radiation transmission model, and image quality evaluation model in the current existing technology. The illumination model describes how the light source emits light into space, how the light interacts with the environment (including thermal radiation), and how it finally reaches the camera sensor. The thermal radiation transmission model is used to simulate how thermal radiation propagates in the environment and interacts with the surrounding medium, which helps to predict and calculate the degree of interference of thermal radiation on imaging. The image quality evaluation model is used to define indicators for quantifying image quality, including: Signal-to-noise ratio (SNR): a measure of the ratio of image signal strength to background noise. A high SNR means a clearer image with less noise interference. Contrast: represents the brightness difference between the brightest and darkest areas in an image. A high contrast ratio makes the outline of an object clearer. Clarity: a measure of the degree to which image details can be distinguished. In the process of establishing mathematical relationships, the present invention uses these models in combination to construct a comprehensive model. This model can predict the final image quality indicators based on the current thermal radiation conditions and the expected light source adjustment strategy. In this way, the image quality optimization system can find the light source adjustment strategy that optimizes the image quality by optimizing these model parameters, such as maximizing SNR, contrast, and clarity, thereby ensuring that the best imaging effect can be obtained during the thermoforming process and providing high-quality image data for subsequent posture monitoring. Specifically, the process of constructing a comprehensive model includes:

[0068] a. Data integration and preprocessing

[0069] First, the collected historical data is sorted out, including the thermal radiation characteristics of the components, the previous light source parameter adjustment records, and the corresponding imaging quality indicators (SNR, contrast, clarity). The data is cleaned and standardized to eliminate outliers and ensure data quality.

[0070] b. Model fusion design

[0071] Through multivariate regression analysis, the key parameters in the illumination model, thermal radiation transfer model, and image quality evaluation model are used as independent variables, and SNR, contrast, and clarity are used as dependent variables. A comprehensive model is established through multivariate linear or nonlinear regression methods.

[0072] Then, support vector machine (SVM), neural network (ANN) or random forest (RF) machine learning algorithm is used to input feature vectors including thermal radiation data and light source parameters, and the output is the predicted image quality index. The relationship between features and results is learned through the training set.

[0073] c. Parameter optimization and strategy generation

[0074] Define a comprehensive objective function, such as minimizing the gap between the predicted image quality index and the expected value, while considering the weight of each index to ensure the maximization of the overall image quality. Use the particle swarm optimization algorithm to find the light source parameter combination (brightness, color temperature, band, direction) that makes the objective function reach the optimal value. In this embodiment, there are three image quality indicators: signal-to-noise ratio (SNR), contrast (C), and clarity (Clarity), and the light source parameters that need to be optimized are brightness (Luminance, L), color temperature (Color Temperature, CT), and band (Bandwidth, B). The goal is to find a set of light source parameters that make these three quality indicators as close as possible to their ideal expected values ​​(represented as SNR in the following formulas, respectively). des , C des ,Clarity des ), and considering their relative importance, this can be achieved by assigning different weights (w1, w2, w3). Specifically, a comprehensive objective function J is defined, which measures the gap between the predicted image quality and the expected value, and is the weighted sum of the gaps of various indicators. In order to facilitate optimization, the form of the sum of squared errors is adopted, that is:

[0075] ,in Represents the signal-to-noise ratio predicted based on the physical model and current light source parameters; Represents the contrast ratio predicted based on the physical model and the current light source parameters; It represents the clarity predicted based on the physical model and the current light source parameters. It defines a comprehensive objective function that comprehensively considers the three key image quality indicators of signal-to-noise ratio (SNR), contrast (C), and clarity, and allows the importance of these indicators to be balanced through weight distribution. In the subsequent steps, the particle swarm optimization algorithm is used to find a set of optimal light source parameters (brightness L, color temperature CT, band B) to minimize the value of the comprehensive objective function, that is, to minimize the gap between the actual image quality indicators and the expected values.

[0076] d. Parameter optimization and strategy generation

[0077] In the hot forming process, the real-time monitored thermal radiation data is used as input, and the trained comprehensive model is used to predict the expected image quality index under a given light source adjustment strategy. According to the comparison between the predicted results and the set image quality target, the light source parameters are dynamically adjusted until the optimal image quality is achieved or close to it. Specifically, the gradient descent method is selected as an example for parameter optimization. First, the partial derivative of the objective function J with respect to each light source parameter (brightness L, color temperature CT, band B) is calculated to form a gradient vector. Then, in each iteration, the light source parameters are updated along the negative gradient direction until they converge to a local minimum. In terms of practical operation, this step focuses on applying the previously established model and method to the real-time hot forming monitoring system. By real-time monitoring of the thermal radiation data in the hot forming process, the trained comprehensive model is used to predict the expected image quality index under the current light source adjustment strategy, that is, based on the comparison between the predicted results and the preset image quality target, the actual light source parameters are dynamically adjusted. Taking the gradient descent method as an example, by calculating the gradient of the objective function with respect to each light source parameter, and adjusting the parameters step by step accordingly, the global or local optimal solution is gradually approached, thereby achieving real-time optimization control of image quality. This step ensures that the theoretical model can work effectively in the actual production environment, continuously improving image quality to the closest ideal state.

[0078] Through the above steps, the image quality optimization system comprehensively uses historical data and physical models to build a comprehensive model that can dynamically predict and optimize the light source adjustment strategy, ensuring that the imaging quality during the thermoforming process is optimal and meets the high standards required for subsequent posture monitoring.

[0079] Step S1-2-4: Using the particle swarm optimization algorithm, a set of initial light source parameter configurations are randomly generated through particle swarm initialization. Each particle represents a light source adjustment strategy, and an initial velocity v and position x are assigned to each particle. The present invention applies the particle swarm optimization algorithm (PSO) to the thermoforming component posture monitoring and early warning. The position of each particle represents its current position in the solution space. For thermoforming component posture monitoring and early warning, the adjustment parameters of the light source directly determine the quality and efficiency of the monitoring. Therefore, brightness, color temperature, band, and direction are used as the components of the position vector, which together constitute a specific light source adjustment strategy. For example, position x = (brightness L, color temperature CT, band B, direction D) represents a specific light source configuration. Velocity v (Velocity) determines how the particle moves from the current position to the next position in the solution space. In this embodiment, the velocity v also needs to be four-dimensional because it corresponds to the rate of change of the four parameters of brightness, color temperature, band, and direction. That is, the speed v = (Δbrightness, Δcolor temperature, Δband, Δdirection) describes how the position (i.e., light source parameters) of each particle should be adjusted in the next iteration in order to get closer to a better solution. The present invention can explore different light source adjustment strategies through the particle swarm optimization algorithm (PSO), in which the speed guides how the particles gradually adjust their positions (i.e., light source parameters) in order to achieve better monitoring and early warning effects, that is, to minimize or maximize a certain objective function (such as improving image clarity or reducing noise). In each iteration, by comparing the individual optimal solution with the global optimal solution, the particles collectively learn and approach a better light source configuration strategy.

[0080] Step S1-2-5: Calculate the image quality index corresponding to each particle (i.e., light source parameter combination) through the CPU in the programmable light source matrix according to the physical model and historical data;

[0081] Step S1-2-6: If the image quality index generated by the current particle position is better than the image quality index previously recorded by the particle, then update pBest. Specifically, pBest (Personal Best) refers to the optimal solution experienced by each particle during the search process. Specifically, in the hot forming component posture monitoring method, for each particle (i.e., a specific light source adjustment strategy), pBest is the optimal image quality index achieved under the strategy, such as the highest signal-to-noise ratio, contrast or clarity combination. During the algorithm operation, if the image quality index generated by the current particle position (i.e., the current light source adjustment parameter) is better than the pBest recorded before, then the pBest value will be updated. If the image quality index generated by the current particle position is better than the image quality index previously recorded by all particles in the particle group, then update gBest; specifically, gBest (Global Best) represents the optimal solution found so far in the entire particle group, and gBest means the strategy that can produce the best image quality among all the light source adjustment strategies tried. When the pBest of any particle is better than the current gBest, gBest will be updated to this better solution. All particles will be affected by gBest, prompting them to move towards the best direction of the whole group. By continuously updating pBest and gBest and adjusting the speed and position of the particles accordingly, the particle swarm optimization algorithm can guide the particle swarm to gradually converge to the optimal area of ​​the solution space, thereby finding or approaching the global optimal light source adjustment strategy.

[0082] According to pBest and gBest, the velocity v and position x of each particle are updated using the following formula:

[0083] Among them, v i represents the current speed, w is the inertia weight, c1 and c2 are acceleration constants, r1 and r2 are random numbers between [0,1], used to introduce randomness, where Represents the cognitive component, that is, the current individual optimal solution pBest i With the current position x i The difference, multiplied by the acceleration constant c1 and a random number r1; Represents the global optimal solution gBest and the current position x i The difference is multiplied by the acceleration constant c2 and another random number r2. The above formula jointly determines the change in the speed of each particle in the next iteration, thereby affecting the moving direction and speed of the particle in the solution space, so as to search for a better solution.

[0084] Step S1-2-7: Repeat steps S1-2-5 to S1-2-6 until the predetermined number of iterations is reached. After the final solution iteration is completed, the gBest position in the particle swarm represents the optimal light source adjustment strategy;

[0085] Step S1-2-8: The CPU in the programmable light source matrix controls the current, voltage and pulse width of each light source unit in the light source matrix according to the calculated strategy instructions to adjust the brightness, color temperature and direction.

[0086] Through the above steps, the optimal light source adjustment strategy can be dynamically and automatically calculated and executed. The calculated strategy will be applied to the light source matrix in real time. At the same time, the thermoforming monitoring system will continuously monitor the imaging quality, fine-tune the strategy according to the feedback results, form a closed-loop control, and ensure that the light source adjustment is always optimal. The goal of searching for the optimal solution through the particle swarm optimization algorithm is to find a set of light source adjustment parameters (brightness L, color temperature CT, band B, irradiation direction D) so that the image quality evaluation indicators (such as signal-to-noise ratio SNR, contrast C, and clarity Clarity) are optimized to adapt to the ever-changing thermal radiation conditions in the thermoforming process, ensure imaging quality, and provide a reliable data basis for subsequent image processing.

[0087] Step S2: The image data of the component is collected through a multimodal image acquisition unit (the image data includes RGB image data, near-infrared image data and far-infrared image data), and the image data is integrated into the CPU in the automatic monitoring control unit; the multimodal image acquisition unit is equipped with different types of camera systems, which can simultaneously or successively capture image data in different spectral ranges to obtain more comprehensive information. The unit includes at least three key components: RGB camera, near-infrared camera and far-infrared camera. The RGB camera is responsible for capturing images in the visible spectrum. During the thermoforming process, the RGB image can provide intuitive information such as the appearance characteristics and color changes of the component, which is crucial for surface quality and structural recognition (it can also be analyzed by using image processing and computer vision technology, such as edge detection, shape matching or feature point recognition, to determine whether the component is tilted, rotated or otherwise displaced relative to the expected position). The near-infrared camera captures electromagnetic wave images between the visible light and mid-infrared bands. Images in this frequency band help penetrate the surface of the material, reveal the internal structure or enhance the characteristics of a specific substance, and play an important role in detecting the temperature distribution of thermoformed components. The far-infrared camera is used to capture infrared radiation with a longer wavelength, mainly for temperature measurement and thermal distribution analysis. During the thermoforming process, far-infrared images can accurately reflect the thermal field distribution of components.

[0088] Optionally, the present invention may also adopt a precise time synchronization mechanism (such as GPS time synchronization, internal clock synchronization or external trigger signal) to ensure that all cameras capture images at the same time or at a predetermined time interval, and the collected RGB, near-infrared and far-infrared image data are integrated into a unified data processing platform to comprehensively analyze the information provided by different modalities. Through the above steps, the multimodal image acquisition unit can provide rich visual information of the thermoformed components and effectively monitor the temperature and temperature distribution of the components.

[0089] Step S3: The CPU in the automated monitoring control unit performs post-processing on the collected image to filter out the interference light emitted by the component and enhance the clarity and contrast of the component image. Specifically, the process includes:

[0090] Step S3-1: The CPU in the automated monitoring control unit receives raw image data (including visible light images and infrared images) from the multimodal image acquisition unit, performs frequency domain filtering on the image, removes image noise caused by thermal radiation, and helps reduce image blur and distortion caused by heat sources.

[0091] Step S3-2: Using a background difference algorithm to extract the changes of the component relative to the background from the continuous image sequence can effectively eliminate the light interference emitted by the component and make the outline of the component clearer. Specifically, it includes:

[0092] Step S3-2-1: Select one or more frames of images from the beginning of the continuous image sequence as background references, ensuring that the selected frames mainly reflect static background information.

[0093] Step S3-2-2: Create a comprehensive background image by averaging the selected reference frames (this background image will serve as a basic template for subsequent difference to compare and distinguish dynamic objects from static background);

[0094] Step S3-2-3: Perform pixel-by-pixel difference operation on the current image of the component and the comprehensive background image to obtain a difference map (direct subtraction of pixel values, the result of the difference operation generates a difference image, which shows the difference between the current image of the component and the comprehensive background image). The changed area in the image will appear in the difference map as a highlight, while the background area will appear as a low value or zero value.

[0095] Step S3-2-4: Use median filtering to denoise the difference image, keeping the edge while reducing random noise;

[0096] Step S3-2-5: Set a threshold to process and distinguish the change area and noise of the difference map. The difference value below the threshold is set to zero, and the pixels above the threshold represent dynamic elements. Specifically, dynamic elements refer to areas or objects that change relative to the background in a continuous image sequence, such as the movement and deformation of thermoformed components during the production process. The pixels above the threshold represent these dynamic elements because in the process of background difference, the difference values ​​displayed by these pixels are large, indicating that the component has moved or changed in state, rather than the slight change of the background itself or imaging noise; the main purpose of setting the threshold is to filter out unimportant noise or slight changes, which may be caused by factors such as light fluctuations and camera sensor noise. The threshold can clearly distinguish which changes are significant (i.e., dynamic elements) and which are background noise or unimportant changes that should be ignored. For example, suppose that in the image sequence we are processing, the difference in pixel values ​​of the component in the background and static state is usually no more than 10 gray levels, but the maximum difference between the component and the background when it moves or deforms can reach 50 gray levels. At this time, a threshold of 20 gray levels can be initially set. The effect of this is: Difference values ​​below 20 gray levels are considered to be changes close to the background noise level, or non-critical differences caused by slight changes in light, so these pixels are set to zero, and they are considered to be consistent with the background and belong to areas that do not need attention. Difference values ​​above 20 gray levels are considered to be significant changes, indicating that the areas represented by these pixels are significantly different from the background, and are determined to be the result of a change in the component's posture state, so they are marked as dynamic elements or change areas.

[0097] Step S3-2-6: Perform connectivity analysis on the difference map after threshold processing, aggregate adjacent dynamic elements into one area, and thus accurately define the motion area of ​​the component;

[0098] The dynamic element represents the obvious difference of the current image pixel of the component in the difference map relative to the set threshold. Specifically, in the difference map after threshold processing, the value of each pixel represents the difference in brightness or color. If the brightness of a pixel in the current frame is higher than that in the background frame, the difference value is positive; conversely, if the brightness is low, the difference value is negative (for color images, the difference can be calculated based on each channel of RGB or other color space).

[0099] In order to distinguish truly meaningful changes (such as movement or shape change of components) from minor differences caused by factors such as changes in lighting and image noise, a threshold is set. This threshold is a critical point that is used to filter out minor or unimportant differences and retain only significant changes. When the difference value between the pixels in the current image of the component and the background image in the difference map exceeds this preset threshold, these pixels are considered to represent significant differences, which means that the component corresponding to the pixel has an actual displacement, deformation, brightness or color change relative to the background. For example, if the component is moving, its edges will show high difference values ​​in the difference map because these parts are significantly different from the corresponding positions in the background image.

[0100] The difference map is obtained by comparing the current image of the component with the comprehensive background image. The difference value of each pixel reflects the difference in light intensity or color between the component image and the background image at that location. When the difference is significant, that is, the difference value is higher than the set threshold, these pixels are considered dynamic elements, or "high difference value pixels", which means that they correspond to areas where there is a clear difference between the component and the background. Therefore, connectivity analysis and aggregation of adjacent dynamic elements are performed in order to more accurately define the actual movement or change area of ​​the component.

[0101] Furthermore, connectivity analysis is an image processing technique performed on the difference map after threshold processing, the purpose of which is to identify and mark continuous groups of pixels with similar attributes (here, the difference value is higher than the threshold), that is, connected domains. The following are the steps of connectivity analysis:

[0102] a. Label initialization: First, traverse the entire difference map, find the first pixel point above the threshold (that is, the starting point of the change area), and mark these pixels as seed points of different connected domains. Each seed point corresponds to a unique label.

[0103] b. Region expansion: For each marked seed point, the algorithm checks the neighboring pixels around it. If these neighboring pixels are also above the threshold and have not been marked, they are assigned the same label and added to the current connected domain. This process is recursive until all pixels adjacent to the current connected domain and meeting the conditions are marked.

[0104] c. Repeat labeling: Repeat the above process until all pixels above the threshold are assigned to at least one connected domain. In this way, each connected domain represents a continuous area with high difference value, that is, the area representing the motion of the component relative to the background.

[0105] Through connectivity analysis, not only can the change area be accurately defined, but also isolated noise points can be eliminated to obtain a clear outline of the component movement area, which is crucial for subsequent posture analysis.

[0106] Through the above steps, the dynamic changes of the thermoformed component relative to the background can be effectively separated from the continuous image sequence, while eliminating the interference of environmental factors.

[0107] Step S3-3: adjusting the grayscale distribution of the image by histogram equalization and adaptive contrast, enhancing the contrast of the image and making the features of the component obvious;

[0108] Step S3-4: Use a sharpening filter (such as Unsharp Masking, Laplacian sharpening) to enhance the image edges, improve the visibility of details, and make the fine structure of the component clearer.

[0109] Step S3-5: Integrate the processed image data into the real-time display interface to prepare for subsequent component posture analysis.

[0110] The above-mentioned image processing steps can ensure that the image data obtained from the multimodal image acquisition unit can accurately reflect the posture information of the hot forming component after effective processing, while reducing the interference of environmental and thermal radiation factors, thereby improving the reliability and accuracy of the entire hot forming monitoring system.

[0111] Step S4: Apply a multi-scale deep visual network to process the image and extract the current posture features of the component, specifically including:

[0112] Step S4-1: The multi-scale deep visual network extracts multi-scale features of components in the image in real time through convolution kernels of different sizes (i.e., filters of different scales). The multi-scale features of components include edge features (one of the most basic features in an image, representing a sharp change in brightness or color between pixels, helping to depict the outline and boundary of an object), texture features (repeated structures in an image, describing the texture information of the component surface, such as smoothness, roughness, etc.), shape features (including the overall contour structure of the component and the local structure of the component), and local second-order statistical features (Gabor wavelet coefficients of the image);

[0113] These features can capture the direction and intensity changes of local areas of components and are suitable for texture analysis and object recognition;

[0114] Step S4-2: Integrate the extracted multi-scale features into a comprehensive feature vector through weighted fusion to enhance the description capability of component details and overall structure;

[0115] Step S4-3: Based on the comprehensive feature vector, the fully connected layer in the multi-scale deep vision network is used to further extract the current posture features of the component. Specifically, the function of the fully connected layer is to extract the posture features of the component, including but not limited to the position coordinates and rotation angles. Specifically, the workflow of the fully connected layer is as follows: First, the comprehensive feature vector is flattened into a one-dimensional vector so as to serve as the input of the fully connected layer. The fully connected layer contains a series of neurons, each of which is connected to each element in the input vector and assigned different weights. These weights determine how to combine the input features to form a new and more targeted feature representation. Multiple layers of fully connected layers are stacked, and each layer further abstracts and refines the features based on the previous layer until the final output layer, which directly outputs the predicted value related to the component posture. Through this series of operations, the fully connected layer effectively selects and strengthens the features most relevant to the component posture from the comprehensive features, laying a solid foundation for the subsequent posture parameter output (such as the regression layer in step S4-4).

[0116] Step S4-4: Based on the extracted current posture features of the component, the posture parameters of the component are output through the regression layer. The posture parameters of the component include but are not limited to the specific position coordinates of the component and the rotation angle of the component.

[0117] Through the above steps, the present invention adopts the multi-scale deep visual network in the prior art to simultaneously capture image features of different scales. This network can understand the image information more comprehensively, including both detail features (such as fine textures) and shape and structure features of components. The multi-scale deep visual network helps to improve the extraction accuracy of the current posture features of the component, thereby more accurately monitoring the posture of the component.

[0118] Step S5: preset component posture deviation threshold, wherein the component posture deviation threshold includes component position coordinate threshold and component rotation angle range threshold; wherein the component position coordinate threshold refers to the maximum allowable deviation between the actual position and the ideal position of the component in the three directions of x, y and z. wherein the component rotation angle range threshold refers to the maximum allowable deviation between the actual rotation angle of the component and the preset rotation angle;

[0119] Then the current pose characteristics of the component are matched with the preset standard component pose, including:

[0120] Step S5-1: Calculate the difference between the current pose coordinates of the component and the standard pose coordinates of the component to obtain the deviation of the component in the x and y directions;

[0121] Step S5-2: Compare the rotation parameters of the current posture of the component with the standard posture of the component, and calculate the angle difference;

[0122] Step S5-3: If the deviation is within the component position coordinate threshold and the angle difference is within the component rotation angle range threshold, the component is positioned by the limit pin. If the deviation exceeds the component position coordinate threshold or the angle difference exceeds the component rotation angle range threshold, an early warning signal is sent to the automatic monitoring control unit. In the above step S4-4, the hot forming monitoring system has extracted the detailed pose information of the current component from the captured image through the multi-scale deep visual network, including but not limited to the position coordinates (x, y, z) and rotation parameters of the component. These information constitute the pose feature. In step S5, a preset standard component pose is required. According to the design specifications and production requirements of the component, a set of standard pose parameters are set in advance as a comparison benchmark, including the component position and the allowable rotation angle range. The algorithm in the hot forming monitoring system is responsible for comparing the difference between the currently extracted pose feature and the preset standard pose, and evaluating whether it meets the production standard by calculating the deviation of rotation and translation. Before production, a series of maximum allowable pose deviation values ​​are set according to the accuracy requirements of the component and the characteristics of the hot forming process. The thresholds include the maximum value of the position deviation and the maximum tolerance of the rotation angle. By calculating the difference between the current posture and the standard posture and comparing it with the preset threshold, if the deviation of any dimension exceeds the set threshold, it is considered unqualified. Once the deviation is found to exceed the threshold range, the thermoforming monitoring system will immediately send a signal to the automated monitoring control unit. After receiving the signal, the automated monitoring control unit will immediately activate the sound and light alarm, including but not limited to a loud warning sound, flashing lights, or a striking warning message on the display screen, to ensure that the operator can immediately notice the problem so that corrective measures can be taken. Corrective measures include adjusting the working parameters of the thermoforming machine, suspending production for manual adjustments, or triggering automated correction procedures to ensure the quality and safety of subsequent production.

[0123] In summary, step S5 is the response and action stage in the entire monitoring and early warning process. Through precise posture matching, strict deviation judgment and immediate alarm mechanism, the efficiency and accuracy of the hot forming process are ensured, the increase in scrap rate due to improper posture is avoided, and the safety and automation level of production are improved.

[0124] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for monitoring and early warning the posture of a hot forming component, which is used to monitor the posture of a component in a hot forming monitoring system. The hot forming monitoring system includes a programmable light source matrix, a multimodal image acquisition unit and an automatic monitoring control unit, and is characterized in that: The following steps are involved: Step S1: using a programmable light source matrix to dynamically adjust light source parameters according to the thermal radiation characteristics of the thermoformed component to optimize the imaging environment; Step S1-1: real-time monitoring of the thermal radiation intensity and distribution characteristic data of the component surface during the hot forming process by an integrated thermal imaging sensor or a thermal radiation monitoring device; Step S1-2: According to the monitored thermal radiation data, the CPU in the programmable light source matrix calculates the light source adjustment strategy, which includes adjusting the brightness, color temperature, light-emitting band and irradiation direction of the light source; Step S1-2-1: Preliminary processing of the thermal radiation data collected from the thermal imaging sensor or thermal radiation monitoring device is performed by the image quality optimization system, including filtering to remove noise, correcting errors, and standardizing to ensure the accuracy and availability of the data; Step S1-2-2: extracting the maximum value, average value, distribution pattern, change rate of thermal radiation intensity and temperature gradient of the component surface from the preprocessed data; Step S1-2-3: Based on historical data and physical models, a mathematical relationship between light source adjustment and imaging quality is established in the image quality optimization system; Step S1-2-4: Using the particle swarm optimization algorithm, a set of initial light source parameter configurations are randomly generated through particle swarm initialization, each particle represents a light source adjustment strategy, and an initial speed and position are assigned to each particle; Step S1-2-5: Calculate the image quality index corresponding to each particle through the CPU in the programmable light source matrix according to the physical model and historical data; Step S1-2-6: if the image quality index generated by the current particle position is better than the image quality index previously recorded by the particle, then update pBest; if the image quality index generated by the current particle position is better than the image quality index previously recorded by all particles in the particle group, then update gBest; Among them, pBest represents the optimal solution experienced by each particle during the search process, and gBest represents the optimal solution found so far in the entire particle swarm; Step S1-2-7: Repeat steps S1-2-5 to S1-2-6 until the predetermined number of iterations is reached. After the final solution iteration is completed, the gBest position in the particle swarm represents the light source adjustment strategy; Step S1-2-8: The CPU in the programmable light source matrix controls the current, voltage and pulse width of each light source unit in the light source matrix according to the calculated strategy instructions to adjust the brightness, color temperature and direction. Step S2: collecting image data of the component through a multimodal image acquisition unit, and integrating the image data into a CPU in an automated monitoring control unit; Step S3: performing post-processing on the collected images through the CPU in the automated monitoring control unit to filter out the interference light emitted by the components and enhance the clarity and contrast of the component images; Step S3-1: receiving raw image data from the multimodal image acquisition unit through the CPU in the automated monitoring control unit, performing frequency domain filtering on the image, and removing image noise caused by thermal radiation; Step S3-2: extracting the changes of the component relative to the background from the continuous image sequence using a background difference algorithm; Step S3-2-1: Select one or more frames of images from the beginning of the continuous image sequence as background reference; Step S3-2-2: Creating a composite background image by averaging the selected reference frames; Step S3-2-3: performing pixel-by-pixel difference calculation on the component current image and the comprehensive background image to obtain a difference map; Step S3-2-4: using median filtering to perform denoising on the difference map; Step S3-2-5: Setting a threshold to process and distinguish the change area and noise of the difference map, the difference value below the threshold is set to zero, and the pixels above the threshold represent dynamic elements; Step S3-2-6: Perform connectivity analysis on the difference graph after threshold processing, aggregate adjacent dynamic elements into one area, and thus define the motion area of ​​the component; Step S3-3: adjusting the grayscale distribution of the image by histogram equalization and adaptive contrast, enhancing the contrast of the image and making the features of the component obvious; Step S3-4: using a sharpening filter to enhance the image edges and improve the visibility of details; Step S3-5: Integrate the processed image data into the real-time display interface to prepare for subsequent component posture analysis; Step S4: Apply a multi-scale deep visual network to process the image and extract the current posture features of the component; Step S5: preset a component posture deviation threshold, match the current posture feature of the component with the preset standard component posture, and if the posture deviation exceeds the preset threshold, an audible and visual notification alarm is issued through the automatic monitoring control unit.

2. The method for monitoring and warning the position and posture of a hot-formed component according to claim 1, characterized in that: The image data of the component in step S2 includes RGB image data, near infrared image data and far infrared image data.

3. The method for monitoring and warning the position and posture of a hot-formed component according to claim 1, characterized in that: In step S4, a multi-scale deep visual network is used to process the image and extract the current posture features of the component, including: Step S4-1: The multi-scale deep visual network extracts multi-scale features of components in the image in real time through convolutions of different sizes; Step S4-2: Integrate the extracted multi-scale features into a comprehensive feature vector through weighted fusion; Step S4-3: Based on the comprehensive feature vector, the fully connected layer in the multi-scale deep visual network is used to further extract the current posture features of the component; Step S4-4: Based on the extracted current posture features of the component, the posture parameters of the component are output through the regression layer.

4. The method for monitoring and warning the position and posture of a hot-formed component according to claim 3, characterized in that: The multi-scale features of the component include edge features, texture features, shape features and local second-order statistical features; the current posture features of the component include the position features of the component and the rotation angle features of the component; the posture parameters of the component include the specific position coordinates of the component and the rotation angle of the component.

5. The method for monitoring and warning the position and posture of a hot-formed component according to claim 1, characterized in that: The component posture deviation threshold in step S5 includes a component position coordinate threshold and a component rotation angle range threshold.

6. The method for monitoring and warning the position and posture of a hot-formed component according to claim 1, characterized in that: The step S5 of matching the current posture feature of the component with the preset standard component posture comprises: Step S5-1: Calculate the difference between the current pose coordinates of the component and the standard pose coordinates of the component to obtain the deviation of the component in the x and y directions; Step S5-2: Compare the rotation parameters of the current posture of the component with the standard posture of the component, and calculate the angle difference; Step S5-3: If the deviation is within the component position coordinate threshold and the angle difference is within the component rotation angle range threshold, the component is positioned by a limit pin; if the deviation exceeds the component position coordinate threshold or the angle difference exceeds the component rotation angle range threshold, a warning signal is sent to the automatic monitoring control unit.

Citation Information

Patent Citations

  • Fire source detection, identification and early warning method for fire-fighting robot

    CN114399882A

  • Thermal forming workpiece positioning detection method in ultrahigh-strength steel hot stamping production line

    CN114494249A

  • Computer visual identification system and method

    CN116958771A

  • Thermal forming mold detection method and system based on artificial intelligence

    CN117557503A

  • Integrated panoramic look-around and sonar early warning system and early warning method based on deep-sea mining vehicle

    CN117630951A