Electric bicycle direct current series fault arc detection method and device and storage medium

Through the artificial rabbit algorithm initialized by the least squares support vector machine model and Tent chaos map, combined with the current signal eigenvector and variational mode decomposition, an electric bicycle DC series fault arc detection model is constructed, which solves the difficulty of detecting DC series in the existing technology. The problem of arc fault realizes efficient fault identification and prevention of fire accidents.

CN118747332APending Publication Date: 2024-10-08WENZHOU UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410735978.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively detect DC series fault arcs generated during charging and driving of electric bicycles, leading to an increased risk of fire accidents, and existing protection devices cannot detect and prevent arc faults in time.

Method used

Using the least squares support vector machine model combined with the artificial rabbit algorithm initialized by Tent chaos map, by obtaining the current signal, calculating the kurtosis, margin, energy entropy and fuzzy entropy as feature vectors, variational mode decomposition is performed to remove high-order harmonics. Wave, construct a DC series fault arc detection model, and use Hall current sensors and arc detection modules to collect and detect current signals in real time.

Benefits of technology

The sensitivity and accuracy of fault detection are improved, and the electric bicycle DC series fault arc can be identified in a short time, reducing the risk of fire accidents, and the detection accuracy reaches 98.75%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747332A_ABST
    Figure CN118747332A_ABST
Patent Text Reader

Abstract

The invention discloses an electric bicycle direct-current series fault arc detection model training method, which comprises the following steps of: acquiring a sample current signal, dividing the sample current signal into normal type and fault type sample data, calculating a feature vector of each piece of sample data, obtaining a sample data set, dividing the sample data set into a training set and a test set, and constructing an input matrix; a least square support vector machine is used as a basic model, and parameters of the basic model are optimized based on a Tent chaotic mapping initialization artificial rabbit algorithm; and training and testing the model after parameter optimization by using the training set and the test set to obtain a direct-current series fault arc detection model. The initial population of the artificial rabbit optimization algorithm is initialized by using the tent chaotic mapping to optimize the parameters of the least square support vector machine, so that the diversity of the initial population can be increased, and the algorithm is prevented from falling into a local optimal solution. Kurtosis and margin indexes and the energy entropy and the fuzzy entropy of the IMF1 component are selected as four-dimensional fault feature vectors, and the direct-current series fault arc of the electric bicycle can be quickly and accurately identified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The patent of this invention relates to the technical field of DC series fault arc detection, and in particular to a DC series fault arc detection method, model training method, equipment and storage medium for electric bicycles. Background Art

[0002] Most electric bicycles on the market rely on traditional overcurrent protection devices, such as circuit breakers or fuses. These devices can quickly detect and cut off the circuit in time when a short circuit occurs. However, when a series fault arc occurs in the circuit of an electric bicycle and continues to burn, the circuit current will be less than the main circuit current of the original load, so it cannot be detected and protected in time by existing protection devices. In addition, the speed limit module of the new national standard electric bicycle is often removed privately. Some merchants even replace the controller for buyers in order to exceed the standard speed limit. After the motor is overloaded, it is likely to cause a fault arc, which will lead to a fire accident.

[0003] There are three main methods for identifying DC series fault arcs: the first is an identification method based on the mathematical model of DC series fault arcs, which establishes a time-varying relationship equation between parameters such as arc current, voltage, power, and energy, and establishes a mathematical model to assist in detecting arcs. However, the mathematical model has poor versatility and is difficult to verify in practice, and most of them remain in the theoretical research and simulation stage; the second is an identification method based on physical effects, which identifies the occurrence of fault arcs by capturing physical effects such as arc light, arc sound, and electromagnetic radiation when a fault arc occurs, but the detection device needs to be installed near the fault point, so it is usually suitable for identifying the occurrence of fault arcs in specific locations, such as in switch cabinets; the third is an identification method based on loop voltage and current signals, which detects the voltage or current signal in the loop, extracts effective feature quantities, and sets thresholds to determine whether a fault arc occurs in the loop. Compared with the first two methods, this method has a wider range of applications and is more convenient.

