A smart control system and method for discharge energy of an EDM machine

By combining multimodal sensing and LSTM network prediction modules with multi-objective control, the discharge energy of electrical discharge machining is dynamically adjusted, solving the trade-off between efficiency and quality in the traditional fixed parameter mode, and realizing efficient and stable electrical discharge machining.

CN121315359BActive Publication Date: 2026-04-21DONGGUAN DALING MECHANICAL & ELECTRICAL CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
DONGGUAN DALING MECHANICAL & ELECTRICAL CO LTD
Filing Date
2025-11-26
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

In existing electrical discharge machining (EDM), discharge energy regulation is mainly achieved by setting fixed parameters of the pulse power supply, which cannot respond to changes in the discharge gap state in real time. This results in a static trade-off between efficiency and quality, making it impossible to achieve efficient and stable machining in dynamic processes.

Method used

A multimodal gap state sensing module, a gap state trajectory prediction module based on a long short-term memory network, and a multi-objective model predictive control module are used to monitor and predict the discharge gap state in real time, dynamically adjust the pulse power supply parameters, and form a closed-loop control.

Benefits of technology

It achieves precise matching of discharge energy, improves the stability and efficiency of the processing, breaks the limitation of traditional technology that cannot balance efficiency and quality, and realizes continuous optimization of comprehensive processing benefits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121315359B_ABST
    Figure CN121315359B_ABST
Patent Text Reader

Abstract

This invention belongs to the field of machining and intelligent manufacturing technology, specifically a smart control system and method for EDM discharge energy. It includes a multi-modal gap state sensing module, a high-throughput data synchronous acquisition and preprocessing module, a discharge pulse real-time classification and feature extraction module, an LSTM-based gap state trajectory prediction module, a multi-objective model prediction control module, and a high-frequency pulse power supply execution module. By fusing electrical parameters and in-situ optical turbidity signals, it achieves multi-dimensional perception of the discharge state and uses an LSTM network to predict future discharge trends, combined with an MPC controller to solve for the optimal pulse parameter combination online. By adopting the above technical solution, this application can achieve a dynamic optimal balance between material removal rate, surface quality, and stability during processing, improving overall processing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of machining and intelligent manufacturing technology, specifically a smart control system and method for EDM discharge energy. Background Technology

[0002] Electrical discharge machining (EDM) is a special machining method that uses pulsed spark discharge to erode conductive materials. Because it can process ultrahard materials, complex cavities, and precision microstructures, it has become a key technology in high-end fields such as mold manufacturing and aerospace. The core of this technology is the precise control of the pulsed discharge energy, which directly determines the material removal rate, workpiece surface quality, and electrode wear, and is crucial for ensuring efficient, stable, and precise machining.

[0003] In existing electrical discharge machining (EDM), discharge energy control is mainly achieved by setting three core parameters of the pulse power supply: pulse width, pulse interval, and peak current. The traditional strategy adopts an empirical, phased fixed parameter mode: before machining, based on the material properties, machining allowance, and other preset parameter combinations, a large pulse width and high peak current are used in the roughing stage to pursue a high removal rate, while the finishing stage switches to a small pulse width and low peak current to ensure surface quality. This mode has laid the foundation for the industrialization of EDM.

[0004] As high-end manufacturing demands higher precision, surface integrity, and efficiency, traditional strategies are showing fundamental limitations: Electrical discharge machining (EDM) is a millisecond-level dynamic process, with real-time changes in the dielectric state and the distribution of etched products within the discharge gap, directly affecting discharge stability; while fixed-parameter mode is an open-loop control that ignores instantaneous feedback of the gap state, leading to a mismatch between energy supply and actual demand—when the gap state is good, conservative parameters waste efficiency, while when the gap deteriorates, aggressive parameters cause defects such as electrode wear and workpiece burns. This static trade-off between efficiency and quality has become the core bottleneck for technological upgrades.

[0005] Therefore, the present invention provides an intelligent control system and method for EDM discharge energy. Summary of the Invention

[0006] In order to overcome the shortcomings of the prior art, at least one technical problem raised in the background art is solved.

[0007] The technical solution adopted by the present invention to solve its technical problem is as follows: The present invention provides an intelligent control system for discharge energy of a spark generator, comprising a multimodal gap state sensing module, a high-throughput data synchronous acquisition and preprocessing module, a discharge pulse real-time classification and feature extraction module, a gap state trajectory prediction module based on a long short-term memory network, a multi-objective model prediction and control module, and a high-frequency pulse power supply execution module.

[0008] The multimodal gap state sensing module is installed in the working area of ​​the electrical discharge machining tool and is used to synchronously acquire multi-dimensional physical signals that are directly or indirectly related to the state of the discharge gap.

[0009] Specifically, the multimodal gap state sensing module includes a high-bandwidth electrical parameter sensing unit and an in-situ optical turbidity sensing unit. The high-bandwidth electrical parameter sensing unit consists of a Hall effect current sensor with a response time of less than 0.5 microseconds connected in series with the tool electrode and the workpiece, and a high-speed differential voltage probe with an input impedance greater than 10 megohms connected between the tool electrode and the workpiece, used to capture the instantaneous current and voltage waveforms during each discharge pulse without distortion. The in-situ optical turbidity sensing unit is entirely encapsulated in a flow cell structure with a standard fluid interface, injection molded from polyetheretherketone (PEEK) material. This flow cell is connected in series in the return pipeline of the processing working fluid circulation filtration system and is adjacent to the drain port of the processing tank. A 10 mm diameter straight-through measurement channel is integrally formed inside the flow cell. An infrared light emitting component is installed perpendicular to the fluid direction on one side wall of the measurement channel; a photoelectric receiving component is installed on the other side wall opposite the emitting component. The infrared light emitting component internally encapsulates an infrared light-emitting diode with a center wavelength of 940 nm, a spectral half-width of 40 nm, and a radiation intensity of 750 mW / spherical area. The photoelectric receiving component internally encapsulates a silicon-based PIN photodiode with a photosensitive area of ​​10 square millimeters, a peak response wavelength of 940 nm, and a dark current of less than 1.5 nanoamps. The in-situ optical turbidity sensing unit measures the attenuation of infrared light of a specific wavelength by the working fluid flowing through the measurement channel, quantifying in real time the turbidity caused by electro-erosion products (mainly carbon particles and metal particles) in the working fluid, thereby obtaining a physical quantity that directly characterizes the state of chip removal and the degree of contamination in the discharge gap.

