An intelligent early warning processing method for oxidation film defects of electrolytic formation foil

By setting up a multi-point detection and identification system on the electrolytic foil production line, combined with a protective shell and speed feedback, high-precision and high-speed detection and classification of oxide film defects are achieved. This solves the problem of balancing detection accuracy and speed in existing technologies, and improves the safety and process control capabilities of the production line.

CN123175969APending Publication Date: 2026-11-27XINJIANG JINTAI NEW MATERIAL TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611332814.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

On electrolytic electrolytic foil production lines, existing detection methods are unable to achieve high-precision and high-speed detection of oxide film defects under high-voltage electrolysis conditions, and there is a lack of a dedicated grading and judgment system for the characteristics of oxide film defects in electrolytic foils, resulting in the inability of defect warning accuracy and timeliness to meet the needs of industrial production.

Method used

Three inspection points are set up on the continuous production line of electrolytic foil, equipped with line scanning cameras and laser triangulation units. Combined with a corrosion-resistant protective shell and a speed feedback dynamic acquisition frequency, defects are identified through a lightweight convolutional neural network. Based on multi-dimensional feature extraction and three-level classification judgment, a differentiated processing mechanism is triggered, including emergency shutdown and process parameter adjustment.

Benefits of technology

It achieves high-precision defect detection and classification under high-pressure corrosive environment, ensuring the response speed and accuracy of the detection system, and improving the safety assurance and process control capabilities of the production line.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123175969A_ABST
    Figure CN123175969A_ABST
Patent Text Reader

Abstract

The application discloses an intelligent early warning processing method for an electrolytic formation foil oxide film defect, and belongs to the field of industrial detection and early warning. In view of the problem that the existing detection scheme is difficult to balance the precision and speed under the special working condition of high-speed production of the formation foil, and lacks a special grading judgment system, the method configures a line scanning camera and a laser triangulation unit at three detection points in the whole process, synchronously collects two-dimensional image and three-dimensional topographic data; the sensor group is equipped with a corrosion-resistant protective shell; the spatial overlap rate is ensured by dynamically adjusting the collection frequency according to the production line speed; the defect is recognized through a lightweight convolutional neural network and three-level grading judgment is carried out in combination with multi-dimensional features; when the defect is serious, emergency shutdown is triggered and process parameters such as electrolysis voltage, temperature and formation time are automatically adjusted. The application effectively improves the accuracy and timeliness of the oxide film defect detection, and guarantees the product quality and production safety.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of industrial detection and early warning, specifically relating to an intelligent early warning and processing method for defects in the oxide film of electrolytically formed foil. Background Technology

[0002] During the continuous high-speed operation of the electrolytic foil production line, oxide film defects such as scratches, pinholes, corrosion spots, and uneven film layers are easily generated on the foil surface. How to capture these defect characteristics in real time and provide timely warnings under the condition of continuous high-speed transmission of rolls is the core link to ensure product quality.

[0003] Common surface defect detection methods typically utilize technologies such as line scan cameras, laser rangefinders, and machine vision to perform non-contact inspections of moving objects. However, under the special operating conditions of electrolytic foil production lines, the high-voltage electrolytic environment and corrosive media can severely impact the stability and lifespan of detection sensors. Furthermore, the high-speed transmission of continuous rolls requires the detection system to have millisecond-level response capabilities. Existing detection solutions struggle to achieve a balance between accuracy and speed, and lack a dedicated grading and judgment system for the defect characteristics of oxide films on electrolytic foils. Consequently, the accuracy and timeliness of defect warnings cannot meet the stringent requirements of industrial production. Summary of the Invention

[0004] To address the shortcomings of existing technologies, this invention provides an intelligent early warning and processing method for defects in electrolytically formed foil oxide films, which can effectively solve the problems mentioned in the background technology.

[0005] To achieve the above objectives, the technical solution adopted by the present invention is as follows: This invention provides an intelligent early warning and processing method for defects in the oxide film of electrolytically formed foil, the method comprising the following steps: Inspection points are set up in the pretreatment section, formation treatment section and final inspection section of the continuous foil production line to form a three-segment inspection network covering the entire process; Each detection point is equipped with a line scan camera measurement unit and a laser triangulation measurement unit. The vertical resolution of the laser triangulation measurement unit is better than 0.01 mm. The two measurement units acquire data synchronously in the time dimension and cover the same detection area in the spatial dimension. Each sensor group at each detection point is equipped with an independent protective housing. The protective housing is made of corrosion-resistant metal material and equipped with a sealing structure to physically isolate the internal optical components of the sensor from the external high-voltage electrolytic environment and corrosive electrolyte vapor. The conveyor speed signal fed back by the encoder is acquired in real time, and the acquisition frequency of the line scan camera measurement unit is dynamically adjusted according to the production line running speed so that the spatial overlap rate between adjacent acquisition frames meets the preset threshold requirements. When the classification result is a serious defect, an emergency shutdown protection command is triggered on the production line, and the automatic process parameter adjustment module is started. The automatic process parameter adjustment module has a built-in process parameter adjustment reference table. Based on the defect type and depth estimate, it retrieves the adjustment amount of electrolysis voltage, electrolyte temperature and formation time. Based on the current process parameter settings of the production line, the corresponding adjustment amounts are added to generate recommended values ​​for electrolysis voltage, electrolyte temperature and formation time.

[0006] In summary, this application includes at least one of the following beneficial technical effects: 1. This invention, by configuring a line scan camera and a laser triangulation unit to work together at three detection points throughout the entire process, and combining a corrosion-resistant protective shell with dynamic acquisition frequency adjustment based on speed feedback, enables the system to simultaneously acquire high-precision two-dimensional images and three-dimensional topographic data under high-pressure corrosion environment, while ensuring a constant spatial overlap rate between adjacent acquisition frames. This achieves a balance between accuracy and speed, providing a reliable data foundation for subsequent analysis.

[0007] 2. This invention improves the accuracy of defect classification by combining a lightweight convolutional neural network for initial identification with a secondary matching strategy based on a defect type template library. At the same time, by extracting multi-dimensional features such as the size, depth, location, and shape of defects, and performing a three-level classification judgment based on penetration determination, size level, and edge region attributes, it achieves a scientific quantitative assessment of the severity of defects, avoiding misjudgment and omission.

[0008] 3. This invention triggers differentiated processing mechanisms for different graded results, especially for serious defects, it automatically executes emergency shutdown and safe shutdown logic, and intelligently recommends adjustments to electrolysis voltage, temperature and formation time based on a built-in lookup table. At the same time, it realizes data caching, breakpoint resume transmission and visual traceability of the central control system through an industrial IoT gateway, and constructs a complete closed loop from perception, diagnosis to handling, which significantly improves the safety assurance level and process control capability of the production line. Attached Figure Description

[0009] Figure 1 This is a schematic diagram of the overall technical solution for the intelligent early warning and treatment method for defects in the oxide film of electrolytically formed foil; Figure 2 This is a schematic diagram illustrating the core principle of a composite non-contact surface defect detection sensor group. Figure 3 This is a flowchart of the multi-dimensional feature extraction and three-level classification algorithm; Figure 4 This is a schematic diagram of the multi-level interaction relationship and data flow between the hierarchical response actuator and the industrial IoT communication gateway. Detailed Implementation