[0004] There are few studies on DC series fault arcs in electric bicycles at home and abroad. The results related to the electrical safety of electric bicycles are mainly concentrated on the research and analysis of the causes of fires, and most of them are biased towards the research related to thermal runaway of batteries. Most electric bicycles on the market use brushless DC motors, which replace mechanical commutation with electronic commutators. When one phase of the brushless DC motor generates a fault arc in a short period of time, the motor may still move to the next phase due to inertia, making it impossible to detect the fault. In addition, the motor itself has a large amount of noise interference, and the characteristics of the starting current, acceleration current, and braking current are very similar to the characteristics of the DC series fault arc current. There are cases of false fault detection and missed fault detection. Therefore, it is necessary to study new methods to detect DC series fault arcs in electric bicycles during charging and driving. Summary of the invention

[0005] In view of the problems existing in the prior art, the present invention aims to provide an electric bicycle DC series fault arc detection method and a model training method, which can timely detect the DC series fault arc generated during the charging or driving of the electric bicycle, and prevent the occurrence of fire accidents caused by the DC series fault arc of the electric bicycle.

[0006] To achieve the above object, the present invention discloses a method for training a DC series fault arc detection model for an electric bicycle, comprising:

[0007] Get the sample current signal,

[0008] The sample current signal is divided into normal class and fault class sample data, and labels are added to the sample data of different categories respectively, and the feature vector of each sample data is calculated to obtain a sample data set, and the sample data set is divided into a training set and a test set according to a certain ratio,

[0009] The sample data in the training set and the test set are constructed into an input matrix,

[0010] A least squares support vector machine is used as a basic model, and an artificial rabbit algorithm based on Tent chaos map initialization is adopted to optimize the parameters of the basic model;

[0011] The model after parameter optimization is trained and tested using the training set and test set constructed as the input matrix to obtain a trained DC series fault arc detection model.

[0012] Furthermore, the calculating of the feature vector of each sample data specifically includes:

[0013] Calculate the kurtosis and margin index of the sample data as the time domain characteristics of the sample data;

[0014] Based on the sparse index, the appropriate decomposition layer number K is selected, and the sample data divided into different categories are subjected to variational mode decomposition to remove the high-order harmonics in the current signal. The energy entropy and fuzzy entropy of the IMF1 component are calculated as the time-frequency domain features of the sample data.

[0015] The calculated kurtosis, margin index, energy entropy and fuzzy entropy constitute a feature vector.

[0016] Furthermore, based on the sparsity index, a suitable decomposition layer number K is selected to perform variational mode decomposition on the sample data divided into different categories to remove high-order harmonics in the current signal. The specific process includes:

[0017] (1) Initialize the parameters of the variational mode decomposition algorithm, set the decomposition mode number K to 1, and perform variational mode decomposition on the current signals divided into different categories;

[0018] (2) Calculate the marginal spectra of the K intrinsic mode components after decomposition, and calculate the sparsity of each component based on the obtained marginal spectra, and we can get:

[0019]

[0020] Among them, MS i is the marginal spectrum signal of the i-th component, s i is the sparsity of the i-th component of VMD decomposition under this K value;

[0021] (3) Calculate the energy weight factor of each eigenmode component and multiply the calculated energy weight factor by the sparsity of each component to obtain

[0022] To the final sparsity of each component, that is:

[0023] W i =max{MS I} / max{max{MS1}...max{MS k}} (2)

[0024]

[0025] (4) The average value of the sparsity of each component is the sparsity index S of VMD decomposition under this K value. K ;

[0026] (5) Compare S k With S k-1 , if K>2, and S k k-1 , then K-1 is determined to be the optimal decomposition K value. If not, let K increase by 1 and continue to iterate to find the optimal value.

[0027] Furthermore, the least squares support vector machine adopts a radial basis kernel function as a kernel function;

[0028] The artificial rabbit algorithm of the tent chaotic initialization population is used to optimize the penalty coefficient γ and the kernel parameter σ of the least squares support vector machine.

[0029] The present invention also discloses a DC series fault arc detection model training device for an electric bicycle, comprising: a signal acquisition unit, a data processing unit, and a model building unit;

[0030] The signal acquisition unit is used to acquire a sample current signal;