[0010] The high-throughput data synchronous acquisition and preprocessing module is connected to the signal output terminal of the multimodal gap state sensing module, and is used to perform high-precision synchronous digitization and preliminary hardware-level feature calculation on multi-source heterogeneous sensing signals.

[0011] Understandably, the core of this module is a hardware processing platform based on a Field-Programmable Gate Array (FPGA). The platform's analog input channel is connected to the outputs of the Hall effect current sensor and the high-speed differential voltage probe via two independent analog-to-digital converters (ADCs) with a sampling rate set to 50 MHz and a vertical resolution of 16 bits, respectively. The platform's other analog input channel is connected to the output of the preamplifier transimpedance amplifier circuit behind the photodiode via an ADC with a sampling rate of 100 kHz and a vertical resolution of 16 bits.

[0012] The hardware logic embedded inside the FPGA first uses a unified internal high-precision clock to stamp the data streams from the three channels with a synchronization timestamp.

[0013] Secondly, the high-speed sampled voltage and current waveform data streams are digitally filtered and processed in real time. Using hardware-implemented peak detection algorithm, zero-crossing detection algorithm and numerical integration algorithm, the peak current, peak voltage, breakdown delay time, pulse duration, single pulse energy and voltage waveform integral area are calculated in each pulse cycle.

[0014] Next, the photoelectric signal is averaged and filtered to generate a quantitative value that characterizes the real-time turbidity of the processing fluid, denoted as the turbidity index (DCI).

[0015] Finally, the FPGA packages the synchronization timestamp, key feature data of the original waveform, and the corresponding turbidity index of each pulse into a structured data frame, and transmits it at high speed to the discharge pulse real-time classification and feature extraction module through the PCIe bus interface.

[0016] The discharge pulse real-time classification and feature extraction module is a deterministic computing unit running under a real-time operating system (RTOS). It performs in-depth analysis of the data frames received from the FPGA and accurately classifies the physical properties of each discharge pulse. Internally, this module runs a deterministic classification algorithm based on a multi-dimensional feature space. The input to this algorithm is the data frame for each pulse, including peak current, peak voltage, breakdown delay time, pulse duration, single-pulse energy, and turbidity index.

[0017] The algorithm, based on a set of preset physical thresholds calibrated through numerous experiments, accurately classifies each pulse into one of the following four basic types: effective erosion discharge, short-circuit pulse, open-circuit pulse, or destructive arc discharge.

[0018] Specifically, when the peak voltage of the pulse is within the normal discharge voltage range (e.g., 20–30 volts) and the breakdown delay time is greater than a minimum effective delay, it is determined to be an effective erosion discharge; when the peak voltage is lower than the short-circuit threshold and the peak current is greater than a minimum current threshold, it is determined to be a short-circuit pulse; when the peak voltage is close to the power supply open-circuit voltage and the peak current is lower than the open-circuit threshold, it is determined to be an open-circuit pulse; when the pulse duration exceeds the preset upper limit of a normal discharge cycle, and the voltage fluctuates continuously at a low plateau, while the turbidity index (DCI) shows an abnormally rapid increase in a short period of time, it is determined to be a destructive arc discharge. After classification, the module assigns a category label to each pulse and integrates it with the original feature data into an enhanced feature vector, which serves as the input for subsequent processing.

[0019] The gap state trajectory prediction module based on a long short-term memory network receives an enhanced feature vector sequence arranged in chronological order output by the real-time classification and feature extraction module of the discharge pulse, and uses it to probabilistically predict the state evolution trend of the discharge gap over a future period. The core of this module is a long short-term memory network (LSTM) model that has been trained offline and fine-tuned online.

[0020] The LSTM model's network structure includes an input layer, two stacked LSTM layers, and an output layer. Each LSTM layer contains 256 hidden units. The model's input is a sliding window with a time step of 100, containing an enhanced feature vector sequence of 100 consecutive discharge pulses. The model's output layer uses the Softmax activation function, outputting a four-dimensional probability distribution vector. The four components of this vector correspond to the predicted probability that the next discharge pulse will be an effective erosion discharge, a short-circuit pulse, an open-circuit pulse, or a destructive arc discharge. By inputting the enhanced feature vector sequence at the current time step into the LSTM model, the module can predict the risk probability of gap state deterioration under the current processing parameters, thus providing a forward-looking basis for control decisions.

[0021] The multi-objective model predictive control module (MPC) is the decision-making core of the entire intelligent control system. This module receives the future state probability distribution output by the gap state trajectory prediction module and, in conjunction with a preset multi-objective optimization function, calculates the optimal combination of pulse power supply parameters for the next control cycle through online rolling optimization. The multi-objective optimization function is defined as the mathematical expression of the processing benefit J:

[0022] ;

[0023] in, The expected value representing the material erosion rate. The expected value representing the tool electrode wear rate. The expected values ​​representing the surface roughness of the workpiece are calculated using a preset physical model associated with the control variables. This is the total probability of future abnormal discharges (short circuit, open circuit, arc) predicted by the LSTM module; , , , These are weighting coefficients, which can be adaptively adjusted according to the current processing stage (roughing, semi-finishing, finishing). , , It is calculated using a pre-established empirical or semi-empirical physical model related to pulse parameters (peak current, pulse width, pulse interval);

