[go: up one dir, main page]

CN112798962B - Battery hysteresis model training method, battery SOC estimation method and device - Google Patents

Battery hysteresis model training method, battery SOC estimation method and device Download PDF

Info

Publication number
CN112798962B
CN112798962B CN202110277793.1A CN202110277793A CN112798962B CN 112798962 B CN112798962 B CN 112798962B CN 202110277793 A CN202110277793 A CN 202110277793A CN 112798962 B CN112798962 B CN 112798962B
Authority
CN
China
Prior art keywords
battery
time
hysteresis model
circuit voltage
training
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110277793.1A
Other languages
Chinese (zh)
Other versions
CN112798962A (en
Inventor
陈英杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningde Amperex Technology Ltd
Original Assignee
Dongguan Poweramp Technology Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongguan Poweramp Technology Ltd filed Critical Dongguan Poweramp Technology Ltd
Priority to CN202110277793.1A priority Critical patent/CN112798962B/en
Publication of CN112798962A publication Critical patent/CN112798962A/en
Application granted granted Critical
Publication of CN112798962B publication Critical patent/CN112798962B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/367Software therefor, e.g. for battery testing using modelling or look-up tables
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/385Arrangements for measuring battery or accumulator variables
    • G01R31/387Determining ampere-hour charge capacity or SoC

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Secondary Cells (AREA)

Abstract

The application provides a battery hysteresis model training method, which comprises the following steps: collecting working current I k of the battery from the time t 0 to the time t k on line; a current integration quantity Q is calculated from the operating current (t k), wherein,If the battery meets the open-circuit voltage acquisition condition at the time t k according to the working current, acquiring the open-circuit voltage OCV (t k) of the battery at the time t k; collecting the temperature T bat(tk of the battery at the time T k); constructing a sample set from the current integration quantity Q (T k), the temperature T bat(tk), and the open circuit voltage OCV (T k); and training the battery hysteresis model according to the sample set. The application also provides a method and a device for estimating the SOC of the battery. The application can obtain the open-circuit voltage of the battery on line according to the current and the temperature acquired in real time.

Description

电池滞回模型训练方法、估算电池SOC的方法和装置Battery hysteresis model training method, battery SOC estimation method and device

技术领域Technical Field

本申请涉及电池技术领域,尤其涉及一种电池滞回模型训练方法、估算电池SOC的方法和装置。The present application relates to the field of battery technology, and in particular to a battery hysteresis model training method, and a method and device for estimating battery SOC.

背景技术Background technique

电池的核电状态(State of Charge,SOC)估计是电池管理系统的核心功能之一。精确的SOC估计可以保障电池系统安全可靠地工作,优化电池系统,并为用电装置(如电动汽车)的能量管理和安全管理等提供依据。传统的SOC估计方法较多是利用SOC与开路电压(Open Circuit Voltage,OCV)对应关系得到。然而电池中开路电压和OCV并不完全一一对应,而是存在滞回关系。因此,在使用开路电压估算电池的SOC时,需要考虑滞回特性对电池的OC的影响。现有的电池开路电压滞回特性的建模方法引入了较多的简化,使得滞回模型的建模精度低,从而影响SOC估计。因此,满足精度要求且能实时得到的电池SOC一直是行业内亟待解决的问题。The estimation of the battery's state of charge (SOC) is one of the core functions of the battery management system. Accurate SOC estimation can ensure the safe and reliable operation of the battery system, optimize the battery system, and provide a basis for energy management and safety management of electrical devices (such as electric vehicles). Traditional SOC estimation methods mostly use the correspondence between SOC and open circuit voltage (OCV). However, the open circuit voltage and OCV in the battery do not completely correspond one to one, but there is a hysteresis relationship. Therefore, when using the open circuit voltage to estimate the battery's SOC, it is necessary to consider the impact of the hysteresis characteristics on the battery's OC. The existing modeling method of the battery open circuit voltage hysteresis characteristics introduces a lot of simplifications, which makes the modeling accuracy of the hysteresis model low, thereby affecting the SOC estimation. Therefore, the battery SOC that meets the accuracy requirements and can be obtained in real time has always been a problem that needs to be solved in the industry.

发明内容Summary of the invention

有鉴于此,有必要提供一种电池滞回模型训练方法、估算电池SOC的方法和装置,可以根据实时采集的电流和温度在线得到电池的开路电压。In view of this, it is necessary to provide a battery hysteresis model training method, a method and device for estimating battery SOC, which can obtain the open circuit voltage of the battery online according to the current and temperature collected in real time.

本申请一实施方式提供了一种电池滞回模型训练方法,在线采集电池从所述t0时刻至所述tk时刻的工作电流Ik,其中,k>0;根据所述工作电流计算从所述t0时刻至所述tk时刻的电流积分量Q(tk),其中,若根据所述工作电流确定所述电池在tk时刻满足开路电压采集条件,采集所述电池在所述tk时刻的开路电压OCV(tk);采集所述电池在tk时刻的温度Tbat(tk);根据所述电流积分量Q(tk)、所述温度Tbat(tk)和所述开路电压OCV(tk)构造样本集;及根据所述样本集训练所述电池滞回模型。An embodiment of the present application provides a battery hysteresis model training method, which collects the working current I k of the battery from the time t 0 to the time t k online, where k>0; calculates the current integral Q(t k ) from the time t 0 to the time t k according to the working current, where: If it is determined according to the working current that the battery meets the open circuit voltage collection condition at time t k , collect the open circuit voltage OCV(t k ) of the battery at the time t k ; collect the temperature T bat (t k ) of the battery at the time t k ; construct a sample set according to the current integral Q(t k ), the temperature T bat (t k ) and the open circuit voltage OCV(t k ); and train the battery hysteresis model according to the sample set.

根据本申请的一些实施方式,所述样本集包括正样本集和负样本集,根据所述电流积分量Q(tk)、所述温度Tbat(tk)和所述开路电压OCV(tk)构造样本集包括:获取所述正样本集中的正样本的电流积分量Q(tk)、温度Tbat(tk)和开路电压OCV(tk)及所述负样本集中的负样本的电流积分量Q(tk)、温度Tbat(tk)和开路电压OCV(tk);将正样本的电流积分量Q(tk)、温度Tbat(tk)和开路电压OCV(tk)据标注类别数据,以使正样本的电流积分量Q(tk)、温度Tbat(tk)和开路电压OCV(tk)携带类别标签。According to some embodiments of the present application, the sample set includes a positive sample set and a negative sample set, and constructing the sample set according to the current integrated amount Q(t k ), the temperature T bat (t k ) and the open circuit voltage OCV(t k ) includes: obtaining the current integrated amount Q(t k ), the temperature T bat (t k ) and the open circuit voltage OCV(t k ) of the positive samples in the positive sample set and the current integrated amount Q(t k ), the temperature T bat (t k ) and the open circuit voltage OCV(t k ) of the negative samples in the negative sample set; and labeling the current integrated amount Q(t k ), the temperature T bat (t k ) and the open circuit voltage OCV(t k ) of the positive samples with category data so that the current integrated amount Q(t k ), the temperature T bat (t k ) and the open circuit voltage OCV(t k ) of the positive samples carry category labels.

根据本申请的一些实施方式,所述根据所述样本集训练所述电池滞回模型包括:根据所述样本集生成样本训练集及样本测试集;根据所述样本训练集训练所述电池滞回模型,并根据所述样本测试集验证训练后的所述电池滞回模型的准确率;及若所述准确率大于或者等于预设准确率,结束所述电池滞回模型的训练过程。According to some embodiments of the present application, training the battery hysteresis model according to the sample set includes: generating a sample training set and a sample test set according to the sample set; training the battery hysteresis model according to the sample training set, and verifying the accuracy of the trained battery hysteresis model according to the sample test set; and if the accuracy is greater than or equal to a preset accuracy, ending the training process of the battery hysteresis model.

根据本申请的一些实施方式,所述根据所述样本集训练所述电池滞回模型包括还包括:若所述准确率小于所述预设准确率,增加所述样本训练集的数量以重新训练所述电池滞回模型,直至所述准确率大于或者等于所述预设准确率。According to some embodiments of the present application, training the battery hysteresis model based on the sample set also includes: if the accuracy is less than the preset accuracy, increasing the number of the sample training sets to retrain the battery hysteresis model until the accuracy is greater than or equal to the preset accuracy.

根据本申请的一些实施方式,所述根据所述样本集生成样本训练集及样本测试集包括:在所生成的样本训练集中随机选择第一预设数量的样本训练集用于训练;在所生成的样本测试集中随机选择第二预设数量的样本测试集用于验证。According to some embodiments of the present application, generating a sample training set and a sample test set based on the sample set includes: randomly selecting a first preset number of sample training sets from the generated sample training set for training; and randomly selecting a second preset number of sample test sets from the generated sample test set for verification.

根据本申请的一些实施方式,若所述工作电流在第一预设时间段内保持小于第一预设值,确定在tk时刻所述电池满足开路电压采集条件,其中,所述第一预设时间段的起始时间点为tk-i,结束时间点为tk,0<i<k。According to some embodiments of the present application, if the operating current remains less than a first preset value within a first preset time period, it is determined that the battery meets the open circuit voltage acquisition condition at time t k , wherein the start time point of the first preset time period is t ki and the end time point is t k , and 0<i<k.

根据本申请的一些实施方式,所述方法还包括:若所述工作电流在第二预设时间段内大于或等于第二预设值,结束采集所述电池的开路电压;继续采集所述电池的工作电流,并根据采集的工作电流更新历史数据。According to some embodiments of the present application, the method further includes: if the operating current is greater than or equal to a second preset value within a second preset time period, ending the collection of the open circuit voltage of the battery; continuing to collect the operating current of the battery, and updating historical data based on the collected operating current.

根据本申请的一些实施方式,所述第一预设值和电池容量或电池温度中至少一个相关。According to some embodiments of the present application, the first preset value is related to at least one of the battery capacity or the battery temperature.

根据本申请的一些实施方式,所述电池滞回模型包括输入层、隐含层和输出层。According to some embodiments of the present application, the battery hysteresis model includes an input layer, a hidden layer and an output layer.

本申请一实施方式提供了一种利用所述电池滞回模型训练方法训练出的滞回模型进行估算电池SOC的方法,所述方法包括:在线采集电池从所述t0时刻至所述tk时刻的工作电流Ik,其中,k>0;根据所述工作电流计算从所述t0时刻至所述tk时刻的电流积分量Q(tk);获取所述电池在tk时刻的温度Tbat(tk);输入所述电流积分量Q(tk)和温度Tbat(tk)至所述电池滞回模型,得到所述电池在tk时刻的开路电压;及根据所述开路电压查询SOC-OCV对应关系得到所述电池的荷电状态。An embodiment of the present application provides a method for estimating a battery SOC by using a hysteresis model trained by the battery hysteresis model training method, the method comprising: online collecting a working current I k of the battery from the time t 0 to the time t k , wherein k>0; calculating a current integral Q(t k ) from the time t 0 to the time t k according to the working current; obtaining a temperature T bat (t k ) of the battery at the time t k ; inputting the current integral Q(t k ) and the temperature T bat (t k ) into the battery hysteresis model to obtain an open circuit voltage of the battery at the time t k ; and obtaining the state of charge of the battery by querying a SOC-OCV correspondence relationship according to the open circuit voltage.

根据本申请的一些实施方式,采用安时积分法和开路电压法结合得出SOC-OCV对应关系。According to some embodiments of the present application, the SOC-OCV correspondence relationship is obtained by combining the ampere-hour integration method and the open circuit voltage method.

本申请一实施方式提供了一种用电装置,所述用电装置包括存储器以及处理器,所述处理器用于执行所述存储器中存储的计算机程序时实现如上所述电池滞回模型训练方法或者实现如上所述估算电池SOC的方法。An embodiment of the present application provides an electrical device, which includes a memory and a processor, and the processor is used to implement the above-mentioned battery hysteresis model training method or the above-mentioned method for estimating battery SOC when executing a computer program stored in the memory.

根据本申请的一些实施方式,所述用电装置包括储能设备、或两轮以上电动汽车、或无人机、或电动工具。According to some embodiments of the present application, the electrical device includes an energy storage device, an electric vehicle with two or more wheels, a drone, or an electric tool.

本申请的实施方式通过在线采集电池的工作电流数据,并将所述工作电流数据抽象为电流积分量。将所述电流积分量与当前时刻采集的电池温度和开路电压作为样本数据训练得到所述电池滞回模型。在使用过程中,可以根据实时采集的电流计算所述电流积分量,并将所述电流积分量和采集的电池温度共同作为输入量,通过所述训练好的电池滞回模型得到对应的开路电压,并根据该开路电压得到电池的核电状态。由于本方法建模过程中不进行离线实验,且电池滞回模型的输入量简单,对用电装置的计算能力和存储能力要求低。实现在精度可接受的同时具备低实验量、低计算量和低存储量的优势。The implementation method of the present application collects the working current data of the battery online, and abstracts the working current data into the current integral. The current integral and the battery temperature and open circuit voltage collected at the current moment are used as sample data for training to obtain the battery hysteresis model. During use, the current integral can be calculated according to the current collected in real time, and the current integral and the collected battery temperature are used as input quantities. The corresponding open circuit voltage is obtained through the trained battery hysteresis model, and the core power state of the battery is obtained according to the open circuit voltage. Since offline experiments are not performed during the modeling process of this method, and the input quantity of the battery hysteresis model is simple, the computing power and storage capacity requirements of the electrical device are low. The advantages of low experimental quantity, low calculation quantity and low storage quantity are achieved while the accuracy is acceptable.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是根据本申请一实施方式的用电装置的结构示意图。FIG1 is a schematic structural diagram of an electric device according to an embodiment of the present application.

图2是根据本申请一实施方式的电池滞回模型训练方法的流程图。FIG2 is a flow chart of a battery hysteresis model training method according to an embodiment of the present application.

图3是根据本申请一实施方式的电池滞回模型的示意图。FIG. 3 is a schematic diagram of a battery hysteresis model according to an embodiment of the present application.

图4是根据本申请一实施方式的估算电池SOC的方法的流程图。FIG. 4 is a flow chart of a method for estimating a battery SOC according to an embodiment of the present application.

主要元件符号说明Main component symbols

用电装置 1Electrical equipment 1

存储器 11Memory 11

处理器 12Processor 12

电池 13Battery 13

采集装置 14Collection device 14

计时器 15Timer 15

如下具体实施方式将结合上述附图进一步详细说明本申请。The following specific implementation methods will further explain the present application in detail in conjunction with the above-mentioned drawings.

具体实施方式Detailed ways

下面将结合本申请实施方式中的附图,对本申请实施方式中的技术方案进行清楚、完整地描述,显然,所描述的实施方式是本申请一部分实施方式,而不是全部的实施方式。The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

请参阅图1,图1为本申请一实施例的用电装置的示意图。参阅图1所示,所述用电装置1包括,但不仅限于,存储器11、至少一个处理器12、电池13、采集装置14、以及计时器15,上述元件之间可以通过总线连接,也可以直接连接。Please refer to Figure 1, which is a schematic diagram of an electric device according to an embodiment of the present application. As shown in Figure 1, the electric device 1 includes, but is not limited to, a memory 11, at least one processor 12, a battery 13, a collection device 14, and a timer 15, and the above components can be connected through a bus or directly connected.

在一个实施例中,所述电池13为可充电电池,用于给所述用电装置1提供电能。例如,所述电池13可以是铅酸电池、镍镉电池、镍氢电池、锂离子电池、锂聚合物电池及磷酸铁锂电池等。所述电池13通过电池管理系统(Battery Management System,BMS)与所述处理器12逻辑相连,从而通过所述电池管理系统实现充电、以及放电等功能。所述电池管理系统可通过CAN或RS485与储能逆变器(Power Conversion System,PCS)通讯连接。所述电池13包括电芯(图中未示出),所述电池可以采用可循环再充电的方式反复充电。In one embodiment, the battery 13 is a rechargeable battery for providing electrical energy to the electrical device 1. For example, the battery 13 can be a lead-acid battery, a nickel-cadmium battery, a nickel-metal hydride battery, a lithium-ion battery, a lithium polymer battery, and a lithium iron phosphate battery. The battery 13 is logically connected to the processor 12 through a battery management system (Battery Management System, BMS), so that the battery management system can realize functions such as charging and discharging. The battery management system can be connected to the energy storage inverter (Power Conversion System, PCS) via CAN or RS485. The battery 13 includes a battery cell (not shown in the figure), and the battery can be repeatedly charged in a cyclic and rechargeable manner.

在本实施例中,所述采集装置14包括用于采集电池13的电压及电池13的电流的模数转换器和采集电池13的温度的温度计。可以理解的是,所述采集装置14还可为其他电压采集装置及电流采集装置。所述计时器15用于记录所述电池13的工作时间。可以理解的是,所述用电装置1还可以包括其他装置,例如压力传感器、光线传感器、陀螺仪、湿度计、红外线传感器等。In this embodiment, the acquisition device 14 includes an analog-to-digital converter for acquiring the voltage of the battery 13 and the current of the battery 13 and a thermometer for acquiring the temperature of the battery 13. It is understood that the acquisition device 14 can also be other voltage acquisition devices and current acquisition devices. The timer 15 is used to record the working time of the battery 13. It is understood that the electrical device 1 can also include other devices, such as a pressure sensor, a light sensor, a gyroscope, a hygrometer, an infrared sensor, etc.

需要说明的是,图1仅为举例说明用电装置1。在其他实施方式中,用电装置1也可以包括更多或者更少的元件,或者具有不同的元件配置。所述用电装置1可以为储能产品、或电动工具、或清洁工具、货独轮或2轮以上电动汽车、无人机,或者任何其他适合的可充电式设备。It should be noted that FIG. 1 is only an example of the electric device 1. In other embodiments, the electric device 1 may also include more or fewer components, or have different component configurations. The electric device 1 may be an energy storage product, or an electric tool, or a cleaning tool, a cargo wheel or an electric vehicle with more than two wheels, a drone, or any other suitable rechargeable device.

尽管未示出,所述用电装置1还可以包括无线保真(Wireless Fidelity,WiFi)单元、蓝牙单元、扬声器等其他组件,在此不再一一赘述。Although not shown, the electrical device 1 may also include other components such as a Wireless Fidelity (WiFi) unit, a Bluetooth unit, a speaker, etc., which will not be described in detail here.

请参阅图2,图2为根据本申请一实施方式的电池滞回模型训练方法的流程图。所述电池滞回模型训练方法用于建立电池滞回模型,并且可以通过所述电池滞回模型在线估计电池13的荷电状态,所述电池滞回模型训练方法可以包括以下步骤:Please refer to FIG. 2 , which is a flow chart of a battery hysteresis model training method according to an embodiment of the present application. The battery hysteresis model training method is used to establish a battery hysteresis model, and the state of charge of the battery 13 can be estimated online through the battery hysteresis model. The battery hysteresis model training method may include the following steps:

步骤S21:在线采集电池13从所述t0时刻至所述tk时刻的工作电流Ik,其中,k>0。Step S21: online collecting the working current I k of the battery 13 from the time t 0 to the time t k , where k>0.

在本实施方式中,可以通过所述采集装置14采集所述电池13的工作电流。例如,所述采集装置14为霍尔电流传感器。In this embodiment, the working current of the battery 13 can be collected by the collection device 14. For example, the collection device 14 is a Hall current sensor.

例如,采集到t0时刻的工作电流为I0,t1时刻的工作电流为I1,t2时刻的工作电流为I2,tk时刻的工作电流为Ik。可以根据采集到的工作电流与时间信息生成一电流信息序列,所述电流信息序列为{I0,I1,I2...Ik}。For example, the collected working current at time t0 is I0 , the collected working current at time t1 is I1 , the collected working current at time t2 is I2 , and the collected working current at time tk is Ik . A current information sequence can be generated according to the collected working current and time information, and the current information sequence is { I0 , I1 , I2 ... Ik }.

步骤S22:根据所述工作电流计算从所述t0时刻至所述tk时刻的电流积分量Q(tk)。Step S22: calculating the current integral Q(t k ) from the time t 0 to the time t k according to the working current.

为了解决现有方法中需要通过离线获取实验数据带来的实验耗时高,或大量近期历史电流数据在线训练所述电池滞回模型,带来的计算能力要求高的问题。本申请提供的电池滞回模型训练方法,可以将实时采集的工作电流数据抽象为一个参数(如电流积分量),并与当前时刻采集的电池温度共同作为构建训练样本的数据,从而训练所述电池滞回模型。实现在线计算及减少数据量的技术效果。In order to solve the problem of high time consumption caused by offline acquisition of experimental data in existing methods, or high computing power requirements caused by online training of the battery hysteresis model with a large amount of recent historical current data. The battery hysteresis model training method provided in this application can abstract the real-time collected working current data into a parameter (such as current integral), and use it together with the battery temperature collected at the current moment as data for constructing training samples, so as to train the battery hysteresis model. The technical effect of achieving online calculation and reducing the amount of data is achieved.

在本实施方式中,所述电流积分量Q(tk)的计算公式为:即通过计算所述电池从所述t0时刻至所述tk时刻的电量作为样本数据。需要说明的是,取所述工作电流Ik的放电方向为正。In this embodiment, the calculation formula of the current integral Q(t k ) is: That is, the amount of electricity of the battery from the time t 0 to the time t k is calculated as sample data. It should be noted that the discharge direction of the working current I k is taken as positive.

步骤S23:确定所述电池13在tk时刻是否满足开路电压采集条件。若确定所述电池在tk时刻满足开路电压采集条件,流程进入步骤S24;若确定所述电池在tk时刻不满足开路电压采集条件,流程返回步骤S21。Step S23: Determine whether the battery 13 meets the open circuit voltage collection condition at time tk . If it is determined that the battery meets the open circuit voltage collection condition at time tk , the process proceeds to step S24; if it is determined that the battery does not meet the open circuit voltage collection condition at time tk , the process returns to step S21.

在本实施方式中,通过确定所述电池的工作电流在第一预设时间段Δt1内是否保持小于第一预设值,确定所述电池13在tk时刻是否满足开路电压采集条件。其中,Δt1的起始时间点为ti,结束时间点为tk,0<i<k。若所述电池13的工作电流在第一预设时间段Δt1内保持小于第一预设值,确定所述电池在tk时刻满足开路电压采集条件,流程进入步骤S24;若所述电池13的工作电流没有在第一预设时间段内保持小于所述第一预设值,确定所述电池在tk时刻不满足开路电压采集条件,流程返回步骤S21。In this embodiment, by determining whether the working current of the battery remains less than the first preset value within the first preset time period Δt1, it is determined whether the battery 13 meets the open circuit voltage collection condition at time tk . Wherein, the starting time point of Δt1 is t i , the ending time point is t k , and 0<i<k. If the working current of the battery 13 remains less than the first preset value within the first preset time period Δt1, it is determined that the battery meets the open circuit voltage collection condition at time tk , and the process enters step S24; if the working current of the battery 13 does not remain less than the first preset value within the first preset time period, it is determined that the battery does not meet the open circuit voltage collection condition at time tk , and the process returns to step S21.

在本实施方式中,通过判断所述电池13的工作电流在第一预设时间段内是否保持小于第一预设值,以确定所述电池13是否处于静置状态,从而满足开路电压的采集条件。通常情况下,在电池13充放电完成后,会静置所述电池13,在静置所述电池13的过程中,可以采集所述电池13的开路电压。而在静置所述电池13的过程中,所述电池13的电工作流会保持在一个较小值(例如零)。在本实施方式中,设定所述电池13的工作电流在第一预设时间段内保持小于第一预设值时,电池13进入静置状态,满足电池13的开路电压的采集条件。在本实施方式中,所述第一预设值和电池容量或电池温度中至少一个相关。In this embodiment, it is determined whether the working current of the battery 13 remains less than the first preset value within the first preset time period to determine whether the battery 13 is in a static state, thereby satisfying the open circuit voltage collection condition. Normally, after the battery 13 is charged and discharged, the battery 13 is left to rest, and the open circuit voltage of the battery 13 can be collected during the process of leaving the battery 13 to rest. In the process of leaving the battery 13 to rest, the electrical working current of the battery 13 will remain at a relatively small value (e.g., zero). In this embodiment, when the working current of the battery 13 is set to remain less than the first preset value within the first preset time period, the battery 13 enters a static state, satisfying the open circuit voltage collection condition of the battery 13. In this embodiment, the first preset value is related to at least one of the battery capacity or the battery temperature.

步骤S24:采集所述电池在所述tk时刻的开路电压OCV(tk)。Step S24: collecting the open circuit voltage OCV(t k ) of the battery at the time t k .

在本实施方式中,若所述电池13的工作电流在第一预设时间段内保持小于第一预设值,确定所述电池13处于静置状态,可以采集所述电池13在所述tk时刻的开路电压。In this implementation, if the working current of the battery 13 remains less than the first preset value within the first preset time period, it is determined that the battery 13 is in a static state, and the open circuit voltage of the battery 13 at the time tk can be collected.

步骤S25:获取所述电池在tk时刻的温度Tbat(tk)。Step S25: obtaining the temperature T bat (t k ) of the battery at time t k .

在本实施方式中,通过所述采集装置14采集所述电池在tk时刻的温度Tbat(tk)。由于电池的温度对电池性能影响较大,因此将电池的温度作为训练所述电池滞回模型的样本数据,可以得到更加准确地开路电压值。In this embodiment, the temperature T bat (t k ) of the battery at time t k is collected by the collection device 14. Since the battery temperature has a great influence on the battery performance, the battery temperature is used as sample data for training the battery hysteresis model to obtain a more accurate open circuit voltage value.

步骤S26:根据所述电流积分量Q(tk)、所述温度Tbat(tk)和所述开路电压OCV(tk)构造样本集,其中,所述样本集包括正样本集和负样本集。Step S26: constructing a sample set according to the current integrated quantity Q(t k ), the temperature T bat (t k ) and the open circuit voltage OCV(t k ), wherein the sample set includes a positive sample set and a negative sample set.

在本实施方式中,为了训练所述电池滞回模型,需要先构造所述电池滞回模型需要的训练数据,再根据所述训练数据构造样本集。所述训练数位包括所述电池13的电流积分量Q(tk)、所述温度Tbat(tk)和所述开路电压OCV(tk)。In this embodiment, in order to train the battery hysteresis model, it is necessary to first construct the training data required by the battery hysteresis model, and then construct a sample set based on the training data. The training data includes the current integral Q(t k ), the temperature T bat (t k ) and the open circuit voltage OCV(t k ) of the battery 13 .

具体地,所述根据所述电池13的电流积分量Q(tk)、所述温度Tbat(tk)和所述开路电压OCV(tk)构造样本集包括:获取所述正样本集中正样本的电流积分量Q(tk)、所述温度Tbat(tk)和所述开路电压OCV(tk)及所述负样本集中负样本的电流积分量Q(tk)、所述温度Tbat(tk)和所述开路电压OCV(tk);将正样本的电流积分量Q(tk)、所述温度Tbat(tk)和所述开路电压OCV(tk)标注类别数据,以使正样本的电流积分量Q(tk)、所述温度Tbat(tk)和所述开路电压OCV(tk)携带类别标签。例如,分别选取500个不同时刻的电流积分量和温度对应的开路电压数据,并对每个开路电压数据标注类别数据。可以以“1”作为t0时刻的电流积分量和温度对应的开路电压数据标签,以“2”作为t1时刻的电流积分量和温度对应的开路电压数据标签,以“3”作为t2时刻的电流积分量和温度对应的开路电压数据标签。Specifically, constructing a sample set according to the current integral amount Q(t k ), the temperature T bat (t k ) and the open circuit voltage OCV(t k ) of the battery 13 includes: obtaining the current integral amount Q(t k ), the temperature T bat (t k ) and the open circuit voltage OCV(t k ) of the positive samples in the positive sample set and the current integral amount Q(t k ), the temperature T bat (t k ) and the open circuit voltage OCV(t k ) of the negative samples in the negative sample set; marking the current integral amount Q(t k ), the temperature T bat (t k ) and the open circuit voltage OCV(t k ) of the positive samples with category data, so that the current integral amount Q(t k ), the temperature T bat (t k ) and the open circuit voltage OCV(t k ) of the positive samples carry category labels. For example, 500 current integral amounts and open circuit voltage data corresponding to the temperature at different times are selected respectively, and category data are marked for each open circuit voltage data. "1" can be used as the open circuit voltage data label corresponding to the current integral amount and temperature at time t0 , "2" can be used as the open circuit voltage data label corresponding to the current integral amount and temperature at time t1 , and "3" can be used as the open circuit voltage data label corresponding to the current integral amount and temperature at time t2 .

作为一个可选的实施例,为了使所述电池滞回模型更加智能,能够识别输入所述电池滞回模型的负样本,可以在获取所述正样本集中正样本的电流积分量Q(tk)、所述温度Tbat(tk)和所述开路电压OCV(tk)及所述负样本集中负样本的电流积分量Q(tk)、所述温度Tbat(tk)和所述开路电压OCV(tk)后;将负样本的电流积分量Q(tk)、所述温度Tbat(tk)和所述开路电压OCV(tk)标注类别数据,以使负样本的电流积分量Q(tk)、所述温度Tbat(tk)和所述开路电压OCV(tk)携带类别标签。可以理解的是,对所述样本集的正样本携带类别标签,可以通过所述电池滞回模型根据所述类别标签识别所述正样本;同样对所述样本集的负样本携带类别标签,可以通过所述电池滞回模型根据所述类别标签识别所述负样本。但是一般情况下,只需要识别输入所述电池滞回模型的正样本对应的类别标签,从而根据所述电池滞回模型得到准确的输出结果。As an optional embodiment, in order to make the battery hysteresis model more intelligent and able to identify negative samples input into the battery hysteresis model, after obtaining the current integral amount Q(t k ), the temperature T bat (t k ) and the open circuit voltage OCV(t k ) of the positive samples in the positive sample set and the current integral amount Q(t k ), the temperature T bat (t k ) and the open circuit voltage OCV(t k ) of the negative samples in the negative sample set; the current integral amount Q(t k ), the temperature T bat (t k ) and the open circuit voltage OCV(t k ) of the negative samples are marked with category data, so that the current integral amount Q(t k ), the temperature T bat (t k ) and the open circuit voltage OCV(t k ) of the negative samples carry category labels. It can be understood that, for the positive samples in the sample set carrying category labels, the positive samples can be identified by the battery hysteresis model according to the category labels; similarly, for the negative samples in the sample set carrying category labels, the negative samples can be identified by the battery hysteresis model according to the category labels. However, in general, it is only necessary to identify the category labels corresponding to the positive samples input into the battery hysteresis model, so as to obtain accurate output results according to the battery hysteresis model.

步骤S27:根据所述样本集训练所述电池滞回模型。Step S27: training the battery hysteresis model according to the sample set.

在本实施方式中,在获取训练数据并根据所述训练数据构建所述样本集后,根据所述样本集训练所述电池滞回模型。In this implementation, after the training data is acquired and the sample set is constructed according to the training data, the battery hysteresis model is trained according to the sample set.

具体地,所述根据所述样本集训练所述电池滞回模型包括:Specifically, training the battery hysteresis model according to the sample set includes:

(1)根据所述样本集生成样本训练集及样本测试集。(1) Generate a sample training set and a sample test set based on the sample set.

在本实施方式中,训练所述电池滞回模型时可以采用交叉验证(CrossValidation)的思想,将构造的样本集按照合适的比例进行划分成样本训练集及样本测试集。例如,合适的划分比例为6∶4。In this embodiment, the idea of cross validation can be adopted when training the battery hysteresis model, and the constructed sample set can be divided into a sample training set and a sample test set according to a suitable ratio. For example, the suitable division ratio is 6:4.

进一步地,若划分出的样本训练集的总数量依旧较大,即将所有的样本训练集用来所述电池滞回模型的训练,将导致寻找所述电池滞回模型对应的参数代价较大。因而,所述生成样本训练集还可以包括:在所生成的样本训练集中随机选择第一预设数量的样本训练集用于训练。Furthermore, if the total number of divided sample training sets is still large, that is, all sample training sets are used to train the battery hysteresis model, it will result in a high cost for finding the parameters corresponding to the battery hysteresis model. Therefore, generating the sample training set may also include: randomly selecting a first preset number of sample training sets from the generated sample training set for training.

本较佳实施例中,为了增加训练的样本训练集的随机性,可以采用随机数生成算法进行随机选择。In this preferred embodiment, in order to increase the randomness of the training sample training set, a random number generation algorithm can be used for random selection.

本较佳实施例中,所述第一预设数量可以是一个预先设置的固定值,例如,500,即在所生成的样本训练集中随机挑选出500个样本用于所述电池滞回模型的训练。所述第一预设数量还可以是一个预先设置的比例值,例如,1/10,即,即在所生成的样本训练集中随机挑选1/10比例的样本用于所述电池滞回模型的训练。In this preferred embodiment, the first preset number can be a preset fixed value, for example, 500, that is, 500 samples are randomly selected from the generated sample training set for training the battery hysteresis model. The first preset number can also be a preset ratio value, for example, 1/10, that is, 1/10 of the samples are randomly selected from the generated sample training set for training the battery hysteresis model.

(2)根据所述样本训练集训练所述电池滞回模型,并根据所述样本测试集验证训练后的所述电池滞回模型的准确率。(2) Training the battery hysteresis model according to the sample training set, and verifying the accuracy of the trained battery hysteresis model according to the sample test set.

在本实施方式中,所述样本训练集用以训练所述电池滞回模型,所述样本测试集用以测试所训练出的所述电池滞回模型的性能。In this embodiment, the sample training set is used to train the battery hysteresis model, and the sample test set is used to test the performance of the trained battery hysteresis model.

在本实施方式中,先将所述样本训练集中的训练样本分发到不同的文件夹里。例如,将t0时刻的电流积分量和温度的训练样本分发到第一文件夹里、t1时刻的电流积分量和温度的训练样本分发到第二文件夹里、t2时刻的电流积分量和温度的训练样本分发到第三文件夹里。然后从不同的文件夹里分别提取第一预设比例(例如,70%)的训练样本作为总的训练样本进行电池滞回模型的训练,从不同的文件夹里分别取剩余第二预设比例(例如,30%)的训练样本作为总的测试样本对训练完成的所述电池滞回模型进行准确性验证。In this embodiment, the training samples in the sample training set are first distributed to different folders. For example, the training samples of the current integral and temperature at time t0 are distributed to the first folder, the training samples of the current integral and temperature at time t1 are distributed to the second folder, and the training samples of the current integral and temperature at time t2 are distributed to the third folder. Then, the training samples of the first preset proportion (for example, 70%) are extracted from different folders as the total training samples for training the battery hysteresis model, and the remaining second preset proportion (for example, 30%) of the training samples are extracted from different folders as the total test samples to verify the accuracy of the trained battery hysteresis model.

在本实施方式中,如图3所示,所述电池滞回模型包括输入层、隐含层和输出层。在后续电池13的充放电循环过程中,在所述电池滞回模型中输入不同时刻的电流积分量和温度,可以输出对应的开路电压。In this embodiment, as shown in Figure 3, the battery hysteresis model includes an input layer, a hidden layer and an output layer. In the subsequent charge and discharge cycle of the battery 13, the current integral and temperature at different times are input into the battery hysteresis model, and the corresponding open circuit voltage can be output.

(3)确认所述准确率是否大于或等于预设准确率。(3) Confirm whether the accuracy is greater than or equal to a preset accuracy.

在本实施方式中,若测试的准确率越高,则表明所训练出的所述电池滞回模型的性能越好;若测试的准确率较低,则表明所训练出的所述电池滞回模型的性能较差。通过确认准确率是否大于或等于预设准确率来确认是否训练出性能好的电池滞回模型。若所述准确率大于或等于所述预设准确率,确认训练的电池滞回模型性能好,流程进入步骤(4);若所述准确率小于所述预设准确率,确认训练的电池滞回模型性能不好,流程进入步骤(5)。In this embodiment, if the test accuracy is higher, it indicates that the performance of the trained battery hysteresis model is better; if the test accuracy is lower, it indicates that the performance of the trained battery hysteresis model is poor. Whether a battery hysteresis model with good performance is trained is confirmed by confirming whether the accuracy is greater than or equal to the preset accuracy. If the accuracy is greater than or equal to the preset accuracy, it is confirmed that the trained battery hysteresis model has good performance, and the process enters step (4); if the accuracy is less than the preset accuracy, it is confirmed that the trained battery hysteresis model has poor performance, and the process enters step (5).

(4)结束所述电池滞回模型的训练过程。(4) End the training process of the battery hysteresis model.

在本实施方式中,若所述准确率大于或等于所述预设准确率,确认训练的电池滞回模型性能好,满足要求,结束所述电池滞回模型的训练过程。In this embodiment, if the accuracy is greater than or equal to the preset accuracy, it is confirmed that the trained battery hysteresis model has good performance and meets the requirements, and the training process of the battery hysteresis model is terminated.

(5)增加所述样本训练集的数量以重新训练所述电池滞回模型,直至所述准确率大于或者等于所述预设准确率。(5) Increasing the number of the sample training sets to retrain the battery hysteresis model until the accuracy is greater than or equal to the preset accuracy.

在本实施方式中,若所述准确率小于所述预设准确率,确认训练的电池滞回模型性能不好,不满足要求,需要增加所述样本训练集的数量,以重新训练所述电池滞回模型,直至所述准确率大于或者等于所述预设准确率,得到符合要求的电池滞回模型。In this embodiment, if the accuracy rate is less than the preset accuracy rate, it is confirmed that the performance of the trained battery hysteresis model is poor and does not meet the requirements, and it is necessary to increase the number of the sample training sets to retrain the battery hysteresis model until the accuracy rate is greater than or equal to the preset accuracy rate, and a battery hysteresis model that meets the requirements is obtained.

在本实施方式中,所述电池滞回模型训练方法还包括:In this embodiment, the battery hysteresis model training method further includes:

确定所述电池13的工作电流在第二预设时间段Δt2内是否出现大于或等于第二预设值的情况,若所述电池13的工作电流在所述第二预设时间段Δt2内出现大于或等于第二预设值的情况,结束采集所述电池13的开路电压;继续采集所述电池13的工作电流,并根据采集的工作电流更新历史数据。若所述电池13的工作电流在第二预设时间段Δt2内持续保持小于所述第二预设值的情况,继续判断所述电池13的电流在第三预设时间段Δt3内是否大于或等于所述第二预设值。Determine whether the working current of the battery 13 is greater than or equal to the second preset value within the second preset time period Δt2. If the working current of the battery 13 is greater than or equal to the second preset value within the second preset time period Δt2, end the acquisition of the open circuit voltage of the battery 13; continue to acquire the working current of the battery 13, and update the historical data according to the acquired working current. If the working current of the battery 13 continues to be less than the second preset value within the second preset time period Δt2, continue to determine whether the current of the battery 13 is greater than or equal to the second preset value within the third preset time period Δt3.

需要说明的是,所述第二预设时间段为所述第一预设时间段之后的时间,所述第三预设时间段为所述第二预设时间段之后的时间,依此类推。Δt2的起始时间点为tj,结束时间点为tn,k<j<n;Δt3的起始时间点为tl,结束时间点为tm,n<l<m。It should be noted that the second preset time period is the time after the first preset time period, the third preset time period is the time after the second preset time period, and so on. The starting time point of Δt2 is tj , and the ending time point is tn , k<j<n; the starting time point of Δt3 is tl , and the ending time point is tm , n<l<m.

在本实施方式中,通过确定所述电池13的工作电流在第二预设时间段内是否大于或等于第二预设值,可以确定是否满足电池13的开路电压采集退出条件。即若所述电池13的工作电流在第二预设时间段内大于或等于第二预设值时,确定所述电池13进入充放电过程,结束采集所述电池13的开路电压;继续采集所述电池13的工作电流,并根据采集的工作电流计算更新历史数据。In this embodiment, by determining whether the working current of the battery 13 is greater than or equal to the second preset value within the second preset time period, it can be determined whether the exit condition for collecting the open circuit voltage of the battery 13 is met. That is, if the working current of the battery 13 is greater than or equal to the second preset value within the second preset time period, it is determined that the battery 13 enters the charging and discharging process, and the collection of the open circuit voltage of the battery 13 ends; the working current of the battery 13 continues to be collected, and the historical data is calculated and updated according to the collected working current.

需要说明的是,所述第二预设值为较大的电流值,可以用于确定所述电池13进入充放电过程。It should be noted that the second preset value is a relatively large current value, which can be used to determine whether the battery 13 enters the charging and discharging process.

请参阅图4,图4为根据本申请一实施方式的电池13荷电状态估计方法的流程图。所述电池13荷电状态估计方法具体包括以下步骤,根据不同的需求,该流程图中步骤的顺序可以改变,某些步骤可以省略。Please refer to Figure 4, which is a flow chart of a method for estimating the state of charge of a battery 13 according to an embodiment of the present application. The method for estimating the state of charge of a battery 13 specifically includes the following steps. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted.

步骤S31:在线采集电池13从所述t0时刻至所述tk时刻的工作电流Ik,其中,k>0。Step S31: online collecting the working current I k of the battery 13 from the time t 0 to the time t k , where k>0.

在本实施方式中,在电池13的循环充放电过程中,通过采集装置14实时采集所述电池13的工作电流。In this embodiment, during the cyclic charge and discharge process of the battery 13 , the operating current of the battery 13 is collected in real time by the collection device 14 .

步骤S32:根据所述工作电流计算从所述t0时刻至所述tk时刻的电流积分量Q(tk)。在本实施方式中,所述电流积分量Q(tk)的计算公式为:即通过计算所述电池从所述t0时刻至所述tk时刻的电量作为样本数据。需要说明的是,取所述工作电流Ik的放电方向为正。Step S32: Calculate the current integral Q(t k ) from the time t 0 to the time t k according to the working current. In this embodiment, the calculation formula of the current integral Q(t k ) is: That is, the amount of electricity of the battery from the time t 0 to the time t k is calculated as sample data. It should be noted that the discharge direction of the working current I k is taken as positive.

步骤S33:获取所述电池在tk时刻的温度Tbat(tk)。Step S33: obtaining the temperature T bat (t k ) of the battery at time t k .

步骤S34:输入所述电流积分量Q(tk)和温度Tbat(tk)至所述电池滞回模型,得到所述电池在tk时刻的开路电压。Step S34: inputting the current integral Q(t k ) and the temperature T bat (t k ) into the battery hysteresis model to obtain the open circuit voltage of the battery at time t k .

在本实施方式中,输入所述电流积分量Q(tk)和温度Tbat(tk)至训练好的所述电池滞回模型,所述电池滞回模型根据所述电流输出tk时刻的开路电压OCV(tk)。In this embodiment, the current integral Q(t k ) and the temperature T bat (t k ) are input to the trained battery hysteresis model, and the battery hysteresis model outputs the open circuit voltage OCV(t k ) at time t k according to the current.

步骤S35:根据所述开路电压查询SOC-OCV对应关系得到所述电池13的荷电状态。Step S35: querying the SOC-OCV correspondence relationship according to the open circuit voltage to obtain the state of charge of the battery 13.

在本实施方式中,所述用电装置1中预先存储有SOC-OCV对应关系。需要说明的是,当电池体系确定后,所述电池的SOC-OCV对应关系通常是固定不变的。即使所述电池经历过若干次循环充放电使用,其SOC-OCV对应关系也不会发生变化。In this embodiment, the SOC-OCV correspondence is pre-stored in the power consumption device 1. It should be noted that once the battery system is determined, the SOC-OCV correspondence of the battery is usually fixed. Even if the battery has been used for several cycles of charge and discharge, its SOC-OCV correspondence will not change.

具体地,可以通过如下方法来获取所述电池的荷电状态(SOC)-开路电压(OCV)对应关系:Specifically, the state of charge (SOC)-open circuit voltage (OCV) correspondence relationship of the battery can be obtained by the following method:

1)取一个电池,并对所述电池进行充电至满充状态,然后使用第一预设电流对所述电池放电至放空状态;在本实施方式中,所述第一预设电流为小倍率电流,如0.01C,也可为其它电流。1) Take a battery, charge the battery to a fully charged state, and then discharge the battery to an empty state using a first preset current; in this embodiment, the first preset current is a low rate current, such as 0.01C, or other currents.