[0010] To make the objectives, technical solutions, and advantages of this invention clearer, the following description is provided in conjunction with the appendix. Figure 1 To be continued Figure 4 The present invention will be further described in detail below with reference to specific embodiments.

[0011] This invention provides an intelligent early warning and processing method for oxide film defects in electrolytically formed foil. This method constructs a complete closed-loop system architecture on a continuous electrolytic foil production line, encompassing data acquisition, real-time processing, intelligent judgment, and tiered response. The technical implementation of the entire method covers several core aspects, including the deployment of a composite non-contact surface defect detection sensor group, real-time image processing by an edge computing unit, defect identification using a lightweight convolutional neural network model, execution of multi-dimensional feature extraction and tiered judgment algorithms, triggering of a three-level tiered response processing flow, and data aggregation via an industrial IoT communication gateway.

[0012] First, in step S1, according to the stage characteristics of the electrolytic foil production process, detection points are set up in the pretreatment section, electrolytic treatment section and final inspection section respectively. Each point is equipped with two measurement methods: line scanning camera and laser triangulation measurement, forming a dual-modal synchronous detection network covering the entire process. Furthermore, the logic for adaptive adjustment of acquisition frequency, protection measures and data transmission network interconnection method are specified to provide raw data input for edge computing units. The specific implementation is carried out according to the following steps.

[0013] Step S101: Three inspection stations are determined on the continuous production line for electrolytic foil: the pretreatment section before entering the electrolytic cell, the electrolytic treatment section after entering the electrolytic cell, and the final inspection section before winding. The three detection points of the composite non-contact surface defect detection sensor group are deployed in the above three station areas accordingly.

[0014] The initial inspection points are used to capture initial defects on the surface of raw materials, and the inspection results can provide an initial quality reference for subsequent process parameter adjustments. The intermediate inspection points are used to monitor the growth status of the oxide film and the occurrence of defects during the formation process in real time. This point is the core link in evaluating the effectiveness of the electrolytic treatment process.

[0015] The final inspection point is used to conduct a comprehensive inspection of the surface quality of the finished foil. The inspection results provide the final judgment basis for product quality grade assessment and factory release. The spatial distribution of the three inspection points follows the stage characteristics of the electroforming foil production process, and the three stages cooperate with each other to form an inspection network covering the entire process.

[0016] Step S102: Install a line scan camera measurement unit and a laser triangulation measurement unit at each detection point.

[0017] The line scan camera measurement unit uses a linear array image sensor as its core photosensitive element, with a spectral response range covering the visible light band, to capture color differences and texture anomalies on the oxide film surface. A telecentric lens is used in the camera to eliminate perspective distortion, and the mounting angle is perpendicular to the direction of the forming foil's movement to ensure the geometric accuracy of the acquired images.

[0018] The laser triangulation measurement unit consists of a laser emitting device, an optical receiving device, and a position-sensitive detector. The laser emitting device emits a collimated laser beam at a fixed incident angle and projects it onto the surface of the foil. The reflected light is focused by the optical receiving device onto the position-sensitive detector. In this embodiment, the three-dimensional topography data of the foil surface is calculated based on the position offset of the reflected light spot on the detector surface.

[0019] The vertical resolution of the laser triangulation measurement unit is better than 0.01 mm. The line scan camera measurement unit provides two-dimensional image information, while the laser triangulation measurement unit simultaneously provides three-dimensional topographic data of the same detection area. The data from the two measurement units are strictly synchronized in the time dimension and cover the same detection area in the spatial dimension.

[0020] In step S103, the acquisition frequency of the line scan camera measurement unit is adaptively adjusted according to the production line operating speed. In this embodiment, the conveyor speed signal fed back by the encoder is acquired in real time, and the line frequency parameters required by the line scan camera are dynamically calculated according to the speed change to ensure that the spatial overlap rate between adjacent acquisition frames meets the preset threshold requirements.

[0021] The instantaneous speed value of the current production line fed back by the encoder is denoted as: In the imaging field of view, the coverage width along the direction of foil travel is determined by the lens parameters and the mounting distance, denoted as... The preset spatial overlap rate threshold is denoted as... , It is a dimensionless parameter, with a value range between 0 and 1.

[0022] The number of lines captured by the camera per second is the line frequency value, denoted as . The time interval between two adjacent rows is... In the direction of foil travel, the physical distance between two adjacent rows of data acquisition is equal to the product of the instantaneous velocity and the row frequency period, and this distance is denoted as... The calculation formula is: ,in The current instantaneous speed of the production line. For line frequency, The physical spacing between two adjacent rows in the direction of travel is collected.

[0023] Constraints on spatial overlap rate The maximum allowable spacing value must not be exceeded, which is equal to... The constraint inequality is: ,in The width of the field of view in the direction of travel. This is a preset spatial overlap rate threshold.

[0024] Will Substituting, we get: After rearranging and simplifying, we get: Real-time calculation based on the current speed and fixed parameters and Calculate the minimum row frequency value that satisfies the above inequality, i.e., take: The line frequency parameter is written to the camera control register, driving the camera to perform image acquisition at the updated frequency. The minimum frequency that satisfies the constraints is selected to reduce the amount of data acquisition while ensuring sufficient spatial overlap between adjacent frames.

[0025] The line frequency calculation results are dynamically updated in real time according to the speed signal, ensuring that the spatial overlap rate between adjacent acquisition frames remains constant under conditions such as acceleration / deceleration, constant speed operation, or short pause and restart. The laser triangulation measurement unit and the line scan camera measurement unit are synchronously triggered. In this embodiment, the same hardware trigger signal source is used to drive both types of sensors to perform a single acquisition action, ensuring accurate alignment of the two types of data in both time and space dimensions.

[0026] Step S104: Configure an independent protective housing for the sensor group at each detection point. The housing is made of corrosion-resistant metal material and equipped with a sealing structure to physically isolate the internal optical components of the sensor from the external high-voltage electrolytic environment and corrosive electrolyte vapor.

[0027] The cameras at the front-end inspection points are mounted on vibration-damping supports above the pre-processing section. The supports use damping elements to attenuate the mechanical vibrations transmitted to the cameras from the production line. The laser triangulation measurement unit at the mid-end inspection points uses a low-power laser source to avoid the risk of discharge caused by excessive laser power in the high-voltage electrolysis environment. The optical receiving device is also equipped with a bandpass filter to filter out interference from ambient stray light on the detection of the reflected spot position.

[0028] Step S105 involves interconnecting the sensor groups at each detection point using an industrial Ethernet ring network topology to form a complete detection data transmission network. The ring network topology ensures that in the event of a failure in a single node or link, data continues to be transmitted via a backup path, without affecting the normal operation of other detection points. The raw detection data collected by each sensor group is transmitted through this network to the edge computing unit deployed on the production line for subsequent real-time image processing and defect identification.

[0029] The above completes the deployment of the composite non-contact surface defect detection sensor group on the continuous production line of electroforming foil. Subsequently, the edge computing unit can obtain the raw data input to perform image processing and defect recognition.

[0030] In step S2, the raw detection data is transmitted and preprocessed. Step S2 transmits the raw detection data collected by the sensor group to the edge computing unit and performs data preprocessing to prepare standardized input data for subsequent defect identification. Step S2 specifically includes the following process: Step S201: Establish a data transmission channel between each detection point of the sensor group and the edge computing unit. The data transmission channel uses industrial-grade gigabit Ethernet or fiber optic transmission media. The raw image data and 3D topography data collected by each detection point are encapsulated in the form of data frames and sent to the edge computing unit deployed on the production line through this channel.