[0024] The MPC controller, within a preset prediction time domain (e.g., the next 20 pulse cycles), uses the peak current, pulse width, and pulse interval of the pulse power supply as control variables, and a physical model and an LSTM prediction model as the system state transition model. Within a constraint space containing the physical limits of each parameter (e.g., current range 1-50 amperes, pulse width range 2-500 microseconds), it solves for a control sequence that maximizes the cumulative optimization function J in the future prediction time domain. This solution process is completed within each control cycle (e.g., every 5 milliseconds) using an efficient Sequential Quadratic Programming (SQP) algorithm.

[0025] Ultimately, the MPC module outputs only the first combination of control parameters in the calculated control sequence to the high-frequency pulse power supply execution module.

[0026] The high-frequency pulse power supply execution module receives digital instructions from the multi-objective model predictive control module and accurately generates one or more high-voltage pulses conforming to the instruction parameters, which are then applied between the tool electrode and the workpiece. The main power topology of this module employs a full-bridge inverter circuit, with silicon carbide (SiC) MOSFETs as the switching elements to ensure extremely low switching losses and extremely fast switching speeds (rise / fall time less than 50 nanoseconds).

[0027] A dedicated digital signal processor (DSP) receives the parameter settings from the MPC module and generates high-precision pulse width modulation (PWM) signals in real time based on these values. This precisely controls the on / off state of the SiC MOSFET, thereby generating processing pulses with set peak current, pulse width, and pulse interval during the discharge gap. This module constitutes the final execution end of a complete closed-loop control circuit.

[0028] As another aspect of the present invention, the present invention also provides a method for intelligent regulation of discharge energy of an EDM machine, which is implemented by running the above-mentioned system and specifically includes the following steps:

[0029] Step S100: Through the multimodal gap state sensing module, synchronously acquire the discharge gap voltage waveform, current waveform, and optical turbidity signal of the working fluid flowing through the gap region during the processing.

[0030] Step S200: The high-throughput data synchronous acquisition and preprocessing module is used to digitize the acquired multi-source sensor signals at high speed and synchronously, and the hardware logic is used to calculate the waveform characteristic parameters and corresponding turbidity index of each discharge pulse in real time to generate a structured pulse data frame.

[0031] Step S300: The discharge pulse real-time classification and feature extraction module parses each pulse data frame based on a deterministic classification algorithm in a multi-dimensional feature space, accurately classifies the pulse into effective erosion discharge, short-circuit pulse, open-circuit pulse or destructive arc discharge, and generates an enhanced feature vector containing category labels.

[0032] Step S400: Input the continuously generated enhanced feature vector sequence into the gap state trajectory prediction module based on the long short-term memory network, and use the trained LSTM model to predict the probability distribution of various discharge states in a short time domain in the future.

[0033] Step S500: The multi-objective model prediction control module receives the predicted probability distribution and combines it with a multi-objective optimization function aimed at maximizing processing efficiency. Through online rolling optimization calculation, it solves for the next moment's pulse power supply parameter combination that can optimize the future processing process, namely the optimal peak current, pulse width, and pulse interval.

[0034] Step S600: The calculated optimal parameter combination instruction is sent to the high-frequency pulse power supply execution module, which accurately generates and applies processing pulses that conform to the instruction parameters.

[0035] Step S700: Repeat steps S100 to S600 in a loop to form a continuous, adaptive closed-loop control process until the entire processing task is completed.

[0036] The system and method proposed in this invention have the following beneficial effects:

[0037] By introducing in-situ optical turbidity sensing, this invention incorporates for the first time a non-electrical signal that directly reflects the physical chip removal state within the gap into the control system. This forms a multi-modal information complement to the traditional electrical parameter signal, greatly improving the accuracy and dimensionality of the system's perception of the true state of the gap, and laying a solid data foundation for achieving refined and intelligent control.

[0038] The predictive model based on LSTM networks transforms the control strategy from traditional reactive regulation based on historical information to feedforward regulation based on future state prediction. This forward-looking control paradigm enables the system to intervene and adjust energy parameters in advance before the gap state shows signs of deterioration, thereby actively avoiding unstable discharges such as short circuits and arcing, and significantly improving the stability of the processing.

[0039] By employing a Model Predictive Control (MPC) architecture, the complex control problem is transformed into a constrained multi-objective online optimization problem. This architecture dynamically balances multiple conflicting performance indicators such as material removal rate, electrode wear, and surface quality at each control instant, and finds the Pareto optimal solution for the current state. This completely breaks through the inherent limitation of traditional technologies where efficiency and quality cannot be simultaneously achieved, enabling continuous optimization of overall processing efficiency throughout the entire process.

[0040] The entire system, from sensing, processing, prediction to control, forms a high-frequency, real-time closed loop with a control cycle at the millisecond level. It can respond quickly to microsecond-level discharge phenomena, ensuring a precise match between energy supply and instantaneous gap demand, thereby maximizing processing efficiency while ensuring the highest processing quality. Attached Figure Description

[0041] The invention will now be further described with reference to the accompanying drawings.

[0042] Figure 1 This is a schematic diagram of the system described in this invention;

[0043] Figure 2 This is a flowchart illustrating the method described in this invention;

[0044] Figure 3 This is a schematic diagram of the structure of the multimodal gap state sensing module in an embodiment of the present invention;

[0045] Figure 4 This is a schematic diagram of the structure of the in-situ optical turbidity sensing unit;

[0046] Figure 5 This is a schematic diagram of the data processing flow of the high-throughput data synchronous acquisition and preprocessing module in this invention;

[0047] Figure 6 This is a schematic diagram of the voltage and current waveforms of different types of discharge pulses in this invention;

[0048] Figure 7 This is a schematic diagram illustrating the working principle of the gap state trajectory prediction module in this invention;

[0049] Figure 8 This is a schematic diagram of the control principle of the multi-objective model prediction control module in this invention.