2)记录所述电池在上述的充放电过程中的电压和容量变化。2) Recording the voltage and capacity changes of the battery during the above-mentioned charge and discharge process.

3)获取所述电池在放电过程中的荷电状态。例如,将所述电池的放电最大容量作为所述电池的满载容量,将所述电池在放电过程中随时间变化的容量值除以所述满载容量,得到所述电池在放电过程中的荷电状态。3) Obtaining the state of charge of the battery during the discharge process. For example, the maximum discharge capacity of the battery is used as the full load capacity of the battery, and the capacity value of the battery that changes with time during the discharge process is divided by the full load capacity to obtain the state of charge of the battery during the discharge process.

4)分别建立所述电池在放电过程中不同荷电状态下的电池电压的对应关系,得到电池的SOC-OCV对应关系。4) Establishing the corresponding relationship between the battery voltage at different charge states during the discharge process of the battery, and obtaining the SOC-OCV corresponding relationship of the battery.

在另一实施方式中,还可以采用安时积分法和开路电压法结合得出SOC-OCV对应关系。In another embodiment, the SOC-OCV correspondence relationship may be obtained by combining the ampere-hour integration method and the open circuit voltage method.

本申请提供了一种在精度可接受的前提下的低实验量和低计算量的电池滞回模型训练方法。所述方法通过在线采集电池的工作电流数据,并将所述工作电流数据抽象为电流积分量。将所述电流积分量与当前时刻采集的电池温度和开路电压作为样本数据训练得到所述电池滞回模型。在使用过程中,可以根据实时采集的电流计算所述电流积分量,并将所述电流积分量和采集的电池温度共同作为输入量,通过所述训练好的电池滞回模型得到对应的开路电压,并根据该开路电压得到电池的核电状态。由于本方法建模过程中不进行离线实验,且电池滞回模型的输入量简单,对用电装置的计算能力和存储能力要求低。实现在精度可接受的同时具备低实验量、低计算量和低存储量的优势。The present application provides a battery hysteresis model training method with low experimental and computational load under the premise of acceptable accuracy. The method collects the working current data of the battery online and abstracts the working current data into a current integral. The battery hysteresis model is obtained by training the current integral and the battery temperature and open circuit voltage collected at the current moment as sample data. During use, the current integral can be calculated according to the current collected in real time, and the current integral and the collected battery temperature are used as input quantities. The corresponding open circuit voltage is obtained through the trained battery hysteresis model, and the nuclear power state of the battery is obtained according to the open circuit voltage. Since offline experiments are not performed during the modeling process of this method, and the input of the battery hysteresis model is simple, the computing power and storage capacity of the electrical device are required to be low. The advantages of low experimental load, low computational load and low storage capacity are achieved while achieving acceptable accuracy.

