Concentration prediction model generation method and device, concentration prediction method and vehicle
By obtaining and generating the concentration time series of the hydrogen diffusion model in the hydrogen storage system, the problem of low accuracy of hydrogen concentration distribution prediction in the existing technology is solved, the prediction accuracy and safety are improved, and effective hydrogen distribution in vehicles is realized. Concentration monitoring and early warning.
Patent Information
- Application Number
- CN202410837789.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-26
AI Technical Summary
The existing hydrogen concentration distribution prediction method in the hydrogen storage system is limited to multiple preset leakage conditions, resulting in a low accuracy of the hydrogen diffusion model in predicting the hydrogen concentration distribution under actual leakage conditions, and cannot effectively guarantee the safety of vehicles and Personal safety.
By obtaining the concentration time series of hydrogen during multiple leakage conditions preset in the hydrogen storage system, a hydrogen diffusion model is generated, and based on the model, the concentration time series of hydrogen in different time periods are determined, and then a concentration prediction model is generated. Improve prediction accuracy.
It improves the prediction accuracy of hydrogen concentration distribution under multiple leakage conditions, reduces the time and labor costs of manually generating training data, and provides early warning or execution of hydrogen discharge operations during vehicle driving, thereby enhancing safety.
Smart Images

Figure CN118793940A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of hydrogen technology, and in particular, relates to a concentration prediction model generation method, device, concentration prediction method and vehicle. Background Art
[0002] With the development of clean energy, the use of hydrogen energy as a fuel for vehicle driving has become a development trend. Usually, hydrogen storage systems are usually used in vehicles to store liquid hydrogen. However, due to the low-temperature gasification, easy diffusion and explosiveness of liquid hydrogen, when liquid hydrogen leaks, it will quickly vaporize and diffuse in the hydrogen storage system. Therefore, when hydrogen energy is applied to vehicles, it is usually necessary to predict the hydrogen concentration distribution after hydrogen diffusion based on the hydrogen concentration in the hydrogen storage system at the current moment, so as to issue an early warning when the hydrogen concentration is greater than the warning concentration to ensure vehicle and personal safety.
[0003] At present, the prediction method of hydrogen concentration distribution is mainly based on model simulation based on the basic control equations of fluid mechanics. For example, the hydrogen diffusion model is solved based on the hydrogen concentration distribution at some moments under multiple preset leakage conditions.
[0004] However, the preset multiple leakage conditions usually have limitations, and it is impossible to preset a large number of actual leakage conditions of the hydrogen storage system. Therefore, the obtained hydrogen diffusion model usually only has a high accuracy in predicting the hydrogen concentration distribution at any time under the preset leakage conditions, and has a low accuracy in predicting the hydrogen concentration distribution under other leakage conditions. Summary of the invention
[0005] The embodiments of the present application provide a concentration prediction model generation method, device, concentration prediction method and vehicle, which can solve the problem of low accuracy of hydrogen diffusion model in predicting hydrogen concentration distribution.
[0006] In a first aspect, an embodiment of the present application provides a method for generating a concentration prediction model, the method comprising:
[0007] Under multiple first leakage conditions preset in the hydrogen storage system, a first concentration time series of hydrogen diffusion is obtained; the first concentration time series includes multiple first hydrogen concentrations changing in a first time period at multiple preset monitoring positions;
[0008] Based on the first concentration time series, a hydrogen diffusion model is generated; the hydrogen diffusion model is used to describe the concentration diffusion law of hydrogen in the hydrogen storage system space that changes with time;
[0009] According to the hydrogen diffusion model, a second concentration time series of hydrogen diffusion under each first leakage condition is determined respectively; the second concentration time series includes a plurality of second hydrogen concentrations of hydrogen at a plurality of preset monitoring positions changing within a second time period; the duration of the second time period is greater than the duration of the first time period;
[0010] A concentration prediction model is generated based on the second concentration time series corresponding to each first leakage condition.
[0011] In one embodiment, generating a hydrogen diffusion model based on the first concentration time series includes:
[0012] A three-dimensional model of the hydrogen storage system is established, and the three-dimensional model is spatially meshed; the meshed model is used to simulate the fluid behavior of hydrogen in the space of the three-dimensional model;
[0013] Based on the preset boundary conditions and the divided three-dimensional model, a fluid mechanics simulation is performed on a plurality of first hydrogen concentrations at each preset monitoring position to obtain a hydrogen diffusion model.
[0014] In one embodiment, generating a concentration prediction model based on the second concentration time series corresponding to each first leakage condition includes:
[0015] For the second concentration time series corresponding to any first leakage condition, first training data corresponding to each first leakage condition is generated; the first training data at least includes first input data corresponding to the second concentration time series from the initial moment to the first moment of the second time period, and first label data corresponding to the second concentration time series from the first moment to the end moment;
[0016] Inputting the first input data into the initial concentration prediction model for training, and predicting a first predicted concentration time series of hydrogen from the first moment to the end moment;
[0017] Iteratively updating model parameters of the initial concentration prediction model according to the first label data and the first predicted concentration time series;
[0018] If the initial concentration prediction model meets the convergence condition during the iterative update process, the current initial concentration prediction model is used as the concentration prediction model;
[0019] If the initial concentration prediction model does not meet the convergence conditions during the iterative update process, return to execute the step of inputting the first input data into the initial concentration prediction model for training, predicting the first predicted concentration time series of hydrogen from the first moment to the end moment, and subsequent steps until the initial concentration prediction model meets the convergence conditions.
[0020] In one embodiment, the duration from the initial moment to the first moment is greater than the duration from the first moment to the end moment.
[0021] In one embodiment, iteratively updating the model parameters of the initial concentration prediction model according to the first label data and the first predicted concentration time series includes:
[0022] Calculate the training loss of the initial concentration prediction model according to the first label data and the first predicted concentration time series;
[0023] Iteratively update the model parameters based on the training loss.
[0024] In one embodiment, after generating a concentration prediction model based on the second concentration time series corresponding to each first leakage condition, the method includes:
[0025] During the vehicle test, obtaining a third concentration time series of hydrogen in a third time period;
[0026] Generate second training data according to the third concentration time series; the second training data at least includes second input data corresponding to the third concentration time series from the initial moment to the second moment of the third time period, and second label data corresponding to the third concentration time series from the second moment to the end moment;
[0027] The model parameters of the concentration prediction model are iteratively updated according to the first training data and the second training data to obtain an updated concentration prediction model.
[0028] In a second aspect, an embodiment of the present application provides a concentration prediction model generation device, the device comprising:
[0029] A first acquisition module is used to acquire a first concentration time series of hydrogen diffusion under multiple first leakage conditions preset in the hydrogen storage system; the first concentration time series includes multiple first hydrogen concentrations of hydrogen at multiple preset monitoring positions changing within a first time period;
[0030] A first generation module is used to generate a hydrogen diffusion model based on the first concentration time series; the hydrogen diffusion model is used to describe the concentration diffusion law of hydrogen in the hydrogen storage system space that changes with time;
[0031] A first determination module is used to determine, according to a hydrogen diffusion model, a second concentration time series of hydrogen diffusion under each first leakage condition; the second concentration time series includes a plurality of second hydrogen concentrations of hydrogen at a plurality of preset monitoring positions that change within a second time period; the duration of the second time period is greater than the duration of the first time period;
[0032] The second generating module is used to generate a concentration prediction model based on the second concentration time series corresponding to each first leakage condition.
[0033] In a third aspect, an embodiment of the present application provides a concentration prediction method, the method comprising:
[0034] During the driving process of the vehicle, the actual concentration time series of hydrogen at the current moment is obtained; the actual concentration time series includes the actual hydrogen concentration corresponding to the current moment and multiple moments before the current moment;
[0035] Inputting the actual concentration time series into the concentration prediction model to obtain a third predicted concentration time series of hydrogen in a preset future time period; the concentration prediction model is generated according to the method of the first aspect;
[0036] If any predicted hydrogen concentration in the third predicted concentration time series is greater than or equal to a preset concentration threshold, a preset operation is performed; the preset operation at least includes a hydrogen discharge operation.
[0037] In one embodiment, if any predicted hydrogen concentration in the third predicted concentration time series is greater than or equal to a preset concentration threshold, a preset operation is performed, including:
[0038] If any predicted hydrogen concentration in the third predicted concentration time series is greater than or equal to the preset concentration threshold, then determining the target gathering position with the maximum predicted hydrogen concentration;
[0039] Determine target purge information of a blower system in the vehicle based on the target gathering position;
[0040] The blower system is controlled to perform hydrogen exhaust operation according to the target purge information.
[0041] In a fourth aspect, an embodiment of the present application provides a concentration prediction device, the device comprising:
[0042] The second acquisition module is used to acquire the actual concentration time series of hydrogen at the current moment during the driving process of the vehicle; the actual concentration time series includes the actual hydrogen concentration corresponding to the current moment and multiple moments before the current moment;
[0043] An input module, used to input the actual concentration time series into the concentration prediction model to obtain a third predicted concentration time series of hydrogen in a preset future time period; the concentration prediction model is generated according to the method of the first aspect;
[0044] The execution module is used to execute a preset operation if any predicted hydrogen concentration in the third predicted concentration time series is greater than or equal to a preset concentration threshold; the preset operation at least includes a hydrogen discharge operation.
[0045] In a fifth aspect, an embodiment of the present application provides a vehicle, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of the first aspect or the third aspect described above when executing the computer program.
[0046] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method of the first aspect or the third aspect described above is implemented.
[0047] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a vehicle, enables the vehicle to execute the method of the first or third aspect described above.
[0048] The first aspect of the embodiment of the present application has a beneficial effect compared with the prior art: the first concentration time series of hydrogen diffusion can be obtained under each first leakage condition preset in the hydrogen storage system, so as to obtain multiple first hydrogen concentrations of hydrogen at multiple preset monitoring positions that change in the first time period. Then, based on the first concentration time series, a hydrogen diffusion model is generated to describe the concentration diffusion law of hydrogen in the hydrogen storage system space that changes with time. Furthermore, according to the hydrogen diffusion model, the second concentration time series of hydrogen diffusion under each first leakage condition can be determined respectively. Among them, because the second concentration time series includes multiple second hydrogen concentrations of hydrogen at multiple preset monitoring positions that change in the second time period, and the duration of the second time period is greater than the duration of the first time period. Therefore, it can be considered that only the first hydrogen concentration at a small amount of time (first time period) under multiple preset leakage conditions is needed to obtain the second hydrogen concentration at a large amount of time (second time period) under multiple leakage conditions. Based on this, when generating a concentration prediction model based on the second concentration time series corresponding to each first leakage condition, the accuracy of the generated concentration prediction model can be improved due to the increase in the amount of data in the second concentration time series. In addition, the second concentration time series only needs to be determined based on the first hydrogen concentration at a small number of moments (first time period), which can also reduce the time cost and labor cost required for manually generating training data.
[0049] The third aspect of the embodiment of the present application has the beneficial effect compared with the prior art: during the driving of the vehicle, by obtaining the actual concentration time series corresponding to the actual hydrogen concentration of hydrogen at the current moment and multiple moments before the current moment, and inputting it into the concentration prediction model, a third predicted concentration time series of hydrogen in a preset future time period can be obtained. Then, in the third predicted concentration time series, when there is any predicted hydrogen concentration greater than or equal to the preset concentration threshold, a preset operation is performed. For example, a hydrogen discharge operation. In this way, by predicting in advance whether the hydrogen concentration will be equal to or equal to the preset concentration threshold, the hydrogen discharge operation can be performed before the predicted hydrogen concentration is greater than or equal to the preset concentration threshold, thereby reducing the hydrogen concentration in the vehicle and improving driving safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0051] Figure 1 This is a flow chart of a method for generating a concentration prediction model provided in an embodiment of the present application;
[0052] Figure 2 It is a schematic diagram of an implementation method of generating a hydrogen diffusion model in a concentration prediction model generation method provided in an embodiment of the present application;
[0053] Figure 3 This is a schematic diagram of an implementation method for generating a concentration prediction model in a concentration prediction model generation method provided in an embodiment of the present application;
[0054] Figure 4 It is a schematic diagram of an implementation method of generating a concentration prediction model in a concentration prediction model generation method provided in another embodiment of the present application;
[0055] Figure 5 It is a structural schematic diagram of a concentration prediction model generating device provided in one embodiment of the present application;
[0056] Figure 6 This is a flow chart of a concentration prediction method provided in one embodiment of the present application;
[0057] Figure 7 It is a structural schematic diagram of a hydrogen storage system and a fan system provided in one embodiment of the present application;
[0058] Figure 8 is a structural schematic diagram of a hydrogen storage system and a fan system provided in another embodiment of the present application;
[0059] Fig. 9 It is a flow chart of a concentration prediction model generation method and a concentration prediction method provided in one embodiment of the present application;
[0060] Fig.10 It is a structural schematic diagram of a concentration prediction device provided in one embodiment of the present application;
[0061] Fig.11 It is a structural schematic diagram of a vehicle provided in one embodiment of the present application. DETAILED DESCRIPTION
[0062] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0063] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0064] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0065] With the development of clean energy, the use of hydrogen energy as a fuel for vehicle driving has become a development trend. Usually, a hydrogen storage system is used to store liquid hydrogen in vehicles. However, due to the low-temperature gasification, easy diffusion and explosiveness of liquid hydrogen, when liquid hydrogen leaks, it will quickly vaporize and diffuse in the hydrogen storage system.
[0066] Therefore, when applying hydrogen energy to vehicles, it is usually necessary to predict the hydrogen concentration distribution after hydrogen diffusion based on the hydrogen concentration in the hydrogen storage system at the current moment, so as to issue an early warning when the hydrogen concentration is greater than the warning concentration to ensure vehicle and personal safety.
[0067] At present, the prediction method of hydrogen concentration distribution is mainly based on model simulation based on the basic control equations of fluid mechanics. For example, the hydrogen diffusion model is solved based on the hydrogen concentration distribution at some moments under multiple preset leakage conditions.
[0068] However, the preset multiple leakage conditions usually have limitations, and it is impossible to preset a large number of actual leakage conditions of the hydrogen storage system. Therefore, the obtained hydrogen diffusion model usually only has a high accuracy in predicting the hydrogen concentration distribution at any time under the preset leakage conditions, and has a low accuracy in predicting the hydrogen concentration distribution under other leakage conditions.
[0069] Alternatively, a model training is performed based on the hydrogen concentration at some moments under multiple leakage conditions to obtain a concentration prediction model for hydrogen diffusion. However, the amount of data of the hydrogen concentration at some moments under multiple leakage conditions manually determined is usually small. If the hydrogen concentration at a large number of moments is required as the first training data, a large amount of manpower and time costs will be increased. Also, if only the hydrogen concentration at a small number of moments under multiple leakage conditions is used as the first training data, the accuracy of the trained concentration prediction model is also low due to the small amount of data.
[0070] Based on this, in order to generate a concentration prediction model with a higher prediction accuracy, an embodiment of the present application provides a concentration prediction model generation method, which can be applied to vehicles, for example, on-board terminals, central control terminals, electronic controllers (Electronic Control Unit, ECU) and other electronic devices on the vehicle, and can also be applied to tablet computers, laptop computers, ultra-mobile personal computers (ultra-mobile personal computers, UMPC), netbooks and other electronic devices. The embodiment of the present application does not impose any restrictions on the specific types of electronic devices.
[0071] See also Figure 1 , Figure 1 The following is a flow chart of a method for generating a concentration prediction model provided in an embodiment of the present application. The method comprises the following steps:
[0072] S101. Under a plurality of first leakage conditions preset in the hydrogen storage system, respectively, a first concentration time series of hydrogen diffusion is obtained; the first concentration time series includes a plurality of first hydrogen concentrations changing at a plurality of preset monitoring positions within a first time period.
[0073] In one embodiment, the hydrogen storage system may be a collection of all components through which the fuel (hydrogen) passes on a fuel cell vehicle. Exemplarily, the hydrogen storage system may include components such as a hydrogen storage container (e.g., a hydrogen storage bottle), a pressure regulating device, valves, pipes, and accessories, but is not limited thereto.
[0074] It is understandable that during the driving of the vehicle, hydrogen may overflow from the hydrogen storage container and then diffuse in the hydrogen storage system. At this time, a large amount of hydrogen will be distributed in the space where the hydrogen storage system is located.
[0075] In one embodiment, the first leakage condition is used to describe the leakage information of hydrogen in the hydrogen storage system. Specifically, the first leakage condition includes but is not limited to the leakage position, leakage direction, leakage rate, leakage hole shape and size, ambient wind speed and ambient temperature of hydrogen, and is not limited to this.
[0076] It should be noted that each of the above leakage information usually has multiple situations, and at this time, there are usually multiple situations of the first leakage condition formed by the combination of multiple situations. Therefore, if all the first leakage conditions are set manually to obtain the first concentration time series, it will consume a lot of manpower and time costs.
[0077] Based on this, in order to reduce manpower cost and time cost, it can be considered that the above-mentioned first leakage condition may be only a part of the leakage conditions in all leakage conditions.
[0078] In one embodiment, a plurality of preset monitoring positions may be distributed in the hydrogen storage system, and each preset monitoring position includes at least one hydrogen concentration sensor to collect a first hydrogen concentration corresponding to the preset monitoring position when hydrogen diffuses.
[0079] Among them, hydrogen diffusion is a continuous process, so each preset monitoring position will collect multiple first hydrogen concentrations in the first time period. The set of multiple first hydrogen concentrations collected by all preset monitoring positions in the first time period is the above-mentioned first concentration time series. Based on this, it can be considered that the first concentration time series is used to describe the concentration change law of hydrogen under the first leakage condition.
[0080] Exemplarily, the first concentration time series may be:
[0081] The first leakage condition: S1
[0082] Time T1:
[0083] At position L1 , the first hydrogen concentration is P11 ; at position L2 , the first hydrogen concentration is P12 ; ... ; at position Ln , the first hydrogen concentration is P1n .
[0084] Time T2:
[0085] At position L1, the first hydrogen concentration is P21; at position L2, the first hydrogen concentration is P22; ...; at position Ln, the first hydrogen concentration is P2n. ...
[0087] Time Tm:
[0088] Position L1, first hydrogen concentration Pm1; position L2, first hydrogen concentration Pm2; ...; position Ln, first hydrogen concentration Pmn.
[0089] Wherein, n is the number of preset monitoring positions; the duration between the above time T1 and time Tm is the first time period. It should be noted that, in actual situations, the total duration of continuous diffusion of hydrogen is usually much longer than the first time period. However, since the total duration cannot be specifically defined, in order to obtain the concentration diffusion law of hydrogen in the hydrogen storage system space that changes with time, and without consuming a lot of time and manpower costs to generate the first concentration time series, the above first time period can be a preset time period of a small amount of time. For example, half an hour, there is no limitation on this.
[0090] S102: Generate a hydrogen diffusion model based on the first concentration time series.
[0091] In one embodiment, the above hydrogen diffusion model is used to describe the concentration diffusion law of hydrogen in the hydrogen storage system space that changes with time. That is, it can be considered that after obtaining the hydrogen diffusion model, the first hydrogen concentration corresponding to each preset monitoring position at any time under each first leakage condition can be determined based on the hydrogen diffusion model.
[0092] As an example, the electronic device may Figure 2 The steps S201-S202 shown generate a hydrogen diffusion model. The details are as follows:
[0093] S201. Establish a three-dimensional model of the hydrogen storage system and divide the three-dimensional model into spatial grids; the divided grids are used to simulate the fluid behavior of hydrogen in the space of the three-dimensional model.
[0094] In one embodiment, the three-dimensional model is a spatial structure model of the hydrogen storage system. The electronic device may be pre-set with spatial model data of the hydrogen storage system to establish the three-dimensional model based on the spatial model data. Exemplarily, the spatial model data may be a CAD design file or 3D scanning data, which is not limited thereto.
[0095] In one embodiment, the above-mentioned grid division includes selecting a suitable grid type, controlling the grid density and size, and dividing the three-dimensional model into smaller grid units. The grid type, density and size can be determined according to factors such as the structure of the three-dimensional model and the fluid behavior characteristics of hydrogen, and no detailed description is given for this.
[0096] S202 . Based on preset boundary conditions and the divided three-dimensional model, perform fluid mechanics simulation on a plurality of first hydrogen concentrations at each preset monitoring position to obtain a hydrogen diffusion model.
[0097] In one embodiment, the above boundary conditions can be set according to actual conditions, and no limitation is made to this. Exemplarily, the boundary conditions include limiting conditions such as fluid velocity, pressure, and temperature, and no limitation is made to this.
[0098] It should be noted that when performing fluid mechanics simulation, a CFD (Computational Fluid Dynamics) equation can be established first. Then, all the above-mentioned first hydrogen concentrations can be substituted into the CFD equation for solution to obtain a hydrogen diffusion model. Among them, the CFD equation is a basic equation that describes fluid motion.
[0099] S103. According to the hydrogen diffusion model, determine the second concentration time series of hydrogen diffusion under each first leakage condition; the second concentration time series includes multiple second hydrogen concentrations that change at multiple preset monitoring positions within a second time period; the duration of the second time period is greater than the duration of the first time period.
[0100] It is understandable that the hydrogen diffusion model described above is used to describe the concentration diffusion law of hydrogen in the hydrogen storage system space over time. Therefore, after the first leakage condition and the first concentration time series in the first time period are input into the hydrogen diffusion model, the hydrogen diffusion model can automatically output the second hydrogen concentration at each preset monitoring position at each time thereafter. Then, the second concentration time series is obtained.
[0101] For example, for the first leakage condition S1, the first hydrogen concentration at each position of the first leakage condition S1 from time T1 to time Tm can be input into the hydrogen diffusion model. Then, the hydrogen diffusion model can output:
[0102] Time Tm+1: position L1, second hydrogen concentration Pm+1 1; position L2, second hydrogen concentration Pm+1 2; ..., time Tx: position Ln, second hydrogen concentration Px n.
[0103] Wherein, Px n represents the second hydrogen concentration at the preset monitoring position Ln at time Tx. At this time, the time period from T1 to Tx can be considered as the above-mentioned second time period, which includes the first time period from T1 to Tm. That is, the first hydrogen concentration at the time of T1 to Tm will be automatically determined as the second hydrogen concentration.
[0104] Based on this, it can be considered that the second hydrogen concentration at a large number of times (second time period) under multiple leakage conditions can be obtained based on the first hydrogen concentration at a small number of times (first time period) under multiple leakage conditions. That is, the amount of data increases.
[0105] The second time period can be set according to actual conditions, for example, one hour, and there is no limitation on this.
[0106] It should be noted that the length of the second time period needs to be greater than the length of the first time period, so that in the subsequent model training process, a concentration prediction model can be generated based on a large number of second concentration time series corresponding to the second time period.
[0107] As an example, the second time period may include the first time period. It is understandable that the first concentration time series in the first time period is the distribution data of the hydrogen diffusion actually detected, which can better reflect the diffusion rule of hydrogen. Therefore, when the second time period includes the first time period, it can be considered that the concentration prediction model generated based on the second concentration time series in the second time period has a higher prediction accuracy.
[0108] S104: Generate a concentration prediction model based on the second concentration time series corresponding to each first leakage condition.
[0109] In one embodiment, the second concentration time series includes the second hydrogen concentration at a large number of times (second time periods). Therefore, it can be considered that the concentration prediction model generated based on the second concentration time series usually has a high accuracy in predicting the concentration distribution of hydrogen in future time periods.
[0110] In this embodiment, the first concentration time series of hydrogen diffusion can be obtained under each first leakage condition preset in the hydrogen storage system to obtain multiple first hydrogen concentrations of hydrogen at multiple preset monitoring positions that change in the first time period. Then, based on the first concentration time series, a hydrogen diffusion model is generated to describe the concentration diffusion law of hydrogen in the hydrogen storage system space that changes with time. Furthermore, according to the hydrogen diffusion model, the second concentration time series of hydrogen diffusion under each first leakage condition can be determined respectively. Among them, because the second concentration time series includes multiple second hydrogen concentrations of hydrogen at multiple preset monitoring positions that change in the second time period, and the second time period includes the first time period. Therefore, it can be considered that only the first hydrogen concentration at a small number of moments (first time period) under multiple leakage conditions preset can be used to obtain the second hydrogen concentration at a large number of moments (second time period) under multiple leakage conditions. Based on this, when generating a concentration prediction model based on the second concentration time series corresponding to each first leakage condition, the accuracy of the generated concentration prediction model can be improved due to the increase in the amount of data of the second concentration time series. Furthermore, the second concentration time series only needs to be determined based on the first hydrogen concentration at a small number of moments (first time period), which can also reduce the time cost and manpower cost of manually generating training data.
[0111] As an example, the electronic device may Figure 3 The steps S301-S305 shown generate a concentration prediction model. The details are as follows:
[0112] S301 . For a second concentration time series corresponding to any first leakage condition, generate first training data corresponding to each first leakage condition.
[0113] In one embodiment, when training the concentration prediction model, it is usually necessary to divide the first training data into first input data for model processing and first label data for loss calculation with the prediction data output by the model. In this embodiment, the purpose of the concentration prediction model is to predict the hydrogen concentration at each preset monitoring position in the future time period.
[0114] Based on this, for the second concentration time series, since the second hydrogen concentrations at each preset monitoring position contained therein vary with time, the second concentration time series can be divided into two parts as the first training data.
[0115] Specifically, the first training data at least includes the first input data corresponding to the second concentration time series from the initial moment to the first moment of the second time period, and the first label data corresponding to the second concentration time series from the first moment to the end moment. Furthermore, the concentration prediction model can predict the first predicted concentration time series of hydrogen from the first moment to the end moment based on the first input data, so as to iteratively update the model parameters of the concentration prediction model with the actual first label data.
[0116] Among them, in order to enable the concentration prediction model to learn the diffusion law of hydrogen in this scenario as much as possible during the process of processing the first input data, it can set the time from the initial moment to the first moment corresponding to the first input data to be greater than the time from the first moment to the end moment.
[0117] For example, if the total duration of the second time period is 1 hour, the duration from the initial moment to the first moment can be set to account for 70% of the total duration, and the duration from the first moment to the end moment can be set to account for 30% of the total duration, and there is no limitation on this.
[0118] S302, inputting the first input data into the initial concentration prediction model for training, and predicting a first predicted concentration time series of hydrogen from the first moment to the end moment.
[0119] In one embodiment, the model category of the above-mentioned initial concentration prediction model can be a CNN (Convolutional Neural Networks) neural network model, a BP (Back Propagation) neural network model, etc., without limitation.
[0120] The form of the first predicted concentration time series can refer to the form of the first concentration time series or the second concentration time series, which will not be described in detail. That is, the first predicted concentration time series will include each predicted hydrogen concentration at each preset monitoring position between the first moment and the end moment.
[0121] S303: Iteratively update model parameters of the initial concentration prediction model according to the first label data and the first predicted concentration time series.
[0122] In one embodiment, the electronic device may calculate the training loss of the initial concentration prediction model according to the first label data and the first predicted concentration time series, and then iteratively update the model parameters according to the training loss.
[0123] In one embodiment, the electronic device may use any one of a square loss function, an absolute value loss function, and a logarithmic loss function to calculate the training loss. Exemplarily, the square loss function may be used to calculate the training loss.
[0124] Specifically, the square loss function is the square of the difference between the predicted value and the actual value. Therefore, the second hydrogen concentration in the first label data at the same time and position in the first label data and the first predicted concentration time series can be used as the actual value, and the predicted concentration in the first predicted concentration time series example can be used as the predicted value to participate in the above calculation. Then, the average value corresponding to the sum of the squares of the differences at all times and all positions is taken as the final training loss.
[0125] Exemplarily, for the second hydrogen concentration Py1 at the L1 position at the Ty moment, the predicted concentration P`y1 at the L1 position at the Ty moment can also be determined from the first predicted concentration time series. Then, the square of the difference E between P`y1 and Py1 is calculated. Since there are n preset monitoring positions, at the Ty moment, the squares E corresponding to the n preset monitoring positions will be obtained. In addition, there are usually multiple moments between the first moment and the end moment. For example, there are F. Therefore, the number of squares of the difference E finally obtained will be n*F.
[0126] In one embodiment, the above-mentioned method of iteratively updating model parameters includes but is not limited to the stochastic gradient descent method based on the learning rate decay method, which is not limited to this.
[0127] S304: If the initial concentration prediction model meets the convergence condition during the iterative update process, the current initial concentration prediction model is used as the concentration prediction model.
[0128] S305. If the initial concentration prediction model does not meet the convergence condition during the iterative update process, return to execute step S302 and subsequent steps until the initial concentration prediction model meets the convergence condition.
[0129] In one embodiment, the above convergence conditions include but are not limited to the training losses obtained for multiple consecutive times being less than the preset training losses, or the number of model training times reaching the preset number of times, which are not limited to this. The preset training loss and the preset number of times can be set according to actual conditions.
[0130] It is understandable that when the initial concentration prediction model meets the convergence condition, the current initial concentration prediction model can be considered as the trained concentration prediction model. Otherwise, the electronic device can repeat steps S302-S305.
[0131] In another embodiment, after obtaining the concentration prediction model, the part of the second concentration time series that is not used as the first training data in the second concentration time series can also be used as test data to test the training effect of the concentration prediction model. That is, in step S301, all the second concentration time series can be divided into two parts, and the second concentration time series in the first part is used as the first training data to divide the first input data and the first label data to participate in the model training of the above steps S302-S305. Then, the second concentration time series in the second part is used as test data.
[0132] Among them, the test data also needs to be divided into test input data and test label data, and the division method can also refer to the division method of the first input data and the first label data in the above-mentioned step S301. Afterwards, the test input data can be input into the concentration prediction model to obtain a test prediction concentration time series. Then, the test training loss between the test prediction concentration time series and the test label data is calculated. When the test training loss is less than the preset loss value, it is determined that the prediction result of the concentration prediction model is accurate; otherwise, it is determined that the prediction result of the concentration prediction model is wrong. Afterwards, based on all the prediction results, the prediction accuracy of the concentration prediction model is determined. Finally, when the prediction accuracy is greater than the preset accuracy, it is determined that the concentration prediction model meets the requirements. Otherwise, when the prediction accuracy is less than or equal to the preset accuracy, it is determined that the concentration prediction model does not meet the requirements. In addition, the electronic device can regenerate the first training data and train the concentration prediction model again until the concentration prediction model meets the requirements.
[0133] Among them, the above-mentioned preset loss value and preset accuracy rate can be set according to actual conditions and there is no limitation on this.
[0134] In one embodiment, the above-mentioned example of the test concentration prediction model meeting the requirements is only one of the ways. In another embodiment, it can also be determined based on methods such as cross-validation, model comparison validation, etc., which is not limited to this.
[0135] To sum up the above description, it is an example of an electronic device training a concentration prediction model based on the second concentration time series series after data enhancement. The concentration prediction model trained based on a large number of second concentration time series series has a higher prediction accuracy.
[0136] However, it should be noted that the above second concentration time series are all predetermined hydrogen concentration distributions under various first leakage conditions. However, in actual scenarios, the actual leakage conditions when a hydrogen storage system leaks are usually different from the above first leakage conditions. Therefore, when the concentration prediction model trained based on the first leakage condition is used to predict the concentration time series for the actual leakage condition different from the first leakage condition, the accuracy of the predicted concentration time series for the predicted future time period may still be low.
[0137] Based on this, in order to improve the accuracy of the concentration prediction model for the predicted concentration time series under any leakage condition, the electronic device can also be used according to the following Figure 4 The steps S401-S403 shown are to perform a second training on the trained concentration prediction model. The details are as follows:
[0138] S401. During the vehicle test, obtain a third concentration time series of hydrogen in a third time period.
[0139] In one embodiment, the above test process can be a test conducted by a real vehicle driving on an actual road, or a test conducted in an environmental chamber, without limitation. During the environmental chamber test, the environmental information of the vehicle test is controllable. For example, the temperature and humidity that affect the diffusion of hydrogen can be controlled by the staff to generate the environmental chamber, making the test more convenient. Also, when the test is conducted on an actual road, it is more in line with the real environment and the test effect is better.
[0140] It should be noted that the purpose of secondary training of the concentration prediction model is to improve the accuracy of the concentration time series prediction under actual leakage conditions. However, the actual leakage conditions cannot be determined completely. Therefore, it can be considered that the purpose of secondary training is also to improve the accuracy of the concentration prediction model in predicting the concentration time series under any conditions.
[0141] Based on this, during the vehicle test, only the third concentration time series of hydrogen in the third time period may be obtained, without determining the actual leakage condition corresponding to the hydrogen storage system at this time.
[0142] S402: Generate second training data according to the third concentration time series.
[0143] In one embodiment, the second training data may be generated in a manner similar to the first training data generated in S301, and no detailed description is given. For example, the second training data also includes at least the second input data corresponding to the third concentration time series from the initial moment to the second moment of the third time period, and the second label data corresponding to the third concentration time series from the second moment to the end moment.
[0144] The second moment is similar to the first moment in S301, the second input data is similar to the first input data in S301, and the second label data is similar to the first label data in S301, which will not be described in detail.
[0145] S403 . Iteratively update model parameters of the concentration prediction model according to the first training data and the second training data to obtain an updated concentration prediction model.
[0146] After obtaining the second training data, the second training data and the first training data can be integrated into new training data, and the concentration prediction model can be iteratively updated. At this time, combining the first training data with the second training data for training can not only enable the concentration prediction model to learn the characteristics of the concentration diffusion distribution of hydrogen under new unknown leakage conditions, but also retain the characteristics of the concentration diffusion distribution of hydrogen under the original leakage conditions, thereby improving the accuracy of the concentration prediction model in predicting the concentration time series under any condition.
[0147] Furthermore, the first training data and the second training data are integrated, and the amount of data used for model training will also be greatly increased, thereby further improving the prediction accuracy of the iteratively updated concentration prediction model.
[0148] See also Figure 5 , Figure 5 : is a structural block diagram of a concentration prediction model generation device provided in an embodiment of the present application. The concentration prediction model generation device in this embodiment includes modules for executing Figures 1 to 4 For details, please refer to the steps in the corresponding embodiment. Figures 1 to 4 as well as Figures 1 to 4 For the convenience of explanation, only the parts related to this embodiment are shown. Figure 5 , the concentration prediction model generation device 500 may include: a first acquisition module 510, a first generation module 520, a first determination module 530 and a second generation module 540, wherein:
[0149] The first acquisition module 510 is used to obtain a first concentration time series of hydrogen diffusion under multiple first leakage conditions preset in the hydrogen storage system; the first concentration time series includes multiple first hydrogen concentrations changing at multiple preset monitoring positions within a first time period.
[0150] The first generating module 520 is used to generate a hydrogen diffusion model based on the first concentration time series; the hydrogen diffusion model is used to describe the concentration diffusion law of hydrogen in the hydrogen storage system space that changes with time.
[0151] The first determination module 530 is used to determine, according to the hydrogen diffusion model, a second concentration time series of hydrogen diffusion under each first leakage condition; the second concentration time series includes a plurality of second hydrogen concentrations that change at a plurality of preset monitoring positions within a second time period; and the duration of the second time period is greater than the duration of the first time period.
[0152] The second generating module 540 is used to generate a concentration prediction model based on the second concentration time series corresponding to each first leakage condition.
[0153] In one embodiment, the first generating module 520 is further configured to:
[0154] A three-dimensional model of the hydrogen storage system is established, and the three-dimensional model is spatially gridded; the gridded grid is used to simulate the fluid behavior of hydrogen in the space of the three-dimensional model; based on the preset boundary conditions and the divided three-dimensional model, a fluid mechanics simulation is performed on multiple first hydrogen concentrations at each preset monitoring position to obtain a hydrogen diffusion model.
[0155] In one embodiment, the second generating module 540 is further configured to:
[0156] For the second concentration time series corresponding to any first leakage condition, first training data corresponding to each first leakage condition is generated; the first training data at least includes the first input data corresponding to the second concentration time series from the initial moment to the first moment in the second time period, and the first label data corresponding to the second concentration time series from the first moment to the end moment; the first input data is input into the initial concentration prediction model for training, and the first predicted concentration time series of hydrogen is predicted from the first moment to the end moment; according to the first label data and the first predicted concentration time series, the model parameters of the initial concentration prediction model are iteratively updated; if the initial concentration prediction model meets the convergence condition during the iterative update process, the current initial concentration prediction model is used as the concentration prediction model; if the initial concentration prediction model does not meet the convergence condition during the iterative update process, the step of inputting the first input data into the initial concentration prediction model for training, and predicting the first predicted concentration time series of hydrogen from the first moment to the end moment, and subsequent steps are returned to execute until the initial concentration prediction model meets the convergence condition.
[0157] In one embodiment, the duration from the initial moment to the first moment is greater than the duration from the first moment to the end moment.
[0158] In one embodiment, the second generating module 540 is further configured to:
[0159] The training loss of the initial concentration prediction model is calculated according to the first label data and the first predicted concentration time series; and the model parameters are iteratively updated according to the training loss.
[0160] In one embodiment, the concentration prediction model generating device 500 further includes:
[0161] The third acquisition module is used to acquire a third concentration time series of hydrogen in a third time period during the vehicle test process.
[0162] The third generation module is used to generate second training data based on the third concentration time series; the second training data at least includes second input data corresponding to the third concentration time series from the initial moment to the second moment of the third time period, and second label data corresponding to the third concentration time series from the second moment to the end moment.
[0163] The iteration module is used to iteratively update the model parameters of the concentration prediction model according to the first training data and the second training data to obtain an updated concentration prediction model.
[0164] When it is understood that Figure 5 In the structural block diagram of the concentration prediction model generation device shown in FIG. Figures 1 to 4 The steps in the corresponding embodiments, and for Figures 1 to 4 Each step in the corresponding embodiment has been explained in detail in the above embodiment. Figures 1 to 4 as well as Figures 1 to 4 The relevant descriptions in the corresponding embodiments are not repeated here.
[0165] In another embodiment, after obtaining the concentration prediction model through the above embodiment, the vehicle can also use the concentration prediction model to predict the hydrogen concentration in the vehicle in real time during driving, so as to give early warning or discharge hydrogen in advance to ensure driving safety and personal safety. Figure 6 The steps S601-S603 shown ensure driving safety and personal safety. Details are as follows:
[0166] S601. During vehicle driving, obtain a time series of actual hydrogen concentration at the current moment; the time series of actual concentration includes actual hydrogen concentrations corresponding to the current moment and multiple moments before the current moment.
[0167] In one embodiment, the actual hydrogen concentration of each preset monitoring position in the hydrogen storage system can be obtained when the vehicle is powered on and running. Then, as time changes, the actual hydrogen concentration corresponding to the current moment and multiple moments before the current moment can be used as the actual concentration time series corresponding to the current moment.
[0168] The actual hydrogen concentration at the preset monitoring position can be collected by the hydrogen concentration sensor described above. The examples of the actual hydrogen concentration collected at each moment can refer to the examples of each moment in the first concentration time series, which will not be described again.
[0169] It should be noted that when the current moment is the initial moment, the actual hydrogen concentration corresponding to each moment before the current moment may be 0.
[0170] S602: Input the actual concentration time series into the concentration prediction model to obtain a third predicted concentration time series of hydrogen in a preset future time period.
[0171] In one embodiment, the above concentration prediction model is based on Figures 1 to 4 The above-mentioned preset future time period can be set according to the actual situation and is not limited to this. For example, the third predicted concentration time series within 1 minute or 10 minutes after the current moment can be predicted. That is, it describes the concentration distribution of hydrogen that will diffuse in the hydrogen storage system within the preset future time period after the current moment.
[0172] S603: If any predicted hydrogen concentration in the third predicted concentration time series is greater than or equal to a preset concentration threshold, a preset operation is performed; the preset operation at least includes a hydrogen removal operation.
[0173] In one embodiment, the predicted hydrogen concentration is the predicted concentration in the third predicted concentration time series. The preset concentration threshold and the preset operation can be set according to actual conditions and are not limited thereto.
[0174] Exemplarily, the preset concentration threshold may be 3%, and the preset operation may at least include a hydrogen discharge operation, and may also include a warning operation.
[0175] In one embodiment, the above-mentioned warning operation may be one or more of voice broadcast, closing the valve of the hydrogen storage system for transmitting hydrogen to the outside, and sending an alarm message, which is not limited to this. In addition, the above-mentioned hydrogen discharge operation includes but is not limited to using a fan system to purge the hydrogen in the hydrogen storage system, or opening a channel between the internal space of the hydrogen storage system and the external environment to discharge the hydrogen in the hydrogen storage system to the external environment.
[0176] Among them, the vehicle can stop performing the hydrogen discharge operation after the hydrogen discharge operation reaches a preset time length; or the vehicle can stop performing the hydrogen discharge operation when the predicted hydrogen concentration included in the third predicted concentration time series within a preset future time period is less than a preset concentration threshold, and there is no limitation on this.
[0177] In this embodiment, during the driving process of the vehicle, by obtaining the actual concentration time series corresponding to the actual hydrogen concentration at the current moment and multiple moments before the current moment, and inputting it into the concentration prediction model, a third predicted concentration time series of hydrogen in a preset future time period can be obtained. Then, in the third predicted concentration time series, when there is any predicted hydrogen concentration greater than or equal to the preset concentration threshold, a preset operation is performed. For example, a hydrogen discharge operation. In this way, by predicting in advance whether the hydrogen concentration will be equal to or equal to the preset concentration threshold, the hydrogen discharge operation can be performed before the predicted hydrogen concentration is greater than or equal to the preset concentration threshold, thereby reducing the hydrogen concentration in the vehicle and improving driving safety.
[0178] As an example, a fan system may be used inside the vehicle to perform the above-mentioned hydrogen discharge operation. Exemplarily, if any predicted hydrogen concentration in the third predicted concentration time series is greater than or equal to a preset concentration threshold, a target accumulation position with the largest predicted hydrogen concentration is determined. Then, based on the target accumulation position, target purge information of the fan system in the vehicle is determined, and the fan system is controlled to perform the hydrogen discharge operation according to the target purge information.
[0179] The target purge information includes but is not limited to the purge angle of the fan system and the first purge wind speed of the fan system. By controlling the purge angle, the purge position of the fan system can be adjusted to specifically purge the hydrogen at the target accumulation position; and by controlling the first purge wind speed, the energy consumption required can be controlled on the basis of controlling the rate of hydrogen discharge.
[0180] Specifically, the fan system may include a rotatable fan, or a fixed fan and a variable direction device. The variable direction device is used to adjust the blowing position of the fan system. The variable direction device may be a rotatable partition or a rotatable fan blade, which is not limited.
[0181] In this embodiment, since a special rotating structure is required to support the rotation of the fan, in order to simplify the hardware structure of the fan system, the fan system may include a fixed fan (non-rotatable) and a direction-changing device. In addition, the direction-changing device is arranged between the fan and the hydrogen storage system to adjust the direction of the airflow generated by the fan.
[0182] Based on this, it can be considered that adjusting the changing angle of the changing device is to control the purge angle described above.
[0183] As an example, the vehicle can determine the target turning angle of the directional control device based on the target gathering position and the first preset relationship, and determine the target turning angle as the target purge information. Then, after adjusting the turning angle of the directional control device to the target turning angle, the fan is controlled to work.
[0184] In one embodiment, the first preset relationship is used to characterize the relationship between the turning angle of the variable-direction device and the preset position range. Based on this, by controlling the turning angle of the variable-direction device, the airflow direction during the blower purge can be controlled to specifically reduce the hydrogen concentration at the target accumulation position.
[0185] The vehicle may pre-store a plurality of mapping relationships between preset position ranges and turning angles as the first preset relationship. Then, based on the preset position range where the target gathering position is located, the target turning angle is determined.
[0186] In one embodiment, the vehicle may further include a drive motor, which is used to supply power to the fan to control the operation of the fan, and may also supply power to a variable-direction device (rotatable partition) to control the changing angle of the variable-direction device.
[0187] In another embodiment, in order to reduce the energy consumption of the fan system while quickly reducing the predicted hydrogen concentration, the vehicle can also reasonably control the purge wind speed when the fan is working. Exemplarily, the vehicle can determine the first purge wind speed of the fan based on the predicted hydrogen concentration at the target gathering position and the second preset relationship, and determine the first purge wind speed as the target purge information. Then, the purge wind speed of the fan when working is controlled to be the first purge wind speed.
[0188] In one embodiment, the second preset relationship is used to characterize the relationship between the purge wind speed of the fan and the preset concentration range. Based on this, by controlling the purge wind speed of the fan, the rate of hydrogen discharge at the target accumulation position can be controlled. Furthermore, while ensuring the rate of hydrogen discharge, a suitable purge wind speed can be selected to reduce the energy consumption used by the fan system.
[0189] The vehicle may pre-store a plurality of mapping relationships between preset concentration ranges and purge wind speeds as the second preset relationship. Then, the first purge wind speed is determined based on the preset concentration range in which the predicted hydrogen concentration at the target accumulation position is located.
[0190] Reference Figure 7 , Figure 7It is a structural schematic diagram of a hydrogen storage system and a blower system provided in one embodiment of the present application. Among them, the hydrogen storage system can mainly include high-pressure hydrogen storage bottles, hydrogen concentration sensors, ECUs and other equipment. The valve of the high-pressure hydrogen storage bottle can be connected to the hydrogen concentration sensor and the ECU, and hydrogen concentration sensors can also be set at the remaining preset monitoring positions of the hydrogen storage system. And, the blower system includes a blower and a variable direction device (for example, a rotatable partition), and the vehicle can also include a power supply drive motor. And, the control instructions of the above-mentioned blower system can all be generated by the vehicle. For example, it is generated by a vehicle hardware security module (HSM, Hardware Security Module) or ECU in the vehicle. In this embodiment, the ECU is used as an example for explanation.
[0191] When hydrogen leakage occurs, the hydrogen concentration sensor can transmit the detected actual hydrogen concentration to the ECU. The ECU can combine the actual hydrogen concentration at the current moment and at each moment before the current moment to form an actual concentration time series. Then, the actual concentration time series is input into the concentration prediction model to obtain a third predicted concentration time series. Finally, in the third predicted concentration time series, if any predicted hydrogen concentration is greater than or equal to the preset concentration threshold, the preset operation is performed.
[0192] For example, the ECU may first determine the target accumulation position where the hydrogen concentration is predicted to be the largest. Then, when performing the preset hydrogen discharge operation on the target accumulation position, the ECU may determine the target turning angle of the variable direction device according to the target accumulation position. At the same time, the first purge wind speed of the fan is determined according to the predicted hydrogen concentration at the target accumulation position. Then, after controlling the turning angle of the variable direction device to be the target turning angle, the fan is controlled to operate at the first purge wind speed to quickly discharge the hydrogen in the hydrogen storage system.
[0193] Based on the above description, it can be known that the vehicle can perform the above hydrogen discharge operation only according to the strategy of adjusting the turning angle and maintaining the purge wind speed unchanged. Alternatively, the above hydrogen discharge operation can be performed only according to the strategy of adjusting the purge wind speed and maintaining the purge direction unchanged. Alternatively, the above hydrogen discharge operation can be performed according to the strategy of adjusting the turning angle and the purge wind speed at the same time, and there is no limitation on this.
[0194] It is understandable that, at this time, after the hydrogen discharge operation is performed, the actual hydrogen concentration at the current moment can be reduced. Furthermore, when the concentration prediction model subsequently predicts again based on the actual hydrogen concentration with reduced concentration at the current moment, the predicted hydrogen concentration included in the third predicted concentration time series of hydrogen in the preset future time period will also be reduced.
[0195] In another embodiment, the blowing direction of the fan may also be the same as the windward direction of the vehicle. Figure 8 Example, Figure 8: is a schematic diagram of the structure of a hydrogen storage system and a fan system provided in an embodiment of the present application. It can be understood that when the vehicle is in a driving state, an airflow will be generated to purge the inside of the hydrogen storage system. Therefore, it can be considered that in the driving state, the hydrogen inside the hydrogen storage system will be naturally discharged under the action of the airflow.
[0196] Based on this, in order to further reduce the required energy consumption on the basis of reducing the predicted hydrogen concentration inside the hydrogen storage system, the vehicle can also first obtain the driving state of the vehicle. Then, when the driving state is the driving state, the first purge wind speed is reduced to the second purge wind speed. And when the driving state is the parking state, the first purge wind speed when the fan is working is maintained.
[0197] Among them, the second purge wind speed can be set according to actual conditions, and there is no limitation on this. Exemplarily, the second purge wind speed can be determined according to the vehicle speed. For example, multiple vehicle speed ranges can be pre-set, as well as the wind speed drop values corresponding to each vehicle speed range. Then, determine the speed range in which the current vehicle speed is located to determine the corresponding target wind speed drop value. Finally, the difference between the first purge wind speed and the target wind speed drop value is used as the above-mentioned second purge wind speed. That is, the second purge wind speed can be reasonably adjusted according to the vehicle speed. Furthermore, while ensuring that the second purge wind speed can quickly discharge the hydrogen from the hydrogen storage system, the energy consumption required by the fan system is reduced.
[0198] Among them, when the vehicle speed range is larger, the wind speed drop value is larger, and the energy consumption required for the second purge wind speed when the fan is working will be lower.
[0199] Reference Fig. 9 , Fig. 9 It is a flow chart of a concentration prediction model generation method and a concentration prediction method implementation provided by another embodiment of the present application. Among them, the vehicle can obtain the first concentration time series of hydrogen diffusion under multiple first leakage conditions preset in the hydrogen storage system. In addition, a three-dimensional model of the hydrogen storage system is established, and the three-dimensional model is spatially gridded. Then, based on the preset boundary conditions and the divided three-dimensional model, a fluid mechanics simulation can be performed on the multiple first hydrogen concentrations at each preset monitoring position to obtain a hydrogen diffusion model that can describe the concentration diffusion law of hydrogen in the hydrogen storage system space that changes with time. That is, the CFD equation is solved to obtain the hydrogen diffusion model.
[0200] Afterwards, according to the hydrogen diffusion model, the vehicle can respectively determine the second concentration time series when hydrogen diffuses in the second time period under each first leakage condition. Then, a large number of second concentration time series are used as the first training data to preliminarily train the concentration prediction model that meets the convergence condition.
[0201] Furthermore, in order to improve the accuracy of the third predicted concentration time series of the concentration prediction model under any leakage condition, the vehicle can obtain the third concentration time series of hydrogen in the third time period during the vehicle test. Then, the second training data is generated according to the third concentration time series, and the model parameters of the concentration prediction model are iteratively updated in combination with the first training data to obtain an updated concentration prediction model.
[0202] Finally, when the iteratively updated concentration prediction model is applied to the vehicle, the third predicted concentration time series of hydrogen in a preset future time period can be predicted based on the actual concentration time series of hydrogen at the current moment. Furthermore, when any predicted hydrogen concentration in the third predicted concentration time series is greater than or equal to the preset concentration threshold, a preset operation is performed. For example, a hydrogen discharge operation is performed to avoid the risk of hydrogen accumulation in advance and improve driving safety.
[0203] See also Fig.10 , Fig.10 : is a structural block diagram of a concentration prediction device provided in an embodiment of the present application. The concentration prediction device in this embodiment includes modules for executing Figure 6 and Fig. 9 For details, please refer to the steps in the corresponding embodiment. Figure 6 and Fig. 9 as well as Figure 6 and Fig. 9 For the convenience of explanation, only the parts related to this embodiment are shown. Fig.10 , the concentration prediction device 1000 may include: a second acquisition module 1010, an input module 1020 and an execution module 1030, wherein:
[0204] The second acquisition module 1010 is used to acquire the actual concentration time series of hydrogen at the current moment during the driving process of the vehicle; the actual concentration time series includes the actual hydrogen concentration corresponding to the current moment and multiple moments before the current moment.
[0205] The input module 1020 is used to input the actual concentration time series into the concentration prediction model to obtain a third predicted concentration time series of hydrogen in a preset future time period; the concentration prediction model is generated according to the method of the first aspect.
[0206] The execution module 1030 is used to execute a preset operation if any predicted hydrogen concentration in the third predicted concentration time series is greater than or equal to a preset concentration threshold; the preset operation at least includes a hydrogen removal operation.
[0207] In one embodiment, the execution module 1030 is further configured to:
[0208] If any predicted hydrogen concentration in the third predicted concentration time series is greater than or equal to a preset concentration threshold, a target accumulation position with the largest predicted hydrogen concentration is determined; based on the target accumulation position, target purge information of the blower system in the vehicle is determined; and the blower system is controlled to perform a hydrogen exhaust operation according to the target purge information.
[0209] Fig.11 is a structural block diagram of a vehicle provided by an embodiment of the present application. Fig.11 As shown, the vehicle 1100 of this embodiment includes: a processor 1110, a memory 1120, and a computer program 1130 stored in the memory 1120 and executable on the processor 1110, such as a concentration prediction model generation method or a concentration prediction method program. When the processor 1110 executes the computer program 1130, the steps in each embodiment of the above-mentioned concentration prediction model generation method are implemented, such as Figure 1 S101 to S104 shown or Figure 6 Alternatively, the processor 1110 implements the above when executing the computer program 1130 Figure 5 or Fig.10 The functions of each module in the corresponding embodiment are, for example, Figure 5 or Fig.10 For details on the functions of each module shown, please refer to Figure 5 or Fig.10 Related description in the corresponding embodiment.
[0210] Exemplarily, the computer program 1130 may be divided into one or more modules, one or more modules are stored in the memory 1120, and are executed by the processor 1110 to implement the concentration prediction model generation method or the concentration prediction method provided in the embodiment of the present application. One or more modules may be a series of computer program instruction segments capable of completing a specific function, and the instruction segments are used to describe the execution process of the computer program 1130 in the vehicle 1100. For example, the computer program 1130 may implement the concentration prediction model generation method provided in the embodiment of the present application, or implement the concentration prediction method provided in the embodiment of the present application.
[0211] The vehicle 1100 may include, but is not limited to, a processor 1110 and a memory 1120. Those skilled in the art will appreciate that Fig.11 This is only an example of vehicle 1100 and does not constitute a limitation of vehicle 1100 , which may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the vehicle may also include input and output devices, network access devices, buses, etc.
[0212] The processor 1110 may be a central processing unit, or other general-purpose processors, digital signal processors, application-specific integrated circuits, off-the-shelf programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0213] The memory 1120 may be an internal storage unit of the vehicle 1100, such as a hard disk or memory of the vehicle 1100. The memory 1120 may also be an external storage device of the vehicle 1100, such as a plug-in hard disk, a smart memory card, a flash memory card, etc. equipped on the vehicle 1100. Furthermore, the memory 1120 may also include both an internal storage unit of the vehicle 1100 and an external storage device.
[0214] An embodiment of the present application provides a computer-readable storage medium, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, a concentration prediction model generation method or a concentration prediction method as described in the above-mentioned embodiments is implemented.
[0215] An embodiment of the present application provides a computer program product. When the computer program product is run on a vehicle, the vehicle executes the concentration prediction model generation method or the concentration prediction method in the above-mentioned embodiments.
[0216] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for generating a concentration prediction model, characterized in that: The method comprises: Under a plurality of first leakage conditions preset in the hydrogen storage system, respectively, a first concentration time series of hydrogen diffusion is obtained; the first concentration time series includes a plurality of first hydrogen concentrations of the hydrogen at a plurality of preset monitoring positions changing within a first time period; Based on the first concentration time series, a hydrogen diffusion model is generated; the hydrogen diffusion model is used to describe the concentration diffusion law of the hydrogen in the hydrogen storage system space that changes with time; According to the hydrogen diffusion model, a second concentration time series of the hydrogen diffusion under each of the first leakage conditions is determined respectively; the second concentration time series includes a plurality of second hydrogen concentrations of the hydrogen at a plurality of the preset monitoring positions changing within a second time period; the duration of the second time period is greater than the duration of the first time period; A concentration prediction model is generated based on the second concentration time series corresponding to each of the first leakage conditions.
2. The method according to claim 1, characterized in that The step of generating a hydrogen diffusion model based on the first concentration time series includes: Establishing a three-dimensional model of the hydrogen storage system, and dividing the three-dimensional model into spatial grids; the divided grids are used to simulate the fluid behavior of the hydrogen in the space of the three-dimensional model; Based on the preset boundary conditions and the divided three-dimensional model, a fluid mechanics simulation is performed on the multiple first hydrogen concentrations at each of the preset monitoring positions to obtain the hydrogen diffusion model.
3. The method according to claim 1, characterized in that The generating a concentration prediction model based on the second concentration time series corresponding to each of the first leakage conditions includes: For the second concentration time series corresponding to any of the first leakage conditions, generate first training data corresponding to each of the first leakage conditions; the first training data at least includes first input data corresponding to the second concentration time series from the initial moment to the first moment of the second time period, and first label data corresponding to the second concentration time series from the first moment to the end moment; Inputting the first input data into an initial concentration prediction model for training, and predicting a first predicted concentration time series of the hydrogen from the first moment to the end moment; Iteratively updating model parameters of the initial concentration prediction model according to the first label data and the first predicted concentration time series; If the initial concentration prediction model meets the convergence condition during the iterative update process, the current initial concentration prediction model is used as the concentration prediction model; If the initial concentration prediction model does not meet the convergence condition during the iterative update process, return to execute the step of inputting the first input data into the initial concentration prediction model for training, predicting the first predicted concentration time series of the hydrogen from the first moment to the end moment, and subsequent steps until the initial concentration prediction model meets the convergence condition.
4. The method according to claim 3, characterized in that The duration from the initial moment to the first moment is greater than the duration from the first moment to the end moment.
5. The method according to claim 3, characterized in that: The iterative updating of the model parameters of the initial concentration prediction model according to the first label data and the first predicted concentration time series includes: Calculating the training loss of the initial concentration prediction model according to the first label data and the first predicted concentration time series; The model parameters are iteratively updated according to the training loss.
6. The method according to claim 3, characterized in that After generating the concentration prediction model based on the second concentration time series corresponding to each of the first leakage conditions, the method includes: During the vehicle test, obtaining a third concentration time series of the hydrogen in a third time period; Generate second training data according to the third concentration time series; the second training data at least includes second input data corresponding to the third concentration time series from the initial moment to the second moment of the third time period, and second label data corresponding to the third concentration time series from the second moment to the end moment; The model parameters of the concentration prediction model are iteratively updated according to the first training data and the second training data to obtain the updated concentration prediction model.
7. A concentration prediction method, characterized in that: The method comprises: During the driving of the vehicle, a time series of actual concentrations of hydrogen at the current moment is obtained; the time series of actual concentrations includes actual hydrogen concentrations corresponding to the current moment and multiple moments before the current moment; Inputting the actual concentration time series into a concentration prediction model to obtain a third predicted concentration time series of the hydrogen in a preset future time period; the concentration prediction model is generated according to the method described in any one of claims 1 to 6; If any predicted hydrogen concentration in the third predicted concentration time series is greater than or equal to a preset concentration threshold, a preset operation is performed; the preset operation at least includes a hydrogen discharge operation.
8. The method according to claim 7, characterized in that If any predicted hydrogen concentration in the third predicted concentration time series is greater than or equal to a preset concentration threshold, a preset operation is performed, including: If any predicted hydrogen concentration in the third predicted concentration time series is greater than or equal to a preset concentration threshold, determining a target gathering position where the predicted hydrogen concentration is the largest; Determining target purge information of a blower system in the vehicle based on the target aggregation position; The blower system is controlled to perform the hydrogen exhaust operation according to the target purge information.
9. A concentration prediction model generating device, characterized in that: The device comprises: A first acquisition module is used to acquire a first concentration time series of hydrogen diffusion under multiple first leakage conditions preset in the hydrogen storage system; the first concentration time series includes multiple first hydrogen concentrations of the hydrogen at multiple preset monitoring positions changing within a first time period; A first generating module is used to generate a hydrogen diffusion model based on the first concentration time series; the hydrogen diffusion model is used to describe the concentration diffusion law of the hydrogen in the hydrogen storage system space that changes with time; A first determination module is used to determine, according to the hydrogen diffusion model, a second concentration time series of the hydrogen diffusion under each of the first leakage conditions; the second concentration time series includes a plurality of second hydrogen concentrations of the hydrogen at the plurality of preset monitoring positions changing within a second time period; the duration of the second time period is greater than the duration of the first time period; The second generating module is used to generate a concentration prediction model based on the second concentration time series corresponding to each of the first leakage conditions.
10. A vehicle comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1-6 or 7-8 is implemented.
Citation Information
Patent Citations
Method and system for quickly predicting consequence of leakage accident of hydrogen refueling station
CN116306377A
Liquid hydrogen diffusion state real-time analysis method and system
CN116958521A
Gas concentration prediction method for unknown leakage source position
CN117272822A
Large underground garage hydrogen leakage prediction and risk assessment method based on Informer model
CN117313191A
Smart welding system for recycling of An Old Railway wheel
KR102672474B1
Cited By
Fuel cell automobile hydrogen leakage monitoring method, device, equipment and medium
CN115597784A
Hydrogen storage facility leakage diffusion safety protection system and protection method
CN119594336A