[0031] The data processing unit is used to divide the sample current signal into normal class and fault class sample data, and add labels to the sample data of different categories respectively, calculate the feature vector of each sample data, and obtain the sample data set; ​

[0032] The model building unit is used to divide the sample data set into a training set and a test set according to a certain ratio, and construct the sample data in the training set and the test set into an input matrix, and use the least squares support vector machine as the basic model, and adopt the artificial rabbit algorithm based on Tent chaos map initialization to optimize the parameters of the basic model; use the training set and the test set constructed as the input matrix to train and test the model after parameter optimization, and obtain a trained DC series fault arc detection model.

[0033] Furthermore, the calculating of the feature vector of each sample data specifically includes:

[0034] Calculate the kurtosis and margin index of the sample data as the time domain characteristics of the sample data;

[0035] Based on the sparse index, the appropriate decomposition layer number K is selected, and the sample data divided into different categories are subjected to variational mode decomposition to remove the high-order harmonics in the current signal. The energy entropy and fuzzy entropy of the IMF1 component are calculated as the time-frequency domain features of the sample data.

[0036] The calculated kurtosis, margin index, energy entropy and fuzzy entropy constitute a feature vector.

[0037] The present invention also discloses a method for detecting a DC series fault arc of an electric bicycle, comprising:

[0038] Get the current signal to be measured,

[0039] Calculate the characteristic vector of the current signal to be measured,

[0040] The trained electric bicycle DC series fault arc detection model is used to perform fault detection on the characteristic vector of the current signal to be measured to obtain a fault detection result, wherein the electric bicycle DC series fault arc detection model is trained by an electric bicycle DC series fault arc detection model training method.

[0041] The present invention also discloses a DC series fault arc detection device for an electric bicycle, comprising:

[0042] Signal acquisition unit, data processing unit, fault identification unit and human-computer interaction unit,

[0043] The signal acquisition unit includes a Hall current sensor, an arc detection module, and a temperature sensor.

[0044] The Hall current sensor is used to collect the current signal of the motor and controller circuit when the electric bicycle is running or the current signal of the battery and charging pile circuit when charging;

[0045] The arc detection module is used to detect arc at the motor connection line;

[0046] The temperature sensor is used to detect the temperature of the battery box;

[0047] The data processing unit is used to calculate the characteristic vector of the current signal to be measured and dynamically draw a current signal curve with a length of 1 s.

[0048] The fault identification unit is used to perform fault detection on the characteristic vector of the current signal to be measured using a trained electric bicycle DC series fault arc detection model to obtain a fault detection result, wherein the electric bicycle DC series fault arc detection model is trained by any of the above electric bicycle DC series fault arc detection model methods,

[0049] The human-computer interaction unit includes a data display module, which is used to display the arc signal, temperature signal, current signal curve with a length of 1s and fault detection result collected by the signal collection unit in real time.

[0050] The present invention also discloses a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the electric bicycle DC series fault arc detection method or the model training method described above is implemented.

[0051] The present invention also discloses an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, any one of the above-mentioned electric bicycle DC series fault arc detection methods or the above-mentioned model training method is implemented.

[0052] The beneficial effects of the present invention include:

[0053] The electric bicycle DC series fault arc detection model training method proposed in the present invention uses tent chaotic mapping to initialize the initial population of the artificial rabbit optimization algorithm to optimize the parameters of the least squares support vector machine, which can increase the diversity of the initial population, thereby reducing the risk of the algorithm falling into a local optimal solution, and at the same time accelerate the global optimization capability. Using tent chaotic mapping to initialize the artificial rabbit algorithm for LS-SVM parameter optimization can provide a more efficient and reliable optimization process, improve the overall performance of the model, and ensure the applicability and stability in various data environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] The present invention will be further described below in conjunction with the accompanying drawings.

[0055] Figure 1 This is a flow chart of a method for detecting a DC series fault arc on an electric bicycle according to an embodiment of the present invention;

[0056] Figure 2 It is a flow chart of a variational mode decomposition algorithm for obtaining an optimal K value from a sparse index in an embodiment of the present invention;