[0050] In the diagram: 100, Multimodal gap state sensing module; 110, High-bandwidth electrical parameter sensing unit; 111, Hall effect current sensor; 112, High-speed differential voltage probe; 120, In-situ optical turbidity sensing unit; 121, Flow cell structure; 122, Measurement channel; 123, Infrared light emitting component; 124, Photoelectric receiving component; 200, High-throughput data synchronous acquisition and preprocessing module; 300, Discharge pulse real-time classification and feature extraction module; 400, Gap state trajectory prediction module based on long short-term memory network; 500, Multi-objective model predictive control module; 600, High-frequency pulse power supply execution module. Detailed Implementation

[0051] To make the technical means, creative features, objectives and effects of this invention easier to understand, the invention will be further described below in conjunction with specific embodiments.

[0052] Reference Figure 1 This invention proposes a complete architecture for an intelligent discharge energy control system for EDM machines. This system aims to achieve closed-loop adaptive control of discharge energy injection through real-time, multi-dimensional sensing and forward-looking prediction of the physical state of the discharge gap during EDM. This continuously optimizes multiple performance indicators such as material removal rate, tool electrode wear rate, and workpiece surface integrity in a dynamically changing machining environment. Logically, the entire system consists of several tightly coupled functional modules, including a multi-modal gap state sensing module 100, a high-throughput data synchronous acquisition and preprocessing module 200, a discharge pulse real-time classification and feature extraction module 300, a gap state trajectory prediction module 400 based on a long short-term memory network, a multi-objective model predictive control module 500, and a high-frequency pulse power supply execution module 600. These modules together constitute a complete, high-frequency closed-loop control loop from state perception to decision execution.

[0053] Specifically, the multimodal gap state sensing module 100 is the sensing foundation of the entire system. Its core task is to capture multi-source heterogeneous signals that can comprehensively characterize the complex physicochemical processes within the discharge gap without distortion and synchronously.

[0054] In one specific embodiment, the module 100 is precisely integrated into the working area of ​​the electrical discharge machining tool, as shown in reference... Figure 3 As shown, it comprises two functionally complementary sensing units: a high-bandwidth electrical parameter sensing unit 110 and an in-situ optical turbidity sensing unit 120. The high-bandwidth electrical parameter sensing unit 110 is responsible for monitoring the electrical characteristics of the discharge process, and it consists of a Hall effect current sensor 111 and a high-speed differential voltage probe 112;

[0055] The Hall effect current sensor 111, exemplarily, can be a closed-loop Hall sensor with a bandwidth exceeding 1 MHz and a response time of less than 0.5 microseconds. It is connected in series in the main discharge circuit between the pulse power supply output and the tool electrode (or workpiece) to accurately measure the instantaneous current waveform flowing through the discharge gap. The high-speed differential voltage probe 112, with an input impedance designed to be greater than 10 megohms to minimize the load effect on the measurement circuit, has its measurement endpoint directly connected between the clamping end of the tool electrode and the workpiece clamping base to capture the instantaneous voltage waveform between the tool and the workpiece in real time. The collaborative operation of these two electrical parameter sensors provides the system with the raw data foundation for key electrical characteristics of each discharge pulse, such as breakdown delay, pulse duration, peak current, and peak voltage.

[0056] Furthermore, in order to overcome the limitations of traditional control systems that rely solely on electrical parameters, the in-situ optical turbidity sensing unit 120 aims to directly quantify the chip removal state of the discharge gap, which is a physical quantity that has a decisive influence on processing stability but is difficult to reflect directly through electrical signals.

[0057] In some embodiments, refer to Figure 4 The mechanical body of the sensing unit 120 is a flow cell structure 121 precision injection molded from polyetheretherketone (PEEK) material. PEEK was chosen because it exhibits excellent chemical inertness, high strength, and good electrical insulation properties against various electrical discharge machining (EDM) working fluids (such as kerosene-based or water-based media). The flow cell structure 121 has a standardized fluid interface, allowing for easy connection in series with the return pipeline of the EDM working fluid circulation filtration system. Its installation position is optimized to be downstream of the EDM tank drain outlet to ensure immediate capture of the working fluid carrying the latest EDM products. The flow cell structure 121 has an integrally molded, smooth-walled, precisely 10 mm diameter straight-through measurement channel 122. An infrared light emitting component 123 and a photoelectric receiving component 124 are arranged radially opposite each other on the wall of the measurement channel 122. The infrared light emitting component 123 internally encapsulates a high-efficiency infrared light-emitting diode with a center wavelength of 940 nm and a spectral half-width of 40 nm, whose radiation intensity can reach 750 mW / spherical degree. The 940 nm band was chosen because infrared light of this wavelength has good penetration in common working fluid media, and can be effectively absorbed and scattered by electro-erosion products (mainly micron-sized carbon black particles and metal spherical particles). The corresponding photoelectric receiving component 124 has a silicon-based PIN photodiode with a photosensitive area of ​​10 square millimeters and a peak response wavelength precisely matched to 940 nm. This diode has an extremely low dark current of less than 1.5 nanoamps, ensuring a good signal-to-noise ratio for detecting weak light signals.

[0058] In some embodiments, when the working fluid carrying the electro-erosion products flows through the measurement channel 122, the suspended particles absorb and scatter the infrared beam, causing the light intensity reaching the photoelectric receiving component 124 to decrease. By measuring this degree of decrease, the system can quantitatively assess the turbidity of the working fluid in real time, thereby obtaining a physical index that directly reflects the concentration of electro-erosion products and chip removal efficiency within the discharge gap.

[0059] All analog signals from the multimodal gap state sensing module 100 are sent to the high-throughput data synchronous acquisition and preprocessing module 200. This module 200 is a bridge connecting the physical world and the digital control core. Its design goal is to complete the synchronous digitization and preliminary feature extraction of massive amounts of data at the hardware level, so as to reduce the burden of subsequent software processing and ensure the real-time determinism of the entire system.