请继续参阅图1,本实施例中,所述存储器11可以是用电装置的内部存储器,即内置于所述用电装置的存储器。在其他实施例中,所述存储器11也可以是用电装置的外部存储器,即外接于所述用电装置的存储器。Please continue to refer to Figure 1. In this embodiment, the memory 11 can be an internal memory of the electric device, that is, a memory built into the electric device. In other embodiments, the memory 11 can also be an external memory of the electric device, that is, a memory externally connected to the electric device.

在一些实施例中,所述存储器11用于存储程序代码和各种数据,并在用电装置的运行过程中实现高速、自动地完成程序或数据的存取。In some embodiments, the memory 11 is used to store program codes and various data, and to achieve high-speed and automatic access to programs or data during the operation of the electrical device.

所述存储器11可以包括随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘、智能存储卡(Smart Media Card,SMC)、安全数字(Secure Digital,SD)卡、闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 11 may include a random access memory and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

在一实施例中,所述处理器12可以是中央处理单元(Central ProcessingUnit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific IntegratedCircuit,ASIC)、现场可编程门阵列(Field-Programmable GateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者所述处理器也可以是其它任何常规的处理器等。In one embodiment, the processor 12 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any other conventional processor, etc.

所述存储器11中的程序代码和各种数据如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,例如实现电池内短路检测方法中的步骤,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,所述计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)等。If the program code and various data in the memory 11 are implemented in the form of a software functional unit and sold or used as an independent product, they can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, such as implementing the steps in the battery internal short circuit detection method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes a computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), etc. that can carry the computer program code.

