A digital power waveform optimization method and device, electronic equipment and storage medium

By applying a disturbance signal to the digital power supply, collecting response data, and optimizing the waveform using a state recognition model, the problem of the lack of online sensing in industrial electrochemical processing by digital power supplies is solved, enabling adaptive control of the electrochemical load and improving production stability and product quality.

CN123163573APending Publication Date: 2026-11-24SHENZHEN HEQINGYUANDONG TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611324764.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-28
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing digital power supplies lack online sensing capabilities in industrial electrochemical processing and cannot adaptively optimize the output waveform based on the time-varying nonlinear state of the electrochemical load. This results in the inability to adjust in a timely manner when polarization accumulates, contact is abnormal, or the state of the bath solution deviates during the production process.

Method used

The target disturbance signal is applied by a digital power supply, transient response data is collected, state feature vectors are extracted using a pre-trained state recognition model, and pulse waveform optimization parameters are adjusted according to the model output to achieve closed-loop control.

Benefits of technology

It achieves adaptive capability to nonlinear and time-varying electrochemical loads, improves process stability and product quality consistency, and constructs a closed-loop waveform optimization mechanism, avoiding the limitations of traditional fixed threshold judgment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123163573A_ABST
    Figure CN123163573A_ABST
Patent Text Reader

Abstract

This invention discloses a digital power supply waveform optimization method, apparatus, electronic device, and storage medium. The method involves applying a target disturbance signal to an electrochemical load when it is in a preset operating state and collecting corresponding voltage and current transient response data. Based on the transient response data, a state feature vector is extracted and input into a pre-trained state recognition model to obtain the electrochemical reaction state and process deviation. Then, based on the obtained state, pulse waveform optimization parameters are dynamically determined, and the digital power supply is controlled to adjust the target output waveform. This invention achieves online state perception and closed-loop control of the digital power supply, accurately identifying physical states such as polarization and contact, overcoming the lack of adaptive capability in traditional digital power supplies, and improving the stability of electrochemical processes and the consistency of product quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of digital power control and industrial electrochemical processing technology, and more specifically, to a digital power waveform optimization method, apparatus, electronic device, and storage medium. Background Technology

[0002] In industrial electrochemical processing lines such as electroplating, electroplating, anodizing, and electrolytic copper foil production lines, the electrochemical load is not a simple linear resistance, but a nonlinear, time-varying load determined by the electrodes, electrolyte, film, bubbles, contact state, temperature, polarization, and ion migration.

[0003] In existing technologies, traditional industrial digital power supplies are typically used only as "actuators," meaning they can only output electrical energy according to pre-set constant voltage, constant current, or fixed pulse parameters (such as fixed frequency and fixed duty cycle) on a host computer. Due to the lack of online sensing capabilities of the internal physicochemical state of the electrochemical load, traditional digital power supplies cannot adaptively adjust to situations such as polarization accumulation, contact anomalies, or tank solution state deviations during production. Although electrochemical impedance spectroscopy (EIS) and transient response analysis techniques can reflect the deep state of electrochemical systems, these techniques currently rely primarily on low-power laboratory testing instruments. In actual high-power, continuous industrial production environments, testing instruments are usually independent of the production digital power supply, making it difficult to achieve production-level closed-loop control encompassing "online perturbation-response acquisition-state identification-waveform optimization." Summary of the Invention

[0004] The main objective of this invention is to provide a method and related equipment for electrochemical reaction state identification and pulse waveform optimization based on the transient response of a digital power supply, aiming to solve the technical problem that existing digital power supplies lack online sensing capabilities and cannot adaptively optimize the output waveform according to the time-varying nonlinear state of the electrochemical load.

[0005] To achieve the above objectives, a first aspect of the present invention provides a digital power supply waveform optimization method, comprising: applying a target disturbance signal to the electrochemical load via the digital power supply when the tank segment where the electrochemical load is located is in a preset operating state; the target disturbance signal including at least one of a test pulse, a step disturbance, a modulation signal, or a preset waveform disturbance; acquiring transient response data of the electrochemical load under the action of the target disturbance signal, the transient response data including at least voltage response data and current response data; extracting a state feature vector of the electrochemical load based on the transient response data; inputting the state feature vector into a pre-trained state recognition model to obtain a target electrochemical reaction state and / or process deviation; determining pulse waveform optimization parameters according to the target electrochemical reaction state and / or the process deviation; and controlling the digital power supply to adjust the target output waveform according to the pulse waveform optimization parameters.

[0006] Preferably, applying the target disturbance signal to the electrochemical load via the digital power supply includes: acquiring the current production state of the tank segment, the current production state including startup state, stable production state, changeover state, or abnormal state; determining the corresponding target disturbance amplitude and target measurement period based on the current production state; and applying the target disturbance signal according to the target disturbance amplitude and the target measurement period, provided that preset safety constraints are met.

[0007] Preferably, the step of extracting the state feature vector of the electrochemical load based on the transient response data includes: performing time synchronization alignment and filtering denoising on the transient response data to obtain effective response data within the target analysis window; and calculating the state feature vector based on the effective response data, wherein the state feature vector includes at least one of equivalent impedance, differential resistance, differential conductance, polarization recovery coefficient, response time constant, ripple attenuation coefficient, and nonlinear load index.

[0008] Preferably, the state recognition model is a classification model or regression model trained by a machine learning algorithm; the target electrochemical reaction state includes at least one of the following: film growth state, bath state, polarization degree, local reaction uniformity, and contact state.

