Electric bicycle single battery fault diagnosis method based on RBF neural network

By combining FCM clustering algorithm to improve the RBF neural network, the problem of difficult to determine the parameters of traditional RBF neural networks is solved, and the accurate diagnosis of battery failure of electric bicycles is achieved, and the fire hazards are reduced.

CN118962497APending Publication Date: 2024-11-15HUANENG JIANGSU COMPREHENSIVE ENERGY SERVICE CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410789976.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The parameters of traditional RBF neural networks are difficult to determine in the diagnosis of battery failure of electric bicycles, resulting in inaccurate diagnosis and increasing fire hazards.

Method used

Combined with the FCM clustering algorithm, the RBF neural network is improved, the data center is determined through the FCM clustering algorithm, and the weight vector is determined by using the least squares method and gradient descent method to form an RBF neural network based on FCM clustering, which is used for battery fault diagnosis of electric bicycles.

Benefits of technology

It realizes accurate identification of battery failure types of electric bicycles, reduces the occurrence of fire accidents, and improves the accuracy and safety of battery failure diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118962497A_ABST
    Figure CN118962497A_ABST
Patent Text Reader

Abstract

The invention discloses an electric bicycle battery monomer fault diagnosis method based on an RBF neural network, and relates to the technical field of electric bicycle battery fault diagnosis, and the method comprises the steps: collecting the original normal data and fault data of an electric bicycle battery; performing data processing on the original data; dividing the electric bicycle battery data into a training data set and a test data set through the original data subjected to data processing; inputting the training data set into an improved RBF neural network for learning training; inputting the test data set into a trained RBF neural network to carry out electric bicycle battery fault diagnosis classification test, and outputting a diagnosis result; and a battery fault is diagnosed through the battery management system. According to the invention, the data of the normal state and the fault state of the electric bicycle battery are obtained through the simulation experiment, the fault of the electric bicycle battery is rapidly and accurately identified and early warned based on the improved RBF neural network, and the fire hazard of the fault of the electric bicycle battery is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of electric bicycle battery fault diagnosis, in particular to an electric bicycle battery monomer fault diagnosis method based on RBF neural network. Background Art

[0002] In recent years, environmental pollution and energy shortages have attracted widespread attention. The development of sustainable transportation is conducive to reducing dependence on fossil energy and carbon dioxide emissions. Electric bicycles play an important role in life with their convenience, flexibility and low cost. However, with the widespread popularity of electric bicycles, fires or other dangerous accidents caused by various faults of electric bicycle batteries have increased sharply. As the most important component of an electric bicycle, the health of the battery directly determines the overall performance of the electric bicycle. Battery failure will cause problems in the operation of the electric bicycle, and serious fires or even explosions will occur, posing a great threat to the safety of electric bicycle users. Therefore, rapid, accurate, safe and efficient diagnosis and troubleshooting of battery failures has great advantages in extending the service life of the battery, protecting the safety of electric bicycle users, reducing fire hazards and further transforming the battery.

[0003] The radial basis function (RBF) neural network is an effective method with strong self-learning and adaptive capabilities and can handle nonlinear system problems with multiple inputs and multiple outputs. It includes an input layer, a radial basis function hidden layer, and an output layer. It is an efficient feedforward neural network with optimal approximation performance and global optimal characteristics. The input layer units are directly connected to the hidden layer units, and the hidden layer units are weighted connected to the output layer units. The transfer function is a nonlinear function with radial symmetry and central point attenuation, such as a Gaussian function. There is only one hidden layer, and the number of hidden layer units is adaptively adjusted during the training process according to the specific problem. The number of neural units in the input layer and the output layer is set according to the specific problem.

[0004] At present, the research on electric bicycle battery fault diagnosis mainly includes the following two aspects: model-based fault diagnosis method and model-free fault diagnosis method. Among them, the model-based fault diagnosis method uses the battery model, and combines parameter estimation, state estimation and other methods to perform fault diagnosis by calculating and analyzing the difference between the actual measurement value and the battery model prediction value; the model-free diagnosis method can be divided into knowledge-based methods and data-driven methods. There is no need to establish a dynamic characteristic model of the battery, but it is more dependent on the quality of the sample data. The present invention combines RBF neural network with electric bicycle battery fault diagnosis, in order to quickly and accurately diagnose the fault type of the electric bicycle battery, so as to alarm and reduce the fire hazard caused by battery failure. Summary of the invention