可以理解的是,以上所描述的模块划分,为一种逻辑功能划分,实际实现时可以有另外的划分方式。另外,在本申请各个实施例中的各功能模块可以集成在相同处理单元中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在相同单元中。上述集成的模块既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。It is understandable that the module division described above is a logical function division, and there may be other division methods in actual implementation. In addition, the functional modules in each embodiment of the present application may be integrated in the same processing unit, or each module may exist physically separately, or two or more modules may be integrated in the same unit. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional modules.

最后应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.

Claims (11)

1.一种电池滞回模型训练方法,其特征在于,该方法包括:1. A battery hysteresis model training method, characterized in that the method comprises: 在线采集电池从t0时刻至tk时刻的工作电流Ik,其中,k>0;The working current I k of the battery from time t 0 to time t k is collected online, where k>0; 根据所述工作电流计算从所述t0时刻至所述tk时刻的电流积分量Q(tk),其中, The current integral Q(t k ) from the time t 0 to the time t k is calculated according to the working current, wherein: 若根据所述工作电流确定所述电池在所述tk时刻满足开路电压采集条件,采集所述电池在所述tk时刻的开路电压OCV(tk);If it is determined according to the working current that the battery meets the open circuit voltage collection condition at the time t k , collecting the open circuit voltage OCV(t k ) of the battery at the time t k ; 获取所述电池在tk时刻的温度Tbat(tk);Obtaining a temperature T bat (t k ) of the battery at time t k ; 根据所述电流积分量Q(tk)、所述温度Tbat(tk)和所述开路电压OCV(tk)构造样本集;constructing a sample set according to the current integrated amount Q(t k ), the temperature T bat (t k ) and the open circuit voltage OCV(t k ); 根据所述样本集训练所述电池滞回模型;Training the battery hysteresis model according to the sample set; 若所述工作电流在第一预设时间段内保持小于第一预设值,确定在所述tk时刻所述电池满足开路电压采集条件,其中,所述第一预设时间段的起始时间点为tk-i,结束时间点为tk,0<i<k;If the working current remains less than the first preset value within the first preset time period, it is determined that the battery meets the open circuit voltage acquisition condition at the time t k , wherein the starting time point of the first preset time period is t ki and the ending time point is t k , 0<i<k; 若所述工作电流在第二预设时间段内大于或等于第二预设值,结束采集所述电池的开路电压;及If the operating current is greater than or equal to a second preset value within a second preset time period, the acquisition of the open circuit voltage of the battery is terminated; and 继续采集所述电池的工作电流,并根据采集的工作电流更新历史数据。The operating current of the battery continues to be collected, and the historical data is updated according to the collected operating current. 2.如权利要求1所述的电池滞回模型训练方法,其特征在于,所述样本集包括正样本集和负样本集,根据所述电流积分量Q(tk)、所述温度Tbat(tk)和所述开路电压OCV(tk)构造样本集包括:2. The battery hysteresis model training method according to claim 1, characterized in that the sample set includes a positive sample set and a negative sample set, and constructing the sample set according to the current integral Q(t k ), the temperature T bat (t k ) and the open circuit voltage OCV(t k ) includes: 获取所述正样本集中的正样本的电流积分量Q(tk)、温度Tbat(tk)和开路电压OCV(tk)及所述负样本集中的负样本的电流积分量Q(tk)、温度Tbat(tk)和开路电压OCV(tk);Acquire the current integrated quantity Q(t k ), temperature T bat (t k ) and open circuit voltage OCV(t k ) of the positive samples in the positive sample set and the current integrated quantity Q(t k ), temperature T bat (t k ) and open circuit voltage OCV(t k ) of the negative samples in the negative sample set; 将正样本的电流积分量Q(tk)、温度Tbat(tk)和开路电压OCV(tk)据标注类别数据,以使正样本的电流积分量Q(tk)、温度Tbat(tk)和开路电压OCV(tk)携带类别标签。The current integrated quantity Q(t k ), temperature T bat (t k ) and open circuit voltage OCV(t k ) of the positive sample are annotated with category data so that the current integrated quantity Q(t k ), temperature T bat (t k ) and open circuit voltage OCV(t k ) of the positive sample carry category labels. 3.如权利要求2所述的电池滞回模型训练方法,其特征在于,所述根据所述样本集训练所述电池滞回模型包括:3. The battery hysteresis model training method according to claim 2, wherein training the battery hysteresis model according to the sample set comprises: 根据所述样本集生成样本训练集及样本测试集;Generate a sample training set and a sample test set according to the sample set; 根据所述样本训练集训练所述电池滞回模型,并根据所述样本测试集验证训练后的所述电池滞回模型的准确率;及Training the battery hysteresis model according to the sample training set, and verifying the accuracy of the trained battery hysteresis model according to the sample test set; and 若所述准确率大于或者等于预设准确率,结束所述电池滞回模型的训练过程。If the accuracy is greater than or equal to the preset accuracy, the training process of the battery hysteresis model is terminated. 4.如权利要求3所述的电池滞回模型训练方法,其特征在于,所述根据所述样本集训练所述电池滞回模型还包括:4. The battery hysteresis model training method according to claim 3, wherein training the battery hysteresis model according to the sample set further comprises: 若所述准确率小于所述预设准确率,增加所述样本训练集的数量以重新训练所述电池滞回模型,直至所述准确率大于或者等于所述预设准确率。If the accuracy rate is less than the preset accuracy rate, the number of the sample training sets is increased to retrain the battery hysteresis model until the accuracy rate is greater than or equal to the preset accuracy rate. 5.如权利要求3所述的电池滞回模型训练方法,其特征在于,所述根据所述样本集生成样本训练集及样本测试集包括:5. The battery hysteresis model training method according to claim 3, characterized in that generating a sample training set and a sample test set according to the sample set comprises: 在所生成的样本训练集中随机选择第一预设数量的样本训练集用于训练;Randomly selecting a first preset number of sample training sets from the generated sample training sets for training; 在所生成的样本测试集中随机选择第二预设数量的样本测试集用于验证。A second preset number of sample test sets are randomly selected from the generated sample test sets for verification. 6.如权利要求1所述的电池滞回模型训练方法,其特征在于,所述第一预设值和电池容量或电池温度中至少一个相关。6. The battery hysteresis model training method according to claim 1, characterized in that the first preset value is related to at least one of the battery capacity or the battery temperature. 7.如权利要求1所述的电池滞回模型训练方法,其特征在于,所述电池滞回模型包括输入层、隐含层和输出层。7. The battery hysteresis model training method as described in claim 1 is characterized in that the battery hysteresis model includes an input layer, a hidden layer and an output layer. 8.一种根据权利要求1至7中任意一项的所述的方法训练出的滞回模型估算电池SOC的方法,其特征在于,所述方法包括:8. A method for estimating battery SOC using a hysteresis model trained by the method according to any one of claims 1 to 7, characterized in that the method comprises: 在线采集电池从所述t0时刻至所述tk时刻的工作电流Ik,其中,k>0;Online collecting the working current I k of the battery from the time t 0 to the time t k , where k>0; 根据所述工作电流计算从所述t0时刻至所述tk时刻的电流积分量Q(tk);Calculating the current integral Q(t k ) from the time t 0 to the time t k according to the working current; 获取所述电池在tk时刻的温度Tbat(tk);Obtaining a temperature T bat (t k ) of the battery at time t k ; 输入所述电流积分量Q(tk)和温度Tbat(tk)至所述电池滞回模型,得到所述电池在tk时刻的开路电压;及Inputting the current integral Q(t k ) and temperature T bat (t k ) into the battery hysteresis model to obtain the open circuit voltage of the battery at time t k ; and 根据所述开路电压查询SOC-OCV对应关系得到所述电池的荷电状态。The state of charge of the battery is obtained by querying the SOC-OCV correspondence relationship according to the open circuit voltage. 9.如权利要求8所述的估算电池SOC的方法,其特征在于,采用安时积分法和开路电压法结合得出SOC-OCV对应关系。9. The method for estimating the battery SOC as claimed in claim 8, characterized in that the SOC-OCV correspondence relationship is obtained by combining the ampere-hour integration method and the open circuit voltage method. 10.一种用电装置,其特征在于,所述用电装置包括:10. An electrical device, characterized in that the electrical device comprises: 存储器;以及Memory; and 处理器,所述处理器用于执行所述存储器中存储的计算机程序时实现如权利要求1至7中任意一项所述电池滞回模型训练方法或者实现如权利要求8至9中任意一项所述估算电池SOC的方法。A processor, wherein the processor is used to implement the battery hysteresis model training method as described in any one of claims 1 to 7 or the battery SOC estimation method as described in any one of claims 8 to 9 when executing the computer program stored in the memory. 11.如权利要求10所述的用电装置,其特征在于,所述用电装置包括储能设备、或两轮以上电动汽车、或无人机、或电动工具。11. The electrical device according to claim 10, characterized in that the electrical device comprises an energy storage device, or an electric vehicle with more than two wheels, or a drone, or an electric tool.
CN202110277793.1A 2021-03-15 2021-03-15 Battery hysteresis model training method, battery SOC estimation method and device Active CN112798962B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110277793.1A CN112798962B (en) 2021-03-15 2021-03-15 Battery hysteresis model training method, battery SOC estimation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110277793.1A CN112798962B (en) 2021-03-15 2021-03-15 Battery hysteresis model training method, battery SOC estimation method and device