[0060] In a preferred embodiment, the hardware core of module 200 is a customized processing platform based on a field-programmable gate array (FPGA), exemplarily using Xilinx's Artix-7 series chips. This FPGA platform integrates multiple high-performance analog-to-digital converters (ADCs).

[0061] Specifically, two independent analog input channels are connected to the outputs of the Hall effect current sensor 111 and the high-speed differential voltage probe 112, respectively. Each channel is equipped with an ADC with a sampling rate of up to 50 MHz and a vertical resolution of 16 bits. Such a high sampling rate ensures that the rapid rise and fall edges of microsecond-level pulses can be reconstructed without distortion. The other analog input channel is connected to the output of the transimpedance amplifier circuit at the back end of the photodetector 124. Since the frequency of the turbidity signal change is much lower than that of the electrical parameters, this channel is equipped with an ADC with a sampling rate of 100 kHz and a vertical resolution of 16 bits.

[0062] In some embodiments, refer to Figure 5 In the data processing flow, the hardware description language (such as VHDL or Verilog) logic embedded inside the FPGA first performs a critical task: synchronization. Based on a clock signal generated by a unified, highly stable internal crystal oscillator, each data sampling point from the three ADC channels is timestamped with a precision down to the nanosecond level, thereby ensuring the timing consistency of multi-source data from the source.

[0063] Next, the FPGA's parallel processing capabilities were used for real-time digital signal processing of the high-speed sampled voltage and current waveform data streams. Hardware-implemented finite impulse response (FIR) digital filters were first used to filter out high-frequency noise introduced by the sensor;

[0064] Subsequently, through hardware-implemented peak detection algorithms (exemplarily, finding the maximum value within a sliding window), zero-crossing detection algorithms, and numerical integration algorithms based on the trapezoidal rule, the FPGA efficiently calculates a series of key waveform characteristic parameters for each discharge pulse cycle, including the peak current Ip, peak voltage Vp, breakdown delay time td (the duration from the rising edge of the pulse voltage to voltage collapse), pulse duration ton, single-pulse energy (the integral of the product of voltage and current over time), and the integral area of ​​the voltage waveform during the pulse.

[0065] In some embodiments, for low-speed data streams from the optical turbidity sensing unit, the FPGA performs a moving average filtering algorithm to smooth the signal and generate a stable, quantized turbidity index (DCI).

[0066] Finally, for each identified discharge pulse, the FPGA packages the associated synchronization timestamp, all calculated waveform feature parameters, and the corresponding turbidity index (DCI) into a predefined structured data frame, and streams these data frames to the upper-layer discharge pulse real-time classification and feature extraction module 300 with extremely low latency through the onboard PCIe high-speed bus interface.

[0067] The function of the discharge pulse real-time classification and feature extraction module 300 is to perform deep analysis and semantic annotation of the raw feature data from the underlying hardware. This module is typically deployed on an embedded computing unit running a real-time operating system (RTOS) to ensure the determinism and timeliness of its processing. Its core is to run a deterministic classification algorithm based on a multi-dimensional feature space. The input to this algorithm is the structured data frame representing each independent discharge event transmitted from the FPGA module 200. Based on a set of preset physical thresholds carefully calibrated through extensive offline experiments and physical model analysis, the algorithm accurately classifies each pulse into one of four basic types, each type having a clear indicative meaning for the processing state.

[0068] In some embodiments, refer to Figure 6 The typical waveforms shown represent four types: effective erosion discharge, which is a spark discharge that occurs normally and can effectively remove workpiece material; short-circuit pulse, which is a low-impedance path formed between the tool and the workpiece in contact with the electro-erosion products or themselves; open-circuit pulse, which is an unloaded pulse that fails to break down due to excessive gap or excessive dielectric strength; and destructive arc discharge, which is a malignant discharge form with an abnormally long duration, concentrated energy, and serious damage to the workpiece surface.

[0069] Based on practical scenarios, the classification logic can be set as follows: When the peak voltage Vp of a pulse is within a normal discharge voltage range (e.g., between 20V and 30V), and its breakdown delay time td is greater than a minimum effective delay (e.g., 1.0 microseconds, to distinguish it from a spurious discharge caused by momentary contact), the pulse is determined to be an effective erosion discharge. When the peak voltage Vp is lower than a preset short-circuit voltage threshold (e.g., 5V), and the peak current Ip is greater than a minimum conduction current threshold (e.g., 1 Ampere), it is determined to be a short-circuit pulse. When the peak voltage Vp is close to the power supply's open-circuit voltage (e.g., 80V), and the peak current Ip is lower than a very low open-circuit current threshold (e.g., 0.5 Ampere), it is determined to be an open-circuit pulse.

[0070] It should be noted that for the identification of destructive arc discharge, this invention utilizes the advantages of multimodal information fusion: when the duration ton of a pulse significantly exceeds the currently set pulse width (e.g., reaching 150% of the set value), and its voltage waveform maintains a low plateau (e.g., below 15 volts) for a long time after breakdown, while the turbidity index DCI shows an abnormally steep upward trend in the short term (e.g., within the past 100 pulses), the system comprehensively determines that a destructive arc discharge has occurred. This criterion, which integrates the time-domain characteristics of electrical parameters and the dynamic trend of turbidity, greatly improves the accuracy of identifying concealed arcs. After classification, module 300 adds a category label to each pulse data frame (e.g., using integers 0, 1, 2, and 3 to represent the four types respectively), and integrates it with the original waveform feature data and turbidity index DCI to form a higher-dimensional, more information-rich enhanced feature vector. This vector fully describes the physical properties and consequences of a single discharge event and serves as input to the subsequent prediction module.