[0005] In view of the above-mentioned problems, the present invention is proposed.

[0006] Therefore, the technical problem solved by the present invention is that the parameters of the traditional RBF neural network are difficult to determine. The present invention combines the advantages of the FCM clustering algorithm, proposes to improve the RBF neural network using the FCM clustering algorithm, and designs an RBF neural network electric bicycle battery monomer fault diagnosis method based on the FCM clustering algorithm, aiming to more accurately identify the fault type of the electric bicycle battery. This invention aims to accurately identify the fault type of the electric bicycle battery through the battery voltage, battery current, battery temperature, state of charge (SOC), battery internal resistance and capacity signal data, and reduce fire accidents caused by electric bicycle battery faults.

[0007] To solve the above technical problems, the present invention provides the following technical solutions: a method for diagnosing electric bicycle battery monomer faults based on RBF neural network, comprising: collecting original normal data and fault data of the electric bicycle battery; performing data processing on the original data; dividing the electric bicycle battery data into a training data set and a test data set through the data processed original data; inputting the training data set into an improved RBF neural network for learning and training; inputting the test data set into the trained RBF neural network for electric bicycle battery fault diagnosis classification test, and outputting the diagnosis result; and diagnosing the battery fault through a battery management system.

[0008] As a preferred solution of the electric bicycle battery monomer fault diagnosis method based on RBF neural network described in the present invention, wherein: the original normal data includes battery voltage, current, temperature, SOC, battery internal resistance, and capacity signal data;

[0009] Conduct fault simulation experiments on lithium iron phosphate batteries. By setting various battery parameters and ambient temperature, the normal state and various fault states of lithium iron phosphate batteries during discharge are simulated. The various fault states include battery overcharge, over discharge, battery aging, overvoltage, undervoltage, increased internal resistance, reduced battery capacity, overtemperature and undertemperature.

[0010] The fault data is data generated under various fault conditions.

[0011] As a preferred solution of the electric bicycle battery monomer fault diagnosis method based on RBF neural network described in the present invention, wherein: based on normal state and fault state, 18 groups of samples are collected for each state, each group of samples contains voltage, current, temperature, SOC, internal resistance and capacity signal data, and then the sample data is decomposed by wavelet packet method to remove noise and perform normalization processing.

[0012] As a preferred solution of the electric bicycle battery monomer fault diagnosis method based on RBF neural network described in the present invention, the sample data set and the test data set are allocated in a ratio of 4:1.

[0013] As a preferred solution of the electric bicycle battery monomer fault diagnosis method based on RBF neural network described in the present invention, the input layer of the improved RBF neural network has 6 nodes and the output layer has 4 nodes. The data center of the basis function is determined by the FCM clustering algorithm, the weight vector is determined by the least squares method, and the expansion coefficient of the hidden layer unit and the bias of the output neuron are determined by the gradient descent method. At the same time, the mean square error is set to 0.001.

[0014] As a preferred solution of the electric bicycle battery monomer fault diagnosis method based on RBF neural network described in the present invention, the parameters of the RBF neural network are determined by using FCM clustering algorithm, least squares algorithm and gradient descent method, including:

[0015] Determine the data center of the RBF neural network based on the FCM clustering method, which specifically includes the following steps:

[0016] Randomly select C sample points from the data set as the initial cluster center, set the termination threshold, give the membership factor m = 2, and the number of iterations b = 0;

[0017] The fuzzy partition matrix U is calculated by the following formula (b) :

[0018]

[0019] Among them, x j Represents the jth input data; Represents the input data x j For the membership of the i-th cluster; Indicates the position of the center point of the i-th cluster in the b-th iteration; Represents data point x j To the i-th cluster center The Euclidean distance of

[0020] The intra-class means of C classes are calculated by the following formula, and used as the new class center to update the cluster center matrix P (b+1) :

[0021]