[0057] Figure 3 It is a flow chart of optimizing the least squares support vector machine parameters by the artificial rabbit algorithm of the initial population of the Tent chaotic map in the embodiment of the present invention;

[0058] Figure 4 This is a comparison diagram of population distribution using Tent chaotic mapping initialization and rand() function initialization in an embodiment of the present invention;

[0059] Figure 5 It is a structural schematic diagram of a DC series fault arc detection device for an electric bicycle according to an embodiment of the present invention;

[0060] Figure 6 It is a schematic diagram of an experimental circuit for simulating a DC series fault arc on an electric bicycle in an embodiment of the present invention;

[0061] Figure 7 It is a structural principle diagram of a device for breaking fault arc generation in an embodiment of the present invention;

[0062] Figure 8 This is a diagram showing the identification results of the DC series fault arc identification model for an electric bicycle in an embodiment of the present invention. DETAILED DESCRIPTION

[0063] The technical solutions in the embodiments of the present invention are described clearly below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0064] An embodiment of the present invention provides a method for training a DC series fault arc detection model for an electric bicycle, comprising:

[0065] A sample current signal is obtained, and the sample current signal is collected by a Hall sensor, and the collected current signal is the current signal of the motor and controller loop when the electric bicycle is running or the current signal of the battery and DC power supply loop when charging. The sampling frequency of the Hall sensor is regarded as 100KHz, and the number of sampling points in one cycle is 2000 points. The discrete current signal collected by the Hall sensor is stored in the data storage module, and the loop current signal between the electric bicycle motor and the controller and the loop current signal between the battery and the DC power supply are respectively stored in two different storage units. After storing the discrete signal of 3 power frequency cycles, the data storage module transmits the stored discrete signal data to the data acquisition card.

[0066] The collected loop current signal is processed by analog-to-digital conversion through a data acquisition card, so that the current signal is converted into a digital quantity through ADC.

[0067] The data processing unit is implemented through Matlab, which divides the loop current signal into intervals of three current cycle signal lengths, adds normal and fault class labels to the divided current signals, calculates the characteristic vector of each sample data, and obtains the sample data set.

[0068] The characteristic vector of each sample data is calculated, which is specifically implemented in the following way:

[0069] Calculate the kurtosis and margin index of the sample data as the time domain characteristics of the sample data;

[0070] Based on the sparse index, the appropriate decomposition layer number K is selected, and the sample data divided into different categories are subjected to variational mode decomposition to remove the high-order harmonics in the current signal. The energy entropy and fuzzy entropy of the IMF1 component are calculated as the time-frequency domain features of the sample data.

[0071] The calculated kurtosis, margin index, energy entropy and fuzzy entropy constitute a feature vector.

[0072] The statistical indicator of kurtosis can capture the existence of extreme values ​​in the signal and is very effective in identifying signal mutations caused by arc faults. The margin indicator reflects the relationship between the peak value of the signal and its average level. The peak value of the signal may increase suddenly during an arc fault, resulting in a significant change in the margin indicator. Energy entropy and fuzzy entropy of IMF1: These two characteristic indicators based on IMF1 components can describe the energy distribution and complexity of the signal. Energy entropy and fuzzy entropy are particularly suitable for capturing changes in nonlinear and non-stationary properties caused by arc faults.

[0073] The combined use of these four feature vectors can comprehensively evaluate the state of the signal and improve the sensitivity and accuracy of fault detection. Different features describe the abnormal behavior of the signal from different aspects, complementing each other to provide more information. This method is suitable for occasions that require high reliability and real-time monitoring.

[0074] Among them, the appropriate decomposition layer number K is selected based on the sparse index, and the sample data divided into different categories are subjected to variational mode decomposition, such as Figure 2 As shown, the high-order harmonics in the current signal are removed, and the process specifically includes:

[0075] Initialize the parameters of the variational mode decomposition algorithm, set the decomposition mode number K to 1, and perform variational mode decomposition on the current signals divided into different categories;

[0076] Calculate the marginal spectra of the K intrinsic mode components after decomposition, and calculate the sparsity of each component based on the obtained marginal spectra, and we can get:

[0077]

