Smoke density measurement method and system based on fire test image
By using colored light sources and light source camera components in the fire test, a smoke density neural network model was constructed, which solved the accuracy and stability problems of smoke density measurement in the fire test and achieved fast and accurate smoke density measurement.
Patent Information
- Application Number
- CN202410689062.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-27
AI Technical Summary
In fire tests, it is difficult to accurately measure smoke density in high-temperature environments with existing technology, and the long optical path results in poor stability and difficulty in the measurement system, and difficulty in alignment. There is a lack of fast and accurate smoke density measurement methods.
By setting up the color light source and light source camera components, fire test images are obtained, color depth feature data is extracted, a smoke density neural network model is constructed, and the neural network model is used for training and smoke density data are calculated to achieve fast and accurate smoke density measurement.
It greatly reduces the measurement difficulty and system requirements, improves the measurement stability, and achieves fast and accurate smoke density measurement in fire test scenarios.
Smart Images

Figure CN118706679A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of fire analysis, and in particular, relates to a smoke density measurement method and system based on fire test images. Background Art
[0002] In the current full-scale physical fire tests in the field of fire science, such as theater seat combustion performance tests, tunnel smoke spread tests, rail transit vehicle physical fire tests, and high-power oil pool fire heat release rate tests, the smoke density parameter is a very important parameter. However, there is a lack of effective and reliable smoke density measurement methods to accurately measure smoke density under actual conditions such as high fire temperature and large space.
[0003] In actual fire tests for fire research, light curtains, lasers, etc. are usually used to observe the concentration of smoke, or visibility recording equipment realized by using laser light sources and photoelectric receiving components is used to characterize the smoke density parameters in the fire test. However, there are the following difficulties that are difficult to overcome during use: the measurement system has poor stability and measurement is difficult in high temperature environments; small light spots are easily interfered in long optical path test environments, resulting in inaccurate measurements; alignment is difficult. In actual fire tests, the measurement optical path is usually more than 5 meters, and it is difficult to operate when using tools such as tripods for alignment.
[0004] With the advancement of computer hardware equipment, the improvement of computing power and the widespread application of real-time image processing technology, image processing technology has gradually been applied to the field of smoke density testing in fire tests. However, there is still a lack of effective and reliable smoke density measurement methods to achieve fast and accurate measurement of smoke density. Summary of the invention
[0005] In order to solve the above technical problems, the present invention provides a smoke density measurement method and system based on fire test images.
[0006] In a first aspect, the present invention provides a method for measuring smoke density based on a fire test image, comprising:
[0007] A color light source is set within the field of view of the light source camera assembly, a fire test image is obtained using the light source camera assembly, the distance between the color light source and the light source camera assembly is measured and recorded, a fire scene is simulated, and smoke density data within the field of view of the light source camera assembly under the fire scene is measured;
[0008] Extract the color depth of the fire test image to obtain color depth feature data;
[0009] According to the color depth feature data, combined with the distance between the color light source and the light source camera assembly, the target color depth feature data before the color light attenuation is calculated;
[0010] The sample data set is constructed by using the smoke density data measured within the field of view of the light source camera component and the target color depth feature data before the color light attenuates;
[0011] A smoke density neural network model is constructed, target color depth feature data before color light attenuation is used as input of the smoke density neural network model, smoke density data measured within the field of view of the light source camera component is used as output of the smoke density neural network model, the smoke density neural network model is trained, structural parameters of the smoke density neural network model are determined, and a trained smoke density neural network model is obtained;
[0012] Obtain the current fire test image and the distance between the current color light source and the light source camera assembly;
[0013] Extract the color depth feature data of the current fire test image, and calculate the target color depth feature data of the color light before attenuation corresponding to the current fire test image in combination with the distance between the current color light source and the light source camera assembly;
[0014] The target color depth feature data before the color light attenuation corresponding to the current fire test image is calculated, and the smoke density data within the field of view of the current light source camera component is obtained using the trained smoke density neural network model.
[0015] In a second aspect, the present invention provides a fire test smoke density measurement system, including a sample data acquisition unit, a feature extraction unit, a feature data processing unit, a sample data set construction unit, a neural network model construction unit, a data acquisition unit, a first data processing unit and a second data processing unit;
[0016] The sample data acquisition unit is used to set a color light source within the field of view of the light source camera assembly, obtain a fire test image using the light source camera assembly, measure and record the distance between the color light source and the light source camera assembly, simulate a fire scene and measure the smoke density data within the field of view of the light source camera assembly under the fire scene;
[0017] A feature extraction unit, used for extracting the color depth of the fire test image to obtain color depth feature data;
[0018] A feature data processing unit, used to calculate the target color depth feature data before the color light is attenuated according to the color depth feature data and the distance between the color light source and the light source camera assembly;
[0019] A sample data set construction unit is used to construct a sample data set using smoke density data measured within the field of view of the light source camera assembly and target color depth feature data before color light attenuation;
[0020] A neural network model building unit is used to build a smoke density neural network model, use target color depth feature data before color light attenuation as input of the smoke density neural network model, use smoke density data measured within the field of view of the light source camera component as output of the smoke density neural network model, train the smoke density neural network model, determine structural parameters of the smoke density neural network model, and obtain a trained smoke density neural network model;
[0021] A data acquisition unit, used to acquire the current fire test image and the distance between the current color light source and the light source camera assembly;
[0022] The first data processing unit is used to extract the color depth feature data of the current fire test image, and calculate the target color depth feature data before the color light attenuation corresponding to the current fire test image in combination with the distance between the current color light source and the light source camera assembly;
[0023] The second data processing unit is used to calculate the target color depth feature data before the color light attenuation corresponding to the current fire test image, and obtain the smoke density data within the field of view of the current light source camera component by using the trained smoke density neural network model.
[0024] Based on the above technical solution, the present invention can also be improved as follows.
[0025] Furthermore, the color light source includes a plurality of uniform light sources; the distance between adjacent uniform light sources is less than a set threshold; and the distance between the color light source and the light source camera assembly is the average value of the distances between the light source camera assembly and each color light source.
[0026] Furthermore, the smoke density neural network model is provided with a plurality of stage layers, each of which includes a plurality of encoders;
[0027] When training the smoke density neural network model, the fire test image is size normalized, the normalized image is convolved to obtain a feature map, and the feature map is positionally encoded;
[0028] The feature map of the tensor structure is obtained through the iteration of multiple stage layers;
[0029] The feature map of the tensor structure is input into the fully connected layer for classification to obtain the smoke density prediction value;
[0030] The loss function is calculated and back propagated to update the structural parameters of the smoke density neural network model until the loss value of the loss function is less than the set value.
[0031] Furthermore, after position encoding the feature map, the feature map with position encoding is input into the window self-attention mechanism structure, and multiple groups of information are selected from the input in parallel through multiple query vectors.
[0032] Furthermore, when the light source camera assembly obtains the fire test image, the gain parameter of the light source camera assembly is set to 1; when the color depth of the color light source is lower than the set value, the luminous power of the color light source is adjusted or the image gain of the light source camera assembly is modified or the exposure time of the light source camera assembly is increased.
[0033] Furthermore, the position of the light source camera assembly and the focal length of the lens are adjusted so that the color light source images an area larger than a set ratio within the imaging range of the light source camera assembly; and the luminous power of the color light source is adjusted so that the color depth is within the set threshold in static state.
[0034] Furthermore, the light source camera assembly and the color light source are arranged on the same fixed assembly or on different fixed assemblies.
[0035] Furthermore, the light source camera assembly is a pan-tilt light source camera assembly; the pan-tilt light source camera assembly tracks the uniform light source by means of image recognition, and obtains the distance between the color light source and the light source camera assembly in real time; the light source camera assembly is connected to the computer through a bus, the computer loads the operating system, uses the open source visual graphics library to process the fire test image, and the computer displays the processed fire test image.
[0036] The beneficial effects of the present invention are as follows: the present invention obtains color depth feature data of fire test images by setting a color light source, constructs a smoke density neural network model and performs training, and can quickly and accurately calculate the smoke density of the fire test scene, greatly reducing the measurement difficulty and the requirements for the measurement system, and improving the stability of the measurement system. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 Schematic diagram of the smoke density measurement method based on fire test images provided in Example 1 of the present invention;
[0038] Figure 2 This is a schematic diagram of a fire test smoke density measurement system provided in Example 2 of the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0040] Example 1
[0041] As an example, Figure 1To solve the above technical problems, this embodiment provides a smoke density measurement method based on a fire test image, including:
[0042] A color light source is set within the field of view of the light source camera assembly, a fire test image is obtained using the light source camera assembly, the distance between the color light source and the light source camera assembly is measured and recorded, a fire scene is simulated, and smoke density data within the field of view of the light source camera assembly under the fire scene is measured;
[0043] Extract the color depth of the fire test image to obtain color depth feature data;
[0044] According to the color depth feature data, combined with the distance between the color light source and the light source camera assembly, the target color depth feature data before the color light attenuation is calculated;
[0045] The sample data set is constructed by using the smoke density data measured within the field of view of the light source camera component and the target color depth feature data before the color light attenuates;
[0046] A smoke density neural network model is constructed, target color depth feature data before color light attenuation is used as input of the smoke density neural network model, smoke density data measured within the field of view of the light source camera component is used as output of the smoke density neural network model, the smoke density neural network model is trained, structural parameters of the smoke density neural network model are determined, and a trained smoke density neural network model is obtained;
[0047] Obtain the current fire test image and the distance between the current color light source and the light source camera assembly;
[0048] Extract the color depth feature data of the current fire test image, and calculate the target color depth feature data of the color light before attenuation corresponding to the current fire test image in combination with the distance between the current color light source and the light source camera assembly;
[0049] The target color depth feature data before the color light attenuation corresponding to the current fire test image is calculated, and the smoke density data within the field of view of the current light source camera component is obtained using the trained smoke density neural network model.
[0050] The present invention obtains color depth feature data of fire test images by setting a colored light source, constructs a smoke density neural network model and performs training, and can quickly and accurately calculate the smoke density of the fire test scene, greatly reducing the measurement difficulty and the requirements for the measurement system, and improving the stability of the measurement system.
[0051] In actual application, as an optional implementation, the color light source selects 3 square uniform light sources with a size of 10 to 20 cm, with a light source interval of at least 5 cm, one of which is a blue light with a central wavelength of 450nm, one of which is a green light with a central wavelength of 530nm, and one of which is a red light with a central wavelength of 630nm.
[0052] The light source camera assembly includes a camera and a tripod, and the camera is fixed on the tripod. The light source camera assembly is selected according to actual needs, such as the Alvium 1800C series high-performance embedded camera. The light source camera assembly is aligned with the color light source, and the camera position and lens focal length are adjusted so that the light source can image more than 30% of the area within the camera imaging range.
[0053] Optionally, the color light source includes several uniform light sources; the distance between adjacent uniform light sources is less than a set threshold; and the distance between the color light source and the light source camera assembly is the average value of the distances between the light source camera assembly and each color light source.
[0054] Optionally, the smoke density neural network model is provided with a plurality of stage layers, each stage layer comprising a plurality of encoders;
[0055] When training the smoke density neural network model, the fire test image is size normalized, the normalized image is convolved to obtain a feature map, and the feature map is positionally encoded;
[0056] The feature map of the tensor structure is obtained through the iteration of multiple stage layers;
[0057] The feature map of the tensor structure is input into the fully connected layer for classification to obtain the smoke density prediction value;
[0058] The loss function is calculated and back propagated to update the structural parameters of the smoke density neural network model until the loss value of the loss function is less than the set value.
[0059] In the actual application process, let L be the loss value of the loss function, N be the number of samples, s be the current sample, C be the maximum value of smoke density, y be i is the sign function 0 or 1, i is the current smoke density, p i To predict the probability that sample s is smoke density, then:
[0060]
[0061] The encoder includes an image blocking unit, which is used for image blocking operations. The image is blocked through the blocking operation, such as each 4x4 adjacent pixels is an image block, and then flattened in the channel direction and changed in shape through a convolution layer.
[0062] Optionally, after position encoding the feature map, the step further includes inputting the position-encoded feature map into a window self-attention mechanism structure, and selecting multiple groups of information from the input in parallel through multiple query vectors.
[0063] Let A be the attention value, Q be the query vector matrix, K be the key vector matrix, and V be the value vector matrix; softmax is the normalization function, through which the final output unit of the classifier is numerically processed; T is the matrix transpose; d k is the length of the key vector, then:
[0064]
[0065] Optionally, when the light source camera assembly obtains the fire test image, the gain parameter of the light source camera assembly is set to 1; when the color depth of the color light source is lower than the set value, the luminous power of the color light source is adjusted or the image gain of the light source camera assembly is modified or the exposure time of the light source camera assembly is increased.
[0066] Optionally, the position of the light source camera assembly and the focal length of the lens are adjusted so that the color light source images an area larger than a set proportion within the imaging range of the light source camera assembly; and the luminous power of the color light source is adjusted so that the color depth is within a set threshold in static state.
[0067] Optionally, the light source camera assembly and the color light source are arranged on the same fixed assembly or on different fixed assemblies.
[0068] Optionally, the light source camera assembly is a pan-tilt light source camera assembly; the pan-tilt light source camera assembly tracks the uniform light source by means of image recognition, and obtains the distance between the color light source and the light source camera assembly in real time; the light source camera assembly is connected to a computer via a bus, the computer loads an operating system, uses an open source visual graphics library to process the fire test image, and the computer displays the processed fire test image.
[0069] This smoke density measurement method can be applied to physical fire tests to provide effective support for the prevention and emergency response of fire accidents, improve the level of fire safety, and reduce casualties and property losses caused by fire.
[0070] Example 2
[0071] Based on the same principle as the method shown in Example 1 of the present invention, the embodiment of the present invention also provides a fire test smoke density measurement system, including a sample data acquisition unit, a feature extraction unit, a feature data processing unit, a sample data set construction unit, a neural network model construction unit, a data acquisition unit, a first data processing unit and a second data processing unit;
[0072] The sample data acquisition unit is used to set a color light source within the field of view of the light source camera assembly, obtain a fire test image using the light source camera assembly, measure and record the distance between the color light source and the light source camera assembly, simulate a fire scene and measure the smoke density data within the field of view of the light source camera assembly under the fire scene;
[0073] A feature extraction unit, used for extracting the color depth of the fire test image to obtain color depth feature data;
[0074] A feature data processing unit, used to calculate the target color depth feature data before the color light is attenuated according to the color depth feature data and the distance between the color light source and the light source camera assembly;
[0075] A sample data set construction unit is used to construct a sample data set using smoke density data measured within the field of view of the light source camera assembly and target color depth feature data before color light attenuation;
[0076] A neural network model building unit is used to build a smoke density neural network model, use target color depth feature data before color light attenuation as input of the smoke density neural network model, use smoke density data measured within the field of view of the light source camera component as output of the smoke density neural network model, train the smoke density neural network model, determine structural parameters of the smoke density neural network model, and obtain a trained smoke density neural network model;
[0077] A data acquisition unit, used to acquire the current fire test image and the distance between the current color light source and the light source camera assembly;
[0078] The first data processing unit is used to extract the color depth feature data of the current fire test image, and calculate the target color depth feature data before the color light attenuation corresponding to the current fire test image in combination with the distance between the current color light source and the light source camera assembly;
[0079] The second data processing unit is used to calculate the target color depth feature data before the color light attenuation corresponding to the current fire test image, and obtain the smoke density data within the field of view of the current light source camera component by using the trained smoke density neural network model.
[0080] Optionally, the color light source includes several uniform light sources; the distance between adjacent uniform light sources is less than a set threshold; and the distance between the color light source and the light source camera assembly is the average value of the distances between the light source camera assembly and each color light source.
[0081] Optionally, the smoke density neural network model is provided with a plurality of stage layers, each stage layer comprising a plurality of encoders;
[0082] When training the smoke density neural network model, the fire test image is size normalized, the normalized image is convolved to obtain a feature map, and the feature map is positionally encoded;
[0083] The feature map of the tensor structure is obtained through the iteration of multiple stage layers;
[0084] The feature map of the tensor structure is input into the fully connected layer for classification to obtain the smoke density prediction value;
[0085] The loss function is calculated and back propagated to update the structural parameters of the smoke density neural network model until the loss value of the loss function is less than the set value.
[0086] Optionally, after position encoding the feature map, the step further includes inputting the position-encoded feature map into a window self-attention mechanism structure, and selecting multiple groups of information from the input in parallel through multiple query vectors.
[0087] Optionally, when the light source camera assembly obtains the fire test image, the gain parameter of the light source camera assembly is set to 1; when the color depth of the color light source is lower than the set value, the luminous power of the color light source is adjusted or the image gain of the light source camera assembly is modified or the exposure time of the light source camera assembly is increased.
[0088] Optionally, the position of the light source camera assembly and the focal length of the lens are adjusted so that the color light source images an area larger than a set proportion within the imaging range of the light source camera assembly; and the luminous power of the color light source is adjusted so that the color depth is within a set threshold in static state.
[0089] Optionally, the light source camera assembly and the color light source are arranged on the same fixed assembly or on different fixed assemblies.
[0090] Optionally, the light source camera assembly is a pan-tilt light source camera assembly; the pan-tilt light source camera assembly tracks the uniform light source by means of image recognition, and obtains the distance between the color light source and the light source camera assembly in real time; the light source camera assembly is connected to a computer via a bus, the computer loads an operating system, uses an open source visual graphics library to process the fire test image, and the computer displays the processed fire test image.
[0091] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A smoke density measurement method based on fire test images, characterized in that: include: A color light source is set within the field of view of the light source camera assembly, a fire test image is obtained using the light source camera assembly, the distance between the color light source and the light source camera assembly is measured and recorded, a fire scene is simulated, and smoke density data within the field of view of the light source camera assembly under the fire scene is measured; Extract the color depth of the fire test image to obtain color depth feature data; According to the color depth feature data, combined with the distance between the color light source and the light source camera assembly, the target color depth feature data before the color light attenuation is calculated; The sample data set is constructed by using the smoke density data measured within the field of view of the light source camera component and the target color depth feature data before the color light attenuates; A smoke density neural network model is constructed, target color depth feature data before color light attenuation is used as input of the smoke density neural network model, smoke density data measured within the field of view of the light source camera component is used as output of the smoke density neural network model, the smoke density neural network model is trained, structural parameters of the smoke density neural network model are determined, and a trained smoke density neural network model is obtained; Obtain the current fire test image and the distance between the current color light source and the light source camera assembly; Extract the color depth feature data of the current fire test image, and calculate the target color depth feature data of the color light before attenuation corresponding to the current fire test image in combination with the distance between the current color light source and the light source camera assembly; The target color depth feature data before the color light attenuation corresponding to the current fire test image is calculated, and the smoke density data within the field of view of the current light source camera component is obtained using the trained smoke density neural network model.
2. The smoke density measurement method based on fire test images according to claim 1 is characterized in that: The color light source includes a plurality of uniform light sources; the distance between adjacent uniform light sources is less than a set threshold; the distance between the color light source and the light source camera assembly is the average value of the distances between the light source camera assembly and each color light source.
3. The smoke density measurement method based on fire test images according to claim 1 is characterized in that: The smoke density neural network model is configured with multiple stage layers, each of which includes multiple encoders; When training the smoke density neural network model, the fire test image is size normalized, the normalized image is convolved to obtain a feature map, and the feature map is positionally encoded; The feature map of the tensor structure is obtained through the iteration of multiple stage layers; The feature map of the tensor structure is input into the fully connected layer for classification to obtain the smoke density prediction value; The loss function is calculated and back propagated to update the structural parameters of the smoke density neural network model until the loss value of the loss function is less than the set value.
4. The smoke density measurement method based on fire test images according to claim 3 is characterized in that: After position encoding the feature map, the feature map with position encoding is input into the window self-attention mechanism structure, and multiple groups of information are selected from the input in parallel through multiple query vectors.
5. The smoke density measurement method based on fire test images according to claim 1 is characterized in that: When the light source camera assembly obtains the fire test image, the gain parameter of the light source camera assembly is set to 1; when the color depth of the color light source is lower than the set value, the luminous power of the color light source is adjusted or the image gain of the light source camera assembly is modified or the exposure time of the light source camera assembly is increased.
6. The smoke density measurement method based on fire test images according to claim 1 is characterized in that: Adjust the position of the light source camera assembly and the focal length of the lens so that the color light source is imaged in an area larger than a set ratio within the imaging range of the light source camera assembly; by adjusting the luminous power of the color light source, the color depth is within the set threshold in static state.
7. The smoke density measurement method based on fire test images according to claim 1 is characterized in that: The light source camera assembly and the color light source are arranged on the same fixed assembly or on different fixed assemblies.
8. The smoke density measurement method based on fire test images according to claim 1 is characterized in that: The light source camera assembly is a pan-tilt light source camera assembly; the pan-tilt light source camera assembly tracks the uniform light source by means of image recognition, and obtains the distance between the color light source and the light source camera assembly in real time; the light source camera assembly is connected to the computer through a bus, the computer loads the operating system, uses the open source visual graphics library to process the fire test image, and the computer displays the processed fire test image.
9. The smoke density measurement system in fire test based on image processing is characterized by: It includes a sample data acquisition unit, a feature extraction unit, a feature data processing unit, a sample data set construction unit, a neural network model construction unit, a data acquisition unit, a first data processing unit and a second data processing unit; The sample data acquisition unit is used to set a color light source within the field of view of the light source camera assembly, obtain a fire test image using the light source camera assembly, measure and record the distance between the color light source and the light source camera assembly, simulate a fire scene and measure the smoke density data within the field of view of the light source camera assembly under the fire scene; A feature extraction unit, used for extracting the color depth of the fire test image to obtain color depth feature data; A feature data processing unit, used to calculate the target color depth feature data before the color light is attenuated according to the color depth feature data and the distance between the color light source and the light source camera assembly; A sample data set construction unit is used to construct a sample data set using smoke density data measured within the field of view of the light source camera assembly and target color depth feature data before color light attenuation; A neural network model building unit is used to build a smoke density neural network model, use target color depth feature data before color light attenuation as input of the smoke density neural network model, use smoke density data measured within the field of view of the light source camera component as output of the smoke density neural network model, train the smoke density neural network model, determine structural parameters of the smoke density neural network model, and obtain a trained smoke density neural network model; A data acquisition unit, used to acquire the current fire test image and the distance between the current color light source and the light source camera assembly; The first data processing unit is used to extract the color depth feature data of the current fire test image, and calculate the target color depth feature data before the color light attenuation corresponding to the current fire test image in combination with the distance between the current color light source and the light source camera assembly; The second data processing unit is used to calculate the target color depth feature data before the color light attenuation corresponding to the current fire test image, and obtain the smoke density data within the field of view of the current light source camera component by using the trained smoke density neural network model.
Citation Information
Cited By
Method and system for dynamically monitoring combustion smoke density of rail transit material
CN120594735A