Publications (2)

Publication Number Publication Date
CN112798962A CN112798962A (en) 2021-05-14
CN112798962B true CN112798962B (en) 2024-04-30

Family

ID=75817063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110277793.1A Active CN112798962B (en) 2021-03-15 2021-03-15 Battery hysteresis model training method, battery SOC estimation method and device

Country Status (1)

Country Link
CN (1) CN112798962B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118393369B (en) * 2024-06-28 2024-10-08 浙江地芯引力科技有限公司 Open circuit voltage prediction method, open circuit voltage prediction device, electronic equipment and storage medium

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201293826Y (en) * 2008-11-24 2009-08-19 南开大学 Energy detector for wireless sensor network node
CN203037829U (en) * 2013-01-23 2013-07-03 天津雅迪实业有限公司 Electric car continuous mileage obtaining apparatus
CN103616647A (en) * 2013-12-09 2014-03-05 天津大学 Battery remaining capacity estimation method for electric car battery management system
CN103675701A (en) * 2013-11-29 2014-03-26 宇龙计算机通信科技(深圳)有限公司 Battery state-of-charge correction method and device
CN105203963A (en) * 2015-09-11 2015-12-30 同济大学 Charge state estimation method based on open-circuit voltage hysteretic characteristics
CN105699907A (en) * 2016-01-28 2016-06-22 广州市香港科大霍英东研究院 A battery SOC estimation method and system based on dynamic impedance correction
CN106646265A (en) * 2017-01-22 2017-05-10 华南理工大学 Method for estimating SOC of lithium battery
CN106918787A (en) * 2017-03-20 2017-07-04 国网重庆市电力公司电力科学研究院 A kind of electric automobile lithium battery residual charge evaluation method and device
CN107861073A (en) * 2017-11-06 2018-03-30 合肥工业大学 A kind of vehicle-mounted electric quantity of lead-acid storage battery On-line Estimation method based on CHVT models
CN109884528A (en) * 2019-02-25 2019-06-14 江苏大学 A method and system for estimating open circuit voltage of lithium-ion battery with temperature input
CN110045286A (en) * 2019-03-21 2019-07-23 江苏大学 A kind of battery open circuit voltage evaluation method and device based on air-or liquid-operated mechanical model
CN110333450A (en) * 2019-04-30 2019-10-15 蜂巢能源科技有限公司 Battery open circuit voltage estimation method and system
CN110609232A (en) * 2019-03-29 2019-12-24 深圳猛犸电动科技有限公司 Lithium ion battery SOC estimation method and device and terminal equipment
CN110850315A (en) * 2019-11-29 2020-02-28 北京邮电大学 Method and device for estimating battery state of charge
CN111458646A (en) * 2020-05-25 2020-07-28 安徽理工大学 A Lithium Battery SOC Estimation Method Based on PSO-RBF Neural Network
CN111537887A (en) * 2020-04-27 2020-08-14 南京航空航天大学 Hybrid power system battery open-circuit voltage model optimization method considering hysteresis characteristic

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201293826Y (en) * 2008-11-24 2009-08-19 南开大学 Energy detector for wireless sensor network node
CN203037829U (en) * 2013-01-23 2013-07-03 天津雅迪实业有限公司 Electric car continuous mileage obtaining apparatus
CN103675701A (en) * 2013-11-29 2014-03-26 宇龙计算机通信科技(深圳)有限公司 Battery state-of-charge correction method and device
CN103616647A (en) * 2013-12-09 2014-03-05 天津大学 Battery remaining capacity estimation method for electric car battery management system
CN105203963A (en) * 2015-09-11 2015-12-30 同济大学 Charge state estimation method based on open-circuit voltage hysteretic characteristics
CN105699907A (en) * 2016-01-28 2016-06-22 广州市香港科大霍英东研究院 A battery SOC estimation method and system based on dynamic impedance correction
CN106646265A (en) * 2017-01-22 2017-05-10 华南理工大学 Method for estimating SOC of lithium battery
CN106918787A (en) * 2017-03-20 2017-07-04 国网重庆市电力公司电力科学研究院 A kind of electric automobile lithium battery residual charge evaluation method and device
CN107861073A (en) * 2017-11-06 2018-03-30 合肥工业大学 A kind of vehicle-mounted electric quantity of lead-acid storage battery On-line Estimation method based on CHVT models
CN109884528A (en) * 2019-02-25 2019-06-14 江苏大学 A method and system for estimating open circuit voltage of lithium-ion battery with temperature input
CN110045286A (en) * 2019-03-21 2019-07-23 江苏大学 A kind of battery open circuit voltage evaluation method and device based on air-or liquid-operated mechanical model
CN110609232A (en) * 2019-03-29 2019-12-24 深圳猛犸电动科技有限公司 Lithium ion battery SOC estimation method and device and terminal equipment
CN110333450A (en) * 2019-04-30 2019-10-15 蜂巢能源科技有限公司 Battery open circuit voltage estimation method and system
CN110850315A (en) * 2019-11-29 2020-02-28 北京邮电大学 Method and device for estimating battery state of charge
CN111537887A (en) * 2020-04-27 2020-08-14 南京航空航天大学 Hybrid power system battery open-circuit voltage model optimization method considering hysteresis characteristic
CN111458646A (en) * 2020-05-25 2020-07-28 安徽理工大学 A Lithium Battery SOC Estimation Method Based on PSO-RBF Neural Network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
锂电池开路电压的预估及SOC估算;邓晔;胡越黎;滕华强;;仪表技术;20150215(02);全文 *