[0009] Preferably, before controlling the digital power supply to adjust the target output waveform according to the pulse waveform optimization parameters, the method further includes: performing process constraint verification and electrical safety verification on the pulse waveform optimization parameters; if the process constraint verification or the electrical safety verification fails, performing amplitude limiting processing on the pulse waveform optimization parameters or triggering a preset backoff strategy.

[0010] Preferably, the method further includes: acquiring execution result data corresponding to the output waveform of the adjustment target, wherein the execution result data includes at least one of quality inspection data, unit product energy consumption data, and batch data; and using the execution result data to update the parameters of the state recognition model.

[0011] Preferably, the pulse waveform optimization parameters include at least one of pulse amplitude, pulse width, pulse frequency, duty cycle, ratio of forward to reverse pulses, and pulse interval time.

[0012] A second aspect of the present invention provides a digital power supply waveform optimization device, comprising: a signal application module, configured to apply a target disturbance signal to the electrochemical load via the digital power supply when the tank segment where the electrochemical load is located is in a preset operating state, the target disturbance signal including at least one of a test pulse, a step disturbance, a modulation signal, or a preset waveform disturbance; a data acquisition module, configured to acquire transient response data of the electrochemical load under the action of the target disturbance signal, the transient response data including at least voltage response data and current response data; a feature extraction module, configured to extract a state feature vector of the electrochemical load based on the transient response data; a state recognition module, configured to input the state feature vector into a pre-trained state recognition model to obtain a target electrochemical reaction state and / or process deviation; a parameter determination module, configured to determine pulse waveform optimization parameters according to the target electrochemical reaction state and / or the process deviation; and an output control module, configured to control the digital power supply to adjust the target output waveform according to the pulse waveform optimization parameters.

[0013] A third aspect of the present invention provides an electronic device, characterized in that it includes a processor and a memory; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory, causing the processor to perform the digital power waveform optimization method as described in any one of the preceding descriptions.

[0014] A fourth aspect of the present invention provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, cause the processor to perform the digital power waveform optimization method as described in any one of the preceding descriptions.

[0015] The beneficial effects of this invention are as follows: This invention upgrades digital power supplies from single execution devices to integrated state sensing and control devices: by utilizing the controllable output and high-speed sampling hardware of the digital power supply itself, controlled perturbations are injected online and transient features are extracted without interrupting production, eliminating the need to deploy expensive and complex electrochemical sensors on the production line.

[0016] Improved adaptability to nonlinear and time-varying electrochemical loads: By introducing a pre-trained state recognition model, this scheme can accurately identify deep physical states such as enhanced polarization, abnormal contact, and tank liquid state shift, overcoming the limitations of traditional fixed threshold judgment.

[0017] A closed-loop waveform optimization mechanism was constructed: the state recognition results are directly mapped to the pulse waveform optimization parameters of the next stage, which upgrades the production process from relying on manual experience to a real-time data-driven closed loop based on the underlying electrochemical response characteristics, thereby improving process stability and product quality consistency. Attached Figure Description

[0018] Figure 1 The main flowchart of a digital power waveform optimization method provided in an embodiment of the present invention; Figure 2 This is a first sub-flowchart of a digital power supply waveform optimization method provided in an embodiment of the present invention; Figure 3 This is a second sub-flowchart of a digital power waveform optimization method provided in an embodiment of the present invention; Figure 4 This is a third sub-flowchart of a digital power supply waveform optimization method provided in an embodiment of the present invention; Figure 5 This is a block diagram of a digital power waveform optimization device provided in an embodiment of the present invention. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0020] In the description of this invention, unless otherwise stated, "a plurality of" means two or more; the terms "center," "longitudinal," "lateral," "upper," "lower," "left," "right," "inner," "outer," "front end," "rear end," "head," "tail," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, the terms "first," "second," "third," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0021] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art will understand the specific meaning of the above terms in this utility model based on the specific circumstances.