[0031] During transmission, data frames are sent and received using a real-time transmission protocol, with end-to-end latency controlled within milliseconds. For channels using fiber optic transmission media, data is converted into optical signals by an electro-optical conversion module before transmission, and then converted back into electrical signals by an opto-optical conversion module upon arrival at the edge computing unit, thereby eliminating the effects of electromagnetic interference during long-distance transmission.

[0032] Step S202: Deploy the edge computing unit hardware platform on the production line. The edge computing unit adopts an industrial-grade server architecture, internally configured with a multi-core central processing unit and a graphics processing unit acceleration module. The central processing unit is responsible for overall system scheduling, task queue management, and the sending and receiving of control commands for each communication interface. The graphics processing unit acceleration module is equipped with independent video memory, the capacity of which meets the storage requirements for parallel convolution operations on the entire frame of high-resolution image.

[0033] The system memory capacity ensures that multiple frames of data to be processed and intermediate calculation results can be simultaneously accommodated in the image processing pipeline. The storage system uses solid-state drives (SSDs), whose read and write speeds meet the high-throughput write and read requirements of continuous data streams. The central processing unit (CPU) and the graphics processing unit (GPU) acceleration module are interconnected via a high-speed bus, allowing data transfer operations from system memory to GPU video memory and inference calculation operations within the GPU to be performed in parallel.

[0034] In step S203, after receiving the raw detection data, the edge computing unit performs data format standardization conversion.

[0035] The data from the line scan camera measurement unit is a sequence of pixel grayscale values ​​scanned line by line, while the data from the laser triangulation measurement unit is a sequence of height values ​​point by point. The original formats, numerical ranges, and encoding methods of the two types of data are different. The edge computing unit first determines the number of data points in the width direction and the scanning direction for each type of data.

[0036] The number of pixels in the width direction is determined by the sensor resolution of the line scan camera; the number of data rows in the scanning direction is determined by the product of the row frequency determined in step S103 and the running time. After determining the number of rows and columns, the pixel grayscale value sequence is filled row by row to construct a two-dimensional image matrix, and the height value sequence is filled with the same number of rows and columns to construct a two-dimensional heightmap matrix. The two matrices have the same number of rows and columns to ensure that they correspond completely on the spatial grid.

[0037] The two matrices were then converted to the same numerical representation format, including standardizing the bit depth, mapping the height values ​​to the same numerical dimension range as the image grayscale values, and unifying the coordinate origin to the top-left pixel position of the image. After the above conversion, the two matrices were consistent in numerical representation format and spatial reference frame.

[0038] Step S204 involves performing preprocessing operations on the standardized data, including noise filtering, brightness correction, and geometric correction.

[0039] Noise filtering employs a median filtering algorithm to process the two-dimensional image matrix. Median filtering traverses the image matrix using a sliding window approach, taking the median of all pixel grayscale values ​​within each window as the output value of the center pixel. This removes isolated noise points while preserving detailed information about defect edges. For the two-dimensional height map matrix, a Gaussian filtering algorithm is used. The output value of the center pixel is calculated by weighted averaging of the height values ​​of each pixel within the window, smoothing out high-frequency noise introduced by the micro-roughness of the foil surface.

[0040] Brightness correction is applied to the two-dimensional image matrix acquired by the line scan camera. A pre-calibration step obtains the illumination response curve for each pixel location, which describes the mapping relationship between input light intensity and output grayscale value. During correction, for each pixel in the image matrix, its original grayscale value is used as an index to look up the illumination response curve corresponding to its pixel location, obtaining the corrected grayscale value as the output. Correction is performed independently for each pixel location, thereby eliminating overall image brightness unevenness caused by light source attenuation or inconsistent detector response.

[0041] Geometric correction is performed based on pre-calibrated camera intrinsics and distortion coefficients. Camera intrinsics include the lateral focal length equivalent pixel length. Vertical focal length equivalent pixel length and principal point coordinates The distortion coefficients include the radial distortion coefficient. , and tangential distortion coefficient , .

[0042] Geometric correction employs the Brown-Conrady distortion correction model, a standard mathematical model used in industrial vision inspection to describe and correct lens distortion. This model decomposes lens distortion into radial and tangential distortion. It was chosen because it is widely used in mainstream computer vision libraries such as OpenCV, and its correction accuracy meets the pixel-level localization requirements for oxide film defect detection. The specific mapping relationship is as follows.

[0043] The original pixel coordinates of any pixel in the input image are: ,in For horizontal pixel indexing, For vertical pixel indexing, first convert the original pixel coordinates to normalized planar coordinates. : in The horizontal coordinate of the principal point The longitudinal coordinate of the principal point The horizontal focal length is the equivalent pixel length. The vertical focal length is the equivalent pixel length. For the horizontal index of the input pixel, For the vertical index of the input pixels, For normalized horizontal coordinates, The vertical coordinate is the normalized vertical coordinate.

[0044] Then, distortion correction is applied to the normalized planar coordinates, and the corrected normalized coordinates are calculated. : in , and The radial distortion coefficient is... and The tangential distortion coefficient is... and For normalized planar coordinates, To correct and normalize the horizontal coordinates, This represents the normalized longitudinal coordinate after correction. All terms on the right-hand side of the above formula are dimensionless, and there is no dimensional conflict in the addition operation. The calculations of the lateral and longitudinal corrections are performed in parallel and independently, without any overlap or coupling.

[0045] Finally, the corrected normalized plane coordinates are... Convert back to pixel coordinates : in The horizontal focal length is the equivalent pixel length. The vertical focal length is the equivalent pixel length. To correct and normalize the horizontal coordinates, To correct and normalize the longitudinal coordinates, The horizontal coordinate of the principal point The longitudinal coordinate of the principal point To correct the horizontal index of the pixels, This is the vertical index of the corrected pixels.

[0046] After the above mapping, each pixel in the original image is repositioned to its corrected coordinate position, generating a corrected image matrix. After geometric correction, the mapping relationship between the image pixel coordinates and the actual physical coordinates of the foil surface satisfies the linear projection model.

[0047] In summary, steps S201 to S204 complete the entire process of transmitting raw detection data from the sensor to the edge computing unit, platform deployment, format standardization, and preprocessing, providing standardized input data for defect identification of the neural network model in step S3.

[0048] Regarding step S3 of the method in this embodiment, the lightweight convolutional neural network defect identification step, the preprocessed standardized image data is input into a lightweight convolutional neural network model deployed in the edge computing unit for defect identification, and the defect detection results are output for subsequent classification and judgment. Step S3 specifically includes the following process: Step S301: Deploy a lightweight convolutional neural network model in the graphics processing unit acceleration module of the edge computing unit. The model architecture uses either the MobileNet network or the EfficientDet network. Both MobileNet and EfficientDet networks employ depthwise separable convolution as the basic operator, decomposing standard convolution into two stages: depthwise convolution and pointwise convolution, thus reducing the number of parameters and computational cost while maintaining detection accuracy.