[0022] If ||P (b+1) -P (b)||≤ε, the algorithm is terminated, and then the fuzzy partition matrix U and the cluster center matrix P are output respectively. Otherwise, the counter b=b+1 is set, and the fuzzy partition matrix and the intra-class mean of C classes are repeatedly calculated, and they are used as the new class centers to update the cluster center matrix P. (b+1) , until the difference between the new and old cluster center matrices is less than the set threshold ε, the algorithm is terminated and U and P are output; the cluster center matrix P obtained here is the data center of the neural network basis function; K is the cluster center index.

[0023] The weight vector is determined using the least squares method. The specific steps are as follows:

[0024] If the input information is x j , when j = 1, 2, 3, the output of the i-th hidden node is:

[0025] h i =φ i (||x j -c i (k)||) (3)

[0026] Among them, h i is the output of the i-th hidden node; φ i (||x j -c i (k)||) is the activation function of the ith hidden node, which is a Gaussian function here; c i (k) is the position of the center vector of the i-th hidden node in the k-th iteration.

[0027] Assume that the hidden layer output matrix H = [h ji ],like Then the hidden layer output matrix is:

[0028]

[0029] If the weight vector of the RBF neural network is W = (w 1 ,w 2 ,…,w n ) T , then for all input data, the network's predicted output is:

[0030]

[0031] Let the approximation error be Sure After that, the expected output Y = (y 1 ,y 2 ,…,y n ) T , we can find the output weight of the network:

[0032]

[0033] The value in general can be obtained by the least squares method:

[0034]

[0035] In the above formula for The pseudo-inverse of

[0036]

[0037] Then, the gradient descent algorithm is used to correct other parameters of the RBF neural network, and the loss function is defined as:

[0038]

[0039] in, is the error of the kth neuron at the nth iteration;

[0040] The expansion constant σ of the j-th center point j and the bias b of the kth output neuron k Corrected to:

[0041]

[0042] Among them, α σ and α b are the learning steps of the corresponding parameters, with values ​​between (0,1);

[0043] Finally, the training data set is input into the improved RBF neural network for learning and training.

[0044] As a preferred solution of the electric bicycle battery monomer fault diagnosis method based on RBF neural network described in the present invention, the basis function of the hidden layer neuron in the improved RBF neural network is a Gaussian function:

[0045]

[0046] Among them, φ i (x) is the output of the i-th hidden layer unit, c i and σ i are the data center and expansion coefficient of the i-th hidden layer unit respectively;

[0047] The test data set is input into the trained RBF neural network for testing, and the electric bicycle battery fault type diagnosis results are output.

[0048] To further solve the above technical problems, the present invention provides the following technical solutions: a system suitable for determining the specific heat ratio of gas at the outlet of a gas turbine combustion chamber, comprising: a data acquisition module, used to collect key operating parameters of an electric bicycle; a data processing module, used to preprocess and analyze raw data; a fault detection and diagnosis module, used to monitor various parameters of the electric bicycle in real time and detect faults, use an RBF neural network to realize abnormal modes of the electric bicycle, and further diagnose and classify the abnormal modes; an alarm module, used to send real-time fault alarms and notifications to managers or users, ensuring that managers or users are notified in time to take corresponding measures.

[0049] A computer device includes a memory and a processor, wherein the memory stores a computer program, and is characterized in that when the processor executes the computer program, the steps of the electric bicycle battery monomer fault diagnosis method based on RBF neural network are implemented as described above.

[0050] A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the electric bicycle battery single cell fault diagnosis method based on RBF neural network as described above.

[0051] Beneficial effects of the present invention: The present invention improves the RBF neural network using the FCM clustering algorithm, establishes the RBF neural network based on FCM clustering, forms an electric bicycle battery monomer fault diagnosis method based on the improved RBF neural network, trains and tests the neural network through the battery voltage, current, temperature, SOC, internal resistance and capacity obtained by simulation experiments, and finally realizes the fault diagnosis of the electric bicycle battery. This method can realize fault warning and fire prevention, and at the same time provides a certain reference significance for the improvement of electric bicycle batteries. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0053] Figure 1 This is the overall design diagram of the electric bicycle battery monomer fault diagnosis method of the present invention.

