A fuse based on fast-breaking technology and a manufacturing method thereof
By integrating data collection, model construction and execution units into the fuse, deep learning models and genetic mutation algorithms are used to monitor circuit status in real time and dynamically adjust protection strategies, solving the problems of response lag and fixed parameters of traditional circuit protection devices, achieving faster and precise circuit protection, improving the safety and reliability of the power system.
Patent Information
- Application Number
- CN202410578778.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-11
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-05-11
AI Technical Summary
Traditional circuit protection devices lag in response when faced with rapidly changing circuit faults and cannot disconnect the circuit in time, resulting in circuit damage. Moreover, the protection parameters are fixed and difficult to adjust, have poor applicability, and lack predictive protection.
Using a fuse based on fast circuit breaking technology, combined with a data collection unit, a model building unit and an execution unit, the circuit status is monitored in real time through a deep learning model and genetic mutation algorithm, and the protection strategy is dynamically adjusted to achieve a faster and more accurate response.
It improves the accuracy and response speed of protection, enhances the adaptability and flexibility of the fuse, and can better adapt to various circuit conditions, ensure the stability of power supply and continuous operation of the system, and reduce unnecessary interruptions and circuit faults.
Smart Images

Figure CN118518980B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of circuit protection technology, and more particularly to a fuse based on fast-breaking technology and a manufacturing method thereof. Background Art
[0002] In the field of modern circuit protection, traditional protection devices, such as fuses and circuit breakers, mainly rely on the thermal properties of physical materials to achieve protection functions. These traditional devices have a certain hysteresis in the protection mechanism, especially when the circuit undergoes drastic changes, such as short circuit events, they often cannot respond in time. This delay may result in failure to effectively cut off the circuit before a fault occurs, thereby causing damage to the circuit system. The protection parameters of traditional time-delay fuses, such as the melting current value and delay time, are usually fixed and difficult to adjust, which limits their applicability under different circuit conditions. In addition, these fuses lack the ability to predict the trend of circuit state changes, cannot achieve preventive protection, and can only passively respond to circuit abnormalities that have already occurred.
[0003] For example, the Chinese patent with the authorization announcement number CN110137052B discloses a circuit fusing protection method, which allows the user to connect the wiring components in series with the live wire, and automatically fuses when the circuit fault current is overloaded, thereby disconnecting the circuit. Although this method can provide basic overload protection, it still has a response delay and is not easy to adjust the protection parameters according to different circuit conditions.
[0004] Therefore, there is an urgent need to develop protection technologies that can provide faster and more precise responses to adapt to the increasingly complex trend of electrical systems. Such protection technologies should be able to intelligently predict abnormal conditions in the circuit and disconnect the fuse before the abnormal condition occurs, thereby achieving instant protection to prevent circuit damage. Summary of the invention
[0005] In order to solve the above problems, the present application provides a fuse based on fast circuit breaking technology and a manufacturing method thereof, which is used to monitor the circuit status in real time, and predict potential faults in combination with a deep learning model to achieve intelligent protection of the circuit. By integrating a deep learning model optimized by a genetic mutation algorithm, the fuse can dynamically adjust its protection strategy according to the instantaneous state and historical data of the circuit, providing a faster and more accurate response. This technology not only improves the accuracy and response speed of protection, but also increases the adaptability and flexibility of the fuse, enabling it to better adapt to various circuit conditions.
[0006] In a first aspect, the present application provides a fuse based on fast-breaking technology, comprising:
[0007] A data collection unit, used to collect current and voltage signals of the target circuit in real time and perform data preprocessing to generate first monitoring data;
[0008] A model building unit, configured to build a deep learning model based on a genetic variation algorithm, and update the deep learning model based on the first monitoring data of the target circuit generated by the data collection unit;
[0009] A data processing unit, configured to receive the first monitoring data sent by the data collection unit, and based on the deep learning model, predict the state of the target circuit in real time, generate first prediction data, and send the first prediction data to the execution unit; wherein the first prediction data includes: normal / abnormal state of the circuit, abnormality type, and predicted fault location;
[0010] An execution unit is used to receive the first prediction data sent by the data processing unit, and perform a preset processing operation on the fuse based on the first prediction data.
[0011] As a possible implementation, the data collection unit includes multiple types of sensors for collecting the current and voltage signals of the target circuit in parallel, wherein the multiple types of sensors include: a current sensor for measuring the real-time current in the target circuit; a voltage sensor for measuring the real-time voltage across the target circuit; when the data collection unit collects the current and voltage signals of the target circuit in real time, it is also used to:
[0012] Use timestamp to add acquisition time to each acquired current and voltage signal;
[0013] Use a unified trigger signal to start data acquisition for all sensors simultaneously to ensure the time consistency of current and voltage signals.
[0014] As a possible implementation manner, the data collection unit is further used to pre-process the collected current and voltage signals:
[0015] Use digital filters to remove high-frequency noise from current and voltage signals;
[0016] After removing the high-frequency noise, the current and voltage signals are compressed to the range of -1 to 1. The calculation formula is:
[0017]
[0018] Where X norm is the compressed current and voltage signal, X is the original current and voltage signal, X min and X max are the minimum and maximum values of the original current and voltage signals respectively;
[0019] A first target feature is extracted from the current and voltage signals compressed into a range of -1 to 1 to generate first monitoring data.
[0020] As a possible implementation manner, the first target feature includes: signal mean, signal peak, signal variance, signal fundamental wave, signal harmonic, signal resolution and signal bandwidth; when the data collection unit extracts the first target feature from the current and voltage signals compressed to the range of -1 to 1, it is used to:
[0021] Perform time domain analysis on the compressed current and voltage signals to calculate the signal peak, signal mean, and signal variance;
[0022] Based on Fourier transform, the time domain signal is converted into a frequency domain signal, and the signal is analyzed in the frequency domain;
[0023] Based on the Fourier transform result, determine the signal fundamental wave, signal harmonics, signal resolution and signal bandwidth corresponding to the current and voltage signals;
[0024] The first target feature is generated based on the timing analysis results and frequency domain analysis results of the current and voltage signals.
[0025] As a possible implementation, the model building unit builds a deep learning model based on a genetic variation algorithm, for:
[0026] Determine an objective function, decision variables, and constraints; wherein the objective function is used to maximize the prediction accuracy of the deep learning model and minimize the training and prediction time of the deep learning model;
[0027] Convert deep learning model parameters into an encoding form that can be processed by genetic mutation algorithms;
[0028] Initialize the population and generate multiple individuals representing different deep learning model parameter configurations;
[0029] Define the fitness function to evaluate the performance of each individual on different performance indicators;
[0030] Based on the fitness function evaluation results, excellent individuals are determined;
[0031] Perform genetic, crossover and mutation operations based on identified excellent individuals to generate new individuals and increase the diversity of the population;
[0032] The population is improved through continuous genetic operations, and in response to reaching a preset first target condition, the iterative operation is terminated, and the configuration parameters of the deep learning model at this time are output;
[0033] The deep learning model is trained and deployed based on the configuration parameters of the deep learning model output when the iterative operation is terminated, and the first target feature.
[0034] As a possible implementation method, the decision variables include: deep learning model structure parameters and training parameters, wherein the model structure parameters include at least: the number of layers, the number of heads, and the size of the hidden layer; the training parameters include at least: learning rate, batch size, and regularization parameter; the encoding form that can be processed by the genetic mutation algorithm includes: real number encoding; the initialization population includes: randomly generating a group of first-generation individuals, each individual represents a set of possible model configuration parameters.
[0035] As a possible implementation, the first target condition includes: reaching the maximum number of iterations and fitness convergence; improving the population through continuous genetic operations, terminating the iterative operation in response to the model parameter configuration reaching the preset first target condition, including: continuously iteratively optimizing the population through multiple generations of selection, crossover and mutation until the termination condition of the maximum number of iterations or fitness convergence is reached.
[0036] As a possible implementation manner, the model construction unit, when constructing a deep learning model based on a genetic variation algorithm and updating the deep learning model based on the first monitoring data of the target circuit collected by the data collection unit, is used to:
[0037] Monitor the performance of the deep learning model, and in response to the performance of the deep learning model reaching a preset update threshold, trigger the deep learning model update and perform the following steps:
[0038] Based on the first monitoring data of the target circuit collected by the data collection unit, a genetic mutation algorithm is used to dynamically adjust the configuration parameters of the deep learning model.
[0039] As a possible implementation manner, when the execution unit performs a preset processing operation on the fuse based on the first prediction data, the execution unit includes:
[0040] In response to the first prediction data indicating that the probability that the target circuit will be short-circuited or overloaded at the predicted fault location is greater than or equal to 95%, triggering a fuse to physically cut off the circuit;
[0041] In response to the first prediction data indicating that the probability that the target circuit is about to experience a short circuit or an overload at the predicted fault location is greater than or equal to 1% and less than 95%, preheating the fuse to a preset temperature;
[0042] In response to the first prediction data indicating that the probability that the target circuit will be short-circuited or overloaded at the predicted fault location is less than 1%, keeping the fuse closed to maintain the target circuit connection;
[0043] In response to the manual disconnect switch being activated, the fuse is triggered to physically disconnect the circuit.
[0044] In a second aspect, the present disclosure also provides a method for manufacturing a fuse based on the fast-breaking technology, comprising the steps of:
[0045] Provide a circuit board, which is designed with reserved positions and circuit layout for installing a data collection unit, a model building unit, a data processing unit, an execution unit and a manual disconnect switch;
[0046] A data collection unit is installed at a reserved position of the circuit board, the data collection unit comprising: a current sensor, a voltage sensor and a data preprocessing module, the sensor is responsible for monitoring the current and voltage of the target circuit, and sending the monitored analog signal to the data preprocessing module to perform data preprocessing on the signal;
[0047] Installing a model building unit at a reserved position on the circuit board, the unit having a built-in computing core of a genetic mutation algorithm and a storage unit required therefor;
[0048] Installing a data processing unit at a reserved position on the circuit board, the data processing unit comprising a processor and a necessary storage unit for running a deep learning model;
[0049] Installing an execution unit at a reserved position of the circuit board, the execution unit integrating a fuse unit, the fuse unit consisting of a conductive path and a fusing mechanism, and being used to physically disconnect the circuit when receiving an instruction from the data processing unit;
[0050] Install a manual circuit breaker on the reserved position of the circuit board, the manual circuit breaker is used for the user to immediately manually disconnect the circuit when the predicted data or system logic cannot accurately determine the circuit state;
[0051] Through the wires and connection points preset on the circuit board, the electrical signal connection and data interaction between the data collection unit, the model building unit, the data processing unit, the execution unit and the manual disconnect switch are ensured;
[0052] A power management module is provided on the circuit board to provide power to the above-mentioned units and ensure power management and power distribution of other electronic components on the circuit board;
[0053] Test the assembled fuse to ensure proper integration of the various units and functionality of the fuse.
[0054] Compared with the prior art, the beneficial effects of the embodiments of the present application are: by deploying multiple sensors to collect monitoring data of the target circuit in real time, based on the characteristics of the Transformer model, the potential fault points and fault types of the circuit are accurately predicted. Dynamic response is performed according to the fault probability and fault location given by the Transformer model, and rapid circuit breaking and preventive circuit breaking are achieved while retaining manual intervention, which helps to ensure the stability of power supply and continuous operation of the system, and avoid unnecessary interruptions and circuit failures that damage the system.
[0055] Through genetic mutation algorithms, model parameters are quickly optimized, the model is automatically adjusted to adapt to environmental changes, and prediction accuracy and response efficiency are continuously improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solutions of the present application. It should be understood that the following drawings only illustrate certain embodiments of the present application and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.
[0057] Figure 1 This is a schematic diagram of the structure of a fuse based on fast-breaking technology provided in Example 1 of the present application.
[0058] The corresponding relationship between the illustrations and component names in the figure is as follows:
[0059] 10. Data collection unit; 20. Model building unit; 30. Data processing unit; 40. Execution unit. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The specific operating method in the method embodiment can also be applied to the device embodiment or the system embodiment. It should be noted that in the description of the present application, "at least one" refers to one or more, wherein multiple refers to two or more. In view of this, "multiple" can also be understood as "at least two" in the embodiment of the present application. "And / or" describes the association relationship of the associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / ", unless otherwise specified, generally indicates that the related objects before and after are in an "or" relationship. In addition, it should be understood that in the description of the present application, words such as "first" and "second" are only used to distinguish the purpose of description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0061] It should be noted that in the embodiments of the present application, "connection" refers to electrical connection, and the connection between two electrical components can be a direct or indirect connection between the two electrical components. For example, A and B are connected, which can be either A and B directly connected, or A and B indirectly connected through one or more other electrical components, for example, A and B are connected, or A and C are directly connected, C and B are directly connected, and A and B are connected through C.
[0062] Example 1
[0063] The embodiment of the present application provides a fuse based on fast circuit breaking technology and a manufacturing method thereof, which can collect and analyze the current and voltage signals of the circuit in real time, and use data processing algorithms to predict and identify circuit anomalies. The key innovation of this application lies in the Transformer model optimized by the genetic mutation algorithm. The model can automatically determine the optimal model configuration parameters through the optimization of the genetic mutation algorithm, improve the prediction accuracy of the model, and the construction time, and at the same time enable the fuse to not only achieve fast circuit breaking response based on the state prediction of the circuit state, but also dynamically adjust the protection strategy according to real-time and historical monitoring data. The application of this technology not only improves the response speed and prediction accuracy of the fuse, but also improves the overall safety and reliability of the power system.
[0064] See also Figure 1 As shown, Figure 1A structural schematic diagram of a fuse based on fast circuit breaking technology provided in an embodiment of the present application includes: a data collection unit 10, used to collect current and voltage signals of a target circuit in real time and perform data preprocessing to generate first monitoring data; a model building unit 20, used to build a deep learning model based on a genetic mutation algorithm, and update the deep learning model based on the first monitoring data of the target circuit generated by the data collection unit 10; a data processing unit 30, used to receive the first monitoring data sent by the data collection unit 10, and based on the deep learning model, predict the state of the target circuit in real time, generate first prediction data, and send the first prediction data to an execution unit 40; wherein the first prediction data includes: normal / abnormal state of the circuit, abnormality type, and predicted fault location; the execution unit 40, used to receive the first prediction data sent by the data processing unit 30, and based on the first prediction data, perform a preset processing operation on the fuse.
[0065] For the data collection unit 10, as a possible implementation, the data collection unit 10 includes multiple types of sensors for collecting the current and voltage signals of the target circuit in parallel, wherein the sensors may include: a current sensor for measuring the real-time current in the target circuit; a voltage sensor for measuring the real-time voltage across the target circuit; when the data collection unit 10 is used to collect the current and voltage signals of the target circuit in real time, the signal data is timestamped, and the collection time is added to each collected current and voltage signal, and a unified trigger signal is used to simultaneously start data collection of all sensors to ensure the time consistency of the signal.
[0066] In a specific implementation, the embodiment of the present application collects current and voltage signals in parallel. In the power system, by monitoring these two parameters at the same time, a comprehensive understanding of the performance of the circuit can be obtained. Abnormal changes in voltage and current usually indicate problems in the circuit, such as overload, short circuit, open circuit or equipment failure. Collecting these two signals at the same time can help the system quickly detect and locate faults. Combining voltage and current data can improve the accuracy of fault diagnosis. For example, if there is only a sudden increase in current without a voltage drop, this may indicate a short circuit in the circuit; if the current is normal but the voltage decreases, it may be because there is an open circuit upstream of the circuit. By monitoring the current and voltage, the load on the circuit can be analyzed to determine the load type (linear or nonlinear) and operating conditions. Add timestamps to the voltage and current signals and collect them synchronously to ensure data consistency.
[0067] As a possible implementation, the data collection unit 10 is further used to perform preprocessing operations on the collected current and voltage signals, and use a digital filter to remove high-frequency noise in the signals;
[0068] After removing the high-frequency noise, the current and voltage signals are compressed to the range of -1 to 1. The calculation formula is as follows:
[0069]
[0070] Where X norm is the compressed current or voltage value, X is the original current or voltage value, and X min and X max They are the minimum and maximum values of the original current or voltage respectively.
[0071] A first target feature is extracted from the time series signals of voltage and current compressed to a range of -1 to 1, and first monitoring data is generated.
[0072] For example, if the real-time monitored current-voltage readings are: 50A-220V, 55A-230V, 45A-210V, 60A-240V; and the measurement range of the data collection unit 10 is 0A-100A and 0V-250V; when compressing the signal, the minimum and maximum values of the current and voltage can be determined first. For the current, X min =0A,X max =100A; for voltage, the same can be obtained as X min =0V, X max =250V; It can be understood that since the current value and the voltage value can be regarded as the same data type when the signal is processed, there is no need to distinguish the minimum and maximum values corresponding to the current and voltage respectively.
[0073] For each real-time monitored current and voltage measurement value X, use the normalization formula:
[0074]
[0075] For the first current reading of 50A, the normalized value would be:
[0076]
[0077] For the first voltage reading of 220V, the normalized value would be:
[0078]
[0079] Repeat the above steps for all other readings to complete the compression of the signal.
[0080] In this embodiment, the monitored current and voltage signals are compressed to [-1, 1] instead of the traditional [0, 1] because when monitoring current and voltage, the signals often fluctuate around a central value (such as alternating current). Normalizing to [-1, 1] can make the positive and negative fluctuations of the waveform evenly distributed on both sides of the zero point. Such zero centering helps the deep learning model to better understand the fluctuation range and waveform of the signal. For the monitoring of alternating current, the current and voltage signals are periodic fluctuations, and these fluctuations are symmetrical between positive and negative. Using the [-1, 1] range can maintain this natural symmetry and help the neural network model capture the essential characteristics of this waveform. In addition, when monitoring power systems that may have faults or nonlinear behavior, it is necessary to process the positive and negative fluctuations of the data. The [-1, 1] range allows the deep learning model to process gains and losses on the same scale, which can enable the system to adapt to changes in the signal more quickly.
[0081] As a possible implementation, the first target feature includes: signal mean, signal peak, signal variance, signal fundamental wave, signal harmonic, signal resolution and signal bandwidth; when the data collection unit 10 extracts the first target feature from the voltage and current time series signals compressed to the range of -1 to 1, it is used to perform time domain analysis on the time series signals, calculate the peak values of current and voltage, the mean values of current and voltage, and the variances of current and voltage in the time series signals, and perform frequency domain analysis on the time series signals: based on Fourier transform, the time domain signal is converted into a frequency domain signal, and the conversion formula is:
[0082]
[0083] Among them, X k represents the kth point in the frequency domain, indicating the strength and phase of the signal at that frequency; x n is the signal value of the nth point in the time domain, representing the current or voltage in the circuit measured at a specific time point; N is the total number of sampling points, that is, the number of data points collected in a specific time, which determines the frequency domain resolution; kn is the product term, representing the conversion process of time domain signal to frequency domain signal, where k is the frequency index and n is the time index;
[0084] In the specific implementation, the reason for selecting current and voltage signal features is that these signals can reflect the state of the circuit in real time, which is convenient for fault prediction and anomaly detection through deep learning models. As basic circuit parameters, the changes of current and voltage signals can directly indicate the abnormal or normal state in the circuit, and are key data for circuit monitoring. For the selection of current and voltage signal features, the signal mean indicates the average level of current and voltage signals, which helps to identify the overall trend; the signal peak reflects the maximum value of the current and voltage signals at a certain moment, which is particularly important for capturing instantaneous peak changes; the signal variance describes the volatility and instability of the current and voltage signals, which helps to detect abnormal fluctuations; the signal fundamental and harmonics provide the basic frequency of the circuit and its frequency multiples through frequency domain analysis, which helps to identify the impact of nonlinear loads in the circuit; the signal resolution and signal bandwidth are based on the frequency domain characteristics of the signal, providing the frequency range and resolution covered by the current and voltage signals, which are used to evaluate the details and complexity in the current and voltage signals.
[0085] It is understandable that the calculation of the mean, peak value and variance of the signal can be performed through mathematical analysis, which will not be described in detail here.
[0086] Before performing Fourier transform, the current or voltage signal needs to be recorded at a sufficient sampling rate. The sampling rate should follow the Nyquist theorem and be at least twice the highest frequency component in the signal to avoid aliasing. In addition, before performing FFT, it is usually necessary to add a window to the signal (such as a Hanning window, a Hamming window, etc.) to reduce spectral leakage.
[0087] Among them, the Nyquist sampling theorem shows that in order to restore the original signal from the sampled signal without distortion, the sampling frequency should be greater than 2 times the highest frequency of the signal. When the sampling frequency is less than 2 times the highest frequency of the spectrum, the spectrum of the signal has aliasing. When the sampling frequency is greater than 2 times the highest frequency of the spectrum, the spectrum of the signal has no aliasing.
[0088] In a specific implementation, the Fourier transform of discrete current and voltage signals can be implemented in a variety of ways, including but not limited to: MATLAB, Python, R language, C / C++, FPGA and DSP hardware, etc.
[0089] When determining the fundamental wave, harmonics, signal resolution and effective bandwidth corresponding to the time series signal based on the Fourier transform results, in the power system, the fundamental wave usually corresponds to the nominal frequency of the system (such as 50Hz or 60Hz). This is the main frequency component in the spectrum; harmonics are integer multiples of the fundamental frequency. In the FFT results of the current or voltage signal, the harmonics appear as peaks at integer multiples of the fundamental frequency. The presence of harmonics may be caused by nonlinear loads (such as switching power supplies, motors, etc.); the frequency resolution is determined by the total number of samples and the sampling rate of the FFT. The higher the frequency resolution, the more accurately the close frequency components can be distinguished; the effective bandwidth describes the frequency range that contains the main energy in the signal. For power signals, the fundamental wave and important harmonics are usually concerned. Components outside the effective bandwidth are usually regarded as noise or unimportant signals.
[0090] Exemplarily, the fundamental wave is usually the main component with the lowest frequency in the signal, while the harmonics are integer multiples of the fundamental wave frequency. First, the fundamental wave f0 can be determined by finding the first significant peak in the spectrum.
[0091] For harmonics, their frequencies can be expressed as:
[0092] f h =n*f0
[0093] Where n is an integer representing the order of the harmonic.
[0094] Signal resolution refers to the minimum frequency difference that can be distinguished in the frequency domain, which directly depends on the length T of the time domain signal and the total number of sampling points N:
[0095]
[0096] Among them, f s is the sampling frequency.
[0097] After Fourier transforming the signal to convert it to the frequency domain, the power spectral density of the frequency domain signal is calculated, which represents the power at each frequency point. The mathematical expression used for calculation is:
[0098]
[0099] Among them, P(f) is the power spectral density at frequency f, which represents the power distribution of the signal at this frequency; X(f) is the Fourier transform result at frequency f, which reflects the signal amplitude at a specific frequency; N is the signal length, which is used for normalization.
[0100] The total energy is the sum of the power spectral density of all frequency points, and the expression is as follows:
[0101]
[0102] Among them, E total is the total energy of the signal; P(f) is the power spectral density of each frequency f.
[0103] Cumulative energy is the sum of the power spectral density starting from the lowest frequency and accumulated to a certain frequency. Signal bandwidth is the highest frequency that reaches a certain percentage of cumulative energy (such as 90%). The expression is as follows:
[0104]
[0105] Where P(i) represents the power spectral density at frequency i; E cum (f) is the sum of all power spectral densities P(i) in the frequency range from 0 to f; f bw is the signal bandwidth frequency that contains the desired percentage of energy; E total is the total energy of the signal; percentage is the predetermined energy percentage (such as 0.90 means 90%).
[0106] For example, the corresponding Python pseudo code is:
[0107] #Known conditions
[0108] frequencies = np.linspace(0,fs / 2,len(power_spectral_density)) #Calculate frequency values
[0109] total_energy = np.sum(power_spectral_density) #Total energy
[0110] energy_percentage = 0.90 # 90% of energy
[0111] #Calculate the cumulative energy
[0112] cumulative_energy=np.cumsum(power_spectral_density)
[0113] #Find the point where the cumulative energy reaches 90% of the total energy
[0114] threshold_energy=total_energy*energy_percentage
[0115] bandwidth_index=np.where(cumulative_energy>=threshold_energy)[0][0]
[0116] bandwidth_frequency=frequencies[bandwidth_index]
[0117] If the calculated 90% energy threshold is 0.131, the bandwidth frequency is 31 Hz.
[0118] The main energy of the signal is concentrated in the frequency range of 0 to 31 Hz, and about 90% of the signal energy is contained in this frequency range. This bandwidth range shows that the main dynamics and changes of the current and voltage signals occur in the frequency range of 31 Hz and below. This shows that the signal mainly contains lower-frequency components. Before training the Transformer model, by limiting the frequency domain analysis of the signal to 31 Hz and below, high-frequency noise that does not contain useful information can be effectively filtered out, thereby simplifying the input data and reducing the burden of Transformer model processing; if the signal is mainly concentrated in the lower frequency, a larger convolution kernel or a longer time window can be used, which helps to capture the long-term dependence and periodic changes of the signal; in circuit monitoring and real-time anomaly detection systems, processing speed is often considered a key indicator. By focusing on the main energy frequency bands of current and voltage signals, computational complexity can be reduced and fast response can be achieved.
[0119] Based on the timing analysis results and the frequency domain analysis results of the sequence signal, a first target feature is generated.
[0120] As a possible implementation, the model building unit 20, when building a deep learning model based on a genetic variation algorithm, is used to:
[0121] Determine an objective function, decision variables, and constraints; wherein the objective function is used to maximize the prediction accuracy of the deep learning model and minimize the training and prediction time of the deep learning model;
[0122] Convert deep learning model parameters into a coding form suitable for genetic mutation algorithm processing;
[0123] Initialize the population and generate a series of individuals representing different deep learning model parameter configurations;
[0124] Define a fitness function to evaluate the performance of each individual on a specific performance metric;
[0125] Based on the fitness function results, excellent individuals are determined;
[0126] Perform genetic, crossover and mutation operations based on the selected excellent individuals to generate new individuals and increase the diversity of the population;
[0127] Check whether the termination conditions are met, such as reaching the maximum number of iterations, fitness convergence, or fitness exceeding a preset threshold;
[0128] If the termination condition is reached, the current optimal individual is output as the solution to the problem.
[0129] As a possible implementation, the decision variables may include: deep learning model structure parameters and training parameters, wherein the model structure parameters include at least: the number of layers, the number of heads, and the size of the hidden layer; the training parameters include at least: learning rate, batch size, and regularization parameter; real number encoding is used to represent the various parameters of the model; the initialization population includes: randomly generating a group of first-generation individuals, each individual represents a set of possible model configuration parameters.
[0130] As a possible implementation, the first target condition includes: reaching the maximum number of iterations and fitness convergence; the population is improved through continuous genetic operations, and the iterative operation is terminated in response to the model parameter configuration reaching the preset first target condition, including: through multiple generations of selection, crossover and mutation, the population is continuously iterated and optimized until the termination condition of the maximum number of iterations or fitness convergence is reached.
[0131] In specific implementation, when the goal is to achieve fast and accurate fault prediction, the fitness function should consider both the prediction accuracy and the response time. Therefore, the following multi-objective optimization function can be designed:
[0132] F(x) = ω1×accuracy(x)-ω2×response time(x)
[0133] Among them, x represents the parameter configuration of the Transformer model, and ω1 and ω2 are weight coefficients used to adjust the importance of accuracy and response time. In real-time power system monitoring, response time is a key indicator, so ω2 can be set higher.
[0134] Based on the defined fitness function, each individual in the population can be scored and the individuals with the highest fitness can be selected for genetic operations. This can be done through the following steps: Calculate the fitness of each individual: Calculate according to the above formula; Sorting and selection: Sort the individuals according to the fitness value and select the top individuals as the parents of the next generation.
[0135] Based on the above method, it is possible to ensure that the best performing model configuration is selected for further crossover and mutation operations, gradually optimizing the performance of the entire population. The advantage of this method is that it can flexibly adjust the fitness function to adapt to different optimization objectives and constraints.
[0136] The Transformer model involves multiple decision variables that directly affect the performance and computational complexity of the model:
[0137] Model structure parameters: number of layers (N), number of heads per layer (h), dimension of each head (d), feedforward network dimension (F), etc.
[0138] Training parameters: learning rate, batch size, number of training epochs, regularization method, etc.
[0139] In specific implementations, fuses must operate under limited hardware resources and meet real-time requirements. The constraints may include: hardware resource limitations: model size and computing requirements need to adapt to available processing power and memory; time constraints: the model's prediction response time needs to be short enough to meet the real-time requirements of the circuit protection system; accuracy lower limit: ensure that the model's accuracy reaches an acceptable minimum standard to effectively predict circuit faults.
[0140] For example, if the embodiment of the present application is installed in the power system of an industrial facility, the system requires fault detection to respond in milliseconds to prevent equipment damage. The objective function may need to emphasize response time (high ω2 value) while ensuring that accuracy is not lower than a certain threshold to avoid false positives and false negatives. The selection and adjustment of decision variables, such as selecting the appropriate number of layers and heads, will directly affect the operating efficiency and accuracy of the model. Constraints will ensure that the model runs effectively on the hardware actually deployed on site without exceeding the set budget and resource limits.
[0141] Based on the above approach, the genetic mutation algorithm can systematically explore and optimize the configuration of the Transformer model to achieve efficient and accurate monitoring of the circuit status, thereby significantly improving the performance and adaptability of circuit protection technology.
[0142] In the specific implementation, it is necessary to convert the deep learning model parameters into a coding form suitable for genetic mutation algorithm processing. When optimizing the deep learning parameters based on the Transformer model, these parameters can be encoded in a variety of ways, among which the most common are real number encoding and binary encoding.
[0143] In the specific implementation, taking real number coding as an example, real number coding refers to using real numbers to directly represent each component of the solution, which is particularly effective when dealing with parameters that need to be precisely adjusted, such as the weights or hyperparameters of deep learning models. Real number coding is intuitive, easy to operate, and can be naturally combined with crossover and mutation operations in genetic algorithms.
[0144] In genetic algorithms, initializing the population is the first step, which involves generating a series of random or strategic individuals (solutions), each of which represents a potential parameter configuration. In Transformer model parameter optimization, these individuals can be initialized by randomly selecting the value of each parameter.
[0145] If you need to optimize the following Transformer model parameters: number of layers N (1-6), number of heads per layer h (1-12), dimension of each head d (32-128), dimension of feedforward network F (128-1024), learning rate lr (0.0001-0.01), batch size batch_size (16-128). These parameters can be encoded as a real number vector, with each parameter occupying one position in the vector.
[0146] Each individual represents a possible model configuration, which will be used as the initial population of the genetic algorithm. By evaluating, selecting, crossover and mutating these individuals, the algorithm will explore the parameter space and find the optimal model configuration.
[0147] For example: N=3, h=8, d=64, F=256, lr=0.001, batch_size=32.
[0148] The encoded vector is:
[0149]
[0150] When performing crossover in genetic operations, such as single-point crossover, you can choose a random point to cut between the two parent vectors, and exchange the parts after the cut point to generate two new child vectors; if it is a uniform crossover, you can randomly select a value from the two parent vectors for each parameter to form two new child vectors with a certain probability.
[0151] When performing mutation in genetic operations, a position in the vector can be randomly selected and the parameters at that position can be randomly perturbed (for example, a small random value can be added or subtracted from the learning rate). The magnitude and probability of the mutation can be adjusted according to the needs of the actual problem.
[0152] Genetic Operation Examples:
[0153] If there are two parameter vectors of "parent" individuals:
[0154]
[0155] For single-point crossover, a crossover point can be randomly selected. If the selected crossover point is after the third parameter, the parts of the two parents after the crossover point are exchanged.
[0156] The result after performing the crossover:
[0157]
[0158] For the mutation operation, taking random mutation as an example, for generation 1, a parameter can be randomly selected for mutation. If the learning rate (the fifth parameter) is selected, a small random perturbation is used, such as increasing the learning rate by 0.001.
[0159] Offspring 1 after mutation:
[0160] Mutant offspring 1:
[0161] This mode of operation enables the genetic algorithm to explore the parameter space and potentially find a better solution than any of the parents.
[0162] After the crossover and mutation operations, it is necessary to check whether the newly generated offspring meet the constraints of the model. For example:
[0163] Make sure the number of layers N, the number of heads h, and the batch size batch_size are still integers, and make sure the learning rate lr is still in a reasonable range, such as [0.0001, 0.01].
[0164] If any parameter exceeds the set limit, it can be adjusted by clipping or reassigning the value.
[0165] Based on the above method, the genetic mutation algorithm continuously optimizes the parameters of the model in order to achieve the best accuracy and response speed, and ultimately achieve efficient and accurate monitoring of the power system.
[0166] Among them, real number encoding makes it easy to add parameter constraints. For example, if the number of layers N must be an integer and between 1 and 10, a correction step can be added after the genetic operation to ensure that N still meets this condition. Similarly, the learning rate and batch size can also be limited to a specific range according to the specific task objectives.
[0167] In the genetic algorithm, the population is improved through continuous genetic operations until the preset first target condition is reached, and then the iteration operation is terminated and the configuration parameters of the deep learning model at this time are output. In each iteration, the algorithm calculates the fitness of each individual and selects the individual with the highest fitness. Then it checks whether the preset first target condition is reached. If it is reached, the configuration parameters of the current optimal individual are output and the iteration is terminated. If it is not reached, the population is improved using genetic operations, and then the next generation of iterations is continued. Finally, the configuration parameters of the optimal individual when the preset conditions are reached are output.
[0168] In this way, genetic algorithms can automatically optimize the parameter configuration of deep learning models to achieve pre-set performance goals. The advantage of this method is that it can search and find the optimal solution in the parameter space without manually adjusting the parameters.
[0169] As a possible implementation manner, the model building unit 20, when building a deep learning model based on a genetic variation algorithm and updating the deep learning model based on the first monitoring data of the target circuit generated by the data collection unit 10, is used to:
[0170] Monitor the performance of the deep learning model, and in response to the performance of the deep learning model reaching a preset update threshold, trigger the deep learning model update and perform the following steps:
[0171] Based on the first monitoring data of the target circuit collected by the data collection unit 10, the configuration parameters of the deep learning model are dynamically adjusted using a genetic mutation algorithm.
[0172] In the specific implementation, performance monitoring indicators such as accuracy, response time, loss rate, etc. can be set, and preset update thresholds for each indicator can be set. For example, when the accuracy drops below 85%, the response time exceeds 2 seconds, or the loss rate rises by more than 20%, an update is triggered. If any indicator does not meet the preset conditions, the parameter update process of the model is triggered.
[0173] Use the updated model parameters to test on the monitoring data to evaluate the performance of the new model. If the performance of the new model is significantly improved or other stopping conditions are met (such as reaching the maximum number of iterations, fitness convergence, etc.), the new model is selected as the main model. Otherwise, continue the iterative process of the genetic algorithm.
[0174] The data processing unit 30 is used to receive the first monitoring data sent by the data collection unit 10, and based on the Transforme model, predict the state of the target circuit in real time to generate first prediction data; send the first prediction data to the execution unit 40; wherein the first prediction data includes: the normal / abnormal state of the circuit, the abnormality type, and the predicted fault location.
[0175] As a possible implementation mode, the execution unit 40, when performing a preset processing operation on the fuse based on the first prediction data, includes:
[0176] In response to the first prediction data indicating that the probability that the target circuit is about to be short-circuited or overloaded at the predicted fault location is greater than or equal to 95%, triggering a fuse to physically cut off the circuit;
[0177] In response to the first prediction data indicating that the probability that the target circuit is about to experience a short circuit or an overload at the predicted fault location is greater than or equal to 1% and less than 95%, preheating the fuse to a preset temperature;
[0178] In response to the first prediction data indicating that the probability that the target circuit is about to be short-circuited or overloaded at the predicted fault location is less than 1%, keeping the fuse closed to maintain the connection of the target circuit;
[0179] In response to the manual disconnect switch being activated, the fuse is triggered to physically disconnect the circuit.
[0180] The embodiment of the present application can perform adaptive responses in various scenarios, optimize the circuit protection mechanism to achieve rapid circuit breaking, and when the system predicts that the probability of a fault is very high, the execution unit 40 will immediately cut off the circuit. This direct physical circuit breaking operation can prevent an impending short circuit or overload, thereby avoiding possible equipment damage or more serious safety accidents.
[0181] In situations where the probability of a fault is low but there is still a risk, the fuse is preheated to a preset temperature instead of immediately breaking the circuit. This preheating operation allows the fuse to respond faster when necessary to achieve a quick circuit break, while avoiding the energy waste and equipment wear caused by frequent circuit breaking.
[0182] When the probability of a fault is predicted to be extremely low, the fuse will continue to remain closed to ensure normal operation of the circuit. This strategy helps ensure the stability of power supply and continuous operation of the system, avoiding unnecessary interruptions.
[0183] In the event of a need for human intervention or an emergency, the activation of the manual disconnect switch can immediately disconnect the circuit. This feature provides additional safety and allows operators to control the circuit status in unpredictable system conditions.
[0184] The entire system ensures circuit safety and optimizes operational efficiency by making comprehensive use of prediction data and different response strategies. Compared with traditional fuse systems, this intelligent protection method can more dynamically adapt to the actual conditions of the circuit, reduce unnecessary maintenance costs and equipment losses, and improve the system's ability to prevent complex faults.
[0185] Example 2
[0186] Based on the same inventive concept, the embodiment of the present application also provides a manufacturing method corresponding to a fuse based on fast circuit breaking technology. Since the principle of solving the problem by the control method in the embodiment of the present application is similar to that of the above-mentioned fuse based on fast circuit breaking technology in the embodiment of the application, the implementation of the manufacturing method can refer to the implementation of Example 1, and the repeated parts will not be repeated.
[0187] A method for manufacturing a fuse based on fast-breaking technology comprises the following steps:
[0188] Provide a circuit board, which is designed with reserved positions and circuit layout for installing a data collection unit, a model building unit, a data processing unit, an execution unit and a manual disconnect switch;
[0189] A data collection unit is installed at a reserved position of the circuit board, the data collection unit comprising: a current sensor, a voltage sensor and a data preprocessing module, the sensor is responsible for monitoring the current and voltage of the target circuit, and sending the monitored analog signal to the data preprocessing module to perform data preprocessing on the signal;
[0190] Installing a model building unit at a reserved position on the circuit board, the unit having a built-in computing core of a genetic mutation algorithm and a storage unit required therefor;
[0191] Installing a data processing unit at a reserved position on the circuit board, the data processing unit comprising a processor and a necessary storage unit for running a deep learning model;
[0192] Installing an execution unit at a reserved position of the circuit board, the execution unit integrating a fuse unit, the fuse unit consisting of a conductive path and a fusing mechanism, and being used to physically disconnect the circuit when receiving an instruction from the data processing unit;
[0193] Install a manual circuit breaker on the reserved position of the circuit board, the manual circuit breaker is used for the user to immediately manually disconnect the circuit when the predicted data or system logic cannot accurately determine the circuit state;
[0194] Through the wires and connection points preset on the circuit board, the electrical signal connection and data interaction between the data collection unit, the model building unit, the data processing unit, the execution unit and the manual disconnect switch are ensured;
[0195] A power management module is provided on the circuit board to provide power to the above-mentioned units and ensure power management and power distribution of other electronic components on the circuit board;
[0196] Test the assembled fuse to ensure proper integration of the various units and functionality of the fuse.
[0197] Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0198] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0199] In the several embodiments provided in the present application, it should be understood that the disclosed system can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the coupling or communication connection between devices or units can be electrical or other forms.
[0200] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A fuse based on fast-breaking technology, characterized in that: include: A data collection unit, configured to collect current and voltage signals of a target circuit in real time and perform data preprocessing to generate first monitoring data; a model construction unit, configured to construct a deep learning model based on a genetic mutation algorithm, and update the deep learning model based on the first monitoring data of the target circuit generated by the data collection unit; a data processing unit, configured to receive the first monitoring data sent by the data collection unit, and predict the state of the target circuit in real time based on the deep learning model, generate first prediction data, and send the first prediction data to the execution unit; wherein the first prediction data includes: a normal / abnormal state of the circuit, an abnormality type, and a predicted fault location; An execution unit is configured to receive the first prediction data sent by the data processing unit, and perform a preset processing operation on the fuse based on the first prediction data.
2. The fuse based on fast-breaking technology according to claim 1, characterized in that: The data collection unit includes multiple types of sensors for collecting current and voltage signals of the target circuit in parallel, wherein the multiple types of sensors include: a current sensor for measuring the real-time current in the target circuit; a voltage sensor for measuring the real-time voltage across the target circuit; when collecting the current and voltage signals of the target circuit in real time, the data collection unit is further configured to: Use timestamp to add acquisition time to each acquired current and voltage signal; Use a unified trigger signal to start data acquisition from all sensors simultaneously, ensuring the time consistency of current and voltage signals.
3. The fuse based on fast-breaking technology according to claim 1, characterized in that: The data collection unit is further configured to: Use digital filters to remove high-frequency noise from current and voltage signals; After removing high-frequency noise, the current and voltage signals are compressed to the range of -1 to 1. The calculation formula is: where X norm is the compressed current and voltage signal, X is the original current and voltage signal, X min and X max are the minimum and maximum values of the original current and voltage signals respectively; A first target feature is extracted from the current and voltage signals compressed into a range of -1 to 1 to generate first monitoring data.
4. The fuse based on fast-breaking technology according to claim 3, characterized in that: The first target feature includes: signal mean, signal peak, signal variance, signal fundamental, signal harmonics, signal resolution, and signal bandwidth; when the data collection unit extracts the first target feature from the current and voltage signals compressed to the range of -1 to 1, it is used to: Perform time domain analysis on the compressed current and voltage signals to calculate the signal peak value, signal mean value, and signal variance; Based on Fourier transform, the time domain signal is converted into a frequency domain signal and the signal is analyzed in the frequency domain; Based on the Fourier transform results, determining the signal fundamental wave, signal harmonics, signal resolution, and signal bandwidth corresponding to the current and voltage signals; The first target feature is generated based on the timing analysis results and frequency domain analysis results of the current and voltage signals.
5. The fuse based on fast-breaking technology according to claim 1, characterized in that: The model building unit builds a deep learning model based on a genetic variation algorithm, and is used to: Determining an objective function, decision variables, and constraints; wherein the objective function is used to maximize the prediction accuracy of the deep learning model and minimize the training and prediction time of the deep learning model; Convert deep learning model parameters into an encoding form that can be processed by genetic mutation algorithms; Initialize the population and generate multiple individuals representing different deep learning model parameter configurations; Define the fitness function to evaluate the performance of each individual on different performance indicators; Based on the fitness function evaluation results, excellent individuals are determined; Perform genetic, crossover, and mutation operations based on identified excellent individuals to generate new individuals and increase the diversity of the population; Improve the population through continuous genetic operations, terminate the iterative operation in response to reaching a preset first target condition, and output the configuration parameters of the deep learning model at this time; The deep learning model is trained and deployed based on the configuration parameters of the deep learning model output when the iterative operation is terminated, and the first target feature.
6. The fuse based on fast-breaking technology according to claim 5, characterized in that: The decision variables include: deep learning model structure parameters and training parameters, wherein the model structure parameters include at least: the number of layers, the number of heads, and the size of the hidden layer; the training parameters include at least: learning rate, batch size, and regularization parameter; the encoding form that can be processed by the genetic mutation algorithm includes: real number encoding; the initialization population includes: randomly generating a group of first-generation individuals, each individual representing a set of possible model configuration parameters.
7. The fuse based on fast-breaking technology according to claim 5, characterized in that: The first target condition includes: reaching the maximum number of iterations and fitness convergence; improving the population through continuous genetic operations, terminating the iterative operation in response to the model parameter configuration reaching the preset first target condition, including: continuously iteratively optimizing the population through multiple generations of selection, crossover and mutation until the termination condition of the maximum number of iterations or fitness convergence is reached.
8. The fuse based on fast-breaking technology according to claim 1, characterized in that: The model construction unit, when constructing the deep learning model based on the genetic mutation algorithm and updating the deep learning model based on the first monitoring data of the target circuit collected by the data collection unit, is used to: Monitor the performance of the deep learning model, and in response to the performance of the deep learning model reaching a preset update threshold, trigger a deep learning model update and perform the following steps: Based on the first monitoring data of the target circuit collected by the data collection unit, a genetic mutation algorithm is used to dynamically adjust the configuration parameters of the deep learning model.
9. The fuse based on fast-breaking technology according to claim 1, characterized in that: The execution unit, when performing a preset processing operation on the fuse based on the first prediction data, includes: In response to the first prediction data indicating that the probability that the target circuit is about to experience a short circuit or overload at the predicted fault location is greater than or equal to 95%, triggering a fuse to physically cut off the circuit; In response to the first prediction data indicating that the probability that the target circuit is about to experience a short circuit or overload at the predicted fault location is greater than or equal to 1% and less than 95%, preheating the fuse to a preset temperature; In response to the first prediction data indicating that the probability that the target circuit is about to experience a short circuit or overload at the predicted fault location is less than 1%, keeping the fuse closed to maintain the connection of the target circuit; In response to activation of the manual disconnect switch, the fuse is triggered to physically disconnect the circuit.
10. A method for manufacturing a fuse based on fast-breaking technology, which is implemented based on the fuse based on fast-breaking technology according to any one of claims 1 to 9, characterized in that: Including steps: Provide a circuit board designed with reserved locations and circuit layout for mounting a data collection unit, a model building unit, a data processing unit, an execution unit, and a manual disconnect switch; A data collection unit is installed in a reserved position on the circuit board. The data collection unit includes: a current sensor, a voltage sensor, and a data preprocessing module. The sensor is responsible for monitoring the current and voltage of the target circuit and sending the monitored analog signal to the data preprocessing module for data preprocessing. Installing a model building unit at a reserved position on the circuit board, the unit having a built-in computing core of the genetic mutation algorithm and a storage unit required therefor; Installing a data processing unit in a reserved position on the circuit board, the data processing unit including a processor and a necessary storage unit for running a deep learning model; An execution unit is installed at a reserved position on the circuit board, wherein the execution unit is integrated with a fuse unit, the fuse unit being composed of a conductive path and a fusing mechanism, and being used to physically disconnect the circuit when receiving an instruction from the data processing unit; A manual circuit breaker is installed in a reserved position on the circuit board. The manual circuit breaker is used for the user to immediately manually disconnect the circuit when the predicted data or system logic cannot accurately determine the circuit status; Through the preset wires and connection points on the circuit board, the electrical signal connection and data interaction between the data collection unit, the model building unit, the data processing unit, the execution unit and the manual circuit breaker are ensured; A power management module is provided on the circuit board to provide power to the above-mentioned units and ensure power management and distribution of other electronic components on the circuit board; Test the assembled fuse to ensure proper integration of the various units and functionality of the fuse.