[0049] Considering the limited memory capacity of the graphics processing unit acceleration module, network structure pruning is performed before model deployment. Fully connected layers in the classification branch that are irrelevant to the foil defect detection task are removed, and only the feature extraction backbone network and the detection head are retained.

[0050] Step S302: Construct the model training dataset. The training dataset contains labeled sample images of defects in electrolytic capacitor foil. These images are derived from raw inspection data collected at different times from multiple electrolytic capacitor foil production lines. The acquisition of these sample images covers different production line speeds and operating conditions, as well as varying lighting conditions. The type labels are divided into four categories: scratches, pinholes, corrosion spots, and uneven film layers.

[0051] Step S303 involves training and optimizing the lightweight convolutional neural network model. The training process employs a transfer learning strategy, using model parameters pre-trained on the public image dataset ImageNet as initialization parameters. During fine-tuning training on the defect sample dataset, the first few convolutional layers of the model's backbone network are frozen, and parameters are updated only for the latter few convolutional layers and the detection head portion.

[0052] The total loss function used in fine-tuning training is obtained by weighted summation of the classification loss and regression loss. The classification loss uses the cross-entropy loss function, and the regression loss uses the smoothed L1 loss function. The formula for calculating the total loss function is: in This is the total loss value. The cross-entropy classification loss value is... To smooth the L1 regression loss value, These are the classification loss weight coefficients. For regression loss weighting coefficients, and All of these are pre-set hyperparameters that remain unchanged during training.

[0053] During training, after each training epoch, the total loss value of the current model is calculated on the validation set. When the total loss value on the validation set no longer decreases over several consecutive training epochs, training is stopped and the current model weights are saved as the final deployment weights.

[0054] Step S304: Perform INT8 quantization on the trained model weights. INT8 quantization converts the model weights and activation values ​​from 32-bit floating-point numbers to 8-bit integer representations. The quantization operation is performed offline before deployment. First, the model forward inference is run on the training dataset to collect the numerical distribution range of activation values ​​for each layer. Based on the distribution range, the quantization scaling factor and zero-point offset for each layer are determined.

[0055] After the quantization parameters are calculated, the floating-point weights and quantization parameters are saved together as a quantization model file. When the edge computing unit loads this quantization model file to perform inference, the graphics processing unit acceleration module directly performs convolution operations on the 8-bit integer data, and the result is output after dequantization.

[0056] Step S305: The preprocessed standardized image data is input into the quantized lightweight convolutional neural network model for forward inference computation. The input image is propagated forward layer by layer through the backbone network to generate multi-scale feature maps. The detection head performs dense predictions on each scale feature map and outputs the defect confidence score and bounding box position for each candidate region.

[0057] After inference, non-maximum suppression (NMS) is performed on the output candidate detection results. The specific process of NMS is as follows: First, all candidate detection results are sorted from high to low according to their defect confidence scores; the candidate result with the highest confidence score is selected as the retained result, and the candidate results whose bounding box intersection-union ratio (IU) with the retained result is removed; the process of selecting the candidate with the highest confidence score and removing redundant results is repeated among the remaining candidate results until all candidate results have been processed. The IU threshold is preset.

[0058] After non-maximum suppression, the retained detection results are the final output defect detection results. The final output defect detection results include defect location information, pixel range information, and preliminary classification information. The location information is described by the coordinates of the top-left and bottom-right corners of the bounding box, and the pixel range information is described by the number of rows and columns of pixels covered by the bounding box. The preliminary classification information includes confidence scores for four categories of defects: scratches, pinholes, corrosion spots, or uneven film layers. Each defect category corresponds to a confidence score, ranging from 0 to 1, and the sum of the confidence scores for the four categories equals 1.

[0059] The above step S3 completes the entire process of deploying, training, quantizing inference, and outputting results of the lightweight convolutional neural network model on the edge computing unit, providing input data for multi-dimensional feature extraction and hierarchical judgment in step S4.

[0060] For step S4, after completing the defect identification described in step S3, step S4 is executed. Step S4 extracts multi-dimensional feature information of the defects from the defect detection results, providing a quantitative basis for subsequent grading determination. Step S4 specifically includes the following process: Step S401: For each candidate defect region in the defect detection result output in step S305, a corresponding binarized mask is generated based on the image segmentation algorithm. The binarized mask sets pixels within the defect region to 1 and pixels in the background region to 0. Each candidate defect region corresponds to an independent binarized mask, which serves as the basic input for subsequent feature extraction in various dimensions. The edge computing unit processes multiple defect regions detected in the same frame image sequentially according to their defect confidence scores from high to low.

[0061] Step S402: Calculate the size features of the defect based on the binarized mask. The size features include three parameters: the length, width, and estimated depth of the defect.

[0062] The length and width values ​​are calculated as follows: The edge computing unit performs connected component analysis on the binarized mask to determine the boundary contour of the defect region, and then calculates the circumscribed rectangle of this contour. The direction of the circumscribed rectangle is consistent with the foil running direction and the width direction. The longer side of the circumscribed rectangle is defined as the length value of the defect, and the shorter side is defined as the width value of the defect. The initial unit for both the length and width values ​​is pixels, which are then converted to millimeters according to physical calibration coefficients.

[0063] The depth estimate is calculated as follows. The edge computing unit extracts the set of height values ​​corresponding to the pixels covered by the defect region based on the two-dimensional height map matrix constructed in step S203. The average height value of the defect region is obtained by averaging the height values ​​of all pixels within the defect region; the average height value of the background region is obtained by averaging the height values ​​of all pixels in the adjacent regions surrounding the defect region.

[0064] The depth estimate is obtained by subtracting the average height of the defect area from the average height of the background area. A positive difference indicates a concave defect, while a negative difference indicates a convex defect. The absolute value of the difference is the numerical value of the defect's depth or height, in millimeters.

[0065] Step S403: Calculate the spatial location characteristics of the defect. The spatial location characteristics include two parameters: lateral distance and longitudinal distance.

[0066] The lateral distance is calculated as follows: The edge calculation unit determines the x-coordinate of the center point of the bounding rectangle of the defect area, with the top-left pixel of the image as the origin and the rightward direction as the positive direction. Simultaneously, the edge detection algorithm determines the x-coordinate of the left edge of the foil in the image. Subtracting the x-coordinate of the left edge of the foil from the x-coordinate of the center point of the bounding rectangle of the defect area yields the lateral distance of the defect relative to the left edge of the foil, in pixels. This distance is then converted to millimeters using a physical calibration coefficient.

[0067] The longitudinal distance is calculated as follows: The edge calculation unit determines the ordinate of the center point of the bounding rectangle of the defect area. This ordinate has the top-left pixel of the image as the origin and downwards as the positive direction. The ordinate of the production line start mark position in the image is pre-determined through calibration. Subtracting the ordinate of the production line start mark position from the ordinate of the center point of the bounding rectangle of the defect area yields the longitudinal distance of the defect relative to the start point along the production line direction, in pixels. This distance is then converted to millimeters according to a physical calibration coefficient.