[0054] Figure 2 The present invention is a flow chart of the electric bicycle battery monomer fault diagnosis based on the RBF neural network.

[0055] Figure 3This is the RBF neural network structure diagram of the present invention.

[0056] Figure 4 This is the RBF neural network training data diagram of the present invention.

[0057] Figure 5 This is a training data diagram for the number of neurons and center vectors in the RBF neural network of the present invention. DETAILED DESCRIPTION

[0058] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0059] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0060] Example 1

[0061] Reference Figure 1 to Figure 3 , which is an embodiment of the present invention, provides an electric bicycle battery monomer fault diagnosis method based on RBF neural network, comprising:

[0062] Step 1: Collect the original normal data and fault data of the electric bicycle battery through simulation experiments, including battery voltage, current, temperature, SOC, battery internal resistance and capacity signal data.

[0063] Specifically, through simulation experiments, the voltage, current, temperature, SOC, internal resistance and capacity data of the normal state of the discharge process of the electric bicycle lithium iron phosphate battery and the nine fault states of battery overcharge, overdischarge, battery aging, overvoltage, undervoltage, increased internal resistance, reduced battery capacity, too high temperature and too low temperature are collected. 18 sets of samples are collected for each state, for a total of 180 sets of sample data.

[0064] Specifically, MATLAB is used to conduct a fault simulation experiment on lithium iron phosphate batteries. The normal state and various fault states of the lithium iron phosphate battery during the discharge process are simulated by setting various battery parameters and the ambient temperature. The various fault states include nine fault states: battery overcharge, overdischarge, battery aging, overvoltage, undervoltage, increased internal resistance, reduced battery capacity, too high temperature and too low temperature.

[0065] Step 2: Process the raw data, including eliminating noise data that affects the diagnosis results and normalizing the raw data.

[0066] Specifically, based on the normal state and nine fault states in step 1, 18 sets of samples are collected for each state, and each set of samples contains voltage, current, temperature, SOC, internal resistance and capacity signal data. Then, the sample data is decomposed using the wavelet packet decomposition method to remove noise and perform normalization.

[0067] Specifically, the wavelet packet decomposition method is used to remove noise from the collected 180 groups of sample data, and normalization is performed for training and testing of the neural network. X is the sample input vector matrix.

[0068] Step 3: Apply the data processed in step 2 to divide the electric bicycle battery data into training data set and test data set according to a certain ratio.

[0069] Specifically, the sample data set and the test data set are allocated in a ratio of 4:1, that is, 144 groups of sample data in 10 states are input into the improved RBF neural network as training data sets for training, and the remaining 36 groups of sample data are input into the trained RBF neural network as test data sets for testing.

[0070] Step 4: Based on the training data set obtained in step 3, the training data set is input into the improved RBF neural network for learning and training.

[0071] Specifically, since the input of the RBF neural network in this experiment is six-dimensional data and the output is four-bit binary code, the input layer of the improved RBF neural network in the experiment has 6 nodes and the output layer has 4 nodes. The data center of the basis function is determined by the FCM clustering algorithm, the weight vector is determined by the least squares method, and the expansion coefficient of the hidden layer unit and the bias of the output neuron are determined by the gradient descent method. At the same time, the mean square error is set to 0.001.

[0072] Furthermore, the parameters of the RBF neural network are first determined using the FCM clustering algorithm, the least squares algorithm and the gradient descent method. The specific implementation process includes the following steps:

[0073] The first step is to determine the data center of the RBF neural network based on the FCM clustering method:

[0074] 1) Randomly select C sample points from the data set as the initial cluster center P (0) , set the termination threshold ε, give the membership factor m = 2, and the number of iterations b = 0;

[0075] 2) Using formula (1) to calculate the fuzzy partition matrix U(b) :

[0076]

[0077] Among them, x j Represents the jth input data; Represents the input data x j For the membership of the i-th cluster; Indicates the position of the center point of the i-th cluster in the b-th iteration; Represents data point x j To the i-th cluster center The Euclidean distance of