[0071] The gap state trajectory prediction module 400 based on a Long Short-Term Memory (LSTM) network is the core of this invention for achieving forward-looking control. It receives a sequence of enhanced feature vectors arranged chronologically, output in real time by module 300. Its goal is no longer to analyze events that have already occurred, but to probabilistically predict the state evolution trend of the discharge gap over a short period in the future. The core of this module is a Long Short-Term Memory (LSTM) network model that has been thoroughly trained offline and fine-tuned online. As a special type of recurrent neural network (RNN), the LSTM network's unique gating mechanism (input gate, forget gate, output gate) makes it highly adept at learning and remembering long-term dependencies in time-series data, which has an inherent physical correlation with the evolution of the discharge state during electrical discharge machining. In a specific network structure design, this LSTM model includes an input layer, two vertically stacked LSTM layers, and a fully connected output layer. Each LSTM layer contains 256 hidden units (neurons), a depth and width sufficient to capture complex dynamic patterns in the discharge sequence.

[0072] In some embodiments, refer to Figure 7 As shown, the input to this model is a sliding window with a time step of 100. That is, at any time t, the input to the model is a sequence of enhanced feature vectors corresponding to 100 consecutive discharge pulses from time t-99 to t. The output layer of the model uses the Softmax activation function, and its output is a four-dimensional probability distribution vector. The four components of this vector correspond to the predicted probabilities that the next (i.e., at time t+1) discharge pulse is an effective erosion discharge, a short-circuit pulse, an open-circuit pulse, or a destructive arc discharge, and the sum of the four probability values ​​is 1.

[0073] Understandably, by inputting the latest processing state sequence into this pre-trained LSTM model, module 400 can predict in advance the probability of the gap state evolving towards instability (i.e., short circuit, open circuit, or arcing) under the current combination of processing parameters. This quantitative prediction of future states provides crucial decision-making basis for the control system to shift from passive response to active prevention. The offline training process of this LSTM model is based on a massive experimental database, which contains hundreds of millions of pulse feature vector sequences with precise classification labels collected under different materials, electrodes, and processing parameters.

[0074] The Multi-Objective Model Predictive Control (MPC) module 500 is responsible for formulating the optimal control strategy. This module receives the future state probability distribution vector output from the prediction module 400 and, in conjunction with a predefined multi-objective optimization function, calculates the optimal combination of pulse power supply parameters for the next control cycle through an online rolling optimization method.

[0075] In some embodiments, refer to Figure 8 The control principle of this module lies in its optimization framework. First, a mathematical objective function J is defined to comprehensively evaluate the efficiency of the processing, which can take the form:

[0076] ;

[0077] In this function, The expected value representing the material erosion rate. E[Ra] represents the expected value of the tool electrode wear rate, and E[Ra] represents the expected value of the workpiece surface roughness Ra. These three are key indicators for measuring processing efficiency and quality. This is the total probability of future abnormal discharges (short circuit, open circuit, arc) predicted by the LSTM module 400, i.e. This represents the stability risk of the processing procedure. , , , These are the weighting coefficients for each item. These coefficients are not fixed but can be adaptively adjusted according to the current processing stage.

[0078] In one example, during the roughing stage, the system assigns a value representing efficiency. A larger value; while in the finishing stage, it will increase the value representing surface quality. The weights. For The three physical quantities, E[Ra], are calculated online using pre-established empirical or semi-empirical physical models related to the pulse power supply parameters (mainly peak current Ip, pulse width ton, and pulse interval tooff). These models can be fitted with a large amount of experimental data. The MPC controller is optimized within a preset prediction time domain (e.g., looking ahead N=20 pulse cycles). It uses the peak current Ip, pulse width ton, and pulse interval tooff of the pulse power supply as adjustable control variables, and the aforementioned physical models and LSTM prediction models together as a state transition model describing how the system state evolves with control input.

[0079] Within a constrained space containing the physical limits of various control variables (exemplarily, current range 1-50 amperes, pulse width range 2-500 microseconds, and pulse interval range 2-500 microseconds), the MPC controller solves a complex dynamic optimization problem: finding a sequence of control variables {Ip(k), ton(k), toff(k)} for k=t to t+N-1 that maximizes the sum of the accumulated optimization function J over the entire prediction time domain. This solution process must be completed within each control cycle (e.g., every 5 milliseconds), thus requiring an efficient numerical optimization algorithm, such as Sequential Quadratic Programming (SQP). After obtaining the optimal control sequence in each control cycle, the MPC module, following its fundamental principles of "rolling time" and "receding horizon," outputs only the first combination of control parameters in the sequence—the optimal {Ip, ton, toff} setpoints for the next time step (k=t)—to the high-frequency pulse power supply execution module 600. In the next control cycle, the entire process will be repeated based on the new system state measurements.

[0080] The high-frequency pulse power supply execution module 600 is the final execution end of the closed-loop control circuit. It is responsible for accurately converting the digital instructions from the MPC module 500 into high-voltage pulses applied between the tool electrode and the workpiece. To meet the requirements of the MPC module for high-frequency, wide-range dynamic parameter adjustment, this power supply module has been optimized in terms of topology and component selection.

[0081] For example, its main power topology employs a full-bridge inverter circuit, and the power switching element is a new generation of wide-bandgap semiconductor device—silicon carbide (SiC) MOSFETs. Compared to traditional silicon-based IGBTs, SiC MOSFETs have significantly lower on-resistance and switching losses, as well as much faster switching speeds; their pulse rise and fall times can be controlled to within 50 nanoseconds. This characteristic ensures that the power supply can generate very steep, well-formed rectangular wave pulses and operate efficiently over an extremely wide frequency and duty cycle range. A dedicated digital signal processor (DSP), such as Texas Instruments' (TI) C2000 series, serves as the module's local controller. It receives digital setpoints for peak current, pulse width, and pulse interval from the MPC module 500 via a high-speed serial interface. Based on these settings, the firmware algorithm inside the DSP generates high-precision, high-frequency pulse-width modulation (PWM) signals in real time. These PWM signals, through an isolated gate drive circuit, precisely control the turn-on and turn-off timing of four SiC MOSFETs, thereby forming a processing pulse sequence with the precise peak current, pulse width, and pulse interval required by the instruction at the transformer secondary, i.e., across the discharge gap. The module's rapid response and high-precision execution capabilities are the key physical guarantee for ensuring the ultimate realization of the control effect of the entire intelligent control system.