[0068] After calculating the lateral distance, the edge calculation unit calculates the position parameters of the defect relative to the edge, combining this with the total foil width. The position parameters are calculated as follows: first, the ratio of the lateral distance to the total foil width is calculated; then, the absolute value of the difference between this ratio and 0.5 is multiplied by 2. The position parameter ranges from 0 to 1. A position parameter of 0 indicates the defect is located at the exact center of the foil width, while a position parameter of 1 indicates the defect is located at the foil edge. The edge calculation unit assigns a position weight parameter to the defect based on the position parameter value. A position weight parameter of 1.0 is assigned when the position parameter is greater than 0.8; a position weight parameter of 0.6 is assigned when the position parameter is greater than 0.6 but not exceeding 0.8; and a position weight parameter of 0.2 is assigned when the position parameter is not exceeding 0.6.

[0069] Step S404: Determine the type characteristics of the defect. The type characteristics are identified by matching a pre-built defect type template library.

[0070] The defect type template library stores typical image features and frequency domain features for four types of defects: scratches, pinholes, corrosion spots, and uneven film layers. Each defect type contains multiple template samples, each derived from the labeled samples with high confidence in the training dataset from step S302. Image features are descriptors using histogram of oriented gradients, and frequency domain features are descriptors using the spectral energy distribution feature after Fourier transform.

[0071] During the matching and recognition process, the edge computing unit extracts a sub-image of the defect region from the image matrix corrected in step S204 based on the binarized mask generated in step S401. Then, it extracts the directional gradient histogram feature vector and the spectral energy distribution feature vector from the extracted sub-image, concatenating these two feature vectors to obtain the feature vector of the region to be detected. Subsequently, the cosine similarity between the feature vector of the region to be detected and the feature vectors of various templates in the template library is calculated one by one.

[0072] The formula for calculating cosine similarity is: in Let be the feature vector of the region to be detected. The feature vector of a template in the template library. The total dimension of the feature vectors. For the dimension index in the vector, Represents the dot product of two vectors. Represents the magnitude of a vector. The feature vector of the region to be detected is in the th... Values ​​in the dimension For the template feature vector at the th Numerical values ​​across dimensions. The dot product operation involves multiplying the corresponding values ​​of the two vectors one by one and then summing them. The modulus operation involves summing the squares of the values ​​in each dimension and then taking the square root; both are scalar operations. Cosine similarity takes values ​​between 0 and 1, with higher values ​​indicating a higher degree of similarity.

[0073] For each defect type, the maximum similarity between all templates of that type and the region to be detected is taken as the matching score for that type. The matching scores of the four types are compared, and the defect type corresponding to the highest matching score is determined as the preliminary type determination result.

[0074] When the highest matching score is lower than the preset similarity threshold, the preliminary type determination result is marked as an unknown type, and the manual review process is triggered; when the highest matching score reaches or exceeds the similarity threshold, the type with the highest matching score is output as the final type feature.

[0075] Step S405: Calculate the shape features of the defect. The shape features include three parameters: area, perimeter, and aspect ratio.

[0076] The area value is calculated as follows: The edge computing unit counts the total number of pixels with a value of 1 in the binary mask to obtain the number of pixels covered by the defect, and then converts the pixel area to square millimeters according to the physical calibration coefficient. The perimeter value is calculated as follows: The edge computing unit calculates the total length of the contour curve of the defect region's boundary contour. The initial unit of the contour length in pixel space is pixels, which is then converted to millimeters according to the physical calibration coefficient. The aspect ratio value is calculated as follows: The edge computing unit takes the defect length value and width value obtained in step S402, divides the length value by the width value, and the resulting ratio is the aspect ratio, which is dimensionless.

[0077] After calculating the aforementioned shape features, the edge calculation unit performs a preliminary differentiation of defect morphology based on the aspect ratio value. When the aspect ratio value is greater than a preset aspect ratio threshold, the defect morphology is marked as slender; when the aspect ratio value does not exceed the preset aspect ratio threshold, the defect morphology is marked as blocky.

[0078] In summary, step S4 extracts multi-dimensional feature information about the defect. For each defect region, a multi-dimensional feature vector containing 10 parameters is extracted: length, width, estimated depth, lateral distance, longitudinal distance, positional weight, type, area, perimeter, and aspect ratio. These features describe the defect from four dimensions: size, spatial location, type, and shape, providing quantitative input data for the three-level classification determination in step S5.

[0079] The next step is step S5, automatic three-level classification determination. After completing the multi-dimensional feature extraction described in step S4, step S5 is executed. Based on the extracted multi-dimensional feature information, step S5 automatically classifies the defects according to the preset three-level classification standard and outputs the classification determination result for subsequent classification response processing.

[0080] Step S501: Preset a three-level grading standard and its size threshold system. The three-level grading standard includes three levels: minor defects, general defects, and severe defects. The preset size threshold includes two boundary values: a lower size threshold and an upper size threshold. The lower size threshold is less than the upper size threshold.

[0081] The lower and upper limits of the size threshold are preset based on the quality grade requirements and oxide film thickness specifications of the formed foil product. For formed foil products with different withstand voltage ratings, the oxide film thickness specifications are different, and the values ​​of the lower and upper limits of the size threshold are adjusted accordingly.

[0082] When the defect size is less than the lower limit of the size threshold, it is judged as a minor defect size level; when the defect size is greater than or equal to the lower limit of the size threshold but less than the upper limit of the size threshold, it is judged as a general defect size level; when the defect size is greater than or equal to the upper limit of the size threshold, it is judged as a severe defect size level.

[0083] In step S502, for each defect region, the largest of the three parameters extracted in step S402—length, width, and estimated depth—is selected as the representative size value for that defect region. The unit of the representative size value is millimeters.

[0084] The size representative value is compared with the lower and upper limits of the size threshold. When the size representative value is less than the lower limit, the size level is marked as slight; when the size representative value is greater than or equal to the lower limit but less than the upper limit, the size level is marked as moderate; when the size representative value is greater than or equal to the upper limit, the size level is marked as severe.

[0085] Step S503: Determine the location attributes of each defect area. The location attributes are determined by the ratio of the lateral distance calculated in step S403 to the total width of the foil. This ratio is multiplied by 100 and converted into a percentage, representing the relative position of the defect from the left edge of the foil.

[0086] A preset edge region threshold is set based on the trimming allowance of the subsequent slitting process of the electroplated foil, with a value between 5% and 15%. When this ratio is less than the edge region threshold, or when the ratio is greater than 100% minus the edge region threshold, the defect is determined to be located in the edge region; otherwise, the defect is determined to be located in the non-edge region.

[0087] Step S504: Determine whether the defect is a penetrating defect. A penetrating defect refers to a defect type in which the oxide film layer is damaged, resulting in direct exposure of the substrate. The depth estimate obtained in step S402 is compared with the standard value of the oxide film layer thickness. If the depth estimate is greater than the standard value, it is determined to be a penetrating defect; otherwise, it is determined to be a non-penetrating defect. The standard value of the oxide film layer thickness is predetermined based on the formation voltage level of the formed foil product.

[0088] In step S505, the final classification result of the defect is output according to the three-level classification rule, taking into account the size grade determined in step S502, the edge area determination result determined in step S503, and the penetration defect determination result determined in step S504.

[0089] The judgment process for the three-level classification rule is as follows. When a defect is judged to be a penetrating defect, a severe defect is directly output as the final classification result, and no further judgment process is executed.

[0090] When the defect is not a penetrating defect, the following rules apply to the combined determination of size and location: If the size level is minor and the location attribute is non-edge, output a minor defect. If the size level is minor and the location attribute is edge, output a general defect. If the size level is general, output a general defect regardless of whether the location attribute is edge or non-edge. If the size level is severe, output a severe defect regardless of whether the location attribute is edge or non-edge.