[0078] 3) Use formula (2) to calculate the intra-class means of C classes respectively, and use them as new class centers to update the cluster center matrix P (b+1) :

[0079]

[0080] Among them, K is the cluster center index.

[0081] 4) If ||P (b+1) -P (b) ||≤ε, the algorithm is terminated, and then the fuzzy partition matrix (membership matrix) U and the cluster center matrix P are output respectively. Otherwise, the counter b=b+1 is set, and steps (2)-(3) are repeated until the difference between the new and old cluster center matrices is less than the set threshold ε, the algorithm is terminated and U and P are output. The cluster center matrix P obtained here is the data center of the neural network basis function.

[0082] Secondly, the weight vector is determined using the least squares method. The specific steps of the algorithm are as follows:

[0083] 1) If the input information is x j , when j = 1, 2, 3, the output of the i-th hidden node is:

[0084] h i =φ i (||x j -c i (k)||) (3)

[0085] Among them, φ i (*) is the activation function of the hidden node, i.e., the Gaussian function. i is the output of the i-th hidden node; φ i (||x j -c i (k)||) is the activation function of the ith hidden node, which is a Gaussian function here; c i(k) is the position of the center vector of the i-th hidden node in the k-th iteration, which represents the feature center associated with the i-th node in the hidden layer.

[0086] 2) Assume that the hidden layer output matrix H = [h ji ],like Then the hidden layer output matrix is:

[0087]

[0088] If the weight vector of the RBF neural network is W = (w 1 ,w 2 ,…,w n ) T , then for all input data, the network's predicted output is:

[0089]

[0090] 3) Let the approximation error be Sure After that, the expected output Y = (y 1 ,y 2 ,…,y n ) T , we can find the output weight of the network:

[0091]

[0092] The value in general can be obtained by the least squares method:

[0093]

[0094] In the above formula for The pseudo-inverse of

[0095]

[0096] Then, the gradient descent algorithm is used to correct other parameters of the RBF neural network, and the loss function is defined as:

[0097]

[0098] in, is the error of the kth neuron at the nth iteration.

[0099] The expansion constant σ of the j-th center point j and the bias b of the kth output neuron k Corrected to:

[0100]

[0101] Among them, α σ and α b are the learning steps of the corresponding parameters, and their values ​​are between (0,1).

[0102] Finally, the training data set is input into the improved RBF neural network for learning and training. The output layer is represented by binary coding, and the fault codes under 10 states are set respectively: normal (0000), battery overcharge (0001), over discharge (0010), battery aging (0011), overvoltage (0100), undervoltage (0101), internal resistance increase (0110), battery capacity decrease (0111), temperature is too high (1000), temperature is too low (1001). Y is the sample output vector matrix, and the data is as follows:

[0103]

[0104] Since the short input of the RBF neural network in this experiment is six-dimensional data and the output is four-bit binary code, the input layer of the improved RBF neural network in this simulation experiment has 6 nodes, the output layer has 4 nodes, and the basis function of the hidden layer neurons uses the Gaussian function:

[0105]

[0106] Among them, φ i (x) is the output of the i-th hidden layer unit, c i and σ i are the data center and expansion coefficient of the i-th hidden layer unit respectively.

[0107] Step 5: Based on the test data set obtained in step 3, it is input into the trained RBF neural network for electric bicycle battery fault diagnosis classification test, and the diagnosis results are output.

[0108] Step 6: The battery management system responds to battery failure in certain ways, including displaying fault information, giving an alarm, and cutting off power supply.

[0109] In summary, the present invention improves the RBF neural network using the FCM clustering algorithm, establishes the RBF neural network based on FCM clustering, forms an electric bicycle battery monomer fault diagnosis method based on the improved RBF neural network, and trains and tests the neural network through the battery voltage, current, temperature, SOC, internal resistance and capacity obtained by simulation experiments, and finally realizes the fault diagnosis of the electric bicycle battery. This method can realize fault warning and fire prevention, and at the same time provides a certain reference significance for the improvement of electric bicycle batteries.

[0110] Example 2