[0082] As another aspect of the present invention, the present invention also provides a corresponding intelligent control method for EDM discharge energy, which is implemented by running the above-mentioned system, and its detailed process is as follows: Figure 2 As shown, the specific steps include:

[0083] Step S100: After the system starts processing, the multimodal gap status sensing module 100 starts working continuously, synchronously collecting the discharge gap voltage waveform, current waveform, and optical turbidity signal of the working fluid flowing through the gap area during the processing.

[0084] Step S200: After receiving these analog signals, the high-throughput data synchronous acquisition and preprocessing module 200 immediately performs high-speed and synchronous digitization on them, and uses the hardware parallel processing capability of the FPGA to calculate the waveform characteristic parameters of each discharge pulse and the time-aligned turbidity index DCI in real time, and finally generates a structured pulse data frame stream.

[0085] Step S300: The real-time classification and feature extraction module 300 of discharge pulses receives and parses these data frames one by one. Based on its internal multi-dimensional feature space deterministic classification algorithm, it accurately classifies each pulse into effective erosion discharge, short-circuit pulse, open-circuit pulse or destructive arc discharge, and generates an enhanced feature vector containing category labels.

[0086] Step S400: The sequence of enhanced feature vectors continuously generated over a past period (e.g., 100 pulses) is treated as a whole and input into the gap state trajectory prediction module 400 based on a long short-term memory network. This module uses a pre-trained LSTM model for forward propagation calculation to predict the probability distribution of various discharge states in a short time domain in the future.

[0087] Step S500: The multi-objective model prediction and control module 500 receives the probability distribution containing future risk warnings and uses it as one of the key inputs, substituting it into the preset multi-objective optimization function J. Subsequently, within its prediction time domain, the module solves for the next-moment pulse power supply parameter combination that maximizes the overall benefits of the future processing through online rolling optimization calculations (e.g., the SQP algorithm), namely the optimal peak current Ip, pulse width ton, and pulse interval toff.

[0088] Step S600: The MPC module 500 sends the calculated set of optimal parameter instructions to the high-frequency pulse power supply execution module 600 via a high-speed communication interface. The DSP of this module immediately parses the instructions and accurately generates the corresponding PWM control signals to drive the power circuit to apply one or more processing pulses conforming to the instruction parameters to the discharge gap.

[0089] Step S700: After completing one control-execution cycle, the system immediately returns to step S100, continuously collecting new status information and repeatedly executing the entire process from steps S100 to S600. Through this high-frequency, millisecond-level loop, a continuous, adaptive closed-loop control process is formed until the entire processing task is completed.

[0090] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely illustrative of the principles of the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the present invention as claimed. The scope of protection of the present invention is defined by the appended claims and their equivalents.

Claims

1. An intelligent control system for discharge energy of an electrical discharge machine, applied to an electrical discharge machining tool, characterized in that, The system includes: A multimodal gap state sensing module (100) is disposed in the working area of ​​the electrical discharge machining tool to synchronously acquire multi-dimensional physical signals related to the state of the discharge gap; The high-throughput data synchronous acquisition and preprocessing module (200) is connected to the signal output terminal of the multimodal gap state sensing module (100) and is used to synchronously digitize the multidimensional physical signal and perform hardware-level feature calculation to generate structured pulse data frames. The real-time classification and feature extraction module (300) for discharge pulses is connected to the high-throughput data synchronous acquisition and preprocessing module (200) for receiving and parsing the pulse data frame, classifying each discharge pulse according to a preset physical threshold, and generating an enhanced feature vector containing category labels. The gap state trajectory prediction module (400) based on the long short-term memory network is connected to the discharge pulse real-time classification and feature extraction module (300) for receiving the enhanced feature vector sequence arranged in chronological order and using a long short-term memory network model to probabilistically predict the state evolution trend of the discharge gap in the future. The multi-objective model prediction control module (500) is connected to the gap state trajectory prediction module (400) based on the long short-term memory network. It is used to receive the probabilistic prediction results and, in combination with a preset multi-objective optimization function, calculate the optimal combination of pulse power supply parameters in the next control cycle through online rolling optimization. The high-frequency pulse power supply execution module (600) is connected to the multi-objective model prediction control module (500) and is used to receive the optimal pulse power supply parameter combination instruction and accurately generate a machining pulse that conforms to the instruction parameters and apply it between the tool electrode and the workpiece.

2. The intelligent control system for discharge energy of an EDM machine according to claim 1, characterized in that, The multimodal gap state sensing module (100) includes: A high-bandwidth electrical parameter sensing unit (110) is used to capture the instantaneous current and voltage waveforms during each discharge pulse; An in-situ optical turbidity sensing unit (120) is connected in series in the return pipeline of the processing working fluid circulation filtration system. It is used to quantify the turbidity of the working fluid caused by electro-erosion products in real time by measuring the degree of attenuation of light of a specific wavelength by the working fluid.

3. The intelligent control system for discharge energy of a spark dynamometer according to claim 2, characterized in that, The structure of the in-situ optical turbidity sensing unit (120) includes: A flow cell structure (121) is injection molded from polyetheretherketone material, which has a standard fluid interface and is connected in series in the return pipeline. The flow cell structure (121) has a straight-through measurement channel (122) integrally formed inside. An infrared light emitting component (123) is installed on one side wall of the measuring channel (122) and perpendicular to the direction of the working fluid flow; A photoelectric receiving component (124) is mounted on the other side wall of the measurement channel (122) opposite the infrared light emitting component (123) for receiving infrared light attenuated by the working fluid.