[0091] In summary, step S5 completes the three-level automatic classification based on multi-dimensional feature information. Each defect region outputs a classification result: minor defect, general defect, or severe defect. The classification result serves as the triggering basis for the classification response processing flow in step S6.

[0092] In step S6, the graded response processing step is executed after the three-level automatic classification determination described in step S5. Step S6 triggers the corresponding graded response processing flow based on the classification determination result. Step S6 specifically includes the following process: In step S601, the edge computing unit obtains the classification result of each defect region output in step S505. The classification result includes three types: minor defect, general defect, and severe defect. The edge computing unit triggers the corresponding response processing branch according to the type of the classification result.

[0093] In step S602, when the classification result is a minor defect, the edge computing unit triggers a data recording operation branch.

[0094] The data recording operation writes defect information to the local database. Defect information includes the inspection timestamp, production line station identifier, defect image, defect feature data, grading judgment result, and processing status. Defect feature data includes length, width, estimated depth, lateral distance, longitudinal distance, type characteristics, area, perimeter, and aspect ratio.

[0095] The local database adopts a time-series database architecture. After the write operation is completed, the edge computing unit marks the processing status of the defect as recorded.

[0096] In step S603, when the classification result is a general defect, the edge computing unit generates an audible and visual alarm signal. The alarm signal is transmitted via the industrial communication network to the audible and visual alarm device deployed on the production line. The alarm device includes a high-brightness LED indicator and a voice announcer. A yellow light corresponds to a general defect. The voice announcer plays a preset alarm message. The audible and visual alarm signal continues to trigger until the operator manually confirms receipt of the alarm via the on-site control panel. After the manual confirmation operation is triggered, the edge computing unit marks the defect processing status as alarmed.

[0097] In step S604, when the classification result is a serious defect, the edge computing unit immediately triggers an emergency shutdown protection command for the production line. The emergency shutdown protection command is issued through the industrial control system, and the control signal is transmitted to the main controller of the production line.

[0098] Upon receiving an emergency stop protection command, the main controller executes the safety stop logic. The safety stop logic gradually reduces the production line speed according to a preset stop sequence until it comes to a complete stop. The stop sequence includes three phases: a deceleration phase, where the main controller reduces the production line speed from the current speed to an intermediate speed according to preset deceleration parameters; a holding phase, where the main controller maintains the intermediate speed for a preset holding time; and a stopping phase, where the main controller reduces the production line speed from the intermediate speed to zero. The deceleration parameters, intermediate speed values, and holding times for all three phases are preset values.

[0099] During shutdown, the main controller synchronously records process parameters at the time of shutdown, including production line operating speed, electrolysis voltage, electrolyte temperature, and formation time, and stores them in the local log. After the emergency shutdown protection command is executed, the edge computing unit marks the defect handling status as "shutdown".

[0100] In step S605, the edge computing unit activates the automatic process parameter adjustment module at the same time as triggering the emergency shutdown protection command for the production line.

[0101] The automatic process parameter adjustment module has a built-in process parameter adjustment reference table. The process parameter adjustment reference table uses the defect type and depth estimation range as row indexes, and the electrolysis voltage adjustment, electrolyte temperature adjustment, and formation time adjustment as column contents.

[0102] The automatic process parameter adjustment module, based on the defect type determined in step S404 and the depth estimate determined in step S402, queries the process parameter adjustment lookup table to obtain the adjustment amounts for electrolysis voltage, electrolyte temperature, and formation time. Using the current production line's setpoints for electrolysis voltage, electrolyte temperature, and formation time as a benchmark, the corresponding adjustment amounts are added to obtain recommended values ​​for electrolysis voltage, electrolyte temperature, and formation time.

[0103] For scratches and pinholes, the recommended electrolysis voltage should be increased by the voltage adjustment based on the baseline value, and the recommended formation time should be increased by the time adjustment based on the baseline value. For corrosion spots and uneven film formation, the recommended electrolyte temperature should be decreased by the temperature adjustment based on the baseline value.

[0104] The automatic process parameter adjustment module sends recommended values ​​for electrolysis voltage, electrolyte temperature, and formation time to the human-machine interface (HMI) of the production line control system. Operators confirm these values ​​before modifying the parameters. Operators issue parameter modification commands through the HMI, and the production line control system updates all process parameters to the recommended values. If the operator does not confirm within the preset confirmation timeout period, the HMI retains the recommended values, and the edge computing unit marks the defect processing status as pending manual confirmation.

[0105] At the head office level, step S6 completes the full graded response processing flow based on the graded judgment results. Minor defects trigger data recording. General defects trigger audible and visual alarms. Critical defects trigger emergency shutdown protection commands and automatic adjustment of process parameters. After the graded response processing flow is completed, all response execution records, along with defect information, are stored in the local database for data aggregation and uploading by the industrial IoT communication gateway in step S7.

[0106] Finally, in step S7, all types of data generated during the early warning process are aggregated through the industrial IoT communication gateway and sent to the central control system to achieve plant-wide early warning visualization and historical data traceability.

[0107] Step S701: Deploy an industrial IoT communication gateway on the production line. The industrial IoT communication gateway is configured to support at least one of the following protocols: Modbus TCP, Modbus RTU, OPC UA, or MQTT.

[0108] The industrial IoT communication gateway establishes a data connection with the edge computing unit via industrial Ethernet, and simultaneously establishes a data connection with the central control system via the enterprise backbone network. Upon power-on, the industrial IoT communication gateway automatically performs protocol stack initialization, loads the configured protocol parameters, and enters a data listening and forwarding ready state.

[0109] In step S702, the edge computing unit packages the various types of data generated during the early warning process according to a preset data format and sends them to the industrial IoT communication gateway via industrial Ethernet.

[0110] The data includes raw inspection data, defect feature data, grading results, and response execution records. Raw inspection data includes raw image data and 3D topographic data collected by the sensor array. Defect feature data includes length values, width values, estimated depth values, lateral distance values, longitudinal distance values, type characteristics, area values, perimeter values, and aspect ratio values.

[0111] The grading results include conclusions classifying defects as minor, general, or severe. Response execution records include data recording operation records, audible and visual alarm operation records, or emergency shutdown protection commands and automatic process parameter adjustment operation records.

[0112] The edge computing unit integrates the four types of data into a unified data frame structure according to a preset data encapsulation format. The data frame structure includes a data generation timestamp, a data source workstation identifier, and a data version number. The edge computing unit then sends the encapsulated data frame to the data receiving queue of the industrial IoT communication gateway via industrial Ethernet.

[0113] In step S703, after the industrial IoT communication gateway obtains a data frame from the data receiving queue, it performs a protocol conversion operation according to the communication protocol type of the central control system.

[0114] When using the OPC UA protocol, the industrial IoT communication gateway maps data frames to OPC UA node variable structures and pushes the data to the central control system through the OPC UA subscription and notification mechanism. When using the MQTT protocol, the industrial IoT communication gateway publishes data frames to a preset topic queue, and the central control system receives data by subscribing to that topic queue.

[0115] When using the Modbus TCP or Modbus RTU protocol, the industrial IoT communication gateway writes data frames into the corresponding holding register or input register address space according to the Modbus register mapping table, and the central control system reads the data in the registers through periodic polling.