Also Published As

Publication number Publication date
CN112798962A (en) 2021-05-14

Similar Documents

Publication Publication Date Title
CN109991554B (en) Battery electric quantity detection method and device and terminal equipment
CN105954679A (en) Lithium battery charge state online estimating method
CN103259055B (en) The correction circuit of the electric vehicle battery group OCV-SOC curve of a kind of convenient operation and method
CN107870306A (en) A Lithium Battery State of Charge Prediction Algorithm Based on Deep Neural Network
CN110632528A (en) A lithium battery SOH estimation method based on internal resistance detection
CN109991545B (en) Battery pack electric quantity detection method and device and terminal equipment
CN101320079A (en) How to calculate battery state of charge
CN114839536B (en) Lithium ion battery health state estimation method based on multiple health factors
CN107843847A (en) A kind of battery SOC estimation online methods based on EKF algorithms
CN112485677B (en) Battery capacity updating method and device, electronic device and storage medium
CN110568373A (en) Lithium battery state of health assessment method, system, terminal and storage medium
CN110290972A (en) Estimate the method for the charged state of battery cell
Zhang et al. A novel battery state-of-health estimation method for hybrid electric vehicles
CN113093027B (en) Battery SOC calibration method, device, system, medium and program product
Vennam et al. A novel coupled electro-thermal-aging model for simultaneous SOC, SOH, and parameter estimation of lithium-ion batteries
CN110850315A (en) Method and device for estimating battery state of charge
CN110674569A (en) Method and system for estimating remaining charging time based on decision tree
CN112798962B (en) Battery hysteresis model training method, battery SOC estimation method and device
CN117791812A (en) Active equalization control method and system for charging and discharging of sodium battery pack
CN112731160A (en) Battery hysteresis model training method, and method and device for estimating battery SOC
Chen et al. Rapid SOH estimation for retired lead-acid batteries
CN112946480A (en) Lithium battery circuit model simplification method for improving SOC estimation real-time performance
CN118465548A (en) A method for estimating the working capacity of a lithium-ion battery pack
JP2021157926A (en) Secondary battery device and secondary battery system
Li et al. Exploring the hysteresis effect of Li-ion batteries: a machine learning based approach

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20250106

Address after: 352100 Xingang Road, Zhangwan Town, Jiaocheng District, Ningde, Fujian 1

Patentee after: NINGDE AMPEREX TECHNOLOGY Ltd.

Country or region after: China

Address before: No.1, Xinghui Road, Songshanhu Park, Dongguan, Guangdong 523000

Patentee before: Dongguan xinneng'an Technology Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right