[0111] Reference Figure 2-Figure 3 , which is an embodiment of the present invention, provides an electric bicycle battery monomer fault diagnosis method based on RBF neural network, including: a data acquisition module, used to collect key operating parameters of the electric bicycle; a data processing module, used to pre-process and analyze the original data; a fault detection and diagnosis module, used to monitor various parameters of the electric bicycle in real time and detect faults, use RBF neural network to realize the abnormal mode of the electric bicycle, and further diagnose and classify the abnormal mode; an alarm module, used to send real-time fault alarms and notifications to managers or users, ensuring that managers or users are notified in time to take corresponding measures.

[0112] Example 3

[0113] It is an embodiment of the present invention, which is different from the previous embodiment in that:

[0114] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0115] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0116] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0117] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0118] Example 4

[0119] As an embodiment of the present invention, a method for diagnosing battery failure of an electric bicycle based on RBF neural network is provided. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through economic benefit calculation and simulation experiments.

[0120] The RBF neural network structure diagram used in the present invention is as follows: Figure 3 As shown, it includes an input layer, a hidden layer and an output layer, where the number of neurons in the hidden layer is 50, the learning rate is set to 0.01, the number of iterations is 30, and the target performance is set to 0.01.

[0121] The test samples used in the experiment are shown in Table 1:

[0122] Table 1 Test sample data

[0123]

[0124]

[0125] The RBF neural network training process proposed in the present invention is as follows: Figure 4As shown in the figure, only 23 steps are needed to achieve the expected goal, which means that the training speed is fast and the accuracy is high. The output results of 18 test samples are shown in Table 2. It can be seen from Table 2 that the fault code output results of 18 test samples are completely consistent with the preset ones, which means that the fault diagnosis scheme can accurately diagnose faults.

[0126] Table 2 Test sample output results

[0127]

[0128]

[0129] The traditional RBF neural network requires artificial determination of the number of neurons in the hidden layer and the initial center vector. In order to compare with the improved algorithm, the present invention randomly specifies the number of neurons and the center vector in the RBF neural network and performs training. The training process is as follows: Figure 5 As shown, it can be seen that the traditional RBF neural network training speed is slow and fails to achieve the required training accuracy.

[0130] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A method for diagnosing battery failure of an electric bicycle based on RBF neural network, characterized in that: include: Collect the original normal data and fault data of the electric bicycle battery; Perform data processing on the raw data; The electric bicycle battery data is divided into a training data set and a test data set through the processed raw data; Inputting the training data set into the improved RBF neural network for learning and training; Inputting the test data set into the trained RBF neural network to perform an electric bicycle battery fault diagnosis classification test, and outputting a diagnosis result; Battery failure is diagnosed through the battery management system.

2. The electric bicycle battery monomer fault diagnosis method based on RBF neural network as claimed in claim 1 is characterized in that: The original normal data includes battery voltage, current, temperature, SOC, battery internal resistance, and capacity signal data; Conduct fault simulation experiments on lithium iron phosphate batteries. By setting various battery parameters and ambient temperature, the normal state and various fault states of lithium iron phosphate batteries during discharge are simulated. The various fault states include battery overcharge, over discharge, battery aging, overvoltage, undervoltage, increased internal resistance, reduced battery capacity, overtemperature and undertemperature. The fault data is data generated under various fault conditions.

3. The electric bicycle battery monomer fault diagnosis method based on RBF neural network as claimed in claim 2 is characterized in that: Based on the normal state and fault state, 18 groups of samples are collected for each state. Each group of samples contains voltage, current, temperature, SOC, internal resistance and capacity signal data. Then the wavelet packet decomposition method is used to remove noise from the sample data and normalize it.

4. The electric bicycle battery monomer fault diagnosis method based on RBF neural network as claimed in claim 3 is characterized in that: The sample data set and the test data set are allocated in a ratio of 4:

1.

5. The electric bicycle battery monomer fault diagnosis method based on RBF neural network as claimed in claim 4 is characterized in that: The input layer of the improved RBF neural network has 6 nodes and the output layer has 4 nodes; the data center of the basis function is determined by the FCM clustering algorithm, the weight vector is determined by the least squares method, and the expansion coefficient of the hidden layer unit and the bias of the output neuron are determined by the gradient descent method; at the same time, the mean square error is set to 0.

