Method and system for determining total vanadium ion concentration and state of charge of negative electrolyte of a vanadium redox flow battery
By combining optical and electrochemical signals using the CatBoost model, the problem of rapid and accurate detection of the negative electrode electrolyte in vanadium redox flow batteries was solved, enabling real-time monitoring of the total vanadium ion concentration and state of charge, thus improving detection accuracy and efficiency.
Patent Information
- Application Number
- CN202611356187.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-02
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies struggle to rapidly and accurately determine the total vanadium ion concentration and state of charge in the negative electrode electrolyte of vanadium redox flow batteries in large-scale energy storage systems, resulting in low detection efficiency and poor accuracy, making it difficult to meet real-time monitoring requirements.
A model based on the CatBoost algorithm is used, combined with optical and electrochemical signals, to extract spectral feature parameters and electrochemical parameters through real-time full-spectrum scanning and electrochemical titration. This model is then used to train the negative electrode electrolyte state measurement model, enabling real-time monitoring of the total vanadium ion concentration and state of charge.
It enables rapid and accurate monitoring of the negative electrode electrolyte, improves detection accuracy and efficiency, reduces detection errors, and is suitable for rapid deployment and low-latency prediction scenarios with rich category characteristics.
Smart Images

Figure CN123175879A_ABST
Abstract
Description
Technical Field
[0001] This application relates to, but is not limited to, the field of electrochemistry, and particularly to a method and system for determining the total vanadium ion concentration and state of charge of the negative electrode electrolyte of a vanadium redox flow battery. Background Technology
[0002] Vanadium redox flow batteries (VRFBs) are a core direction in large-scale electrochemical energy storage technology, relying on the use of vanadium ions (V₂O₃) in both the positive and negative electrode electrolytes. 2+ / V 3+ / V 4+ / V 5+ The unique advantages of this system effectively avoid cross-contamination of electrode materials, achieving a long cycle life of 10,000-20,000 cycles and an energy conversion efficiency of 75%-85%. It has been applied on a megawatt-scale scale in multiple new energy projects both domestically and internationally. Its operating performance, energy efficiency, and safety stability directly depend on the dynamic state of the electrolyte. Key monitoring indicators include the concentration distribution of vanadium ions in various valence states, state of charge (SOC), degree of aging, and physicochemical stability. During long-term charge-discharge cycles, problems such as the imbalance of the total positive and negative electrode ions caused by vanadium ion migration across the membrane, the shift in valence state ratios due to hydrogen / oxygen evolution side reactions, and vanadate precipitation at extreme temperatures (below 10℃ or above 40℃) can lead to battery capacity decay, increased internal resistance, and even flow channel blockage. In severe cases, this can cause system shutdown for maintenance, significantly increasing operating costs.
[0003] Currently, the mainstream methods for detecting the state of vanadium electrolytes in the industry are potentiometric titration and ultraviolet-visible spectrophotometry. However, both of these methods face insurmountable technical bottlenecks in practical engineering applications. • Potentiometric titration: This method achieves quantitative concentration by monitoring the potential change during titration using an ion-selective electrode. It requires operation in a laboratory environment with constant temperature (25±0.5℃), protection from light, and no electromagnetic interference, placing stringent requirements on the detection conditions. In addition, this method has a complex operation procedure, with a single detection taking as long as 30-60 minutes, making it difficult to meet the detection efficiency requirements of large-scale energy storage systems.
[0004] • Ultraviolet-Vis spectrophotometry: Based on the Lambert-Beer law, concentration is calculated using the characteristic absorption peaks of vanadium ions in different valence states. However, limited by the linear range of the law (absorbance 0.2-0.8), the original electrolyte solution with a concentration of approximately 1.8 mol / L needs to be diluted 20 times before detection. During the dilution process, V 2+ V 3+ Ions readily undergo oxidation upon contact with air, and dilution solvents may alter the coordination morphology of vanadium ions, introducing systematic errors; simultaneously, the negative electrode V 2+ With V 3+ negative electrode V4+ With V 5+ The characteristic absorption peaks overlap significantly, and the interference signal is enhanced after dilution. It needs to be corrected by a complex multi-component spectral analysis model, which leads to a decrease in detection accuracy. The concentration detection error can reach more than 70 mmol / L.
[0005] Therefore, there is a need for an improved method and system for accurately and conveniently measuring the total vanadium ion concentration and state of charge of the negative electrode electrolyte in a vanadium redox flow battery in real time. Summary of the Invention
[0006] The following is an overview of the subject matter described in detail herein. This overview is not intended to limit the scope of the claims.
[0007] In one aspect, this application provides a method for determining the total vanadium ion concentration in the negative electrode electrolyte of a vanadium redox flow battery, comprising the following steps: S1: Extract the spectral characteristic parameter x at the current moment from the absorbance spectrum of the negative electrode electrolyte during the charging and discharging of the vanadium redox flow battery. The spectral characteristic parameter x includes a first maximum peak wavelength parameter x1 and a first peak absorbance parameter x2 in the range of 350-450 nm, a second maximum peak wavelength parameter x3 and a second peak absorbance parameter x4 in the range of 500-650 nm. S2: Measure and obtain the open-circuit voltage parameter x5 and the current parameter x6 at the characteristic potential of the vanadium redox flow battery at the current state of charge. S3: Input the extracted first maximum peak wavelength parameter x1, first peak absorbance parameter x2, second maximum peak wavelength parameter x3, second peak absorbance parameter x4, open-circuit voltage parameter x5, and current parameter x6 at the characteristic potential into the trained negative electrode electrolyte state determination model based on the CatBoost algorithm to obtain the total concentration parameter y1 and state of charge parameter y2 at the current moment; wherein, the total concentration parameter y1 is the total concentration of divalent vanadium ions and trivalent vanadium ions in the negative electrode electrolyte, and the state of charge parameter y2 is the state of charge of the negative electrode electrolyte, which can be calculated by the following formula: ; The negative electrode electrolyte state determination model was trained in the following way: Extract the first maximum peak wavelength parameter x1, the first peak absorbance parameter x2, the second maximum peak wavelength parameter x3, the second peak absorbance parameter x4, the open circuit voltage parameter x5, and the current parameter x6 at the characteristic potential from multiple historical moments, and obtain the total concentration parameter y1 and the state of charge parameter y2 for the multiple historical moments; The first maximum peak wavelength parameter x1, the first peak absorbance parameter x2, the second maximum peak wavelength parameter x3, the second peak absorbance parameter x4, the open circuit voltage parameter x5, and the current parameter x6 at the characteristic potential are input into the negative electrode electrolyte state measurement model as input data, and the total concentration parameter y1 and the state of charge parameter y2 are used as the expected output data of the negative electrode electrolyte state measurement model to train the negative electrode electrolyte state measurement model. When the actual output data of the negative electrode electrolyte state measurement model meets the set training termination condition, the training of the negative electrode electrolyte state measurement model is stopped, and the trained negative electrode electrolyte state measurement model is obtained.
[0008] In an exemplary embodiment, extracting the spectral feature parameter x at the current moment includes connecting a spectrophotometer to the negative electrode electrolyte circulation system of the vanadium redox flow battery and performing real-time full-spectrum scanning during the charging and discharging process, and using signal data analysis tools to extract the first maximum peak wavelength parameter x1, the first peak absorbance parameter x2, the second maximum peak wavelength parameter x3, and the second peak absorbance parameter x4.
[0009] In an exemplary embodiment, the current parameter x6 at the characteristic potential is set to the current value at the characteristic potential of -0.69V.
[0010] In an exemplary embodiment, obtaining the total concentration parameter and state of charge parameter at the current moment includes collecting a sample of the negative electrode electrolyte at the current moment and measuring the concentration of divalent vanadium ions in the negative electrode electrolyte using electrochemical titration. C v(II) and the concentration of trivalent vanadium ions C v(III ) The total concentrations of divalent and trivalent vanadium ions and the state of charge of the negative electrode electrolyte were calculated to obtain the total concentration parameter y1 and the state of charge parameter y2.
[0011] In an exemplary embodiment, training the negative electrode electrolyte state measurement model includes constructing a training set from 80% of the extracted first maximum peak wavelength parameter x1, first peak absorbance parameter x2, second maximum peak wavelength parameter x3, second peak absorbance parameter x4, open circuit voltage parameter x5, and current parameter x6 at characteristic potential, along with the obtained total concentration parameter y1 and state of charge parameter y2, and constructing a test set from 20% of the data; training the negative electrode electrolyte state measurement model using the data in the training set; and after obtaining the trained negative electrode electrolyte state measurement model, further including testing the trained negative electrode electrolyte state measurement model using the data in the test set.
[0012] In an exemplary embodiment, training the negative electrode electrolyte state determination model further includes: using GridSearchCV to filter the hyperparameter grid in the CatBoost algorithm during training, and using N-fold cross-validation to verify different combinations of the hyperparameter grid, thereby selecting the optimal value of the hyperparameter grid and obtaining the current optimal model.
[0013] In an exemplary embodiment, the N-fold cross-validation is a ten-fold cross-validation.
[0014] In an exemplary embodiment, the hyperparameter mesh includes the number of iterations, the maximum depth, the learning rate, and the l2 leaf regularization coefficient.
[0015] In an exemplary embodiment, training the negative electrode electrolyte state determination model further includes continuing to use the data from the training set to train the optimal model, and using the data from the test set to evaluate the optimal model, until a set training termination condition is met.
[0016] In another aspect, this application provides a system for determining the total vanadium ion concentration and state of charge of the negative electrode electrolyte in a vanadium redox flow battery, comprising: An optical measurement device is connected to the negative electrode electrolyte of the vanadium redox flow battery and is used to perform real-time full-spectrum scanning of the negative electrode electrolyte during the charging and discharging of the vanadium redox flow battery to obtain the absorbance spectrum at the current moment, and to measure the open-circuit voltage and current at the characteristic potential at the current moment. A vanadium redox flow battery management system, connected to the optical measurement device and equipped with a trained CatBoost algorithm-based negative electrode electrolyte state measurement model, is configured to input the spectral characteristic parameter x, open-circuit voltage parameter x5, and current parameter x6 at the characteristic potential extracted from the absorbance spectrum at the current moment into the trained negative electrode electrolyte state measurement model to obtain the total concentration parameter y1 and the state of charge parameter y2 at the current moment. The spectral characteristic parameter x includes a first maximum peak wavelength parameter x1 and a first peak absorbance parameter x2 in the range of 350-450 nm, a second maximum peak wavelength parameter x3 in the range of 500-650 nm, and a second peak absorbance parameter x4. The total concentration parameter y1 is the total concentration of divalent and trivalent vanadium ions in the negative electrode electrolyte, and the state of charge parameter y2 is the state of charge of the negative electrode electrolyte, which can be calculated using the following formula: ; The negative electrode electrolyte state determination model was trained in the following way: Extract the first maximum peak wavelength parameter x1, the first peak absorbance parameter x2, the second maximum peak wavelength parameter x3, the second peak absorbance parameter x4, the open circuit voltage parameter x5, and the current parameter x6 at the characteristic potential from multiple historical moments, and obtain the total concentration parameter y1 and the state of charge parameter y2 for the multiple historical moments; The first maximum peak wavelength parameter x1, the first peak absorbance parameter x2, the second maximum peak wavelength parameter x3, the second peak absorbance parameter x4, the open circuit voltage parameter x5, and the current parameter x6 at the characteristic potential are input into the negative electrode electrolyte state measurement model as input data, and the total concentration parameter y1 and the state of charge parameter y2 are used as the expected output data of the negative electrode electrolyte state measurement model to train the negative electrode electrolyte state measurement model. When the actual output data of the negative electrode electrolyte state measurement model meets the set training termination condition, the training of the negative electrode electrolyte state measurement model is stopped, and the trained negative electrode electrolyte state measurement model is obtained.
[0017] The measuring device of this application can simultaneously measure optical and electrochemical multimodal signals, solving the problem of inaccuracy of previous single-mode signals; and it uses signal data analysis methods to quickly analyze the full spectrum data of vanadium anode electrolyte, and the feature extraction is not limited to one or a few specific wavelength data, which can realize real-time and accurate monitoring of electrolyte state.
[0018] This application integrates optical and electrochemical methods through machine learning. The open-circuit voltage is an electrochemical signal that complements the optical signal. It also incorporates the current value at the characteristic potential of the electrochemical reaction of vanadium ions at the negative electrode, further improving the completeness and accuracy of the model's predictions. Compared to other existing models such as XGBoost, the CatBoost used in this application has significant advantages in category feature processing, overfitting prevention, and inference efficiency: it is natively compatible with string-type category features, avoids label leakage through ordered target statistical encoding, has stronger adaptability to high-cardinality classification features, and can automatically mine category feature combinations to reduce manual feature engineering; relying on the ordered boosting algorithm, it optimizes gradient estimation and suppresses overfitting from the training logic, resulting in excellent generalization performance with default parameters and less parameter tuning workload; simultaneously, it adopts a symmetric decision tree structure, relying on bit operations to achieve high-speed inference, with prediction speeds far exceeding XGBoost. Combined with robust GPU acceleration capabilities, it has greater practical advantages in business scenarios with rich category features and a focus on rapid deployment and low-latency prediction.
[0019] This application uses a regression model based on the CatBoost algorithm to calculate the total vanadium concentration and state of charge (SOC) of the negative electrode electrolyte based on spectral data and electrochemical signals. Its prediction accuracy is higher than that based on Lambert-Beer's law and other regression models.
[0020] The method and system of this application can detect vanadium ion concentrations over a wide range in the negative electrode electrolyte, such as concentrations close to 0 or as high as 2.5 mol / L, with high detection sensitivity and rapid output results.
[0021] Other features and advantages of this application will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the application. Other advantages of this application may be realized and obtained by means of the methods described in the description. Attached Figure Description
[0022] The accompanying drawings are used to provide an understanding of the technical solutions of this application and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions of this application.
[0023] Figure 1 A schematic flowchart illustrating a method for determining the total vanadium ion concentration and state of charge of the negative electrode electrolyte of a vanadium redox flow battery, provided as an exemplary embodiment of this application. Figure 2 A schematic structural diagram of the photoelectrode used in the method of this application; and Figure 3 Cyclic voltammetry curves of the negative electrode electrolyte used in the method of this application are shown. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application are described in detail below. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be arbitrarily combined with each other.
[0025] In this application, "historical moment" can refer to a moment before training, and the spectral feature parameter x at that moment is extracted and the concentration parameter y at that moment is obtained.
[0026] In this application, the spectrophotometer can be a UV-Vis spectrophotometer, which can perform real-time full-spectrum scanning during the charging and discharging process of the vanadium redox flow battery. The UV-Vis spectrophotometer in this application can be a commercially available instrument, such as Avantes, with a wavelength range of 200-1100 nm and a sampling frequency of 20 Hz.
[0027] In this application, the signal data analysis tool can be the Python signal data analysis tool SciPy.
[0028] In this application, the concentration of vanadium ions can be obtained by electrochemical titration, which can be performed according to standard NB / T 42006-2013. Electrochemical titration yields the most accurate results, and therefore the concentration data obtained is particularly beneficial for the accuracy of subsequent model construction.
[0029] This application uses a test set to evaluate and validate the initial model. The following metrics can be used, but are not limited to, to represent the difference between the actual and expected output data of the negative electrode electrolyte state determination model: coefficient of determination R0. 2 Mean Square Error (MSE): In the above formula, y represents the model's predicted value. i for This represents the average value of the actual measured concentration parameter y, and N represents the number of predicted samples.
[0030] In this application, the primary condition for stopping training of the CatBoost model is the number of iterations. Training stops once the set number of iterations has been completed. "Implementations" refers to the number of decision trees in the CatBoost model, which can be up to 300.
[0031] The following describes in detail, with reference to embodiments, the real-time detection of the total vanadium ion concentration and state of charge (SOC) of the negative electrode electrolyte of the vanadium redox flow battery provided in this application. - The model training method.
[0032] Example 1 A photoelectrode and an optical flow cell are installed on the negative electrode electrolyte line of the all-vanadium battery system. The optical flow cell is connected to a UV-Vis spectrophotometer via optical fiber. The photoelectrode can measure the open-circuit voltage and the current value at the characteristic potential in real time, such as... Figure 2As shown, the photoelectrode can be a three-electrode system including a working electrode (Metrohm's screen-printed platinum electrode) 1, a counter electrode 2, and a reference electrode 3. A UV-Vis spectrophotometer (Avantes, wavelength range: 350-1050 nm, sampling frequency: 0.5 Hz) can measure the real-time absorbance spectrum. The absorbance spectrum data is analyzed using the Python signal data analysis tool SciPy in the battery management system, extracting the maximum peak wavelength and peak absorbance in the 350 nm-450 nm range, and the maximum peak wavelength and peak absorbance in the 500 nm-650 nm range. These spectral data are denoted as parameters x1-x4; simultaneously, the real-time measured open-circuit voltage is denoted as parameter x5, and the current value at the characteristic potential of -0.69V is denoted as parameter x6; as... Figure 3 As shown, at a potential of -0.69V, the current for the electrochemical reaction of V(III) to generate V(II) reaches its maximum value.
[0033] During charging and discharging, the electrolyte was sampled, and the concentrations of divalent vanadium V(II) and trivalent vanadium V(III) were measured and calculated according to the electrochemical titration method described in NB / T 42006-2013. The total concentration of divalent vanadium V(II) and trivalent vanadium V(III) was used as the total concentration parameter y1, and the state of charge (SOC) of the negative electrode electrolyte was used as the state of charge parameter y2. 10,000 samples containing spectral characteristic values x, the total concentration parameter y1, and the state of charge parameter y2 were collected. The data samples were divided into training and testing sets at a ratio of 4:1, and the spectral characteristic values x were normalized using StandardScaler.
[0034] A binary regression model based on the CatBoost algorithm was built and trained using the training set. GridSearchCV was used to perform 10-fold cross-validation on the hyperparameter grid (the training set was divided into 10 parts for iterative validation). The hyperparameter grid included the number of decision tree iterations, the maximum depth (max_depth), the learning rate (learning_rate), and the L2 regularization coefficient (l2_leaf_reg). The number of decision tree iterations could be 100, 200, or 300; the maximum depth could be 3, 5, or 7; the learning rate could be 0.05 or 0.1; and the L2 regularization coefficient (l2_leaf_reg) could be 1 or 3. The scoring metric was negative mean squared error (MSE). After screening, the model showed the largest negative mean squared error and the best regression performance when the number of decision tree iterations was 300, the maximum depth was 5, the learning rate was 0.1, and the L2 regularization coefficient (l2_leaf_reg) was 3. Therefore, the above combination was selected as the algorithm parameters, and the model performance was further evaluated by substituting it into the test set data. The evaluation metric was the coefficient of determination R. 2 Mean square error (MSE) and coefficient of determination (R²) 2 The calculated result is 0.998, and the mean square error (MSE) is 0.001.
[0035] Finally, the trained model is exported, packaged, and imported into the Battery Management System (BMS). The measured optical and electrochemical signals are then input, and the model is used to calculate the total vanadium ion concentration and state of charge (SOC) of the negative electrode electrolyte. - .
[0036] This application extracts optical parameter feature values from the optical signal measured by an ultraviolet spectrophotometer and inputs them into the battery management system (BMS). The BMS then inputs these optical parameter feature values into the trained model to obtain the divalent vanadium ion V( II ) and trivalent vanadium ions V( III The concentration of vanadium divalent ions (V( )) in the negative electrode electrolyte is obtained from the battery management system (BMS). II ) and trivalent vanadium ions V( III The concentration of ) and the state of charge (SOC) of the negative electrode electrolyte - .
[0037] Comparative Example 1 During the charging and discharging process of the vanadium battery system, a UV-Vis spectrophotometer system (Avantes, wavelength range: 350-1050 nm, sampling frequency: 0.5 Hz) on the negative electrode electrolyte pipeline was used to monitor and acquire real-time absorbance spectra. The spectral data was analyzed using the Python signal data analysis tool SciPy to extract the spectral characteristic data at the current moment: the first maximum peak wavelength parameter x1 and the first peak absorbance parameter x2 in the 350-450 nm range, and the second maximum peak wavelength parameter x3 and the second peak absorbance parameter x4 in the 500-650 nm range. These parameters were used as inputs to the negative electrode electrolyte state determination model. During charging and discharging, the electrolyte was sampled, and the concentrations of divalent vanadium V(II) and trivalent vanadium V(III) were measured and calculated according to the electrochemical titration method described in NB / T 42006-2013. The total concentration of divalent vanadium V(II) and trivalent vanadium V(III) was used as the total concentration parameter y1, and the state of charge (SOC) of the negative electrode electrolyte was used as y2. 10,000 samples containing spectral characteristic values x, total concentration parameter y1, and state of charge parameter y2 were collected. The data samples were divided into training and testing sets at a ratio of 4:1, and the spectral characteristic values x were normalized using StandardScaler.
[0038] A binary regression model based on the CatBoost algorithm was built and trained using the training set. GridSearchCV was used to perform 10-fold cross-validation on the hyperparameter grid (the training set was divided into 10 parts for iterative validation). The hyperparameter grid included the number of decision tree iterations, the maximum depth (max_depth), the learning rate (learning_rate), and the L2 regularization coefficient (l2_leaf_reg). The number of decision tree iterations could be 100, 200, or 300; the maximum depth could be 3, 5, or 7; the learning rate could be 0.05 or 0.1; and the L2 regularization coefficient (l2_leaf_reg) could be 1 or 3. The scoring metric was negative mean squared error (MSE). After screening, the model showed the largest negative mean squared error and the best regression performance when the number of decision tree iterations was 300, the maximum depth was 5, the learning rate was 0.1, and the L2 regularization coefficient (l2_leaf_reg) was 3. Therefore, the above combination was selected as the algorithm parameters, and the model performance was further evaluated by substituting it into the test set data. The evaluation metric was the coefficient of determination R. 2 Mean square error (MSE) and coefficient of determination (R²) 2 The calculated result is 0.985, and the mean square error (MSE) is 0.003.
[0039] Compared with Comparative Example 1, the method and system of this application make the state monitoring of the negative electrode electrolyte more reliable. When the sensor data of one module is abnormal, the other module can still output stably. In addition to the open circuit voltage, the electrochemical signal introduced in this application also introduces the current value at the characteristic potential (-0.69V), which also avoids the problem of unstable open circuit voltage signal caused by electrode surface contamination in traditional methods.
[0040] Moreover, the coefficient of determination R of the evaluation index 2 In terms of mean square error (MSE), this application achieves a significant improvement in prediction accuracy compared to using only optical signal parameters by combining optical signal parameters and electrical signal parameters.
[0041] Comparative Example 2 A photoelectrode (Metrohm screen-printed platinum electrode) was installed on the negative electrode electrolyte line of the vanadium redox flow battery system. A UV-Vis spectrophotometer system (Avantes, wavelength range: 350-1050 nm, sampling frequency: 0.5 Hz) was used to monitor and collect real-time absorbance spectra, and the real-time open-circuit voltage and current value at the characteristic potential were measured. The spectral data were analyzed using the Python signal data analysis tool SciPy, from which the following were extracted: the maximum peak wavelength and peak absorbance in the 350 nm-450 nm range, and the maximum peak wavelength and peak absorbance in the 500 nm-650 nm range, designated as x1-x4; simultaneously, the real-time measured open-circuit voltage was recorded as x5, and the current value at the characteristic potential of -0.5 V was recorded as x6. This reduction potential can induce an electrochemical reaction that converts V(III) to V(II). During charging and discharging, the electrolyte was sampled, and the concentrations of divalent vanadium V(II) and trivalent vanadium V(III) were measured and calculated according to the electrochemical titration method described in NB / T 42006-2013. The sum of the concentrations of divalent vanadium V(II) and trivalent vanadium V(III) was the total vanadium concentration y1, and the state of charge (SOC) of the negative electrode electrolyte was used as y2. 10,000 samples containing spectral feature values x and y were collected. The data samples were divided into training and testing sets at a ratio of 4:1, and the spectral feature value x was normalized using StandardScaler.
[0042] A binary regression model based on the CatBoost algorithm was built and trained using the training set. GridSearchCV was used to perform 10-fold cross-validation on the hyperparameter grid (the training set was divided into 10 parts for iterative validation). The hyperparameter grid included the number of decision tree iterations, the maximum depth (max_depth), the learning rate (learning_rate), and the L2 regularization coefficient (l2_leaf_reg). The number of decision tree iterations could be 100, 200, or 300; the maximum depth could be 3, 5, or 7; the learning rate could be 0.05 or 0.1; and the L2 regularization coefficient (l2_leaf_reg) could be 1 or 3. The scoring metric was negative mean squared error (MSE). After screening, the model showed the largest negative mean squared error and the best regression performance when the number of decision tree iterations was 300, the maximum depth was 5, the learning rate was 0.1, and the L2 regularization coefficient (l2_leaf_reg) was 3. Therefore, the above combination was selected as the algorithm parameters, and the model performance was further evaluated by substituting it into the test set data. The evaluation metric was the coefficient of determination R. 2 Mean square error (MSE) and coefficient of determination (R²) 2 The calculated result is 0.991, and the mean square error (MSE) is 0.002.
[0043] The results above show that when the characteristic potential introduced into the input value is -0.69V, the electrochemical reaction of V(III) to V(II) is more complete, and the prediction accuracy is further improved compared with the characteristic potential of -0.5V.
[0044] Comparative Example 3 The 10,000 sets of x1-x6, y1 and y2 data collected in Example 1, along with the corresponding training and test sets, were used.
[0045] A negative electrode electrolyte state determination model based on artificial neural networks was established. This model includes an input layer (5 neurons), an output layer (2 neurons), and a hidden layer. All neurons in each layer are fully connected to all neurons in the next layer. The model employs the Adam optimizer and the ReLU activation function for the hidden layer. The mean squared error (MSE) loss function is used. 32 test set samples are used in each batch for training. The model calculates the gradient based on the loss function and then updates the parameters according to the Adam optimizer. The training set is iterated through 1000 times.
[0046] The model training process may include first setting the number of neurons in the hidden layer to 6, training the model using training set samples, then validating it using test set samples, and comparing the predicted y-values with the actual y-values to obtain the evaluation metric, the coefficient of determination R. 2The mean squared error (MSE) and mean absolute error (MAE) were then measured. The number of neurons in the hidden layer was subsequently increased, and the model was trained and evaluated using the same sample set each time. When the number of neurons in the hidden layer was set to 12, the coefficient of determination R0 was... 2 The mean squared error (MSE) and mean absolute error (MAE) are optimized.
[0047] After optimization, the spectral characteristic values and electrochemical signals (open-circuit voltage and current value at characteristic potential) of the test set are substituted into the model, the prediction results are compared with y of the test set, and the coefficient of determination R is calculated. 2 Mean square error (MSE) and coefficient of determination (R²) 2 The calculated result is 0.996, and the mean square error (MSE) is 0.003.
[0048] Compared to the CatBoost binary regression model used in this application, the artificial neural network model used in Comparative Example 3 shows worse prediction accuracy when using the same test set. This indicates that the CatBoost-based model in this application has better overfitting suppression and parameter generalization effects. In this application scenario, the CatBoost model can achieve good prediction accuracy without complex parameter tuning.
[0049] While the embodiments disclosed in this application are as described above, the content is merely for the purpose of facilitating understanding of this application and is not intended to limit this application. Any person skilled in the art to which this application pertains may make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in this application; however, the scope of protection of this application shall still be determined by the scope defined in the appended claims.
Claims
1. A method for determining the total vanadium ion concentration and state of charge of the negative electrode electrolyte in a vanadium redox flow battery, characterized in that, Includes the following steps: S1: Extract the spectral characteristic parameter x at the current moment from the absorbance spectrum of the negative electrode electrolyte during the charging and discharging of the vanadium redox flow battery. The spectral characteristic parameter x includes a first maximum peak wavelength parameter x1 and a first peak absorbance parameter x2 in the range of 350-450 nm, a second maximum peak wavelength parameter x3 and a second peak absorbance parameter x4 in the range of 500-650 nm. S2: Measure and obtain the open-circuit voltage parameter x5 and the current parameter x6 at the characteristic potential of the vanadium redox flow battery at the current state of charge. S3: Input the extracted first maximum peak wavelength parameter x1, first peak absorbance parameter x2, second maximum peak wavelength parameter x3, second peak absorbance parameter x4, open-circuit voltage parameter x5, and current parameter x6 at the characteristic potential into the trained negative electrode electrolyte state determination model based on the CatBoost algorithm to obtain the total concentration parameter y1 and state of charge parameter y2 at the current moment; wherein, the total concentration parameter y1 is the total concentration of divalent vanadium ions and trivalent vanadium ions in the negative electrode electrolyte, and the state of charge parameter y2 is the state of charge of the negative electrode electrolyte, which can be calculated by the following formula: ; The negative electrode electrolyte state determination model was trained in the following way: Extract the first maximum peak wavelength parameter x1, the first peak absorbance parameter x2, the second maximum peak wavelength parameter x3, the second peak absorbance parameter x4, the open circuit voltage parameter x5, and the current parameter x6 at the characteristic potential from multiple historical moments, and obtain the total concentration parameter y1 and the state of charge parameter y2 for the multiple historical moments; The first maximum peak wavelength parameter x1, the first peak absorbance parameter x2, the second maximum peak wavelength parameter x3, the second peak absorbance parameter x4, the open circuit voltage parameter x5, and the current parameter x6 at the characteristic potential are input into the negative electrode electrolyte state measurement model as input data, and the total concentration parameter y1 and the state of charge parameter y2 are used as the expected output data of the negative electrode electrolyte state measurement model to train the negative electrode electrolyte state measurement model. When the actual output data of the negative electrode electrolyte state measurement model meets the set training termination condition, the training of the negative electrode electrolyte state measurement model is stopped, and the trained negative electrode electrolyte state measurement model is obtained.
2. The method according to claim 1, characterized in that, Extracting the spectral characteristic parameter x at the current moment includes connecting a spectrophotometer to the negative electrode electrolyte circulation system of the vanadium redox flow battery and performing real-time full-spectrum scanning during charging and discharging; and using signal data analysis tools to extract the first maximum peak wavelength parameter x1, the first peak absorbance parameter x2, the second maximum peak wavelength parameter x3, the second peak absorbance parameter x4, and the open-circuit voltage parameter x5; and / or, The current parameter x6 at the characteristic potential is set as the current value at the characteristic potential of -0.69V.
3. The method according to claim 1, characterized in that, Obtaining the total concentration parameters and state of charge parameters at the current moment includes: at the current moment, collecting a sample of the negative electrode electrolyte and measuring the concentration of divalent vanadium ions in the negative electrode electrolyte using electrochemical titration. C v(II) and the concentration of trivalent vanadium ions C v(III ) The total concentrations of divalent and trivalent vanadium ions and the state of charge of the negative electrode electrolyte were calculated to obtain the total concentration parameter y1 and the state of charge parameter y2.
4. The method according to any one of claims 1-3, characterized in that, Training the negative electrode electrolyte state measurement model includes: constructing a training set from 80% of the extracted first maximum peak wavelength parameter x1, first peak absorbance parameter x2, second maximum peak wavelength parameter x3, second peak absorbance parameter x4, open circuit voltage parameter x5, and current parameter x6 at characteristic potential, along with the obtained total concentration parameter y1 and state of charge parameter y2; and constructing a test set from 20% of the data; and using the data in the training set to train the negative electrode electrolyte state measurement model. After obtaining the trained negative electrode electrolyte state determination model, the method further includes: testing the trained negative electrode electrolyte state determination model using data from the test set.
5. The method according to claim 4, characterized in that, Training the negative electrode electrolyte state determination model further includes: using GridSearchCV to filter the hyperparameter grid in the CatBoost algorithm during training, and using N-fold cross-validation to verify different combinations of the hyperparameter grid, selecting the optimal value of the hyperparameter grid, and obtaining the current optimal model.
6. The method according to claim 5, characterized in that, The N-fold cross-validation is a ten-fold cross-validation.
7. The method according to claim 5, characterized in that, The hyperparameter mesh includes iterations, max_depth, learning_rate, and l2_leaf_reg.
8. The method according to claim 5, characterized in that, Training the negative electrode electrolyte state determination model further includes: continuing to use the data from the training set to train the optimal model, and using the data from the test set to evaluate the optimal model, until the set training termination conditions are met.
9. A system for determining the total vanadium ion concentration and state of charge of the negative electrode electrolyte in a vanadium redox flow battery, characterized in that, include: A measuring device connected to the negative electrode electrolyte of the vanadium redox flow battery, the measuring device comprising an optical measuring unit for measuring the absorbance spectrum of the negative electrode electrolyte at a current moment during the charging and discharging of the vanadium redox flow battery, and an electrical measuring unit for measuring the open-circuit voltage and current at the characteristic potential of the negative electrode electrolyte at a current moment. A battery management system, connected to the measuring device and equipped with a negative electrode electrolyte state determination model based on the CatBoost algorithm, is configured to convert the absorbance spectrum, open-circuit voltage, and current at the characteristic potential measured by the measuring device at the current moment into spectral characteristic parameters x, open-circuit voltage parameters x5, and current parameters at the characteristic potential x6, respectively, and input them into the negative electrode electrolyte state determination model to obtain the total concentration parameter y1 and the state of charge parameter y2 at the current moment. The spectral characteristic parameter x includes a first maximum peak wavelength parameter x1 and a first peak absorbance parameter x2 in the range of 350-450 nm, a second maximum peak wavelength parameter x3 in the range of 500-650 nm, and a second peak absorbance parameter x4. The total concentration parameter y1 is the total concentration of divalent vanadium ions and trivalent vanadium ions in the negative electrode electrolyte, and the state of charge parameter y2 is the state of charge of the negative electrode electrolyte, which can be calculated by the following formula: ; The negative electrode electrolyte state determination model was obtained through the following method: Extract the first maximum peak wavelength parameter x1, the first peak absorbance parameter x2, the second maximum peak wavelength parameter x3, the second peak absorbance parameter x4, the open circuit voltage parameter x5, and the current parameter x6 at the characteristic potential from multiple historical moments, and obtain the total concentration parameter y1 and the state of charge parameter y2 for the multiple historical moments; The first maximum peak wavelength parameter x1, the first peak absorbance parameter x2, the second maximum peak wavelength parameter x3, the second peak absorbance parameter x4, the open circuit voltage parameter x5, and the current parameter x6 at the characteristic potential are input into the negative electrode electrolyte state measurement model as input data, and the total concentration parameter y1 and the state of charge parameter y2 are used as the expected output data of the negative electrode electrolyte state measurement model to train the negative electrode electrolyte state measurement model. When the actual output data of the negative electrode electrolyte state measurement model meets the set training termination condition, the training of the negative electrode electrolyte state measurement model is stopped, and the negative electrode electrolyte state measurement model is obtained.
10. The system according to claim 9, characterized in that, The optical measurement unit includes an ultraviolet spectrophotometer; the electrical measurement unit includes a three-electrode system.