[0078] Among them, MS i is the marginal spectrum signal of the i-th component, s i is the sparsity of the i-th component of VMD decomposition under this K value;

[0079] (3) Calculate the energy weight factor of each eigenmode component, and multiply the calculated energy weight factor by the sparsity of each component to obtain the final sparsity of each component, that is:

[0080] W i =max{MS I} / max{max{MS1}...max{MS k}} (2)

[0081]

[0082] (4) The average value of the sparsity of each component is the sparsity index S of VMD decomposition under this K value. K ;

[0083] (5) Compare S k With S k-1 , if K>2, and S k k-1 , then K-1 is determined to be the optimal decomposition K value. If not, let K increase by 1 and continue to iterate to find the optimal value of K.

[0084] The model building unit is implemented by Matlab. The model building unit optimizes the least squares support vector machine parameters by the artificial rabbit algorithm of the Tent chaos initialization population. The process is as follows Figure 3 The feature vector obtained by the data processing unit is divided into a training set and a test set, for example, divided in a ratio of 4:1, and the training set and the test set are constructed into an input matrix and then input into the optimized support vector machine for training to obtain an electric bicycle DC series fault arc recognition model;

[0085] The least squares support vector machine adopts a radial basis function as the sum function of the least squares support vector machine, wherein the radial basis kernel function is:

[0086]

[0087] In the formula, σ is the kernel parameter, x is any point in space, and x k is the kernel function center.

[0088] ​The artificial rabbit algorithm of the tent chaos initialization population optimizes the penalty coefficient γ and kernel parameter σ of the least squares support vector machine. These two parameters have a great influence on the classification accuracy of the least squares support vector machine model, and the optimal value needs to be searched through the optimization algorithm. The artificial rabbit optimization algorithm simulates the survival strategy of rabbits, and uses energy contraction to switch between the two strategies of detour foraging and random hiding to fully search for the optimal solution in space. The rabbit population of the artificial rabbit algorithm selects the corresponding strategy according to the energy value A, where the energy value A is:

[0089]

[0090] Where T is the total number of iterations, t is the current number of iterations, and r is a random number in the range of (0,1). The energy value A is only related to the current number of iterations. When the calculated energy value A is greater than 1, the detour foraging strategy is selected, otherwise the random hiding strategy is selected.

[0091] In an embodiment of the present invention, a rabbit is used to represent a parameter combination of a model, such as a penalty coefficient γ and a kernel parameter σ. The detour foraging strategy of the artificial rabbit algorithm is an exploration strategy, which is used for the rabbit group to search for the best possible results within the parameter range. In the detour foraging strategy, rabbits usually randomly visit the locations of other rabbits for foraging, and add disturbances R during the foraging process to expand the exploration range. That is, a parameter combination (γ, σ) randomly selects another set of parameters (γ′, σ′) as a reference point, and adds a disturbance R to the reference point to generate a new parameter combination. This disturbance helps to explore the parameter space around the reference point and may lead to a better solution. The disturbance R in the exploration strategy is related to the rabbit's moving step length L. A longer step length is conducive to global exploration, while a shorter step length is conducive to development:

[0092]

[0093] Where r2 is a random number in the range (0,1), t is the current iteration number, and T is the maximum iteration number.

[0094] The perturbations of the penalty coefficient γ and the kernel parameter σ can be generated as follows:

[0095] Rγ=L×φ1 Rσ=L×φ2

[0096] Among them, φ1 and φ2 are numbers randomly drawn from a uniform distribution or other distribution (such as normal distribution) in the range of [-1,1], representing the direction and magnitude of the random disturbance.

[0097] Add the calculated perturbations to the selected reference points to generate new parameter combinations:

[0098] γnew=γ′+Rγ σnew=σ′+Rσ

[0099] Here, γnew and σnew are new parameter combinations obtained by adding perturbations to the reference point (γ′, σ′).

[0100] The random hiding strategy of the artificial rabbit algorithm is a development strategy, which is used to search for the best value in a small range near the optimal value found in the process of detour foraging, and further improve the accuracy of the model. In the random hiding strategy, the rabbit group randomly generates d caves in its own territory, and randomly selects a cave to hide in. Each cave represents a different set of γ (penalty coefficient) and σ (kernel parameter) values, and a set of parameters is randomly selected as the final choice of this iterative step. The size of the range of caves generated is related to the hidden parameter H:

[0101]

[0102] Where t is the current iteration number, T is the maximum iteration number, and r4 is a random number in the range of (0,1).

[0103] The tent chaotic mapping initializes the rabbit population to optimize the initial population of the artificial rabbit algorithm, improve the algorithm convergence speed, and improve the optimization accuracy. The mapping steps are as follows:

[0104] Step 1: Take a suitable chaos parameter δ∈rand(0,1) and randomly generate an initial population x0 according to the solution space range:

[0105] x0=(Low+rand(N,Dim).*(Up-Low)). / Up

[0106] (8)Where N is the population size and Dim is the problem dimension.

[0107] Step 2: Based on the initial population x0, generate the chaotic sequence x by combining the Tent chaotic map i+1 :

[0108]

[0109] Among them, i is the number of iterations of the chaotic sequence.

[0110] Step 3: Combine the chaotic sequence to obtain the initial population of the Tent chaotic map:

[0111] X0=x.*Up (10)

[0112] The distribution comparison of the population initialized by the Tent chaotic map used in this embodiment and the population initialized by the rand() function is shown in the figure below: Figure 4 shown.

[0113] An embodiment of the present invention also discloses a method for detecting a DC series fault arc for an electric bicycle, which collects a loop current signal between a motor and a controller when the electric bicycle is running, or a loop current signal between a battery and a DC power supply during the charging process of the electric bicycle, calculates a characteristic vector of the collected loop current signal to be tested, and uses a fault identification unit to determine whether a DC series fault arc occurs in the loop based on a trained electric bicycle DC series fault arc identification model, and outputs an identification result.

[0114] The steps for calculating the characteristic vector of the collected loop current signal to be tested are as follows:

[0115] Calculate the kurtosis and margin index of the data to be tested as the time domain characteristics of the data to be tested;

[0116] Based on the sparsity index, the appropriate decomposition layer number K is selected, and the variational mode decomposition is performed on the test data divided into different categories to remove the high-order harmonics in the current signal, and the energy entropy and fuzzy entropy of the IMF1 component are calculated as the time-frequency domain features of the test data;

[0117] The calculated kurtosis, margin index, energy entropy and fuzzy entropy constitute a feature vector.

[0118] In the embodiment of the present invention, the method steps for calculating the characteristic vector of the collected loop current signal to be tested are the same as the steps for calculating the characteristic vector of the sample loop current signal during the model training process, and will not be repeated here.

[0119] In the embodiment of the present invention, different detection models are trained for the loop current signal between the motor and the controller when the electric bicycle is running and the loop current signal between the battery and the DC power supply during the charging process of the electric bicycle, but the training method is the same. In actual detection, two different Hall current sensors are used to collect the two different loop current signals respectively, and input them into their respective detection models for detection.

[0120] The DC series fault arc detection method for an electric bicycle proposed in the present invention can detect the DC series fault arc generated by the electric bicycle in two situations, namely, when the electric bicycle is running and when it is charging.

[0121] In the present invention, a DC series fault arc detection device for electric bicycles is provided. Figure 5 The device includes a data acquisition module, a data storage module, a data display module, a data analysis and processing module, a DC series fault arc identification module and a human-computer interaction interface module.

[0122] The data acquisition module includes a Hall sensor, an arc detection module, and a temperature sensor. The Hall sensor is used to collect the loop current during the driving or charging process of the electric bicycle, the arc detection module is used to collect the arc signal at the motor connection, and the temperature sensor is used to collect the battery box temperature. The Hall sensor sends the collected loop current signal to the data storage module, and the arc detection module and the temperature sensor send the collected signals to the data display module for real-time display.

[0123] The data storage module includes a motor current storage unit and a battery current storage unit, which are used to store discrete current signals of the motor circuit and the battery charging circuit respectively. Every three power frequency cycles are stored and transmitted to the data acquisition card, which is then sent to the data analysis and processing module after analog-to-digital conversion by the data acquisition card.