001.

6. The electric bicycle battery monomer fault diagnosis method based on RBF neural network as claimed in claim 5, characterized in that: The FCM clustering algorithm, least squares algorithm and gradient descent method are used to determine the parameters of the RBF neural network, including: Determine the data center of the RBF neural network based on the FCM clustering method, which specifically includes the following steps: Randomly select C sample points from the data set as the initial cluster center, set the termination threshold, give the membership factor m = 2, and the number of iterations b = 0; The fuzzy partitioning matrix U is calculated by the following formula (b) : Among them, x j Represents the jth input data; Represents the input data x j For the membership of the i-th cluster; Indicates the position of the center point of the i-th cluster in the b-th iteration; Represents data point x j To the i-th cluster center The Euclidean distance of The intra-class means of C classes are calculated by the following formula, and used as the new class center to update the cluster center matrix P (b+1) : If ||P (b+1) -P (b) ||≤ε, the algorithm is terminated, and then the fuzzy partition matrix U and the cluster center matrix P are output respectively. Otherwise, the counter b=b+1 is set, and the fuzzy partition matrix and the intra-class mean of C classes are repeatedly calculated, and they are used as the new class centers to update the cluster center matrix P. (b+1) , until the difference between the new and old cluster center matrices is less than the set threshold ε, the algorithm is terminated and U and P are output; the cluster center matrix P obtained here is the data center of the neural network basis function; K is the cluster center index; The weight vector is determined using the least squares method. The specific steps are as follows: If the input information is x j , when j = 1, 2, 3, the output of the i-th hidden node is: h i =φ i (|x j -c i (k)||) (3) Among them, h i is the output of the i-th hidden node; φ i (||x j -c i (k)||) is the activation function of the ith hidden node, which is a Gaussian function here; c i (k) is the position of the center vector of the i-th hidden node in the k-th iteration; Assume that the hidden layer output matrix H = [h ji ],like Then the hidden layer output matrix is: If the weight vector of the RBF neural network is W = (w1, w2, ..., w n ) T , then for all input data, the network's predicted output is: Let the approximation error be Sure After that, the expected output Y=(y1,y2,…,y n ) T , we can find the output weight of the network: The value in general can be obtained by the least squares method: In the above formula for The pseudo-inverse of Then, the gradient descent algorithm is used to correct other parameters of the RBF neural network, and the loss function is defined as: in, is the error of the kth neuron at the nth iteration; The expansion constant σ of the j-th center point j and the bias b of the kth output neuron k Corrected to: Among them, α σ and α b are the learning steps of the corresponding parameters, with values ​​between (0,1); Finally, the training data set is input into the improved RBF neural network for learning and training.

7. The electric bicycle battery monomer fault diagnosis method based on RBF neural network as claimed in claim 6 is characterized in that: The basis function of the hidden layer neurons in the improved RBF neural network is a Gaussian function: Among them, φ i (x) is the output of the i-th hidden layer unit, c i and σ i are the data center and expansion coefficient of the i-th hidden layer unit respectively; The test data set is input into the trained RBF neural network for testing, and the electric bicycle battery fault type diagnosis results are output.

8. A system using the electric bicycle battery monomer fault diagnosis method based on RBF neural network as claimed in any one of claims 1 to 7, characterized in that: include: A data acquisition module, used to collect key operating parameters of the electric bicycle; Data processing module, used for preprocessing and analyzing raw data; Fault detection and diagnosis module, which is used to monitor various parameters of electric bicycles in real time and detect faults, use RBF neural network to realize abnormal modes of electric bicycles, and further diagnose and classify abnormal modes; The alarm module is used to send real-time fault alarms and notifications to managers or users to ensure that managers or users are notified in time to take appropriate measures.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the electric bicycle battery monomer fault diagnosis method based on RBF neural network described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the electric bicycle battery monomer fault diagnosis method based on RBF neural network described in any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • SVM-based multi-parameter fusion switch storage battery state diagnosis method and system

    CN119596158A

  • Battery life analysis method and system based on intelligent electric vehicle battery charging pile

    CN121805858A