4. The intelligent control system for discharge energy of a spark dynamometer according to claim 3, characterized in that, The infrared light emitting component (123) is internally encapsulated with an infrared light-emitting diode; the photoelectric receiving component (124) is internally encapsulated with a silicon-based PIN photodiode; the measurement channel (122) has a diameter of 10 mm.

5. The intelligent control system for discharge energy of an EDM machine according to claim 2, characterized in that, The core of the high-throughput data synchronous acquisition and preprocessing module (200) is a hardware processing platform based on a field-programmable gate array (FPGA). The platform includes: The instantaneous current and voltage waveforms are digitized using two analog-to-digital converters with a sampling rate of 50 MHz and a vertical resolution of 16 bits. The signal output by the in-situ optical turbidity sensing unit (120) is digitized using an analog-to-digital converter with a sampling rate of 100 kHz and a vertical resolution of 16 bits. All data streams are timestamped using a unified internal clock; Using a hardware-implemented algorithm, the peak current, peak voltage, breakdown delay time, pulse duration, and single-pulse energy of each pulse cycle are calculated. The optical turbidity signal is mean filtered to generate a quantized turbidity index; The synchronization timestamp, waveform feature data, and turbidity index corresponding to each pulse are then packaged into the structured pulse data frame.

6. The intelligent control system for discharge energy of a spark dynamometer according to claim 1, characterized in that, The real-time classification and feature extraction module (300) for discharge pulses internally runs a deterministic classification algorithm based on a multi-dimensional feature space. This algorithm accurately classifies each discharge pulse into one of the following four types based on a set of preset physical thresholds: Effective erosion discharge: determined when the peak voltage of the pulse is within the normal discharge voltage range and the breakdown delay time is greater than the minimum effective delay; Short-circuit pulse: Determined when the peak voltage is lower than the short-circuit threshold and the peak current is greater than the minimum current threshold; Open circuit pulse: Determined when the peak voltage is close to the power supply open-circuit voltage and the peak current is lower than the open circuit threshold; Destructive arc discharge: When the pulse duration exceeds the preset upper limit, the voltage continues to fluctuate at a low level, and the turbidity index calculated by the high-throughput data synchronous acquisition and preprocessing module (200) shows an abnormally rapid increase in a short period of time, a comprehensive judgment is made.

7. The intelligent control system for discharge energy of a spark dynamometer according to claim 1, characterized in that, The long short-term memory network model used in the gap state trajectory prediction module (400) based on the long short-term memory network has a network structure including an input layer, two stacked LSTM layers, each containing 256 hidden units, and an output layer. The input of the model is a sliding window with a time step of 100, and the data in the window is the enhanced feature vector sequence of 100 consecutive discharge pulses. The output layer of the model uses the Softmax activation function to output a four-dimensional probability distribution vector. The four components of this vector correspond to the predicted probability that the next discharge pulse is an effective erosion discharge, a short-circuit pulse, an open-circuit pulse, or a destructive arc discharge.

8. The intelligent control system for discharge energy of a spark dynamometer according to claim 1, characterized in that, The multi-objective model prediction control module (500) calculates the optimal combination of pulse power supply parameters within a preset prediction time domain, using the peak current, pulse width, and pulse interval of the pulse power supply as control variables, and within a constraint space containing the physical limits of each parameter, by solving a dynamic optimization problem aimed at maximizing the accumulated multi-objective optimization function value within the prediction time domain.

9. The intelligent control system for discharge energy of a spark dynamometer according to claim 8, characterized in that, The multi-objective optimization function is defined as the mathematical expression for the processing benefit J: ; in, The expected value representing the material erosion rate. The expected value representing the tool electrode wear rate. The expected values ​​representing the surface roughness of the workpiece are calculated using a preset physical model associated with the control variables. It is the total probability of future abnormal discharges predicted by the gap state trajectory prediction module (400) based on the long short-term memory network; , , , These are weighting coefficients that can be adaptively adjusted according to the processing stage.

10. A method for intelligent regulation of discharge energy in an EDM machine, applicable to the intelligent regulation system for discharge energy in an EDM machine as described in any one of claims 1-9, characterized in that, The method includes the following steps: S100: Through the multi-modal gap state sensing module (100), the discharge gap voltage waveform, current waveform and optical turbidity signal of the working fluid flowing through the gap region are simultaneously acquired during the processing. S200: Through the high-throughput data synchronous acquisition and preprocessing module (200), the acquired multi-source sensor signals are digitized at high speed and synchronously, and the waveform characteristic parameters and corresponding turbidity index of each discharge pulse are calculated in real time using hardware logic to generate structured pulse data frames. S300: Through the real-time classification and feature extraction module (300) of discharge pulses, each pulse data frame is analyzed based on a deterministic classification algorithm in a multi-dimensional feature space, and the pulse is accurately classified into effective erosion discharge, short-circuit pulse, open-circuit pulse or destructive arc discharge, and an enhanced feature vector containing category labels is generated. S400: The continuously generated enhanced feature vector sequence is input into the gap state trajectory prediction module (400) based on the long short-term memory network. Using a trained long short-term memory network model, the probability distribution of various discharge states in a short time domain in the future is predicted in real time. S500: The multi-objective model prediction control module (500) receives the predicted probability distribution and combines it with a multi-objective optimization function aimed at maximizing processing efficiency. Through online rolling optimization calculation, it solves the next moment pulse power supply parameter combination that can optimize the future processing process, namely the optimal peak current, pulse width and pulse interval. S600: The calculated optimal parameter combination command is sent to the high-frequency pulse power supply execution module (600), which accurately generates and applies processing pulses that conform to the command parameters; S700: Repeat steps S100 to S600 in a loop to form a continuous, adaptive closed-loop control process until the processing task is completed.

Citation Information

Patent Citations

  • Electric spark multivariable self-adaptive efficient machining control system and method

    CN119387729A

  • Precise automatic multi-axis numerical control electric spark forming machine data processing method and system

    CN120892935A