Fumigation gas concentration detection method, server, medium and program product
Through the combination of non-dispersion infrared sensors and temperature and humidity sensors, efficient, continuous and real-time monitoring of fumigation gas concentration is achieved, and the problem of low detection efficiency in the existing technology is solved, and the safety and management efficiency of port animal and plant quarantine are improved. .
Patent Information
- Application Number
- CN202411210103.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-11-15
AI Technical Summary
The prior art has low efficiency in the detection of fumigation gas concentration in port animal and plant quarantine, making it difficult to achieve real-time and continuous monitoring, resulting in the inability to timely reflect the changes in gas concentration during fumigation.
Using dual-channel monitoring technology of non-dispersive infrared sensors, combining temperature and humidity sensors, real-time gas concentration is determined through infrared absorption database, and three-dimensional color mapping visualization is carried out to achieve efficient, continuous, real-time monitoring and abnormal gas concentration in the fumigation area. Timely discovery of the area.
Accurate detection and real-time monitoring of gas concentration in the fumigation area is achieved, which reduces the interference of environmental factors on the detection results, improves the safety and controllability of the fumigation process, and facilitates remote monitoring and management.
Smart Images

Figure CN118961638A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of gas detection, and in particular to a fumigation gas concentration detection method, server, medium and program product. Background Art
[0002] With the increasing frequency of international trade, the number of animals, plants and their products entering and leaving ports is increasing, and the requirements for animal and plant quarantine are becoming increasingly stringent. Ensuring the safety of animals, plants and their products and preventing the spread of pests and diseases have become important tasks of port quarantine work.
[0003] In the current port entry and exit animal and plant quarantine procedures, fumigation monitoring mainly relies on manual timed sampling and traditional detection instruments. Manual personnel will enter the fumigation area within the specified time to collect samples, and then send the samples to the laboratory for analysis. Or through traditional detection instruments such as specific chemical sensors, the concentration of fumigants is detected by adsorption and reaction to the gas in the fumigation area. These instruments are placed in a fixed position to intermittently detect the gas in the fumigation area.
[0004] However, this existing technology has obvious defects. Manual sampling is not only inefficient, but also has a long sampling time interval, which makes it difficult to timely reflect the real-time changes in the fumigation process. Traditional detection instruments also have difficulty in providing continuous monitoring data due to intermittent detection. Therefore, it is difficult for existing methods to monitor the concentration of fumigation gases efficiently and in real time. Summary of the invention
[0005] The present application provides a fumigation gas concentration detection method, server, medium and program product, which are used to realize efficient, continuous and real-time monitoring of gas concentration in a fumigation area under the condition that the manual sampling time interval is long and the detection is discontinuous in the prior art.
[0006] In a first aspect, the present application provides a fumigation gas concentration detection method, which is applied to a server of a fumigation device, and the method includes: receiving raw data sent from a plurality of non-dispersive infrared sensors arranged in a fumigation area, the non-dispersive infrared sensor including dual-channel monitoring, the first channel of the dual channel being used to measure first infrared intensity data of the measured gas, and the other channel being used to measure second infrared intensity data of the non-measured gas; determining the infrared intensity difference between the first infrared intensity data and the second infrared intensity data in the raw data, the infrared intensity difference being used to represent the infrared absorption degree of the measured gas; querying a preset infrared absorption database of the measured gas, the infrared absorption database being infrared absorption data of the measured gas at different concentrations established according to a preset law; determining the real-time gas concentration of the measured gas according to the infrared absorption degree of the measured gas and the infrared absorption database; and sending the real-time gas concentration to a receiving end according to a preset transmission rule.
[0007] By adopting the above technical solution, the server receives raw data from multiple non-dispersive infrared sensors, uses dual-channel monitoring to obtain infrared intensity data of the measured gas and the non-measured gas, and then determines the infrared intensity difference to represent the infrared absorption degree of the measured gas. Then, by querying the infrared absorption database, the real-time gas concentration of the measured gas is determined according to the infrared absorption degree and sent to the receiving end. In this way, accurate detection and real-time monitoring of the gas concentration in the fumigation area can be achieved, providing reliable data support for the fumigation process and ensuring the fumigation effect and safety.
[0008] In combination with some embodiments of the first aspect, in some embodiments, the fumigation device includes a temperature sensor and a humidity sensor arranged in a preset area, the temperature sensor is used to detect temperature data in the fumigation area, and the humidity sensor is used to detect humidity data in the fumigation area. After the step of receiving raw data sent from multiple non-dispersive infrared sensors arranged in the fumigation area, it also includes: after receiving the humidity data and the temperature data, inputting the humidity data and the temperature data into a preset infrared absorption intensity influence model to obtain an influence factor of the temperature data and the humidity data on the infrared absorption intensity of the measured gas, the infrared absorption intensity influence model is to establish a relationship model between temperature data, humidity data and infrared absorption intensity after measuring the infrared absorption intensity of fumigation gas of the same concentration under different temperature and humidity conditions in advance; and correcting the raw data according to the influence factor.
[0009] The adoption of the above technical solutions can help improve the accuracy of gas concentration detection, reduce the interference of environmental factors on the detection results, make the detection results more reflective of the actual situation, and provide more accurate guidance for fumigation operations.
[0010] In combination with some embodiments of the first aspect, in some embodiments, after the step of determining the real-time gas concentration of the measured gas based on the infrared absorption degree of the measured gas and the infrared absorption database, it also includes: determining the gas concentration distribution value in the spatial area where each non-dispersive infrared sensor is located by setting an algorithm based on the position information of each non-dispersive infrared sensor and the real-time gas concentration; performing three-dimensional color mapping visualization processing on the gas concentration distribution value to obtain a three-dimensional visualized concentration distribution image, and the visualization processing includes indicating the gas concentration by the depth of color; parsing the three-dimensional visualized concentration distribution image through an image processing algorithm to determine whether there is an abnormal concentration area in the spatial area; when it is determined that the abnormal concentration area exists, sending an alarm message to the management end.
[0011] By adopting the above technical solution, the gas concentration distribution can be displayed intuitively, abnormal areas can be discovered in time, the safety and controllability of the fumigation process can be improved, and timely measures can be taken to solve problems.
[0012] In combination with some embodiments of the first aspect, in some embodiments, after the step of sending an alarm message to the management end when it is determined that there is an abnormal concentration area, it also includes: receiving a remote monitoring request from a remote control end; after extracting the target area in the remote monitoring request, querying the real-time gas concentration of the non-dispersive infrared sensor in the target area; after integrating the real-time gas concentration, determining a visualization image of the concentration distribution of the target area; and sending the visualization image of the concentration distribution to the remote control end according to a preset transmission protocol.
[0013] By adopting the above technical solution, managers can remotely monitor the gas concentration in the fumigation area in real time, understand abnormal situations in a timely manner and make decisions, which improves the convenience and efficiency of management and realizes the functions of remote monitoring and management.
[0014] In combination with some embodiments of the first aspect, in some embodiments, the non-dispersive infrared sensor is provided with a GPRS module for wireless communication through a cellular network, and the GPRS module requires a user identity module card for identity authentication and identification. After extracting the target area in the remote monitoring request, after the step of querying the real-time gas concentration of the non-dispersive infrared sensor in the target area, it also includes: formatting the real-time gas concentration into a data packet matching the cellular network transmission; sending the data packet to the GPRS module for transmission to the corresponding cellular network provider, the cellular network provider refers to a provider within a set range that matches the GPRS module through the user identity module card; sending the data packet to a cloud server.
[0015] By adopting the above technical solution, remote transmission and storage of data can be realized, ensuring the security and stability of data, facilitating subsequent data query and analysis, and providing strong support for remote monitoring and management of the fumigation process.
[0016] In combination with some embodiments of the first aspect, in some embodiments, the sensor in the fumigation device includes a power storage module, and the power storage module includes a rechargeable battery for providing a backup power supply for the sensor.
[0017] By adopting the above technical solution, the sensor can continue to work when the main power fails or is cut off, ensuring the continuity and stability of gas concentration detection, avoiding detection interruption due to power supply problems, and improving the reliability and stability of the fumigation device.
[0018] In combination with some embodiments of the first aspect, in some embodiments, the dual channels of the non-dispersive infrared sensor in the fumigation device are provided with filters, and the filters are used to allow the infrared light band corresponding to the measured gas to pass through.
[0019] By adopting the above technical solution, the detection accuracy of the sensor for the measured gas can be improved, the interference of light in other bands can be reduced, and the sensor can more accurately obtain the infrared intensity data of the measured gas, thereby improving the accuracy and reliability of gas concentration detection.
[0020] In a second aspect, the present application provides a server, comprising: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to cause the server to execute the method described in the first aspect and any possible implementation of the first aspect.
[0021] In a third aspect, the present application provides a computer-readable storage medium comprising instructions, which, when executed on a server, causes the server to execute the method described in the first aspect and any possible implementation of the first aspect.
[0022] In a fourth aspect, the present application provides a computer program product, which, when executed on a server, enables the server to execute the method described in the first aspect and any possible implementation manner of the first aspect.
[0023] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. Due to the use of dual-channel monitoring technology of non-dispersive infrared sensors, the infrared intensity data of the measured gas and the non-measured gas are obtained, and the real-time gas concentration is determined by querying the infrared absorption database. Therefore, the problem of inaccurate fumigation gas concentration detection in the prior art is effectively solved, and the technical effect of accurate detection and real-time monitoring of the gas concentration in the fumigation area is achieved.
[0024] 2. Since temperature sensors and humidity sensors are used to detect the temperature and humidity data in the fumigation area, and the original data are corrected in combination with the infrared absorption intensity influence model, the problem of environmental factors interfering with the gas concentration detection results is effectively solved, thereby achieving the technical effect of improving the accuracy of gas concentration detection.
[0025] 3. Due to the adoption of technical means to determine the gas concentration distribution value according to the position information of the non-dispersive infrared sensor and the real-time gas concentration, and to perform three-dimensional color mapping visualization processing and image processing algorithm analysis, the problem of being unable to intuitively display the gas concentration distribution and timely discover abnormal areas has been effectively solved, thereby achieving the technical effect of intuitively displaying the gas concentration distribution, timely discovering abnormal areas, and improving the safety and controllability of the fumigation process. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a flow chart of a method for detecting fumigation gas concentration in an embodiment of the present application; Figure 2 is another flow chart of the fumigation gas concentration detection method in the embodiment of the present application; Figure 3 It is a schematic diagram of a physical device structure of a server in an embodiment of the present application. DETAILED DESCRIPTION
[0027] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more listed items.
[0028] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0029] First, the structure of the fumigation gas concentration detection method in this application is introduced: the fumigation device is used for fumigation of animals, plants and their products at ports and monitoring of fumigation gas concentration. It contains a variety of sensors: temperature sensor, humidity sensor, non-dispersive infrared sensor, etc., which are used to monitor fumigation parameters; power storage module: contains rechargeable batteries to provide backup power for the sensor to ensure that the sensor can continue to work when the main power fails; communication module: wireless or wired communication with the server to upload sensor data; the server has data processing and analysis functions, and can receive and process data from various sensors of the fumigation device; monitor the concentration of fumigation gas according to the data of the non-dispersive infrared sensor; analyze the concentration distribution and generate concentration visualization data; realize remote monitoring of the fumigation process and other functions.
[0030] For ease of understanding, an application scenario of the relevant method is introduced below.
[0031] Suppose a ship full of cargo has just arrived at the port. In order to ensure the safety and hygiene of the cargo, the cargo needs to be fumigated and the fumigation gas concentration needs to be monitored. According to the traditional method, the staff needs to wear heavy protective equipment and enter the area filled with fumigation gas to collect samples within the specified time. They carefully hold the sampling equipment, collect gas samples in various corners, and then quickly send the samples to the laboratory for analysis. In the laboratory, technicians are busy operating various instruments to test the samples. However, due to the long time interval of manual sampling, the test results they get can often only reflect the situation at a specific moment, and cannot reflect the real-time changes in the fumigation process in time. Once, during the fumigation process, the fumigation gas concentration in some areas was uneven due to the stacking method of the cargo. However, due to the limitations of manual sampling and traditional testing instruments, the staff failed to discover this problem in time. It was not until the end of the fumigation that further inspection was carried out, and it was found that the fumigation effect of some goods was not ideal and needed to be reprocessed, which not only wasted time and resources, but also may affect the delivery time of the goods. Such scenarios are common in the current port entry and exit animal and plant quarantine procedures, fully exposing the shortcomings of existing methods in efficiently and in real time monitoring the concentration of fumigant gases.
[0032] The fumigation gas concentration detection method in the embodiment of the present application is adopted, by receiving the original data sent from multiple non-dispersive infrared sensors arranged in the fumigation area, determining the infrared absorption degree of the measured gas according to the data, querying a preset infrared absorption database to determine the real-time gas concentration, and sending the real-time gas concentration to the receiving end according to the preset transmission rules, thereby realizing accurate detection and real-time transmission of the fumigation gas concentration, which can not only timely reflect the concentration changes during the fumigation process, but also provide a reliable basis for fumigation operations.
[0033] For ease of understanding, the following describes the process of the method provided by this embodiment in combination with the above embodiments. Figure 1 , is a flow chart of a fumigation gas concentration detection method in an embodiment of the present application.
[0034] S101, receiving raw data sent from a plurality of non-dispersive infrared sensors arranged in a fumigation area, wherein the non-dispersive infrared sensors include dual-channel monitoring, wherein a first channel of the dual channels is used to measure first infrared intensity data of a measured gas, and another channel is used to measure second infrared intensity data of a non-measured gas; Specifically, the server will obtain the raw data sent by multiple non-dispersive infrared sensors installed in the fumigation area from the communication interface. These non-dispersive infrared sensors adopt a dual-channel design structure.
[0035] For the first channel, an optical filter is set at the entrance. The material and design are selected according to the characteristic infrared absorption band of the measured gas, and only the infrared light corresponding to the measured gas is allowed to enter the first channel. For example, when measuring carbon monoxide, the filter of the first channel will choose to only allow infrared light near the characteristic absorption peak of carbon monoxide to pass. In this way, the infrared absorption information of the measured gas can be captured. For the second channel, its entrance is directly opened without any filter. The second channel can detect background radiation information within the entire infrared spectrum. Since there is no filter restriction, complete background environment infrared information can be obtained.
[0036] After receiving the raw data of the dual channels, the server will parse the data of the two channels. The data of the first channel represents the infrared absorption information of the measured gas, and the data of the second channel represents the infrared information of the background environment. The server will continue to receive data from the two channels. The first channel only obtains the information of the measured gas through the filter, and the second channel obtains all the background information. The two channels refer to each other and provide a basis for subsequent concentration calculations. This design makes full use of the advantages of the dual channels, allowing the server to receive filtered measured gas information and complete background information, thereby improving the accuracy and effect of concentration detection.
[0037] In some embodiments, the fumigation device further includes a temperature sensor and a humidity sensor arranged in a preset area, wherein the temperature sensor is used to detect the temperature data in the fumigation area, and the humidity sensor is used to detect the humidity data in the fumigation area. After receiving the raw data sent from a plurality of non-dispersive infrared sensors arranged in the fumigation area, the server may further perform the following steps: the server obtains the raw data of temperature and humidity collected and uploaded by the temperature and humidity sensors used to monitor environmental parameters in the fumigation area through the communication interface. These data reflect the ambient temperature and humidity conditions of the fumigation space when the server performs concentration calculations. The server inputs the received temperature and humidity data into a preset infrared absorption intensity influence model. The model is obtained through prior experiments, and the infrared absorption intensity of fumigation gas samples of the same concentration is measured under different temperature and humidity conditions, and a quantitative correspondence between temperature, humidity and infrared absorption intensity is established.
[0038] The server inputs the actual temperature and humidity data, and the model can output its influence coefficient on the infrared absorption intensity, that is, the influence factor, which can be a gain factor or a weight, etc. Finally, the server will correct the calculated infrared absorption intensity data according to the influence factor given by the influence model. For example, the gain factor is used to amplify the absorption intensity under high temperature conditions. This can reduce the impact of temperature and humidity changes on the results and improve the accuracy of concentration calculation. For example, assume that a temperature sensor and a humidity sensor are installed in the fumigation space. During the fumigation process, the sensor collects a temperature of 38°C and a humidity of 80%. After the server obtains the above raw data of temperature and humidity, it inputs it into the preset carbon monoxide infrared absorption intensity influence model. The model is obtained through experiments. The infrared absorption intensity of carbon monoxide samples is measured at different temperatures and humidities, and the corresponding relationship between temperature and humidity and carbon monoxide infrared absorption intensity is obtained. It can be expressed as when the temperature is 38°C and the humidity is 80%, the infrared absorption intensity influence factor = 1.2, that is, under this temperature and humidity condition, the original infrared absorption intensity needs to be increased by 20%. Therefore, after obtaining the original infrared absorption intensity of 50, the server will make a correction, and the corrected infrared absorption intensity = 50 *1.2 = 60.
[0039] Through model correction, more accurate infrared absorption data after the influence of temperature and humidity can be obtained for subsequent concentration calculation.
[0040] By considering temperature and humidity factors and correcting infrared absorption data, the accuracy of gas concentration detection and calculation can be improved, the impact of environmental noise on the results can be reduced, and the final concentration reading can more accurately reflect the actual concentration of the fumigation gas.
[0041] S102, determining an infrared intensity difference between the first infrared intensity data and the second infrared intensity data in the original data, wherein the infrared intensity difference is used to indicate the infrared absorption degree of the measured gas; Specifically, the server will extract two sets of raw data received from the dual-channel non-dispersive infrared sensor, where the first set of raw data comes from the first channel, representing the infrared intensity change curve of the measured gas during the detection time period; the second set of raw data comes from the second channel, representing the infrared intensity change curve of the background environment during the same detection time period.
[0042] The server will extract the infrared intensity values of the corresponding time points in the two sets of data point by point, and subtract the infrared intensity value of the second channel from the infrared intensity value of the first channel to calculate the infrared intensity difference between the two. For example, at time t1, the infrared intensity detected by the first channel is 100, and the infrared intensity detected by the second channel is 50, then the difference between the two is 100-50=50. Since the second channel detects the infrared intensity of the background environment, and the first channel detects the infrared absorption contribution of the measured gas, the difference between the two can effectively eliminate the influence of the background infrared, mainly reflecting the change in infrared absorption intensity between the measured gas and the environment, which can indicate the infrared absorption degree of the measured gas.
[0043] The server will continuously calculate the point-to-point difference of the two-channel data in the time series to obtain the time curve of the infrared absorption intensity of the measured gas during the entire detection time period, laying the foundation for subsequent concentration calculations.
[0044] S103, querying a preset infrared absorption database of the measured gas, where the infrared absorption database is infrared absorption data of the measured gas at different concentrations established according to a preset law; The server will query the infrared absorption information of the current measured gas from the database. The database is pre-established according to the Beer-Lambert law and stores the infrared absorption law data of the measured gas at different concentrations. For example, if the measured gas is carbon monoxide, the database will store the infrared absorption intensity values of carbon monoxide at different concentrations in the range of 0-100ppm. These mapping relationships are obtained through experiments. The infrared absorption intensity is measured in carbon monoxide gas samples with different concentrations to obtain the corresponding relationship between carbon monoxide concentration and infrared absorption intensity, which is then stored in the database.
[0045] The infrared absorption database queried by the server is a two-dimensional mapping table, with the horizontal axis being the concentration of the measured gas and the vertical axis being the corresponding infrared absorption intensity. This database provides a basis for the subsequent inference of gas concentration based on the infrared absorption intensity. The infrared absorption data in the database will take into account the influence of environmental factors such as temperature and humidity to ensure the reliability of the data. The database needs to be established for different gases to be measured. For example, when detecting carbon monoxide, the carbon monoxide database is queried, and when detecting carbon dioxide, the carbon dioxide database is queried.
[0046] S104, determining the real-time gas concentration of the measured gas according to the infrared absorption degree of the measured gas and the infrared absorption database; The server will retrieve the infrared absorption intensity time curve of the measured gas calculated in the previous step and query the infrared absorption database. Then, the server will retrieve each point on the infrared absorption intensity curve point by point and search for its corresponding concentration value in the infrared absorption database. For example, if the infrared absorption intensity is 50 at a certain moment, by querying the database, it can be known that the carbon monoxide concentration under this absorption intensity is 10ppm.
[0047] In this way, the server can map and infer the concentration of the measured gas at each moment according to the infrared absorption intensity at each moment, that is, the real-time gas concentration change curve of the measured gas, realizing dynamic monitoring of the measured gas concentration. The real-time concentration data obtained will take into account temperature and humidity corrections to reflect the true concentration of the measured gas.
[0048] S105: Send the real-time gas concentration to a receiving end according to a preset transmission rule.
[0049] The server will send the real-time concentration curve data of the measured gas obtained in the previous step to the receiving end, such as the monitoring terminal in the central control room, according to the pre-set transmission protocol and transmission rules. The transmission protocol can use wireless communication protocols such as ZigBee, WiFi, Bluetooth, or wired network protocols. The transmission rules will specify the data transmission time interval, transmission content, data format, etc. The server needs to encapsulate the concentration data into data frames that comply with the transmission protocol and rules for transmission. After the receiving end obtains the concentration data, it can be further analyzed, processed or displayed.
[0050] In this way, the server can continuously obtain the real-time concentration of the measured gas and transmit it to the receiving end according to the prescribed rules, thus realizing remote monitoring of the concentration.
[0051] By adopting the fumigation gas concentration detection method in the embodiment of the present application, accurate detection and real-time transmission of the gas concentration in the fumigation area are achieved through technical means such as receiving data from a non-dispersive infrared sensor and calculating the degree of infrared absorption, querying a database to determine the gas concentration, and transmitting the concentration information to a receiving end. This can not only timely reflect the concentration changes during the fumigation process, but also provide a reliable basis for fumigation operations.
[0052] After combining the above embodiments, the method provided by this embodiment is further described in more detail below. Figure 2 , is another flow chart of the fumigation gas concentration detection method in the embodiment of the present application.
[0053] S201, determining the gas concentration distribution value in the spatial area where each non-dispersive infrared sensor is located by setting an algorithm according to the position information of each non-dispersive infrared sensor and the real-time gas concentration; The server will obtain the location information of each non-dispersive infrared sensor, that is, its spatial coordinates, which are generally obtained through a GPS module. At the same time, the server also obtains the real-time concentration data of the measured gas detected by each sensor.
[0054] Then, the server will determine the spatial area that each sensor is responsible for detecting based on the location information of the sensor. For example, the entire fumigation space can be divided into multiple sub-areas using the triangulation method based on the distance between sensors. A sensor is set in each sub-area. For each sub-area, the server will take the concentration value detected by the sensor in the area as the gas concentration distribution value of the sub-area. For example, if the sensor in area A detects 10ppm of carbon monoxide, the concentration distribution value of area A is determined to be 10ppm.
[0055] By repeating this process, the server can obtain the gas concentration distribution values in multiple sub-areas of the entire fumigation space, forming the spatial distribution of gas concentration. The algorithm needs to consider boundary processing to ensure that the concentration of each point is unique.
[0056] S202, performing three-dimensional color mapping visualization processing on the gas concentration distribution value to obtain a three-dimensional visualized concentration distribution image, wherein the visualization processing includes representing the gas concentration by color depth; The server will perform three-dimensional visualization on the gas concentration distribution values obtained in the previous step. A three-dimensional Cartesian coordinate system can be established to represent the fumigation space. Then, the concentration values of each sub-area are mapped to the corresponding spatial position in the coordinates, and different colors are set to represent different concentrations. The darker the color, the higher the concentration. For example, 0-10ppm is mapped to green, 10-20ppm is mapped to yellow, 20-30ppm is mapped to orange, 30-40ppm is mapped to red, and so on. Different positions are colored with different colors according to their concentrations, and finally a three-dimensional visualization image of the gas concentration is formed.
[0057] In this way, the server can convert the abstract concentration distribution value into an intuitive three-dimensional visualization color concentration distribution image. The image clearly shows the concentration distribution of the gas in space through the change of color.
[0058] S203, analyzing the three-dimensional visualized concentration distribution image by an image processing algorithm to determine whether there is an abnormal concentration area in the spatial region; The server will use image processing algorithms to analyze and determine the visualized concentration distribution image. The segmentation method can be used to first segment the image and divide the values of similar concentrations into the same sub-region. Then analyze the color and area of each sub-region. If there are abnormal sub-regions with extremely dark or extremely light colors, it is determined that there is a concentration abnormality. The edge detection method can also be used to determine the edges with drastic color changes between regions as abnormal boundaries. For example, the system can first perform segmentation, extract the dark red sub-region, calculate its area ratio, and determine it as abnormal if it exceeds a certain threshold. Or use edge detection to detect the boundaries in the image and determine whether the color difference on both sides of the boundary is too large.
[0059] Ultimately, the server can determine whether there is an abnormal concentration phenomenon in the spatial area based on the color and distribution of the image, that is, an abnormal sub-area with high or low concentration caused by uneven gas distribution. The image processing algorithm can automatically and quickly analyze and determine the visualized concentration image.
[0060] If there is an abnormal concentration area in the spatial area, step S204 is executed; If there is no abnormal concentration region in the spatial region, step S205 is executed.
[0061] S204, sending an alarm message to the management terminal; After using the image processing algorithm to determine that there is an abnormal area in the concentration distribution image, the server will immediately send an alarm message to the management end. The alarm message will include details such as the specific location, area, concentration level, etc. of the abnormal area. The alarm can be sent in the form of text messages, emails, etc., or a warning window with pictures and texts can be popped up in the management end system.
[0062] The server can also infer the possible cause of the abnormality by combining the preset abnormal pattern database, which stores various known abnormal patterns and corresponding causes and treatment suggestions. The server determines the spatial distribution characteristics of the abnormal area through image processing, and then matches it with the spatial information of the abnormal pattern in the database to find the most similar known abnormal pattern and give its cause and suggestions.
[0063] After sending the alarm, the server will continue to read the real-time concentration data of the non-dispersive infrared sensor in the abnormal area. The server will determine whether the real-time concentration continues to rise or remains at a high concentration. Once the conditions are met, it means that the abnormality is worsening. The server will send an early warning message to the management again to remind the management that the situation is serious and needs to be dealt with as soon as possible. At the same time, the server can also calculate the concentration increase rate, estimate the time when the abnormal situation is expected to worsen, and inform the management personnel in the alarm information to help them make judgments on time priorities. In this way, through continuous monitoring + re-alarming, the severity and urgency of the abnormality can be emphasized, and the management personnel can be urged to attach great importance to it.
[0064] By sending abnormal concentration alarms to the management end in a timely manner, relevant personnel can be notified immediately when a problem occurs, so that they can respond quickly, avoid the problem from expanding, and take effective solutions to ensure the safe and stable operation of the fumigation process. At the same time, auxiliary information can also help quickly locate the cause of the problem and improve processing efficiency.
[0065] S205, receiving a remote monitoring request from a remote control terminal; After completing the judgment of the concentration distribution in the fumigation area, the server will be ready to receive the remote monitoring request from the remote control terminal. The remote control terminal can be a remote monitoring software or mobile APP connected to the server. When the manager needs to remotely monitor the gas concentration in the fumigation area, he can send a monitoring request to the server through the remote control terminal.
[0066] The monitoring request needs to contain the identification information of the target monitoring area, such as the area number, name, etc. It can also be a part of a spatial area, which is not limited here. The server will continue to listen to whether there is an incoming monitoring request on a specific interface. Once a monitoring request is received, the target area information in the request will be extracted to provide a basis for subsequent processing. In addition to the target area identification, the monitoring request can also contain additional monitoring parameters, such as time interval, concentration threshold and other information. The server will parse these parameters to meet the customized requirements of the monitoring request.
[0067] S206, after extracting the target area in the remote monitoring request, querying the real-time gas concentration of the non-dispersive infrared sensor in the target area; The server will first extract the user-specified target monitoring area identifier from the received monitoring request. Then, based on the area identifier, the server will determine all non-dispersive infrared sensors installed in the area and obtain the coordinate location information of these sensors. Next, the server will read the raw data of gas concentration currently detected by these sensors in real time, and perform necessary processing, such as filtering and calibration, to obtain the real-time gas concentration value at the location of the sensor. Finally, the server will continuously obtain the concentration monitoring values of all sensors in the target area in a timed manner to form a concentration monitoring data set that changes over time in this area, providing basic data support for the subsequent generation of concentration distribution images.
[0068] In this way, the server can extract the real-time concentration of all sensors in the area specified in the monitoring request, obtain the dynamic concentration information of the area, and meet the user's remote monitoring needs.
[0069] In some embodiments, in order to realize remote data transmission, the non-dispersive infrared sensor is provided with a GPRS module for wireless communication through a cellular network. The GPRS module requires a user identity module card (SIM card) for identity authentication and identification. After querying the real-time gas concentration of the non-dispersive infrared sensor in the monitored area, the server can also perform the following steps: after the server obtains the real-time concentration data uploaded by each non-dispersive infrared sensor in the monitored area, it is necessary to format the data and package the concentration data into a format adapted for cellular network transmission, which can be packaged according to a custom application layer protocol. The server will send the encapsulated concentration data message to the GPRS module of the non-dispersive infrared sensor through a specified interface. The GPRS module includes a SIM card, which can identify the user identity and find a cellular network provider that matches the SIM card preset. Then the GPRS module will establish communication with the corresponding cellular network provider through a base station on the radio frequency band to transmit the concentration data.
[0070] In this way, by utilizing the built-in GPRS module of the non-dispersive infrared sensor, the local concentration data can be transmitted to the cloud server in real time through the cellular network, realizing remote monitoring and data backup functions, ensuring that important concentration data can be safely saved to the cloud, preventing local data loss, and improving data stability.
[0071] S207, after integrating the real-time gas concentration, determining a concentration distribution visualization image of the target area; After the server obtains the real-time gas concentration data of all sensors in the target area, it needs to integrate these discrete point data to determine the overall concentration distribution of the target area. The server can use the spatial interpolation method to interpolate the point concentration data based on the length, width, and height of the target area, combined with the coordinate position information of the sensor, and use the algorithm to obtain a three-dimensional matrix data with relatively continuous concentration changes in the target area. For example, the three-dimensional linear interpolation method can be used to linearly calculate the concentration of the middle point according to the distance weight based on the concentration of adjacent sensor positions. The three-dimensional surface Bezier interpolation method can also be used to fit the concentration surface of the target area according to the control point concentration.
[0072] After interpolation, the server can obtain the approximately continuously changing three-dimensional concentration matrix data of the target area, effectively connect the discrete point concentration data, and obtain the overall distribution of gas concentration in the target area. This lays the foundation for the subsequent generation of concentration visualization images.
[0073] S208: Send the concentration distribution visualization image to the remote control terminal according to a preset transmission protocol.
[0074] The server uses the three-dimensional matrix data of the target area concentration obtained by interpolation to generate a visualization image of the concentration distribution. The server will establish a three-dimensional visualization coordinate system to represent the three-dimensional space of the target area. Then, the concentration value of each point in the concentration matrix is mapped to the corresponding spatial position in the coordinates, and colored according to the preset color mapping scheme. The darker the color, the greater the concentration. In this way, the server can generate a three-dimensional visualization image of the gas concentration distribution in the target area. The image intuitively shows the concentration distribution of the gas in the target area through color changes.
[0075] Then, the server will convert the generated visualization image into data frames according to the pre-agreed transmission protocol and format data, and send it to the remote control end that requests monitoring through the communication interface. The receiving end can obtain the concentration distribution image of the target area and realize remote visualization monitoring of gas concentration. If the user specifies the monitoring time range, the server can also generate a dynamic visualization image of the concentration change within the time period, presenting it in the form of animation, to realize the visualization monitoring of the concentration change process in the target area.
[0076] In the embodiment of the present application, the gas concentration distribution value is determined according to the position information of the non-dispersive infrared sensor and the real-time gas concentration, and the three-dimensional color mapping visualization processing and image processing algorithm analysis are performed. It can intuitively display the gas concentration distribution and clearly show the concentration distribution of gas in space through color changes, which is more intuitive than numerical data.
[0077] When an abnormal concentration area is detected, an alarm can be immediately sent to the management end, and detailed information of the abnormal area can be provided. The cause and suggestions can be inferred by matching historical patterns to improve processing efficiency. This effectively solves the problem that the existing technology cannot intuitively display the gas concentration distribution and cannot timely detect the abnormal concentration area, and achieves the technical effect of accurately monitoring the gas concentration distribution and improving the safety and controllability of the fumigation process.
[0078] The following describes the server in the embodiment of the present invention from the perspective of hardware processing. Figure 3 , is a schematic diagram of a physical device structure of a server in an embodiment of the present application.
[0079] It should be noted that Figure 3 The structure of the server shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0080] like Figure 3As shown, the server includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 302 or the program loaded from the storage part 308 to the random access memory (RAM) 303, such as executing the method described in the above embodiment. In RAM 303, various programs and data required for system operation are also stored. CPU 301, ROM 302 and RAM 303 are connected to each other through bus 304. Input / output (I / O) interface 305 is also connected to bus 304.
[0081] The following components are connected to the I / O interface 305: an input section 306 including an audio input device, a button switch, etc.; an output section 307 including a liquid crystal display (LCD) and an audio output device, an indicator light, etc.; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I / O interface 305 as needed. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 310 as needed so that a computer program read therefrom is installed into the storage section 308 as needed.
[0082] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 309, and / or installed from a removable medium 311. When the computer program is executed by the central processing unit (CPU) 301, various functions defined in the present invention are performed.
[0083] It should be noted that specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.
[0084] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. Each box in the flowchart or block diagram may represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings.
[0085] Specifically, the server of this embodiment includes a processor and a memory. The memory stores a computer program. When the computer program is executed by the processor, the fumigation gas concentration detection method provided in the above embodiment is implemented.
[0086] As another aspect, the present invention further provides a computer-readable storage medium, which may be included in the server described in the above embodiment; or may exist independently without being assembled into the server. The above storage medium carries one or more computer programs, and when the above one or more computer programs are executed by a processor of the server, the server implements the fumigation gas concentration detection method provided in the above embodiment.
[0087] As described above, 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. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
[0088] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.
[0089] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
Claims
1. A method for detecting fumigation gas concentration, applied to a server of a fumigation device, characterized in that: The method comprises: Receiving raw data sent from a plurality of non-dispersive infrared sensors arranged in a fumigation area, wherein the non-dispersive infrared sensors include dual-channel monitoring, wherein a first channel of the dual channels is used to measure first infrared intensity data of a measured gas, and another channel is used to measure second infrared intensity data of a non-measured gas; Determine an infrared intensity difference between the first infrared intensity data and the second infrared intensity data in the original data, wherein the infrared intensity difference is used to indicate the infrared absorption degree of the measured gas; Querying a preset infrared absorption database of the measured gas, wherein the infrared absorption database is infrared absorption data of the measured gas at different concentrations established according to a preset law; Determining the real-time gas concentration of the measured gas according to the infrared absorption degree of the measured gas and the infrared absorption database; The real-time gas concentration is sent to a receiving end according to a preset transmission rule.
2. The method according to claim 1, characterized in that The fumigation device comprises a temperature sensor and a humidity sensor arranged in a preset area, wherein the temperature sensor is used to detect temperature data in the fumigation area, and the humidity sensor is used to detect humidity data in the fumigation area. After receiving raw data sent from a plurality of non-dispersive infrared sensors arranged in the fumigation area, the device further comprises: After receiving the humidity data and the temperature data, the humidity data and the temperature data are input into a preset infrared absorption intensity influence model to obtain the influence factors of the temperature data and the humidity data on the infrared absorption intensity of the measured gas, wherein the infrared absorption intensity influence model is established by measuring the infrared absorption intensity of the fumigation gas of the same concentration under different temperature and humidity conditions in advance, and then establishing a relationship model between the temperature data, the humidity data and the infrared absorption intensity; The original data is corrected according to the impact factor.
3. The method according to claim 1, characterized in that After the step of determining the real-time gas concentration of the measured gas according to the infrared absorption degree of the measured gas and the infrared absorption database, the method further includes: According to the position information of each non-dispersive infrared sensor and the real-time gas concentration, a gas concentration distribution value in the spatial area where each non-dispersive infrared sensor is located is determined by setting an algorithm; Performing three-dimensional color mapping visualization processing on the gas concentration distribution value to obtain a three-dimensional visualized concentration distribution image, wherein the visualization processing includes representing the gas concentration by color depth; Analyzing the three-dimensional visualized concentration distribution image by an image processing algorithm to determine whether there is an abnormal concentration area in the spatial region; When it is determined that the abnormal concentration area exists, an alarm message is sent to the management end.
4. The method according to claim 3, characterized in that After the step of sending an alarm message to the management terminal when the abnormal concentration area is determined to exist, the method further includes: Receive remote monitoring requests from the remote control terminal; After extracting the target area in the remote monitoring request, querying the real-time gas concentration of the non-dispersive infrared sensor in the target area; After integrating the real-time gas concentration, determining a concentration distribution visualization image of the target area; The concentration distribution visualization image is sent to the remote control terminal according to a preset transmission protocol.
5. The method according to claim 4, characterized in that The non-dispersive infrared sensor is provided with a GPRS module for wireless communication through a cellular network. The GPRS module requires a user identity module card to perform identity authentication and recognition. After extracting the target area in the remote monitoring request, after the step of querying the real-time gas concentration of the non-dispersive infrared sensor in the target area, the method further includes: Formatting the real-time gas concentration into data packets compatible with cellular network transmission; Sending the data packet to the GPRS module for transmission to a corresponding cellular network provider, wherein the cellular network provider refers to a provider within a set range that matches the GPRS module through a user identity module card; The data packet is sent to a cloud server.
6. The method according to claim 1, characterized in that The sensor in the fumigation device comprises a power storage module, and the power storage module comprises a rechargeable battery for providing a backup power supply for the sensor.
7. The method according to claim 1, characterized in that The dual channels of the non-dispersive infrared sensor in the fumigation device are provided with filters, and the filters are used to allow the infrared light band corresponding to the measured gas to pass through.
8. A server, characterized in that: The server includes: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the server to execute the method described in any one of claims 1-7.
9. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on a server, the server is caused to execute the method according to any one of claims 1 to 7.
10. A computer program product, characterized in that When the computer program product is run on a server, the server is caused to execute the method according to any one of claims 1 to 7.
Citation Information
Cited By
Container fumigation gas concentration detection method and system and infrared sensing device
CN120177405A
A container fumigation gas concentration detection method, system and infrared sensing device
CN120177405B