[0116] After the protocol conversion is complete, the industrial IoT communication gateway sends the data to the central control system through an encrypted transmission channel. The encrypted transmission channel uses TLS or SSL encryption protocols to encrypt the data.

[0117] Step S704: The industrial IoT communication gateway configures a data caching mechanism to cope with abnormal situations such as network interruptions. The industrial IoT communication gateway allocates a dedicated cache storage area in the local storage medium.

[0118] The industrial IoT communication gateway continuously monitors the network connection status with the central control system. When the network connection is normal, the industrial IoT communication gateway directly transmits data to the central control system, and clears the transmitted data copy from the cache storage area after the transmission is complete. When the network connection is interrupted, the industrial IoT communication gateway automatically stores the data to be transmitted in the cache storage area.

[0119] During network outages, the industrial IoT communication gateway continuously receives new data from edge computing units and appends it to its cache storage. The gateway periodically attempts to re-establish network connectivity with the central control system at fixed time intervals. Upon connection restoration, it automatically performs data retransmission, sending the data in the cache storage to the central control system in chronological order of cached data transmission. After transmission is complete, the corresponding data in the cache storage is cleared.

[0120] In step S705, after receiving the data sent by the industrial IoT communication gateway, the central control system performs unified storage and visualization operations. The central control system stores the data in the central database. The central database adopts a hybrid storage architecture that combines relational databases and real-time databases. The relational database is used to store structured defect feature data and hierarchical judgment results, while the real-time database is used to store raw detection data and response execution records.

[0121] The central control system's visual interface presents warning information in three forms.

[0122] The first format is a workstation status map. The visualization interface uses the production line layout as the base map, and different colored icons represent the real-time status of each workstation at its corresponding location. Green icons indicate normal operation, yellow icons indicate a general defect warning, and red icons indicate a serious defect warning.

[0123] The second format is a historical early warning record timeline. The visual interface displays the detection time, defect type, grading judgment result, and processing status of each defect in a timeline format. Operators can slide along the timeline to view the details of early warning records for any time period.

[0124] The third form is a defect distribution statistical chart. The visualization interface uses bar charts to show the quantity and proportion of each type of defect, line charts to show the trend of defect quantity over time, and scatter plots to show the location distribution of defects along the width of the foil.

[0125] Steps S701 to S705 above complete the closed-loop data flow of various types of data aggregation, transmission, caching, retransmission, and visualization during the early warning processing. Early warning data travels from the edge computing unit through the industrial IoT communication gateway to the central control system and is then visualized. The entire data flow of the intelligent early warning processing method for defects in the electrolytic foil oxide film forms a complete closed loop, from sensor acquisition through edge computing processing to visualization display in the central control system.

[0126] For ease of understanding, the present invention will be further described in detail below with reference to specific embodiments.

[0127] This application example focuses on the actual deployment of a composite non-contact surface defect detection sensor group in a metallized foil production line, as well as the integration scheme between the edge computing unit and the production line control system.

[0128] In the actual deployment environment of a continuous foil production line, the composite non-contact surface defect detection sensor array needs to cope with special operating conditions such as high-voltage electrolysis, corrosive electrolyte vapors, and high-speed continuous roll material transport. Each detection point of the sensor array is equipped with an independent protective shell. The protective shell is made of corrosion-resistant metal material and equipped with a sealing structure to isolate the electrolyte vapors from corroding the internal optical components of the sensor.

[0129] The line scan camera measurement unit at the front-end inspection point is mounted on a support above the pre-processing section. The support structure is designed to be vibration-resistant to eliminate the negative impact of production line vibration on image quality. The distance between the camera and the surface of the formed foil is calculated based on the lens focal length parameters and swath width coverage requirements to ensure that the image clarity across the entire swath meets the defect detection requirements.

[0130] The laser triangulation measurement unit at the intermediate inspection point is installed on the side of the chemical formation process section. This position allows the laser beam to irradiate the surface of the electrolytically treated foil at a predetermined incident angle. Because the foil surface is under high voltage after electrolysis and may have residual electrolyte film, the laser triangulation measurement unit uses a low-power laser source to avoid the risk of discharge. The optical receiving device is also equipped with a bandpass filter to filter out ambient light interference. The installation angle of the measurement unit is calibrated so that the angle between the incident direction of the laser beam and the normal to the foil surface meets the requirements of triangulation geometry.

[0131] The sensor configuration at the final detection points is consistent with that of the front and middle sections, ensuring uniform data quality and processing flow across the entire detection network. The edge computing units at the final detection points can reuse computing resources from the middle or front sections, or they can be deployed independently, depending on the scale and processing capacity requirements of the production line. The sensor groups at each detection point are interconnected via an industrial Ethernet ring network topology, which ensures that a failure in a single node does not affect normal data transmission to other nodes.

[0132] Integration between the edge computing unit and the production line control system is achieved through a standardized industrial communication interface. This interface is either an RS-485 serial communication interface or an industrial Ethernet interface, using the Modbus TCP or PROFINET protocol. The physical connection of the communication interface uses shielded twisted-pair cable or optical fiber as the transmission medium, with a communication baud rate set between 9600bps and 100Mbps. The edge computing unit and the production line control system exchange commands and data through a well-defined data frame format. Command frames include at least a frame header, command type, command parameters, and a checksum field; response frames include at least a frame header, status code, return data, and a checksum field. The address mapping relationship of the communication interface is pre-configured, with each edge computing unit occupying an independent slave address. The production line control system uses this address to address and communicate with the edge computing unit.

[0133] The production line control system, acting as the master station, sends control commands to the edge computing unit, including operations such as starting detection, stopping detection, calibrating parameters, and querying status. The edge computing unit, acting as a slave station, responds to the master station's commands and reports the detection results in real time. Data interaction uses the OPC UA protocol to ensure interoperability between devices from different manufacturers. The data processing software deployed within the edge computing unit adopts a modular design, with loosely coupled communication between functional modules via message queues, facilitating functional expansion and maintenance upgrades.

[0134] During actual operation, the edge computing unit continuously receives raw detection data streams from various detection points. The data streams first enter a data buffer queue, which employs a first-in, first-out (FIFO) mechanism to ensure the correct timing of the data. The graphics processing unit's acceleration module retrieves the data frames to be processed from the buffer queue, performs preprocessing operations, and then inputs them into a lightweight convolutional neural network model for defect identification. The identification results are processed by a post-processing module to extract multi-dimensional feature information, and then automatically judged by a grading module according to a three-level grading standard. The judgment result triggers the corresponding processing flow based on a preset grading response strategy, and simultaneously reports the processing results to the production line control system and the central control system via a communication interface.

[0135] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention. Therefore, the embodiments should be regarded as exemplary and non-limiting in all respects.

[0136] Furthermore, it should be understood that although this specification describes embodiments, not every embodiment contains only one independent technical solution. This narrative style is merely for clarity. Those skilled in the art should consider the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.

Claims