[0124] The data display module is used to display the arc signal and temperature signal transmitted by the data acquisition module in real time, draw the current curve in real time and realize real-time monitoring;

[0125] The data analysis and processing module is used to read the current signal in the data acquisition card and analyze and process the data to calculate the characteristic vector of the data;

[0126] A DC series fault arc recognition module, i.e., a fault recognition unit, is used to determine whether a DC series fault arc occurs in the circuit based on the feature vector obtained by the data analysis and processing module and using a trained model;

[0127] The human-machine interaction interface module includes a data display module for real-time display of arc light signals, temperature signals and current signals; when a DC series fault arc occurs, an alarm message is sent to the user;

[0128] In the embodiment of the present invention, Matlab App Designer is used to construct the human-computer interaction interface 6.

[0129] The data acquisition module of the electric bicycle DC series fault arc detection device is installed in the corresponding position inside the electric bicycle. The data storage module, data display module, data analysis and processing module, DC series fault arc identification module and human-computer interaction interface are all written using Matlab App Designer. Users do not need to install the Matlab environment when using it, but only need to install the written independent App.

[0130] The present invention has low requirements on hardware equipment, has fast collection and judgment of current data, and can detect the DC series fault arc of electric bicycles in a short time, thus preventing the occurrence of early fire accidents. Figure 8As shown, the online detection accuracy of the DC series fault arc of the electric bicycle in this embodiment is as high as 98.75%, indicating that the DC series fault arc detection method and device for the electric bicycle described in the present invention can effectively identify the DC series fault arc generated by the electric bicycle under driving or charging conditions.

[0131] Based on the same technical concept, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements any of the above-mentioned electric bicycle DC series fault arc detection methods or the above-mentioned model training methods.

[0132] A person skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc.

[0133] Based on the same technical concept, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements any one of the above-mentioned electric bicycle DC series fault arc detection methods or the above-mentioned model training methods.

[0134] The electronic device may be Figure 1 The terminal device and / or server shown in the embodiment of the present application does not limit the specific connection medium between the processor and the memory, and the processor and the memory are connected by a bus as an example. The bus can be divided into an address bus, a data bus, a control bus, etc. In this embodiment, the processor can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor to be executed, or a combination of hardware and software modules in the processor can be executed.

[0135] It is worth noting that in the above method and device embodiments, the various step modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0136] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present application and cannot be considered to limit the scope of implementation of the present application. All equivalent changes and improvements made within the scope of the present application should still fall within the scope of the patent coverage of the present application.

Claims

1. A DC series fault arc detection model training method for electric bicycles, characterized in that: include: Get the sample current signal, The sample current signal is divided into normal class and fault class sample data, and labels are added to the sample data of different categories respectively, and the feature vector of each sample data is calculated to obtain a sample data set, and the sample data set is divided into a training set and a test set according to a certain ratio, The sample data in the training set and the test set are constructed into an input matrix, A least squares support vector machine is used as a basic model, and an artificial rabbit algorithm based on Tent chaos map initialization is adopted to optimize the parameters of the basic model; The model after parameter optimization is trained and tested using the training set and test set constructed as the input matrix to obtain a trained DC series fault arc detection model.

2. The method according to claim 1, characterized in that The calculation of the feature vector of each sample data specifically includes: Calculate the kurtosis and margin index of the sample data as the time domain characteristics of the sample data; Based on the sparsity index, the appropriate decomposition layer number K is selected, and the sample data divided into different categories are subjected to variational mode decomposition to remove the high-order harmonics in the current signal. The energy entropy and fuzzy entropy of the IMF1 component are calculated as the time-frequency domain features of the sample data. The calculated kurtosis, margin index, energy entropy and fuzzy entropy constitute a feature vector.