[0022] Before providing a detailed description of the embodiments of the present invention, the hardware operating environment and basic architecture involved in the embodiments of the present invention will first be introduced. The digital power supply waveform optimization method provided by the embodiments of the present invention is mainly applied to industrial-grade digital power supply systems with high-frequency programmable output capability and high-speed synchronous sampling capability. The digital power supply system includes at least: a main control processing unit (e.g., a digital signal processor (DSP), a field-programmable gate array (FPGA), or a microcontroller (MCU), a power conversion circuit (e.g., an insulated gate bipolar transistor (IGBT) array or a silicon carbide (SiC) metal-oxide-semiconductor field-effect transistor (MOSFET) topology), a high-speed analog-to-digital converter (ADC), and a voltage / current Hall sensor. The output terminal of the digital power supply system is directly connected to a tank segment containing an electrochemical load. The electrochemical load exhibits highly nonlinear and time-varying characteristics; its equivalent impedance changes in real time with the progress of the electrochemical reaction, the intensification of polarization, changes in contact state, and temperature fluctuations.

[0023] This invention transforms the digital power supply from a traditional energy output device into an intelligent execution device with active excitation, response acquisition, and state recognition capabilities, enabling online sensing of industrial electrochemical processes through the digital power supply's own output and sampling capabilities.

[0024] Please see Figure 1 , Figure 1 This is a main flowchart of a digital power supply waveform optimization method provided in an embodiment of the present invention. This embodiment is based on... Figure 1 The flowchart shown outlines the overall steps of the digital power supply waveform optimization method, detailing them feature by feature: Step S110: When the tank section where the electrochemical load is located is in a preset operating state, a target disturbance signal is applied to the electrochemical load through the digital power supply. The target disturbance signal includes at least one of a test pulse, a step disturbance, a modulation signal, or a preset waveform disturbance.

[0025] During the operation of industrial electrochemical processing lines (such as foil forming, electroplating, and anodizing production lines), the main control processing unit first monitors in real time whether the cell segment where the electrochemical load is located is in the preset operating state through an industrial communication bus (such as RS485, CAN bus, or industrial Ethernet EtherCAT) or a local status register. The preset operating state refers to a safe operating range that allows state detection without causing product scrapping due to additional signal injection, such as the steady-state electrolysis stage, a specific polarization interval, or the process start-up initialization stage.

[0026] After confirming that the system is in the preset operating state, the main control processing unit generates control commands to drive the power conversion circuit to superimpose the target disturbance signal onto the original basic process output waveform. In order to achieve high-precision micro-disturbance injection without disrupting the overall process balance, the main control processing unit precisely synthesizes the target disturbance signal by adjusting the duty cycle or phase of the pulse width modulation (PWM) signal.

[0027] Specifically, the target perturbation signal can take various forms: when the test pulse is selected, it manifests as a square wave pulse with an extremely short rise time and a preset amplitude, used to excite the high-frequency transient response of the electrochemical load, thereby extracting high-frequency characteristics such as contact impedance; when the step perturbation is selected, it manifests as a sudden change in current or voltage, used to observe the step response time constant of the system to characterize the ion diffusion process or polarization establishment process; when the modulation signal is selected, the basic waveform can be amplitude modulated (AM) or frequency modulated (FM) by a sine wave or a multi-frequency superimposed signal (such as a pseudo-random binary sequence PRBS) to obtain impedance spectrum information in a specific frequency band; when the preset waveform perturbation is selected, it can be any non-standard waveform pre-programmed into the memory according to a specific production process. The essence of applying the target perturbation signal to the electrochemical load through the digital power supply is to actively apply controlled excitation to the system, break the original electrochemical equilibrium state, and force the hidden nonlinear characteristics inside the electrochemical load to manifest in the form of electrical signals.

[0028] Step S120: Collect transient response data of the electrochemical load under the action of the target disturbance signal, wherein the transient response data includes at least voltage response data and current response data.

[0029] At the same moment the target disturbance signal is applied or after a preset delay time, the digital power system initiates a high-speed data acquisition mechanism. Voltage and current sensors located between the digital power output and the electrochemical load capture physical signals in real time and transmit them to the high-speed analog-to-digital converter (ADC).

[0030] The high-speed analog-to-digital conversion unit synchronously samples at a preset sampling frequency (typically much higher than the highest frequency component of the target perturbation signal, satisfying the Shannon sampling theorem) to acquire the transient response data of the electrochemical load under the action of the target perturbation signal. The voltage response data reflects the potential reaction force of the electrochemical system to the current perturbation, including ohmic voltage drop, electrochemical polarization overpotential, and concentration polarization overpotential; the current response data reflects the charge transfer rate across the electrode / solution interface under voltage perturbation.

[0031] To ensure the accuracy and timeliness of the data, the acquired transient response data is rapidly transferred to a preset buffer (e.g., static random access memory, SRAM) of the main control processing unit via a direct memory access (DMA) controller, forming a time-series data set with precise timestamps. This data set can be used with data structures. It means that, among them Sampling time, The voltage response data, The current response data, This represents the total number of sampling points.

[0032] Step S130: Extract the state feature vector of the electrochemical load based on the transient response data.

[0033] After acquiring the raw transient response data, due to the presence of significant electromagnetic interference (EMI) and high-frequency switching noise in the industrial environment, the main control processing unit first performs digital signal processing on the transient response data at the software level. The main control processing unit then invokes a preset feature extraction algorithm program to delve into the underlying physicochemical mechanisms of the data from both the time and / or frequency domains.

[0034] The specific feature extraction process is achieved through a series of mathematical transformations and equivalent circuit model parameter fitting. For example, the transient response data in the time domain is converted into frequency domain data using Fast Fourier Transform (FFT) to calculate the AC impedance at a specific frequency point; or the rate of change of voltage with current is calculated using a time-domain differential algorithm to obtain the differential resistance. Furthermore, the characteristic parameters of the transient response data in the exponential decay phase can be calculated using a curve fitting algorithm.

[0035] The extracted multi-dimensional features are combined and structured to generate the state feature vector with fixed dimensions. ,in The number of features, each feature element Each of these precisely corresponds to a specific microscopic physicochemical property of the electrochemical load. The role of the state feature vector is to reduce the dimensionality of the massive and chaotic original time-series data into a set of high-value information that can be efficiently processed by machine learning models.

[0036] Step S140: Input the state feature vector into the pre-trained state recognition model to obtain the target electrochemical reaction state and / or process deviation.

[0037] The state recognition model is pre-deployed in the main control processing unit or the edge computing node / cloud server communicating with it. The state recognition model is a complex nonlinear mapping network obtained by collecting a large number of "state feature vector-actual electrochemical reaction state" sample pairs accumulated in historical production cycles and training and converging them using machine learning algorithms.

[0038] During the online inference phase, the main control processing unit uses the state feature vector extracted in step S130 as input data and propagates it forward to the input layer of the state recognition model. The neurons within the model perform layer-by-layer matrix operations and nonlinear transformations of activation functions based on pre-trained and fixed weights and bias parameters.

[0039] The output of the state recognition model provides two key indicators: the first is the target electrochemical reaction state, which is a classification and recognition result (e.g., output probability distribution vector) used to characterize the current microscopic physicochemical stage or abnormal mode of the electrochemical load (e.g., early stage of anodic membrane breakdown, insufficient bath concentration, etc.); the second is the process deviation, which is a continuous regression prediction value used to quantify the severity of the current state's deviation from the standard ideal process state (e.g., represented by a value between 0 and 1, with a larger value indicating a more severe deviation). Through this step, the digital power system achieves "transparent" perception of the "black box" state inside the electrochemical load, which is difficult to measure directly.

[0040] Step S150: Determine the pulse waveform optimization parameters based on the target electrochemical reaction state and / or the process deviation.

[0041] After obtaining the current true state of the electrochemical load, the main control processing unit enters the closed-loop decision-making process. The system memory is pre-configured with a "state-control strategy" mapping matrix or an advanced process control (APC) algorithm module.

[0042] The main control processing unit uses the target electrochemical reaction state as the primary index condition and the process deviation as a weighted adjustment coefficient to dynamically calculate the pulse waveform optimization parameters most suitable for the current electrochemical reaction stage. For example, when the target electrochemical reaction state indicates severe concentration polarization buildup and the process deviation exceeds a preset safety threshold, the decision algorithm will determine that depolarization needs to be strengthened. At this time, the main control processing unit will calculate and generate a new set of pulse waveform optimization parameters, such as increasing the duration of the reverse depolarization pulse, increasing the reverse current amplitude, or inserting a longer zero-current pause period between forward pulses.

[0043] The determined pulse waveform optimization parameters are a set of configuration instructions containing multiple dimensions (such as...). Its purpose is to actively intervene in and guide microscopic electrochemical reactions in a direction that is conducive to improving product quality and production efficiency by changing the spatiotemporal distribution of input energy.

[0044] Step S160: Control the digital power supply to adjust the target output waveform according to the pulse waveform optimization parameters.

[0045] After making the decision, the main control processing unit converts the newly generated pulse waveform optimization parameters into underlying hardware drive signals. Specifically, the main control processing unit rewrites the compare register and period register of the internal high-resolution pulse width modulator (HRPWM), or updates the reference voltage setpoint of the digital-to-analog converter (DAC).

[0046] Based on the updated hardware register configuration, the main control processing unit generates new gate drive signals to drive the switching devices in the power conversion circuit to turn on and off according to the new timing. Finally, the digital power supply generates the target output waveform at the output terminal that strictly corresponds to the pulse waveform optimization parameters.

[0047] Thus, the digital power system has completed a full production-level closed-loop control process of "online perturbation - response acquisition - status identification - waveform optimization". By continuously and cyclically executing the above steps S110 to S160, the digital power supply can achieve microsecond- to millisecond-level adaptive dynamic adjustment for the time-varying nonlinear electrochemical load, fundamentally improving the defect of "blind constant output" of traditional digital power supplies.

[0048] Please see Figure 2 , Figure 2 This is a first sub-flowchart of a digital power supply waveform optimization method provided in an embodiment of the present invention. The specific implementation mechanism of step S110 (i.e., applying a target perturbation signal to the electrochemical load through the digital power supply) is further expanded and refined feature by feature: Step S210: Obtain the current production status of the tank segment, including start-up status, stable production status, changeover status, or abnormal status.

[0049] Blindly injecting disturbance signals into an operating industrial production line may damage the surface morphology of the product or cause safety accidents. Therefore, the main control processing unit needs to assess the external environment before applying the target disturbance signal. The main control processing unit obtains the current production status of the tank segment in real time by parsing the process recipe instructions issued by the host computer (such as a Manufacturing Execution System, MES) or by reading the status register of the production line's programmable logic controller (PLC).

[0050] The startup state typically refers to the stage where the product has just been placed in the tank and the base voltage has not yet reached the rated value; the stable production state refers to the normal electrolysis stage where both the potential and current density are within the preset tolerance range; the product changeover state refers to the transition period when the production line is switching to different product specifications; the abnormal state refers to the detection of hardware-level faults such as short circuits, open circuits, or overheating. Different current production states determine the aggressiveness and strategy of subsequent disturbance injection.

[0051] Step S220: Determine the corresponding target disturbance amplitude and target measurement period based on the current production status.

[0052] After obtaining the current production status, the main control processing unit looks up or calculates the disturbance configuration parameters according to the control mapping table preset in the non-volatile memory.

[0053] The specific calculation logic is as follows: The target perturbation amplitude must be greater than the noise floor of the system's local electromagnetic environment to ensure the signal-to-noise ratio (SNR) meets the requirements for subsequent feature extraction. Simultaneously, the target perturbation amplitude must be less than the limiting voltage / current threshold that could cause irreversible changes to the electrochemical reaction path or damage the product's coating / oxide film. However, in the startup state, the target perturbation amplitude may be appropriately increased to accelerate the acquisition of initial load characteristics.

[0054] Simultaneously, the target measurement period is determined. The target measurement period refers to the length of the time window from the application of a single perturbation to the completion of data acquisition. If the target measurement period is too short, the transient response of slow electrochemical processes such as ion diffusion cannot be fully observed; if it is too long, it may affect the normal production cycle.

[0055] Step S230: Under the condition of satisfying the preset safety constraints, apply the target disturbance signal according to the target disturbance amplitude and the target measurement period.

[0056] Before the final physical-level power injection, the protection logic module of the main control processing unit will perform a final line of defense—a preset safety constraint check. These preset safety constraints include, but are not limited to: whether the peak voltage / current after superimposing the target disturbance amplitude exceeds the hardware overload limit of the power conversion circuit; and whether the disturbance injection duty cycle over a historical period will cause heat buildup in the system's heat dissipation module.

[0057] Only when the preset safety constraints are verified will the main control processing unit finally trigger a high-frequency interrupt, precisely control the internal timer, and strictly apply the target perturbation signal to the electrochemical load according to the determined target perturbation amplitude and the target measurement period. This step ensures that the online probe testing process has absolute industrial-grade reliability and is non-destructive to the original product manufacturing quality.

[0058] Please see Figure 3 , Figure 3 This is a second sub-flowchart of a digital power supply waveform optimization method provided in an embodiment of the present invention. A feature-by-feature derivation is performed on the specific implementation mechanism of step S130 (i.e., extracting the state feature vector of the electrochemical load based on the transient response data): Step S310: Perform time synchronization alignment and filtering denoising on the transient response data to obtain the effective response data within the target analysis window.

[0059] The raw transient response data collected in industrial settings is typically accompanied by severe power frequency interference (such as 50Hz / 60Hz and its harmonics) and high-frequency spike noise generated by inverter switching operations. Furthermore, due to slight differences in hardware transmission paths and ADC conversion cycles, the voltage response data and the current response data may exhibit microsecond-level phase deviations in timing.

[0060] To this end, the main control processing unit first performs time synchronization alignment on the acquired sequence using an interpolation algorithm or a hardware delay compensation mechanism to eliminate phase errors caused by internal system delays. Subsequently, the aligned data sequence is fed into a preset digital filter (e.g., a Finite Impulse Response (FIR) filter, an Infinite Impulse Response (IIR) filter, or a Kalman filter optimized for stationary noise) for filtering and denoising. During processing, glitches and flying points that significantly deviate from the reasonable range are removed, and finally, the effective response data within the target analysis window corresponding to the target perturbation signal is extracted. The effective response data presents a smooth time series that accurately reflects the physical process.

[0061] Step S320: Calculate the state feature vector based on the effective response data, wherein the state feature vector includes at least one of equivalent impedance, differential resistance, differential conductance, polarization recovery coefficient, response time constant, ripple attenuation coefficient, and nonlinear load index.

[0062] This step is the core computational process for constructing the "digital profile" of the electrochemical load. The main control processing unit retrieves the effective response data and uses mathematical analysis algorithms preset in the memory to calculate several key parameters characterizing the electrochemical reaction kinetics and thermodynamic properties.

[0063] Specifically, taking the calculation logic of some of the parameters as an example: Regarding the equivalent impedance: by calculating the minute voltage changes in the effective response data. With minute changes in current The complex ratio in the frequency domain, or the amplitude ratio and phase difference obtained by extracting the fundamental component at a specific disturbance frequency using fast Fourier transform, can be used to macroscopically assess changes in the current tank solution concentration or conductive cross-sectional area.

[0064] Regarding the differential resistance and the differential conductance: in the time domain, using the differential formula... Obtain the instantaneous rate of change of voltage relative to current (i.e., the local slope of the volt-ampere characteristic curve). This feature can reflect the polarization resistance of the electrode surface with extreme sensitivity.

[0065] Regarding the response time constant and the polarization recovery coefficient: when the target disturbance signal is a step disturbance, the effective response data typically exhibits an exponential decay trend. The main control processing unit uses fitting algorithms such as nonlinear least squares to solve the formula. The time constant in This constant is directly related to the product of the electrochemical double-layer capacitance (Cdl) and the charge transfer resistance (Rct), and is used to accurately characterize the diffusion rate and reaction retardation effect of ions at the solid-liquid interface.

[0066] The calculated feature scalars of all relevant dimensions are arranged in a preset dimensional order to form a high-dimensional state feature vector, providing high-quality input data with deep physical meaning for subsequent machine learning models.

[0067] To clarify the internal mechanism and output meaning of the state recognition model, this embodiment further explains: The state recognition model is a classification model or regression model trained by machine learning algorithms.

[0068] In the specific system architecture, the state recognition model is not a simple "if-else" logical threshold judgment, but a deep algorithm model built on artificial intelligence. It can be a model built on traditional machine learning algorithms such as Support Vector Machine (SVM) and Random Forest, or a model trained on deep learning architectures such as Multilayer Perceptron (MLP), Convolutional Neural Network (CNN, used to process sequence features with local correlations) or Long Short-Term Memory Network (LSTM, used to process features with temporal dependencies).

[0069] When discrete category labels need to be output, the model is configured as a classification model, and the output layer uses the Softmax activation function. When continuous deviation indicators need to be output, the model is configured as a regression model, the output layer uses a linear activation function, and the mean squared error (MSE) is used as the loss function during training. This model-based design enables the system to handle strong coupling relationships and nonlinear interactions between multiple features.

[0070] The target electrochemical reaction state includes at least one of the following: film growth state, bath state, polarization degree, local reaction uniformity, and contact state.

[0071] The physical quantities output by the state recognition model are highly targeted, directly corresponding to key quality control points in actual industrial production.

[0072] For example: the film growth state is used to characterize the thickness accumulation, porosity evolution, and risk of microscopic breakdown of the oxide film during anodic oxidation or micro-arc oxidation processes; the bath state reflects the overall conductivity, temperature distribution, or degree of main salt ion consumption of the electrolyte solution; the polarization degree refers to the severity of concentration polarization and electrochemical polarization, and is the core basis for determining whether a depolarization pulse needs to be introduced; the local reaction uniformity is used to assess the dispersion of current distribution on a large-area workpiece surface to prevent localized burning or incomplete plating; the contact state is used to monitor whether there is poor contact or arcing risk between the conductive hanger and the workpiece. The output of these state results allows operating conditions that were previously only judged by experienced process engineers to be presented digitally, transparently, and in real time.

[0073] Please see Figure 4 , Figure 4 This is the third sub-flowchart of a digital power supply waveform optimization method provided in an embodiment of the present invention. It provides a feature-by-feature explanation of the security verification and model self-evolution mechanism before and after the execution of step S160 (i.e., controlling the digital power supply to adjust the target output waveform according to the pulse waveform optimization parameters): Step S410: Perform process constraint verification and electrical safety verification on the pulse waveform optimization parameters.

[0074] Although the theoretically optimal parameters are calculated through step S150, directly issuing unverified parameters under extreme operating conditions or when model inference deviates could potentially damage the hardware or render the entire product unusable. Therefore, a dual verification mechanism is necessary before the main control processing unit sends the parameters to the underlying pulse width modulator.

[0075] The first layer is the process constraint verification: the system verifies whether the calculated parameters (such as the maximum pulse voltage, maximum duty cycle, etc.) exceed the allowable process window set by the process engineer by comparing them with the product formula specifications loaded in the memory.

[0076] The second layer is the electrical safety verification: the system determines whether the execution of the pulse waveform optimization parameters will cause the hardware to enter the damage area (SOA, outside the safe operating area) based on the hardware design limits of the digital power system itself (such as the maximum withstand voltage of the IGBT, the maximum magnetic saturation current of the transformer, and the maximum heat capacity of the heat sink).

[0077] Step S420: If the process constraint verification or the electrical safety verification fails, the pulse waveform optimization parameters are subjected to amplitude limiting or a preset backoff strategy is triggered.

[0078] If any of the above checks fails, it will be determined as an insecure parameter combination, and the main control processing unit will activate the exception handling mechanism.

[0079] If the overshoot is small, the main control processing unit will perform the limiting process, which will forcibly limit the overshoot parameter dimension to the maximum / minimum allowable boundary value.

[0080] If the calculated parameters deviate significantly from normal values, indicating a potential system failure or an unknown fault on-site, the main control processing unit will trigger the preset rollback strategy. Rollback strategies include, but are not limited to: abandoning the current optimization result and maintaining the output parameters from the previous cycle; forcibly switching back to a conservative, constant process formula; or generating an alarm log signal on the screen / monitoring backend and cutting off the main circuit output of the digital power supply to ensure "safety first."

[0081] Step S430: Obtain execution result data corresponding to the output waveform of the adjustment target, wherein the execution result data includes at least one of quality inspection data, unit product energy consumption data, and batch data.

[0082] The method of this invention not only includes feedforward identification and control, but also establishes a long-term evolutionary mechanism throughout the lifecycle. After completing a batch or a certain cycle of production, the main control processing unit obtains the final execution result data related to the recently applied optimization waveform by interfacing with a plant-level network (such as ERP, MES, or automated vision inspection equipment).

[0083] The quality inspection data may include objective quality inspection indicators such as film thickness measurement, impedance test value, and appearance defect rate; the unit product energy consumption data is used to evaluate the efficiency of electrical energy utilization in overcoming unnecessary polarization heat dissipation; and the batch data includes contextual information such as raw material batch number and ambient temperature and humidity. These data serve as the "true values" for verifying the optimization effect.

[0084] Step S440: Update the parameters of the state recognition model using the execution result data.

[0085] After obtaining the execution result data with objective evaluation significance, the main control processing unit repackages it with the previously recorded state feature vector and pulse waveform optimization parameters to form a new training sample, which is then uploaded to the cloud server or edge training cluster.

[0086] The training server uses this real-world production feedback data to calculate the error loss between the predicted state and the actual result, and employs backpropagation, gradient descent, or reward / penalty mechanisms from reinforcement learning to incrementally learn or fine-tune the internal network weights and hyperparameters of the state recognition model. The updated model file is then sent back to the non-volatile memory of the digital power system.

[0087] Through this closed loop of "evaluation-feedback-evolution", the state recognition model can continuously and adaptively optimize its recognition accuracy and prediction ability as production line equipment ages, environmental seasons change, and new products are introduced, completely eliminating the shortcomings of static models that are not suitable for industrial sites.

[0088] The specific composition of the pulse waveform optimization parameters is clarified as follows: The pulse waveform optimization parameters include at least one of pulse amplitude, pulse width, pulse frequency, duty cycle, ratio of forward to reverse pulses, and pulse interval time.

[0089] This section specifies the adjustable degrees of freedom of the digital power supply output waveform. Supported by modern high-frequency switching power supply topologies, the pulse amplitude determines the highest energy level instantaneously injected into the system, used to overcome the obstruction of the passivation film; the pulse width and pulse frequency together determine the duration and repetition frequency of the energy; the duty cycle adjusts the relationship between the average output power and the peak power; the forward / reverse pulse ratio (particularly critical in bidirectional power supplies or power supplies containing discharge loops) is specifically used to balance the relationship between electrochemical deposition and reverse stripping dissolution, and is a core means of eliminating concentration polarization and smoothing the microstructure of the coating; the pulse interval provides a buffer window for ion diffusion and solution replenishment at the reaction interface. The multidimensional synergistic adjustment of these parameters makes data-driven process optimization based on the underlying electrochemical response characteristics possible.

[0090] Please see Figure 5 , Figure 5 This invention provides a digital power waveform optimization device module diagram, and describes the virtual device module that performs the above optimization method feature by feature: This embodiment provides a digital power waveform optimization device, comprising: The signal application module is used to apply a target disturbance signal to the electrochemical load through the digital power supply when the tank section where the electrochemical load is located is in a preset operating state. The target disturbance signal includes at least one of a test pulse, a step disturbance, a modulation signal, or a preset waveform disturbance. This module typically consists of a low-level driver and a power inverter bridge circuit configured with a high-frequency pulse width modulation program. Its core logic lies in seamlessly superimposing perturbation waveforms onto a kilowatt-level or even megawatt-level DC / pulse energy bus, achieving a combination of "high-power execution and low-power detection".

[0091] The data acquisition module is used to acquire transient response data of the electrochemical load under the action of the target disturbance signal, wherein the transient response data includes at least voltage response data and current response data; This module includes a high-precision shunt / Hall element deployed on the DC output bus, and a multi-channel synchronous analog-to-digital converter chip in the subsequent stage. It is not only responsible for the conversion of physical signals, but also manages the high-speed data stream through a preset first-in-first-out (FIFO) queue structure to ensure that data is delivered to the upper-layer algorithm without omission or out-of-order delivery.

[0092] The feature extraction module is used to extract the state feature vector of the electrochemical load based on the transient response data; This module consists of a mathematical operation library running in the core of digital signal processing. It includes matrix operation units and a frequency domain transformation engine, responsible for performing filtering and denoising, phase synchronization and alignment, and substituting physical and chemical model formulas to condense massive discrete time series points into highly representative multi-dimensional feature matrices.

[0093] The state recognition module is used to input the state feature vector into a pre-trained state recognition model to obtain the target electrochemical reaction state and / or process deviation. This module is the brain of the device. Essentially, it is a software engine equipped with a neural network forward propagation computation graph. This engine retrieves the network weight file loaded in memory and, through intensive multiply-accumulate (MAC) operations, maps the dimensionality-reduced features into state classification labels and quantized deviation indices that can be directly understood by process engineers.

[0094] The parameter determination module is used to determine the pulse waveform optimization parameters based on the target electrochemical reaction state and / or the process deviation. This module is responsible for converting state perception results into executable instructions. Internally, it contains decision tree or multidimensional interpolation lookup table logic, which, combined with a pre-stored process recipe library and safety boundary conditions, dynamically plans the optimal waveform combination strategy for the next cycle.

[0095] The output control module is used to control the digital power supply to adjust the target output waveform according to the pulse waveform optimization parameters.

[0096] This module is the final link in the feedback loop, mainly containing the low-level register configuration program and the digital phase-locked loop (DPLL) mechanism. It accurately translates abstract physical parameter requirements into micro-timing instructions that control the on / off times of the inverter circuit's switching transistors, thereby closing the entire control loop.

[0097] Based on the above methods and apparatus, embodiments of the present invention also provide an electronic device: An electronic device, comprising a processor and a memory; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the digital power waveform optimization method as described in any of the above embodiments of the present invention.

[0098] The electronic device described here can be specifically implemented as the main control board inside the digital power system, such as an embedded controller built based on ARM Cortex-M / R series or TIC2000 series DSP chips. The memory includes flash memory for storing the operating system, high-speed static random access memory or dynamic random access memory for storing temporary computation data, and non-volatile memory for long-term storage of process recipes, model weight files, and historical logs.

[0099] The processor possesses powerful computing capabilities and a high-real-time interrupt response mechanism. Upon power-up, the processor reads the computer's execution instructions from non-volatile memory and loads them into the cache for execution. During execution, the processor coordinates and schedules the data bus, address bus, and numerous peripheral interfaces (such as the ADC interface, PWM peripherals, and SPI / I2C communication ports), strictly adhering to the instructions appended to this specification. Figures 1 to 4 The revealed logical flow sequence sequentially completes disturbance injection control, high-speed parallel reading of response data, matrix operation extraction of feature vectors, efficient inference of neural network models, amplitude limiting decision of optimization parameters, and reconstruction output of underlying switching signals, thus endowing this hardware device with all the technical capabilities to handle adaptive optimization of nonlinear electrochemical loads.

[0100] Based on the above methods and apparatus, embodiments of the present invention also provide a computer-readable storage medium: A computer-readable storage medium storing computer-executable instructions that, when executed by a processor, cause the processor to perform a digital power waveform optimization method as described in any of the above embodiments of the present invention.

[0101] The computer-readable storage medium can be any tangible carrier capable of permanently storing machine-readable code, including but not limited to: solid-state drives (SSDs), hard disk drives (HDDs), read-only optical discs (CD-ROMs), universal serial bus flash drives (USB flash drives), SD memory cards, or eMMC, SPIFlash, and other chips soldered on a digital power supply motherboard.

[0102] A complete control software package is encapsulated within the computer-readable storage medium. This package is written in a high-level programming language (such as C / C++) and compiled into low-level machine code using a cross-compiler. The package's logical architecture is strictly divided into a data acquisition layer, a digital signal processing layer, a machine learning inference layer, and a security control execution layer. When this medium is integrated into a specific digital power supply hardware system, and the program is loaded into the processor kernel or directly executed by the processor via a specific programming interface (such as JTAG / SWD), the entire hardware system acquires a complete mechanism for sensing the deep physicochemical state within the electrochemical reaction and completing adaptive optimization of the output pulse waveform at the microsecond level.

[0103] In summary, the method and apparatus disclosed in this invention overcome the technical bottleneck of traditional digital power supplies acting only as unidirectional "actuators." By injecting controllable target disturbance signals online during continuous industrial production and collecting transient response data, combined with advanced machine learning models for deep mining and identification of state feature vectors, the system can acquire core information such as the film growth state, polarization degree, and bath solution deviation within the nonlinear electrochemical load in real time. Based on this, pulse waveform optimization parameters are dynamically calculated and verified, and then the output waveform is adjusted through closed-loop control. This mechanism not only achieves data-driven adaptive optimization based on the underlying electrochemical physical response, avoiding product yield fluctuations caused by manual experience settings, but also ensures industrial-grade reliability of the waveform optimization process and the system's self-evolutionary capability throughout its entire lifecycle through a built-in electrical and process safety verification and post-processing model upgrade feedback network. This has significant practical implications and outstanding technical effects for improving the automation and intelligence level of the electrochemical industry.

[0104] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the present invention. Any simple modifications, equivalent changes, and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the scope of the present invention.

Claims

1. A digital power supply waveform optimization method, characterized in that, include: When the tank section containing the electrochemical load is in a preset operating state, a target disturbance signal is applied to the electrochemical load through the digital power supply. The target disturbance signal includes at least one of a test pulse, a step disturbance, a modulation signal, or a preset waveform disturbance. Transient response data of the electrochemical load under the action of the target disturbance signal is collected. The transient response data includes at least voltage response data and current response data. A state feature vector of the electrochemical load is extracted based on the transient response data. The state feature vector is input into a pre-trained state recognition model to obtain the target electrochemical reaction state and / or process deviation. Pulse waveform optimization parameters are determined according to the target electrochemical reaction state and / or the process deviation. The digital power supply is controlled to adjust the target output waveform according to the pulse waveform optimization parameters.

2. The digital power supply waveform optimization method according to claim 1, characterized in that, The step of applying a target disturbance signal to the electrochemical load via the digital power supply includes: acquiring the current production state of the tank segment, the current production state including startup state, stable production state, changeover state, or abnormal state; determining the corresponding target disturbance amplitude and target measurement period based on the current production state; and applying the target disturbance signal according to the target disturbance amplitude and the target measurement period, provided that preset safety constraints are met.

3. The digital power supply waveform optimization method according to claim 1, characterized in that, The step of extracting the state feature vector of the electrochemical load based on the transient response data includes: performing time synchronization alignment and filtering denoising on the transient response data to obtain effective response data within the target analysis window; and calculating the state feature vector based on the effective response data, wherein the state feature vector includes at least one of equivalent impedance, differential resistance, differential conductance, polarization recovery coefficient, response time constant, ripple attenuation coefficient, and nonlinear load index.

4. The digital power supply waveform optimization method according to claim 1, characterized in that, The state recognition model is a classification model or regression model trained by a machine learning algorithm; the target electrochemical reaction state includes at least one of the following: film growth state, bath state, polarization degree, local reaction uniformity, and contact state.

5. The digital power supply waveform optimization method according to claim 1, characterized in that, Before controlling the digital power supply to adjust the target output waveform according to the pulse waveform optimization parameters, the method further includes: performing process constraint verification and electrical safety verification on the pulse waveform optimization parameters; if the process constraint verification or the electrical safety verification fails, performing amplitude limiting processing on the pulse waveform optimization parameters or triggering a preset backoff strategy.

6. The digital power supply waveform optimization method according to any one of claims 1 to 5, characterized in that, Also includes: Obtain execution result data corresponding to the output waveform of the adjustment target, wherein the execution result data includes at least one of quality inspection data, unit product energy consumption data, and batch data; The parameters of the state recognition model are updated using the execution result data.

7. The digital power supply waveform optimization method according to claim 1, characterized in that, The pulse waveform optimization parameters include at least one of the following: pulse amplitude, pulse width, pulse frequency, duty cycle, ratio of forward to reverse pulses, and pulse interval time.

8. A digital power supply waveform optimization device, characterized in that, include: The signal application module is used to apply a target disturbance signal to the electrochemical load through the digital power supply when the tank section where the electrochemical load is located is in a preset operating state. The target disturbance signal includes at least one of a test pulse, a step disturbance, a modulation signal, or a preset waveform disturbance. The data acquisition module is used to acquire transient response data of the electrochemical load under the action of the target disturbance signal, wherein the transient response data includes at least voltage response data and current response data; The feature extraction module is used to extract the state feature vector of the electrochemical load based on the transient response data; the state recognition module is used to input the state feature vector into a pre-trained state recognition model to obtain the target electrochemical reaction state and / or process deviation. The parameter determination module is used to determine the pulse waveform optimization parameters based on the target electrochemical reaction state and / or the process deviation. The output control module is used to control the digital power supply to adjust the target output waveform according to the pulse waveform optimization parameters.

9. An electronic device, characterized in that, It includes a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, causing the processor to perform the digital power waveform optimization method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions that, when executed by a processor, cause the processor to perform the digital power waveform optimization method as described in any one of claims 1 to 7.