1. A method for intelligent early warning and processing of defects in oxide films on electrolytically formed foils, characterized in that, Includes the following steps: Inspection points are set up in the pretreatment section, formation treatment section and final inspection section of the continuous foil production line to form a three-section inspection network covering the entire process; Each detection point is equipped with a line scan camera measurement unit and a laser triangulation measurement unit. The vertical resolution of the laser triangulation measurement unit is better than 0.01 mm. The two measurement units acquire data synchronously in the time dimension and cover the same detection area in the spatial dimension. Each sensor group at each detection point is equipped with an independent protective housing. The protective housing is made of corrosion-resistant metal material and equipped with a sealing structure to physically isolate the internal optical components of the sensor from the external high-voltage electrolytic environment and corrosive electrolyte vapor. The conveyor speed signal fed back by the encoder is acquired in real time, and the acquisition frequency of the line scan camera measurement unit is dynamically adjusted according to the production line running speed so that the spatial overlap rate between adjacent acquisition frames meets the preset threshold requirements. When the classification result is a serious defect, an emergency shutdown protection command is triggered on the production line, and the automatic process parameter adjustment module is started. The automatic process parameter adjustment module has a built-in process parameter adjustment reference table. Based on the defect type and depth estimate, it retrieves the adjustment amount of electrolysis voltage, electrolyte temperature and formation time. Based on the current process parameter settings of the production line, the corresponding adjustment amounts are added to generate recommended values ​​for electrolysis voltage, electrolyte temperature and formation time.

2. The intelligent early warning and processing method for defects in the oxide film of electrolytically formed foil according to claim 1, characterized in that, The sensor group at each detection point is equipped with an independent protective housing, specifically including: The line scan camera measurement unit at the front-end detection point is mounted on the vibration-damping bracket above the pre-processing section. The vibration-damping bracket attenuates the mechanical vibration transmitted to the line scan camera measurement unit by the production line operation through damping elements. The laser triangulation measurement unit at the mid-section detection point uses a low-power laser source, and the optical receiving device is equipped with a bandpass filter element to filter out the interference of ambient stray light on the detection of the reflected spot position.

3. The intelligent early warning and processing method for defects in the oxide film of electrolytically formed foil according to claim 1, characterized in that, The dynamic adjustment of the acquisition frequency of the line scan camera measurement unit specifically includes: The current instantaneous speed of the production line is obtained in real time from the encoder feedback. Based on the coverage width of the field of view in the foil traveling direction and the preset spatial overlap rate threshold, the minimum line frequency value that satisfies the spatial overlap rate constraint is calculated. The calculated line frequency parameters are written into the control register of the line scan camera measurement unit, which drives the line scan camera measurement unit to perform image acquisition at the updated frequency. The laser triangulation measurement unit and the line scan camera measurement unit use the same hardware trigger signal source to simultaneously drive a single acquisition action, ensuring accurate alignment of two-dimensional image information and three-dimensional shape data in the temporal and spatial dimensions.

4. The intelligent early warning and processing method for defects in the oxide film of electrolytically formed foil according to claim 1, characterized in that, The sensor groups at each detection point are interconnected through an industrial Ethernet ring network topology to form a complete detection data transmission network. The ring network topology ensures that when a single node or a single link fails, the data continues to be transmitted via a backup path without affecting the normal operation of other detection points. The raw detection data collected by each sensor group is transmitted to the edge computing unit deployed on the production line through the detection data transmission network. The edge computing unit sends the received raw detection data into the data buffer queue. The data buffer queue adopts a first-in-first-out mechanism to ensure the correct timing of the data.

5. The intelligent early warning and processing method for defects in the oxide film of electrolytically formed foil according to claim 4, characterized in that, After receiving the raw detection data, the edge computing unit performs data format standardization conversion: The pixel gray value sequence from the line scan camera measurement unit is filled row by row to construct a two-dimensional image matrix, and the height value sequence from the laser triangulation measurement unit is filled with the same number of rows and columns to construct a two-dimensional height map matrix. The two matrices have the same number of rows and columns to ensure that the two matrices correspond completely on the spatial grid. Subsequently, preprocessing operations are performed on the standardized data. Based on the pre-calibrated camera intrinsic parameters and distortion coefficients, the Brown-Conrady distortion correction model is used to perform geometric correction on the image. The Brown-Conrady distortion correction model decomposes lens distortion into radial distortion and tangential distortion for correction, so that the mapping relationship between the pixel coordinates of the corrected image and the actual physical coordinates of the foil surface satisfies the linear projection model.

6. The intelligent early warning and processing method for defects in the oxide film of electrolytically formed foil according to claim 5, characterized in that, In the defect identification step, a lightweight convolutional neural network model outputs defect detection results containing preliminary classification information; based on the defect detection results, secondary matching and identification are performed using a pre-built defect type template library to determine the final type features; During the matching and recognition process, a sub-image of the defect region is extracted from the corrected image. The directional gradient histogram feature vector and the spectral energy distribution feature vector are extracted and concatenated as the feature vector of the region to be detected. The cosine similarity between the feature vector of the region to be detected and the feature vectors of various templates in the defect type template library is calculated one by one. The defect type corresponding to the maximum similarity is taken as the final type feature output.

7. The intelligent early warning and processing method for defects in the oxide film of electrolytically formed foil according to claim 6, characterized in that, Multidimensional feature extraction also includes calculating the depth estimate of the defect region, specifically: Extract the set of height values ​​corresponding to the pixels covered by the defect area, calculate the average height value of the defect area by averaging the height values ​​of all pixels inside the defect area, and calculate the average height value of the background area by averaging the height values ​​of all pixels in the adjacent area outside the defect area. Subtract the average height value of the defect area from the average height value of the background area and use the difference as the depth estimate.

8. The intelligent early warning and processing method for defects in the oxide film of electrolytically formed foil according to claim 7, characterized in that, In the grading and judgment step, the depth estimate is compared with the standard value of oxide film thickness. When the depth estimate is greater than the standard value of oxide film thickness, it is judged as a penetrating defect, and a severe defect is directly output as the final grading and judgment result. When the defect is not a penetrating defect, a comprehensive judgment is made based on the size grade and whether the defect is located in the edge area, and the graded judgment result is output.

9. The intelligent early warning and processing method for defects in the oxide film of electrolytically formed foil according to claim 1, characterized in that, When the classification result is a serious defect, an emergency shutdown protection command is triggered on the production line. After receiving the emergency shutdown protection command, the main controller executes the safety shutdown logic. The safety shutdown logic gradually reduces the production line operating speed according to a preset shutdown sequence until it stops completely. The shutdown sequence includes: During the deceleration phase, the main controller reduces the production line speed from the current speed to the intermediate speed according to the preset deceleration parameters; During the hold phase, the main controller maintains the intermediate speed for a preset hold duration; During the shutdown phase, the main controller reduces the production line speed from the intermediate speed to zero; The main controller synchronously records the process parameters at the time of shutdown and stores them in the local log during the shutdown process.

10. The intelligent early warning and processing method for defects in the oxide film of electrolytically formed foil according to claim 1, characterized in that, Also includes: Deploy industrial IoT communication gateways on the production line site, and allocate dedicated cache storage areas in the local storage medium of the industrial IoT communication gateways; The system continuously monitors the network connection status between the industrial IoT communication gateway and the central control system. When the network connection is interrupted, it automatically stores the data to be sent in the cache storage area and attempts to rebuild the network connection periodically at fixed time intervals. Once the network connection is restored, the data retransmission operation is automatically performed, sending the data in the cache storage area to the central control system in the order of cache time. After the transmission is completed, the corresponding data in the cache storage area is cleared.