3. The method according to claim 2, characterized in that Based on the sparse index, the appropriate decomposition layer number K is selected, and the sample data divided into different categories are subjected to variational mode decomposition to remove the high-order harmonics in the current signal. The specific process includes: (1) Initialize the parameters of the variational mode decomposition algorithm, set the decomposition mode number K to 1, and perform variational mode decomposition on the current signals divided into different categories; (2) Calculate the marginal spectra of the K intrinsic mode components after decomposition, and calculate the sparsity of each component based on the obtained marginal spectra, and we can get: Among them, MS i is the marginal spectrum signal of the i-th component, s i is the sparsity of the i-th component of VMD decomposition under this K value; (3) Calculate the energy weight factor of each eigenmode component, and multiply the calculated energy weight factor by the sparsity of each component to obtain the final sparsity of each component, that is: W i =max{MS I } / max{max{MS1}...max{MS k }} (2) (4) The average value of the sparsity of each component is the sparsity index S of VMD decomposition under this K value. K ; (5) Compare S k With S k-1 , if K>2, and S k k-1 , then K-1 is determined to be the optimal decomposition K value. If not, let K increase by 1 and continue to iterate to find the optimal value.​ 4. The method according to claim 1, characterized in that: The least squares support vector machine adopts a radial basis kernel function as a kernel function; The artificial rabbit algorithm of the tent chaotic initialization population is used to optimize the penalty coefficient γ and the kernel parameter σ of the least squares support vector machine.

5. A DC series fault arc detection model training device for electric bicycles, characterized in that: include: Signal acquisition unit, data processing unit, model building unit; The signal acquisition unit is used to acquire a sample current signal; The data processing unit is used to divide the sample current signal into normal class and fault class sample data, and add labels to the sample data of different categories respectively, calculate the feature vector of each sample data, and obtain the sample data set; The model building unit is used to divide the sample data set into a training set and a test set according to a certain ratio, and construct the sample data in the training set and the test set into an input matrix, and use the least squares support vector machine as the basic model, and adopt the artificial rabbit algorithm based on Tent chaos map initialization to optimize the parameters of the basic model; use the training set and the test set constructed as the input matrix to train and test the model after parameter optimization, and obtain a trained DC series fault arc detection model.

6. The electric bicycle DC series fault arc detection model training device according to claim 5, characterized in that: The calculation of the feature vector of each sample data specifically includes: Calculate the kurtosis and margin index of the sample data as the time domain characteristics of the sample data; Based on the sparse index, the appropriate decomposition layer number K is selected, and the sample data divided into different categories are subjected to variational mode decomposition to remove the high-order harmonics in the current signal. The energy entropy and fuzzy entropy of the IMF1 component are calculated as the time-frequency domain features of the sample data. The calculated kurtosis, margin index, energy entropy and fuzzy entropy constitute a feature vector.

7. A method for detecting a DC series fault arc in an electric bicycle, characterized in that: include: Get the current signal to be measured, Calculate the characteristic vector of the current signal to be measured, A trained electric bicycle DC series fault arc detection model is used to perform fault detection on the characteristic vector of the current signal to be measured to obtain a fault detection result, wherein the electric bicycle DC series fault arc detection model is trained by any one of the methods of claims 1-4.

8. A DC series fault arc detection device for electric bicycles, characterized in that: include: Signal acquisition unit, data processing unit, fault identification unit and human-computer interaction unit, The signal acquisition unit includes a Hall current sensor, an arc detection module, and a temperature sensor. The Hall current sensor is used to collect the current signal of the motor and controller circuit when the electric bicycle is running or the current signal of the battery and charging pile circuit when charging; The arc detection module is used to detect arc at the motor connection line; The temperature sensor is used to detect the temperature of the battery box; The data processing unit is used to calculate the characteristic vector of the current signal to be measured and dynamically draw a current signal curve with a length of 1 s. The fault identification unit is used to perform fault detection on the characteristic vector of the current signal to be measured using a trained electric bicycle DC series fault arc detection model to obtain a fault detection result, wherein the electric bicycle DC series fault arc detection model is obtained by training according to any one of claims 1 to 4, The human-computer interaction unit includes a data display module, which is used to display the arc signal, temperature signal, current signal curve with a length of 1s and fault detection result collected by the signal collection unit in real time.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of claims 1 to 4 and 7 is implemented.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method described in any one of claims 1 to 4 and 7 is implemented.

Citation Information

Cited By

  • Spatial-temporal feature fusion ultra-short-term photovoltaic power generation prediction method and device, related equipment and medium

    CN121863371A