Method, system, equipment, medium and program product for quantifying progress of hydrogen absorption and desorption reactions
By using image recognition technology to extract the grayscale and crack texture characteristics of hydrogen storage materials and establish a mapping relationship, the problem of real-time monitoring of the progress of hydrogen storage reactions in existing technologies is solved, and low-cost and simple quantitative monitoring of reaction progress is achieved.
Patent Information
- Application Number
- CN202510922570.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-04
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2045-07-04
AI Technical Summary
Existing technologies make it difficult to monitor the progress of hydrogen absorption and desorption reactions of hydrogen storage materials in real time, in situ, and non-invasively, and traditional methods require expensive instruments and complex operations.
Through image recognition technology, the grayscale features and crack texture features of the hydrogen storage material before and after hydrogen absorption and desorption are extracted, and a mapping relationship between image features and reaction progress is established to achieve real-time, in-situ quantitative monitoring of the reaction progress.
Real-time, in-situ, non-invasive monitoring of the progress of hydrogen absorption and desorption reactions is achieved, which reduces instrument costs, simplifies operations, and obtains detailed reaction kinetics information.
Smart Images

Figure CN120431528B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of material science and image processing technology, and in particular to a method, system, equipment, medium and program product for quantifying progress of hydrogen absorption and desorption reactions. Background Art
[0002] With the rapid development of the hydrogen energy industry, solid-state hydrogen storage is showing broad application prospects in new energy vehicles, portable power sources, and distributed energy. Its advantages include high volumetric hydrogen storage density, low operating pressure, and excellent safety. It can effectively overcome the technical bottlenecks of traditional high-pressure gaseous and low-temperature liquid hydrogen storage, and promote the large-scale development of the hydrogen energy industry.
[0003] The working principle of hydrogen storage materials in absorbing and releasing hydrogen is the gas-solid reaction between hydrogen storage materials and hydrogen. Hydrogen storage materials usually undergo a series of physical and chemical changes before and after hydrogen storage. These changes are mainly reflected in the structure, form, color and performance of the materials.
[0004] Traditionally, the progress of hydrogen absorption and desorption can be quantified by monitoring the cumulative value using a thermogravimetric analyzer (TGA) or flow meter. However, this method requires expensive instrumentation, complex operation, and regular equipment maintenance, or is affected by pressure and temperature, which can affect equipment accuracy. Furthermore, it is difficult to monitor the reaction process in real time and in situ.
[0005] Considering the distinct color and texture characteristics of hydrogen storage materials before and after hydrogen absorption and desorption, image recognition methods are expected to be a viable approach for rapidly predicting and monitoring the progress of hydrogen absorption and desorption. Key challenges in quantifying the progress of hydrogen absorption and desorption reactions based on image recognition include establishing an image acquisition system for hydrogen storage reactions and mapping image recognition features to reaction progress. Summary of the Invention
[0006] To address the above-mentioned issues, the present invention proposes a method, system, device, medium, and program product for quantifying the progress of hydrogen absorption and desorption reactions. Based on the different color and texture characteristics of hydrogen storage materials before and after hydrogen absorption and desorption, the grayscale features and crack texture features in the reaction process image are extracted. By establishing a mapping relationship between image features and reaction progress, a quantitative result is obtained based on the image features, realizing real-time, in-situ, non-invasive monitoring of the reaction progress and avoiding interference with the reaction process.
[0007] In order to achieve the above object, the present invention adopts the following technical solutions:
[0008] In a first aspect, the present invention provides a method for quantifying the progress of hydrogen absorption and desorption reactions, comprising:
[0009] The acquired reaction process image is preprocessed to obtain a characteristic image;
[0010] Extracting grayscale features or crack texture features related to the progress of hydrogen absorption and desorption reactions based on feature images;
[0011] The reaction fraction is determined based on the grayscale features or crack texture features, as well as the characteristics of hydrogen absorption and desorption in equilibrium, thereby obtaining a quantitative result of the progress of the hydrogen absorption and desorption reaction.
[0012] As an optional embodiment, the feature image includes a grayscale image and / or a crack texture image.
[0013] As an optional embodiment, grayscale features are extracted from the grayscale image, and the grayscale mean of the non-crack area is calculated. The reaction fraction is calculated based on the grayscale mean of the non-crack area and the grayscale mean of hydrogen absorption and desorption in equilibrium.
[0014] As an alternative embodiment, the reaction score for: ;in, is the grayscale mean of the non-crack area; and They refer to the grayscale mean of the non-crack area in the hydrogen desorption equilibrium state and hydrogen absorption equilibrium state respectively.
[0015] As an optional embodiment, crack texture features are extracted from the crack texture image, and the total crack length or total crack area is calculated; the reaction fraction is calculated based on the total crack length or total crack area, and the total crack length or total crack area under equilibrium conditions of hydrogen absorption and desorption.
[0016] As an alternative embodiment, the reaction score for: ;in, is the total length of the crack; and They refer to the total length of the crack in the hydrogen desorption equilibrium state and the hydrogen absorption equilibrium state respectively.
[0017] As an alternative embodiment, the reaction score for: ;in, is the total crack area; and They refer to the total crack area in the hydrogen desorption equilibrium state and the hydrogen absorption equilibrium state respectively.
[0018] In a second aspect, the present invention provides a system for quantifying the progress of hydrogen absorption and desorption reactions, comprising:
[0019] A preprocessing module is configured to preprocess the acquired reaction process image to obtain a feature image;
[0020] a feature extraction module configured to extract grayscale features or crack texture features related to the progress of hydrogen absorption and desorption reactions based on the feature image;
[0021] The quantification module is configured to determine the reaction fraction according to the grayscale feature or the crack texture feature and the features of hydrogen absorption and desorption in the equilibrium state, thereby obtaining a quantified result of the progress of the hydrogen absorption and desorption reaction.
[0022] In a third aspect, the present invention provides an electronic device comprising a memory and a processor, and computer instructions stored in the memory and executed on the processor, wherein the computer instructions, when executed by the processor, perform the method described in the first aspect.
[0023] In a fourth aspect, the present invention provides a computer-readable storage medium for storing computer instructions, wherein when the computer instructions are executed by a processor, the method described in the first aspect is performed.
[0024] In a fifth aspect, the present invention provides a computer program product, comprising a computer program, which implements the method described in the first aspect when executed by a processor.
[0025] Compared with the prior art, the present invention has the following beneficial effects:
[0026] This invention proposes a method and system for quantifying the progress of hydrogen absorption and desorption reactions based on image recognition. This method captures real-time images of the reaction process and, based on the different color and texture characteristics of the hydrogen storage material before and after hydrogen absorption and desorption, extracts grayscale features and crack texture features from the reaction process images. By establishing a mapping relationship between image features and reaction progress, the system quantifies the progress of the hydrogen absorption and desorption reactions based on the grayscale features or crack texture features, as well as the characteristic images of hydrogen absorption and desorption at equilibrium. This method enables real-time, in-situ, non-invasive monitoring of the reaction progress without the need for direct intrusion into the reaction system, thus avoiding interference with the reaction process. This allows for real-time, in-situ monitoring of the hydrogen absorption and desorption reaction process, providing detailed information on the reaction kinetics. The required instrumentation is lower cost and simpler to operate than traditional methods.
[0027] Advantages of additional aspects of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0029] Figure 1 Flowchart of a method for quantifying the progress of hydrogen absorption and desorption reactions provided in Example 1 of the present invention;
[0030] Figure 2 Flow chart of the method for quantifying the progress of hydrogen absorption and desorption reactions provided in the verification example of the present invention;
[0031] Figure 3 A graph showing the evolution of the reaction progress over time of the output provided in the verification example of the present invention;
[0032] Figure 4 This is a structural diagram of the hydrogen absorption and desorption reaction progress quantification system provided in Example 2 of the present invention. DETAILED DESCRIPTION
[0033] The present invention will be further described below with reference to the accompanying drawings and embodiments.
[0034] It should be noted that the following detailed descriptions are exemplary and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which the present invention belongs.
[0035] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that the terms "include" and "comprise" and any variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0036] In the absence of conflict, the embodiments of the present invention and the features thereof may be combined with each other.
[0037] Example 1
[0038] This embodiment proposes a method for quantifying the progress of hydrogen absorption and desorption reactions based on image recognition, such as Figure 1 Shown, including:
[0039] S11: preprocessing the acquired reaction process image to obtain a feature image;
[0040] S12: extracting grayscale features or crack texture features related to the progress of hydrogen absorption and desorption reactions based on the feature image;
[0041] S13: Determine a reaction fraction based on the grayscale features or crack texture features, and the features of hydrogen absorption and desorption in a balanced state, thereby obtaining a quantitative result of the progress of the hydrogen absorption and desorption reaction.
[0042] The method of this embodiment is described in detail below.
[0043] (1) Real-time acquisition of reaction process images.
[0044] Exemplarily, the device for collecting the reaction process image includes at least a high-speed camera, the collected reaction process is the reaction process after the hydrogen storage material is fully activated, and the field of view includes the visual window part of the reaction container.
[0045] (2) Preprocessing the collected reaction process image to obtain the feature image of the specified area from the reaction process image.
[0046] As an optional implementation, the feature image includes a grayscale image and / or a crack texture image.
[0047] It can be understood that only the grayscale image can be extracted from the reaction process image, or only the crack texture image can be extracted, or both the grayscale image and the crack texture image can be extracted at the same time.
[0048] As an optional implementation, the preprocessing includes segmentation, grayscale, binarization, denoising, edge detection and other operations, thereby extracting a grayscale image after grayscale and a crack texture image after edge detection.
[0049] (3) Extracting grayscale features or crack texture features related to the progress of the hydrogen absorption and desorption reaction from the feature image and inputting them into a mapping model between image features and reaction progress to obtain a quantitative result of the progress of the hydrogen absorption and desorption reaction; wherein the mapping model between image features and reaction progress includes at least a grayscale mean model or a crack feature model.
[0050] Specifically:
[0051] (31) The characteristic image includes a grayscale image, grayscale features are extracted from the grayscale image, and the grayscale mean value of the non-crack area is calculated;
[0052] The grayscale mean model calculates the reaction score based on the grayscale mean of the non-crack area of the reaction process image. , which reflects the quantitative result of the progress of hydrogen absorption and desorption reaction, expressed as:
[0053] ;
[0054] in, Represents the grayscale mean of the non-crack area; and They refer to the grayscale mean of the non-crack area in the hydrogen desorption equilibrium state (initial hydrogen absorption state) and the hydrogen absorption equilibrium state (initial hydrogen desorption state), respectively.
[0055] (32) The characteristic image includes a crack texture image, crack texture features are extracted from the crack texture image, and the total length of the cracks is calculated;
[0056] The crack characterization model calculates the reaction fraction based on the total crack length , which reflects the quantitative result of the progress of hydrogen absorption and desorption reaction, expressed as:
[0057] ;
[0058] in, represents the total length of the crack; and They refer to the total length of the crack in the hydrogen desorption equilibrium state (initial hydrogen absorption state) and the hydrogen absorption equilibrium state (initial hydrogen desorption state) respectively.
[0059] (33) The characteristic image includes a crack texture image, crack texture features are extracted from the crack texture image, and the total crack area is calculated;
[0060] The crack characterization model calculates the reaction fraction based on the total crack area , which reflects the quantitative result of the progress of hydrogen absorption and desorption reaction, expressed as:
[0061] ;
[0062] in, represents the total crack area; and They refer to the total crack area in the hydrogen desorption equilibrium state (initial hydrogen absorption state) and the hydrogen absorption equilibrium state (initial hydrogen desorption state) respectively.
[0063] Verification Example
[0064] The data files with a time interval of 2s are collected by a high-speed camera and stored in hdf5 format. In order to realize the quantification of reaction progress, the quantification method of hydrogen absorption and desorption reaction progress based on image recognition described in this embodiment is established as follows: Figure 2 The process shown in the figure includes the following steps:
[0065] S21: specifying the hydrogen absorption initial state and hydrogen absorption end state (hydrogen release initial state) from historical data, and obtaining the corresponding reaction process image;
[0066] S22: performing segmentation, grayscale conversion, binarization, noise reduction, and edge detection on the reaction process images of the initial state and the terminal state of hydrogen absorption, respectively, to obtain grayscale images image_gray0 and image_gray1 after grayscale conversion and crack texture images image_crack0 and image_crack1 after edge detection;
[0067] S23: Taking the grayscale feature quantization as an example, the grayscale mean of the non-crack area in the grayscale images image_gray0 and image_gray1 is calculated, and recorded as g0 and g1 respectively;
[0068] S24: performing segmentation, grayscale conversion, binarization, noise reduction, and edge detection on the real-time reaction process image in sequence to obtain a grayscale image image_gray after grayscale conversion and a crack texture image image_crack after edge detection;
[0069] S25: Taking grayscale feature quantization as an example, calculate the grayscale mean g of the non-crack area in the grayscale image image_gray;
[0070] S26: Calculate reaction score And draw the picture; Figure 3 As shown, the hydrogen absorption stage increases with the cumulative reaction time. The reaction fraction ζ of the grayscale mean mapping method in this embodiment increases smoothly from 0 to 1 during the period of 0-250s, which is the same as the evolution trend of the reaction fraction calculated by the flow meter.
[0071] Example 2
[0072] like Figure 4 As shown, this embodiment provides a system for quantifying the progress of hydrogen absorption and desorption reactions, including:
[0073] A preprocessing module is configured to preprocess the acquired reaction process image to obtain a feature image;
[0074] a feature extraction module configured to extract grayscale features or crack texture features related to the progress of hydrogen absorption and desorption reactions based on the feature image;
[0075] The quantification module is configured to determine the reaction fraction according to the grayscale feature or the crack texture feature and the features of hydrogen absorption and desorption in the equilibrium state, thereby obtaining a quantified result of the progress of the hydrogen absorption and desorption reaction.
[0076] It should be noted that the above modules correspond to the steps described in Example 1, and the examples and application scenarios implemented by the above modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above Example 1. It should be noted that the above modules, as part of the system, can be executed in a computer system such as a set of computer-executable instructions.
[0077] In further embodiments, there is also provided:
[0078] An electronic device includes a memory and a processor, and computer instructions stored in the memory and executed by the processor, wherein when the computer instructions are executed by the processor, the method described in Example 1 is performed. For the sake of brevity, no further details are given here.
[0079] It should be understood that in this embodiment, the processor may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), off-the-shelf field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0080] The memory may include a read-only memory and a random access memory, and provides instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.
[0081] A computer-readable storage medium is used to store computer instructions, and when the computer instructions are executed by a processor, the method described in Example 1 is performed.
[0082] The method in Example 1 can be directly implemented as a hardware processor, or can be implemented using a combination of hardware and software modules in the processor. The software module can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above method. To avoid repetition, it will not be described in detail here.
[0083] A computer program product includes a computer program, which implements the method described in embodiment 1 when executed by a processor.
[0084] The present invention also provides at least one computer program product tangibly stored on a non-transitory computer-readable storage medium. The computer program product includes computer-executable instructions, such as instructions contained in program modules, which are executed in a device on a real or virtual processor of a target to perform the process / method described above. Generally, program modules include routines, programs, libraries, objects, classes, components, data structures, etc. that perform specific tasks or implement specific abstract data types. In various embodiments, the functionality of program modules can be combined or divided between program modules as needed. The machine-executable instructions for the program modules can be executed in local or distributed devices. In distributed devices, program modules can be located in local and remote storage media.
[0085] The computer program code for implementing the method of the present invention can be written in one or more programming languages. These computer program codes can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the computer or other programmable data processing device, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on a computer, partially on a computer, as an independent software package, partially on a computer and partially on a remote computer, or entirely on a remote computer or server.
[0086] In the context of the present invention, computer program code or related data can be carried by any appropriate carrier to enable a device, apparatus, or processor to perform the various processes and operations described above. Examples of carriers include signals, computer-readable media, and the like. Examples of signals include electrical, optical, radio, acoustic, or other forms of propagated signals, such as carrier waves, infrared signals, and the like.
[0087] Those skilled in the art will appreciate that the units and algorithm steps of the various examples described in conjunction with this embodiment can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0088] Although the above describes the specific embodiments of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without any creative work are still within the scope of protection of the present invention.
Claims
1. A method for quantifying the progress of hydrogen absorption and desorption reactions, characterized in that: include: The acquired reaction process image is preprocessed to obtain a characteristic image; The characteristic image includes a grayscale image and / or a crack texture image; Extracting grayscale features or crack texture features related to the progress of hydrogen absorption and desorption reactions based on feature images; The reaction fraction is determined based on the grayscale characteristics or crack texture characteristics, as well as the characteristics of hydrogen absorption and desorption in the equilibrium state, thereby obtaining a quantitative result of the hydrogen absorption and desorption reaction progress; Extracting grayscale features from the grayscale image and calculating the grayscale mean of the non-crack area; calculating the reaction fraction based on the grayscale mean of the non-crack area and the grayscale mean of hydrogen absorption and desorption in equilibrium; Crack texture features are extracted from the crack texture image, and the total crack length or total crack area is calculated; the reaction fraction is calculated based on the total crack length or total crack area, and the total crack length or total crack area under equilibrium conditions of hydrogen absorption and desorption.
2. A method for quantifying the progress of hydrogen absorption and desorption reactions according to claim 1, characterized in that: Reaction score for: ;in, is the grayscale mean of the non-crack area; and They refer to the grayscale mean of the non-crack area in the hydrogen desorption equilibrium state and hydrogen absorption equilibrium state respectively.
3. A method for quantifying the progress of hydrogen absorption and desorption reactions according to claim 1, characterized in that: Reaction score for: ;in, is the total length of the crack; and They refer to the total length of the crack in the hydrogen desorption equilibrium state and the hydrogen absorption equilibrium state respectively.
4. A method for quantifying the progress of hydrogen absorption and desorption reactions according to claim 1, characterized in that: Reaction score for: ;in, is the total crack area; and They refer to the total crack area in the hydrogen desorption equilibrium state and the hydrogen absorption equilibrium state respectively.
5. A system for quantifying the progress of hydrogen absorption and desorption reactions, characterized in that: include: A preprocessing module is configured to preprocess the acquired reaction process image to obtain a feature image; The characteristic image includes a grayscale image and / or a crack texture image; a feature extraction module configured to extract grayscale features or crack texture features related to the progress of hydrogen absorption and desorption reactions based on the feature image; a quantification module configured to determine a reaction fraction based on grayscale features or crack texture features, and features of hydrogen absorption and desorption in a balanced state, thereby obtaining a quantified result of the progress of the hydrogen absorption and desorption reaction; Extracting grayscale features from the grayscale image and calculating the grayscale mean of the non-crack area; calculating the reaction fraction based on the grayscale mean of the non-crack area and the grayscale mean of hydrogen absorption and desorption in equilibrium; Crack texture features are extracted from the crack texture image, and the total crack length or total crack area is calculated; the reaction fraction is calculated based on the total crack length or total crack area, and the total crack length or total crack area under equilibrium conditions of hydrogen absorption and desorption.
6. An electronic device, characterized in that: The method comprises a memory and a processor, and computer instructions stored in the memory and executed on the processor, wherein when the computer instructions are executed by the processor, the method according to any one of claims 1 to 4 is completed.
7. A computer-readable storage medium, characterized in that Used to store computer instructions, which, when executed by a processor, complete the method according to any one of claims 1 to 4.
8. A computer program product, characterized in that The invention comprises a computer program, which is used to implement the method according to any one of claims 1 to 4 when executed by a processor.
Citation Information
Patent Citations
Design method, device and equipment of explosion gas flowback scheme and storage medium
CN114925512A
Beidou-based engineering vehicle exhaust emission monitoring and tracking system
WO2022048051A1