Gas safety monitoring method, device, equipment and storage medium
By collecting the rotation signal of the gas meter wheel in real time and using AI technology to determine abnormal gas consumption, the stability and accuracy problems of traditional gas leakage detection methods are solved, and high accuracy and timely alarms for gas safety monitoring are achieved.
Patent Information
- Application Number
- CN202410807058.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-06-21
AI Technical Summary
Existing gas leakage detection methods rely on sensors, which are easily affected by environmental factors, have low stability and accuracy, and are prone to false alarm triggering.
By collecting the rotation signal of the gas meter wheel in real time and combining it with AI technology, abnormal determination conditions are formulated based on the user's gas consumption habits to determine whether there is gas leakage or abnormal gas consumption, and push alarm information in real time.
It improves the accuracy and stability of gas safety monitoring, reduces false alarms and missed reports, and enables timely detection and processing of gas leaks and abnormal gas consumption.
Smart Images

Figure CN118376353B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of gas monitoring technology, and in particular to a gas safety monitoring method, device, equipment and storage medium. Background Art
[0002] At present, the common way to detect gas leaks is to use semiconductor sensors or electrochemical sensors to detect combustible gas. However, both sensors are easily affected by environmental factors (such as temperature, humidity, etc.), so they have poor stability, low accuracy, and are prone to false alarms. In addition, electrochemical sensors are also easily affected by poisoning and fail. Summary of the invention
[0003] The main purpose of this application is to provide a gas safety monitoring method, device, equipment and storage medium to improve the accuracy of gas safety monitoring.
[0004] To achieve the above objectives, the present application provides a gas safety monitoring method, comprising:
[0005] Obtain the user's gas usage data and the gas meter wheel rotation count for each time period, wherein the gas usage data includes gas usage equipment data and unconventional gas usage time;
[0006] Determining the corresponding abnormality determination condition of the user according to the gas usage data;
[0007] Determine the gas consumption and continuous gas consumption duration of each time period according to the rotation count of the character wheel in each time period;
[0008] Determine the gas safety monitoring result according to the abnormality determination condition, the gas consumption in each time period and the continuous gas consumption duration;
[0009] Wherein, when it is determined according to the gas-using equipment data that there is no equipment that continuously uses gas for a long time, the abnormal determination conditions include that the continuous gas usage time exceeds the first preset time, the continuous gas usage time during the unconventional gas usage time exceeds the second preset time, the continuous gas usage time exceeds the third preset time and the gas usage in the corresponding time period is within a preset range; the first preset time is greater than the second preset time and the third preset time;
[0010] When it is determined based on the gas-using equipment data that there is a device that uses gas continuously for a long time, the abnormal judgment conditions include that the continuous gas usage time exceeds the fourth preset time, the continuous gas usage time during the unconventional gas usage time exceeds the second preset time, the continuous gas usage time exceeds the third preset time and the gas consumption in the corresponding time period is within the preset range; the fourth preset time is greater than the first preset time.
[0011] Optionally, obtaining the character wheel rotation count of each time period of the gas meter includes: obtaining the sound signal of the gas meter in each time period; performing time domain feature extraction on the sound signal in each time period to obtain the time domain feature of each time period; determining the corresponding frequency domain signal according to the sound signal in each time period, and performing frequency domain feature extraction on the frequency domain signal in each time period to obtain the frequency domain feature of each time period; inputting the time domain feature of each time period and the frequency domain feature of the corresponding time period into the pre-trained detection model to obtain the character wheel rotation count of each time period.
[0012] Optionally, the training process of the detection model includes: obtaining a training sample set, the training sample set including at least one sample sound signal with labeled information, and preprocessing the sample sound signal in the training sample set; extracting time domain features from the preprocessed sample sound signal to obtain sample time domain features; determining a sample frequency domain signal based on the preprocessed sample sound signal, and extracting frequency domain features from the sample frequency domain signal to obtain sample frequency domain features; inputting the sample time domain features and the sample frequency domain features into the detection model to obtain a sample word wheel rotation count; optimizing the parameters of the detection model using a back propagation algorithm and a gradient descent optimizer and based on the sample word wheel rotation count until the detection model converges to obtain the pre-trained detection model.
[0013] Optionally, the time domain features include short-time energy and short-time zero-crossing rate of the sound signal, and the frequency domain features include spectrum energy and spectrum centroid of the frequency domain signal.
[0014] Optionally, determining the gas safety monitoring result based on the abnormal judgment condition, the gas consumption in each time period and the continuous gas consumption duration includes: when the gas consumption in each time period and the continuous gas consumption duration meet the abnormal judgment condition, determining the gas safety monitoring result as a monitoring abnormality.
[0015] Optionally, after determining the gas safety monitoring results based on the abnormal judgment conditions, the gas consumption in each time period and the continuous gas consumption duration, the method also includes: generating alarm prompt information based on the gas safety monitoring results; and sending the alarm prompt information to the first user terminal and the second user terminal.
[0016] In addition, to achieve the above-mentioned purpose, the present application also provides a gas safety monitoring device, including: an acquisition module, used to acquire the user's gas usage data and the character wheel rotation count of each time period of the gas meter, the gas usage data including gas usage equipment data and unconventional gas usage time; a first determination module, used to determine the user's corresponding abnormal judgment condition based on the gas usage data; a second determination module, used to determine the gas usage and continuous gas usage duration of each time period based on the character wheel rotation count of each time period; a monitoring module, used to determine the gas safety monitoring result based on the abnormal judgment condition, the gas usage and the continuous gas usage duration of each time period; wherein, in the case where it is determined according to the gas usage equipment data that there is no equipment that continuously uses gas for a long time, the abnormal judgment condition The abnormal judgment conditions include that the continuous gas usage duration exceeds the first preset duration, the continuous gas usage duration during the unconventional gas usage time exceeds the second preset duration, the continuous gas usage duration exceeds the third preset duration and the gas usage in the corresponding time period is within the preset range; the first preset duration is greater than the second preset duration and the third preset duration; when it is determined according to the gas-using equipment data that there is a device that uses gas continuously for a long time, the abnormal judgment conditions include that the continuous gas usage duration exceeds the fourth preset duration, the continuous gas usage duration during the unconventional gas usage time exceeds the second preset duration, the continuous gas usage duration exceeds the third preset duration and the gas usage in the corresponding time period is within the preset range; the fourth preset duration is greater than the first preset duration.
[0017] The present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a gas safety monitoring method as described in any one of the above is implemented.
[0018] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the gas safety monitoring method as described in any one of the above is implemented.
[0019] The gas safety monitoring method of the embodiment of the present application obtains the user's gas usage data and collects the real-time wheel rotation counts of the gas meter in each time period to obtain the user's daily gas usage; then, the abnormal judgment conditions are determined in a targeted manner based on the user's gas usage data, thereby ensuring the accuracy of gas safety monitoring; then, the gas usage and continuous gas usage duration of each time period are determined based on the wheel rotation counts of each time period, that is, the user's current actual gas usage; finally, the gas safety monitoring result is jointly determined based on the abnormal judgment conditions, the gas usage and continuous gas usage duration of each time period. As a result, gas safety can be monitored in real time based on the actual gas usage of each time period and the abnormal judgment conditions, thereby improving the accuracy of gas safety monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 This is a scenario example of the gas safety monitoring method provided by this application;
[0021] Figure 2 It is one of the flow charts of the gas safety monitoring method of the embodiment of the present application;
[0022] Figure 3 This is the second flowchart of the gas safety monitoring method of the embodiment of the present application;
[0023] Figure 4 This is the third flow chart of the gas safety monitoring method of the embodiment of the present application;
[0024] Figure 5 is a schematic structural diagram of a gas safety monitoring device according to an embodiment of the present application;
[0025] Figure 6 An example of a physical structure diagram of an electronic device is provided;
[0026] In the figure: 110, data acquisition device; 120, data processing server; 130, first user terminal; 140, second user terminal; 500, gas safety monitoring device; 510, acquisition module; 520, first determination module; 530, second determination module; 540, monitoring module; 610, processor; 620, communication interface; 630, memory; 640, communication bus.
[0027] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0029] The traditional diaphragm gas metering methods mainly include magnetic metering (such as metering using reed switches and magnetic components) and non-magnetic metering (such as infrared photoelectric coding metering). The devices used in these two metering methods are all set inside the gas meter. However, the above metering methods all have certain defects. For example, when using a reed switch for metering, the reed switch may be damaged by external force, resulting in abnormal metering; when using infrared photoelectric coding for metering, infrared photoelectric coding is easily interfered by infrared light in the light, especially outdoor hanging meters are more susceptible to light interference. In addition, gas meters are generally powered by dry batteries, so they cannot report gas consumption-related data in real time, and cannot realize real-time remote monitoring and safety testing of gas. Moreover, since the sound patterns of the gas meter wheels of different manufacturers are different, the difficulty of non-contact metering is further increased.
[0030] In addition, existing gas leak detection is achieved by using sensors, which are usually affected by external environmental factors. Therefore, the stability and accuracy of detection are low, which can easily trigger an alarm by mistake.
[0031] To this end, the embodiments of the present application provide a gas safety monitoring method, device, equipment and storage medium, so as to obtain the gas meter wheel rotation count in real time and remotely by collecting the signal generated when the gas meter wheel rotates in real time, and combine with AI technology to formulate gas usage abnormality judgment conditions according to the user's gas usage habits, and then use the abnormal judgment conditions based on the real-time collected wheel rotation count to judge whether the user has abnormal gas usage (for example, a small gas leak, long-term constant flow gas usage, gas usage at unconventional times, etc.), and timely push alarm information to the user, so as to improve the accuracy and stability of gas safety monitoring.
[0032] For ease of understanding, this specification provides a scenario example of a gas safety monitoring method. The scenario example is applied in Figure 1 In the application environment shown, the application scenario may include a data acquisition device 110, a data processing server 120, a first user terminal 130 and a second user terminal 140; the data processing server 120 can establish communication connections with the data acquisition device 110, the first user terminal 130 and the second user terminal 140 respectively through the Internet or the like.
[0033] In this scenario example, the data acquisition device 110 can be a sound sensor or an external magnetic sensor. The data acquisition device 110 can be installed on the gas meter at the user's residence to collect the signal generated by the rotation of the gas meter wheel in real time. Furthermore, the data acquisition device 110 can transmit the signal to the data processing server 120 in real time, or after collecting the signal for a period of time, uniformly transmit the signal of this time period to the data processing server 120.
[0034] The first user terminal 130 may be a user terminal used by residents. Residents may upload all equipment information that needs to use gas in their residences through the first user terminal 130. Residents may also set the time period for regular daily use of gas, the time for long-term constant flow, etc. through the first user terminal 130 according to their gas usage habits. The above-mentioned gas usage equipment information, the time period for regular daily use of gas, and the time for long-term constant flow are all gas usage data of users. These data may characterize the gas usage habits of users and the daily gas usage of users. The collection of these data may be used to more accurately determine whether there are gas safety hazards in the residence of the user in the future. In addition, the first user terminal 130 may output these gas usage data to the data processing server 120.
[0035] The second user terminal 140 may be a user terminal used by a gas company administrator, and the administrator may monitor whether there is abnormal gas usage in each household through the second user terminal 140 .
[0036] In this scenario example, the data processing server 120 can be used to execute the gas safety monitoring method of the embodiment of the present application. Specifically, the data processing server 120 receives the signal sent by the data acquisition device 110 and the gas usage data sent by the first user terminal 130; further, the data processing server 120 processes the signal to obtain the word wheel rotation count of the gas meter, and the obtained word wheel rotation count can be used to further obtain the gas consumption of the gas meter, thereby realizing real-time and remote collection of the gas consumption of the gas meter.
[0037] The data processing server 120 can also formulate corresponding abnormality determination conditions for the user according to the received gas usage data of the user. It is understandable that the gas usage habits of different families are usually different. Therefore, by collecting the gas usage data of the user and determining the abnormality determination conditions corresponding to the user according to the gas usage data of the user, it is possible to effectively reduce the situation of false alarms and missed alarms and improve the accuracy of gas safety monitoring.
[0038] Furthermore, the data processing server 120 can analyze the user's gas usage (for example, daily gas usage, gas usage time period, etc.) through the user's gas meter wheel rotation count and abnormal judgment conditions, and determine whether there are gas safety hazards (for example, long-term abnormal gas usage, small flow leakage, etc.).
[0039] If the data processing server 120 detects abnormal gas usage at the user's residence, the data processing server 120 may generate an alarm prompt message and send the alarm prompt message to the first user terminal 130 and the second user terminal 140. It should be noted that the alarm prompt message sent to the first user terminal 130 and the alarm prompt message sent to the second user terminal 140 may be different; the alarm prompt message sent to the first user terminal 130 may include prompt information of abnormal gas usage, and the alarm prompt message sent to the second user terminal 140 may include resident information and prompt information of abnormal gas usage, so that the management personnel can take corresponding safety measures.
[0040] It is worth mentioning that the first user terminal 130 in this scenario example can also provide users with functions such as online gas purchase, gas purchase reminders, and kitchen-related information push, so that users can more conveniently understand their gas usage and reduce losses caused by gas safety issues.
[0041] With reference to the scenario example of the gas safety monitoring method in the aforementioned embodiment, the gas safety monitoring method in the embodiment of the present application is described in detail below.
[0042] Figure 2 FIG. 1 is one of the flow charts of the gas safety monitoring method of the embodiment of the present application, and the gas safety monitoring method can be executed by the data processing server in the above embodiment. Figure 2 As shown, the gas safety monitoring method may include the following steps:
[0043] Step 210: Obtain the user's gas usage data and the gas meter's wheel rotation count for each time period.
[0044] Step 220: Determine the user's corresponding abnormality judgment condition based on the gas usage data.
[0045] Step 230: Determine the gas usage and continuous gas usage duration of each time period according to the character wheel rotation count of each time period.
[0046] Step 240: Determine the gas safety monitoring result according to the abnormality determination conditions, the gas consumption in each time period and the continuous gas consumption duration.
[0047] It should be noted that the gas usage data can be any data that can characterize the gas usage of the user, such as daily gas usage time period, gas usage equipment, minimum gas usage of gas usage equipment, etc. In this embodiment, the gas usage data can include gas usage equipment data and unconventional gas usage time. In addition, the time period can be set to a smaller time to achieve high-frequency collection of the gas meter wheel rotation count. For example, the time period can be set to 1 minute, that is, the wheel rotation count is reported once every 1 minute.
[0048] Specifically, the method for obtaining gas usage data may be: the user uploads his / her own gas usage data through the first user terminal, and then the first user terminal outputs the gas usage data uploaded by the user to the data processing server. The method for obtaining gas usage data may also be: obtaining the user's historical gas usage, gas usage time period and other data, and obtaining the user's gas usage data by analyzing these data. This embodiment takes the first user uploading gas usage data through the first user terminal as an example for subsequent introduction.
[0049] In addition, it should be noted that the wheel rotation count in each time period of the gas meter refers to the number of revolutions of the wheel of the gas meter, and the corresponding gas consumption can be known by the number of revolutions of the wheel.
[0050] In this embodiment, the method for obtaining the character wheel rotation count of the gas meter can be: a magnetic sensor is set at the character wheel housing of the gas meter with a magnetic steel, the magnetic sensor can detect the position change of the magnet and convert the mechanical movement into an electrical signal, the magnetic sensor transmits the electrical signal to the data processing server, and the data processing server obtains the character wheel rotation count of each time period by analyzing the received electrical signal.
[0051] In this embodiment, the method for obtaining the rotation count of the character wheel of the gas meter can also be: a sound collection device is set at the character wheel housing of the gas meter with magnetic steel, and the sound collection device is used to collect the sound signal emitted by the rotation of the gas meter character wheel. The sound collection device then sends the sound signal to the data processing server, and the data processing server analyzes the sound signal to obtain the character wheel rotation count of each time period.
[0052] After the data processing server obtains the user's gas usage data, it can determine the abnormal judgment conditions for the user in advance based on the gas usage data. It should be noted here that the abnormal judgment condition refers to: a judgment condition for determining whether the user's gas usage situation has a safety hazard. When the user's gas usage situation meets the abnormal judgment condition, it indicates that the user's residence may have a gas safety hazard; in addition, the two abnormal judgment conditions provided in the embodiment of the present application can be implemented by an abnormal judgment model. For example, after obtaining the user's current gas usage and continuous gas usage time, the gas usage and continuous gas usage time can be input into the abnormal judgment model, and the abnormal judgment model directly outputs the abnormal judgment result.
[0053] It can be understood that the gas meter wheel will make a regular "click, click" sound every time it rotates. Therefore, by identifying the number of times the sound appears in the sound signal, it is possible to know how many times the gas meter wheel has rotated. The number of rotations of the wheel is the wheel rotation count described in this embodiment; and then the number of rotations of the wheel is multiplied by the gas consumption represented by one rotation of the wheel to obtain the total gas consumption. Thus, the gas consumption in each time period can be determined by the wheel rotation count in each time period.
[0054] In addition, after obtaining the gas consumption in each time period, the continuous gas consumption time of the user can be determined through the gas consumption in each time period. As an example, assuming that the gas consumption in this minute is detected every 1 minute, when the gas consumption is detected to be greater than zero for 30 consecutive times, it means that the user has been using gas for these 30 minutes, and the continuous gas consumption time is 30 minutes. At the same time, the specific time corresponding to these 30 minutes can be recorded.
[0055] In this embodiment, after the data processing server determines the abnormal judgment conditions of the user and obtains the gas consumption and continuous gas usage duration in each time period, it further determines whether the gas consumption and continuous gas usage duration in each time period meet the abnormal judgment conditions. If so, it indicates that there is a gas safety hazard in the user's residence. If not, it indicates that the user is using gas normally.
[0056] In some embodiments, in step 230, when it is determined based on the gas-using equipment data that there is no equipment that uses gas continuously for a long time, the abnormal judgment conditions include that the continuous gas usage time exceeds the first preset time, the continuous gas usage time during unconventional gas usage time exceeds the second preset time, the continuous gas usage time exceeds the third preset time and the gas usage in the corresponding time period is within the preset range; the first preset time is greater than the second preset time and the third preset time; when it is determined based on the gas-using equipment data that there is equipment that uses gas continuously for a long time, the abnormal judgment conditions include that the continuous gas usage time exceeds the fourth preset time, the continuous gas usage time during unconventional gas usage time exceeds the second preset time, the continuous gas usage time exceeds the third preset time and the gas usage in the corresponding time period is within the preset range; the fourth preset time is greater than the first preset time.
[0057] It should be noted that long-term continuous gas-using equipment refers to equipment that needs to use gas for a long time, such as gas wall-mounted boilers. Gas-using equipment data may include the name of the equipment that needs to use gas at home and the corresponding minimum gas consumption. For example, if the gas-using equipment is a gas stove, when the gas stove is used at the minimum fire, the gas consumption is X cubic meters per hour, and the minimum gas consumption of the gas stove is X cubic meters per hour. Unconventional gas usage time refers to the time when the user does not often use gas. For example, if the user does not use gas between 0:00 and 6:00, 0:00-6:00 can be set as unconventional gas usage time.
[0058] In this embodiment, the user can upload the gas-consuming equipment in the home through the first user terminal, and the data processing server will automatically determine the corresponding minimum gas usage based on the uploaded gas-consuming equipment; in addition, the user can also upload the time period when he or she frequently uses gas through the first user terminal, and the data processing server will automatically determine the unconventional gas usage time based on the uploaded time period.
[0059] It is understandable that different households may have different gas-using devices. For example, some households may only have gas stoves, while some households may have gas stoves, gas wall-mounted boilers, etc. As we all know, devices such as gas wall-mounted boilers may use gas for a long time. Therefore, it is necessary to formulate abnormal judgment conditions specifically according to the gas-using devices of different households, so as to effectively reduce the probability of false detection or missed detection and improve the accuracy of gas safety monitoring.
[0060] Specifically, if it is determined based on the gas-using equipment data that the user's home does not have any equipment that requires long-term continuous gas use, the abnormality determination condition can be set to include: when the continuous gas use duration exceeds a first preset duration, it is determined that the user has abnormal gas use. For example, the first preset duration can be set to 24 hours, that is, when the user uses gas for 24 hours, but there is no equipment in the home that requires 24-hour gas use, it indicates that there may be a gas leak (i.e., abnormal gas use).
[0061] If it is determined based on the gas-using equipment data that the user's home does not have any equipment that requires long-term continuous gas use, the abnormality determination condition can also be set to include: if the continuous gas use time during the unconventional gas use time exceeds the second preset time, it is determined that the user has abnormal gas use. For example, if the unconventional gas use time is 0:00-6:00, and the second preset time is 5 hours, when the user has continuous gas use for more than 5 hours between 0:00 and 6:00, it indicates that there may be a gas leak in the home.
[0062] If it is determined based on the gas-using equipment data that the user's home does not have any equipment that requires long-term continuous gas use, the abnormality judgment condition can also be set to include: if the continuous gas use time exceeds the third preset time and the gas consumption in the corresponding time period is within the preset range, then it is determined that the user has abnormal gas use. It should be noted that the preset range can be set according to the minimum gas consumption of the gas-using equipment at home. For example, if the minimum gas consumption of the gas stove is 0.45 cubic meters per hour, the preset range can be set to 0 cubic meters per hour-0.4 cubic meters per hour, that is, if the user's continuous gas consumption per hour is lower than the minimum gas consumption of the gas-using equipment, it indicates that the user may not be using gas normally, but may have a micro-leakage.
[0063] Furthermore, if it is determined based on the gas-using equipment data that the user's home has equipment that requires long-term continuous gas use, the abnormal judgment condition can be set to include: if the continuous gas use duration exceeds the fourth preset duration, it is determined that the user has abnormal gas use. It should be noted that because the user's home has equipment that requires continuous gas use, the fourth preset duration needs to be set to be greater than the first preset duration. In addition, the fourth preset duration can be set according to the gas use duration of the equipment that uses gas continuously for a long time. For example, if the user has a gas boiler at home, the fourth preset duration can be set to 48 hours, that is, when the user uses gas for 48 hours, it indicates that there may be a gas leak in the home.
[0064] If it is determined based on the gas-using equipment data that the user's home has equipment that requires long-term continuous gas use, the abnormality determination condition can also be set to include: the continuous gas use time during the unconventional gas use time exceeds the second preset time, the continuous gas use time exceeds the third preset time, and the gas consumption in the corresponding time period is within the preset range. These two abnormality determination conditions are the same as in the above embodiment and will not be repeated here.
[0065] It should be noted that the first preset time length, the second preset time length, the third preset time length and the fourth preset time length can all be set manually according to actual conditions. No specific limitation is made here on the first preset time length, the second preset time length, the third preset time length and the fourth preset time length. Among them, the first preset time length needs to be greater than the second preset time length and the third preset time length, and the fourth preset time length needs to be greater than the first preset time length.
[0066] Figure 3 This is the second flow chart of the gas safety monitoring method of the embodiment of the present application. Figure 3 As shown, in some embodiments, step 210 of obtaining the rotation count of the gas meter wheel in each time period may include the following steps:
[0067] Step 310: Acquire the sound signal of the gas meter in each time period.
[0068] Step 320: extracting time domain features of the sound signal in each time period to obtain the time domain features of each time period.
[0069] Step 330: Determine the corresponding frequency domain signal according to the sound signal in each time period, and extract the frequency domain features of the frequency domain signal in each time period to obtain the frequency domain features of each time period.
[0070] Step 340: Input the time domain features of each time period and the frequency domain features of each time period into a pre-trained detection model to obtain the character wheel rotation count of each time period.
[0071] It should be noted that the sound signal of the gas meter refers to the sound emitted when the gas meter wheel rotates, which can be collected by a sound collection device. The sound collection device can be any device that can collect sound signals, such as a sound pickup sensor, a loudspeaker, etc., which are available on the market. The sound collection device is not specifically limited here. The time period can be a pre-set interval time. For example, 1 minute can be used as a time period. In this embodiment, the sound collection device can collect sound signals for 1 minute and output the sound signals within the time period to the data processing server so that the data processing server can process the sound signals within the time period.
[0072] Specifically, the sound collection device can be installed on the gas meter in the user's home to collect the sound signal emitted by the rotation of the gas meter wheel in real time; after the sound collection device collects the sound signal of a time period, the sound signal of the time period can be sent to the data processing server, and the sound collection device re-collects the sound signal of the next time period. In some embodiments, the sound collection device can collect the sound signal of the gas meter in real time and transmit it to the data processing server synchronously, and then the data processing server performs frame processing on the sound signal according to the preset time period to obtain the sound signal of each time period. The data transmission method of the sound collection device is not specifically limited here.
[0073] It is understandable that when the sound collection device collects the sound of the gas meter wheel turning, it may also collect other sounds, such as the sound of cooking, the sound of people, etc. Therefore, after obtaining the sound signals of each time period, the data processing server can perform preliminary denoising on the sound signals, so as to ensure the accuracy of subsequent data analysis.
[0074] In addition, it should be noted that the sound signal is acquired in time sequence, so the sound signal is a time domain signal.
[0075] Specifically, after the data processing server obtains the sound signals of each time period, the sound signals of each time period can be preprocessed first. In this embodiment, the preprocessing may include: pre-emphasis, framing, windowing and other operations to improve specific indicators of the sound signal and reduce the computational complexity in subsequent processing. Among them, the pre-emphasis operation can improve the signal-to-noise ratio of the sound signal; the framing operation is to divide the continuous time domain signal (ie, the sound signal) into some fixed-length segments, each segment is called a frame; the windowing operation is to weight each frame of the signal with a window function. Commonly used window functions include Hanning window, Hamming window, etc., and the purpose is to reduce the spectrum leakage of the signal. The specific pre-emphasis, framing and windowing process can refer to the existing process, which will not be repeated here.
[0076] After preprocessing the sound signals of each time period, further, the time domain features of the sound signals of each time period can be extracted to obtain the time domain features of each time period. In some embodiments, the time domain features may include the short-time energy and short-time zero-crossing rate of each frame of the sound signal, wherein the short-time energy can distinguish between unvoiced and voiced sounds; in addition, the short-time zero-crossing rate indicates the number of times a frame of sound signal passes through the zero value. For a continuous signal, zero crossing means that the waveform passes through the time axis, while for a discrete signal, zero crossing means that the signs of adjacent sampling points change, and the short-time zero-crossing rate can reflect the frequency information of the signal to a certain extent. Therefore, the short-time energy and short-time zero-crossing rate of the sound signal can reflect the amplitude and frequency changes of the signal.
[0077] In this embodiment, a fast Fourier transform (FFT) may be used to convert a time domain signal (ie, a sound signal) into a frequency domain signal, and frequency domain features may be extracted from the frequency domain signal. In some implementations, the frequency domain features may include spectrum energy and spectrum centroid.
[0078] After obtaining the time domain features of each time period and the frequency domain features of each time period, the time domain features and the frequency domain features are used as inputs to a pre-trained detection model, and the pre-trained detection model outputs the corresponding character wheel rotation count.
[0079] The following is a detailed introduction to the training process of the detection model.
[0080] Figure 4 This is the third flow chart of the gas safety monitoring method of the embodiment of the present application. Figure 4 As shown, in some embodiments, the detection model can be trained by the following steps:
[0081] Step 410: Acquire a training sample set, where the training sample set includes at least one sample sound signal with labeled information, and pre-process the sample sound signal in the training sample set.
[0082] Step 420: extracting time domain features from the preprocessed sample sound signal to obtain sample time domain features.
[0083] Step 430: Determine a sample frequency domain signal according to the preprocessed sample sound signal, and extract frequency domain features from the sample frequency domain signal to obtain sample frequency domain features.
[0084] Step 440: Input the sample time domain features and the sample frequency domain features into the detection model to obtain the sample word wheel rotation count.
[0085] Step 450: Optimize the parameters of the detection model according to the sample word wheel rotation count using the back propagation algorithm and the gradient descent optimizer until the detection model converges to obtain a pre-trained detection model.
[0086] In this embodiment, the detection model includes an input layer, a hidden layer, and an output layer. The parameters of the detection model can be preset and optimized through continuous learning. Specifically, a model structure of a deep learning model that can process sequence data can be selected as the model structure of the detection model, for example, a hybrid model of a long short-term memory network (LSTM), a convolutional neural network (CNN) and a recurrent neural network (RNN), etc. The model structure of the detection model is not specifically limited here.
[0087] The training sample set may include several sample sound signals with the sound of the gas meter wheel rotating. Furthermore, the sample sound signals in the training sample set may be annotated first, and the annotation information may include the starting point of the wheel rotation, the number of rotations, abnormal sounds, etc., so that the detection model can adaptively learn to recognize the wheel rotation sound and filter abnormal sounds according to the annotation information. It should be noted that since the sound signal may also contain other sounds besides the gas meter wheel rotation sound, such as human sounds, object collision sounds, etc., these sounds are abnormal sounds, so the detection model must not only learn to recognize the wheel rotation sound and count the wheel rotations, but also learn to filter out abnormal sounds.
[0088] Furthermore, the labeled sample sound signal is subjected to time domain feature extraction to obtain corresponding sample time domain features, which may include short-time energy and short-time zero-crossing rate. The sample sound signal is then converted into a sample frequency domain signal using fast Fourier transform, and frequency domain feature extraction is performed on the sample frequency domain signal to obtain sample frequency domain features, which may include spectrum energy and spectrum centroid.
[0089] Furthermore, the constructed detection model is trained with the sample time domain features and the sample frequency domain features as input and the sample word wheel rotation count as output. Specifically, the input layer of the detection model receives the sample time domain features and the sample frequency domain features, the hidden layer performs feature transformation by learning the inherent laws of the sample time domain features and the sample frequency domain features, and the output layer outputs the final sample word wheel rotation count, so that the detection model gradually learns the ability to recognize the word wheel rotation sound from the sound features.
[0090] In this embodiment, the back propagation algorithm and the gradient descent optimizer can be used to optimize the parameters of the detection model according to the sample word wheel rotation count output by the output layer. In addition, the generalization ability of the detection model can be improved by adjusting hyperparameters such as learning rate and batch size and applying regularization techniques to prevent overfitting.
[0091] In this embodiment, a verification sample set can also be obtained, which also contains several sound signals with the sound of the gas meter wheel rotating. The performance of the trained detection model can be evaluated through the verification sample set, and the accuracy, recall rate, F1 score and other indicators can be used to measure the effect of the model in recognizing the sound of the wheel rotating. Further, the parameters of the model are adjusted and optimized according to the evaluation results, for example, the model structure is modified, the data enhancement algorithm is added, the training strategy is adjusted, etc., to improve the performance of the detection model, until the detection model converges, and a pre-trained detection model can be obtained.
[0092] In some embodiments, the gas safety monitoring results include monitoring abnormalities and monitoring normalities. In step 240, the gas safety monitoring results are determined based on the abnormality judgment conditions, the gas usage in each time period, and the continuous gas usage duration. This may include: when the gas usage in each time period and the continuous gas usage duration meet the abnormality judgment conditions, determining that the gas safety monitoring results are monitoring abnormalities.
[0093] Specifically, if it is determined based on the gas-using equipment data that the user's home does not have any equipment that requires continuous gas use, the process of determining the gas safety monitoring result can be: if the detected continuous gas use time satisfies the requirement of being less than or equal to the first preset time, and also satisfies the requirement of being less than or equal to the second preset time during unconventional gas use, and satisfies the requirement of being less than or equal to the third preset time and the corresponding gas usage volume is not within the preset range, then the gas safety monitoring result of the user is determined to be normal monitoring. If the detected continuous gas use time satisfies the requirement of being greater than the first preset time, or is greater than the second preset time during unconventional gas use, or is greater than the third preset time and the corresponding gas usage volume is within the preset range, then the gas safety monitoring result of the user is determined to be abnormal monitoring.
[0094] If it is determined based on the gas-using equipment data that the user's home has equipment that requires continuous gas use, the process of determining the gas safety monitoring result can be: if the detected continuous gas use time satisfies less than or equal to the fourth preset time, and also satisfies less than or equal to the second preset time during unconventional gas use, and satisfies less than or equal to the third preset time and the corresponding gas usage is not within the preset range, then the user's gas safety monitoring result is determined to be normal. If the detected continuous gas use time satisfies greater than the fourth preset time, or satisfies greater than the second preset time during unconventional gas use, or satisfies greater than the third preset time and the corresponding gas usage is within the preset range, then the user's gas safety monitoring result is determined to be abnormal.
[0095] In some embodiments, after step 240, the gas safety monitoring method may further include the following steps: generating alarm prompt information according to the gas safety monitoring result; and sending the alarm prompt information to the first user terminal and the second user terminal.
[0096] It should be noted that the alarm prompt information can be displayed in the form of a pop-up window through the first user terminal or the second user terminal.
[0097] Specifically, if the gas safety monitoring result is abnormal, the data processing server generates an alarm prompt message. In this embodiment, the alarm prompt message sent to the first user terminal and the second user terminal can be different or the same.
[0098] For example, if the gas safety monitoring result is abnormal monitoring, the alarm prompt information sent to the first user terminal may include words such as "gas not turned off" and "suspected gas leakage" to promptly remind the user that there is a gas leak or abnormally large gas flow at home, so that the user can respond in time. The alarm prompt information sent to the second user terminal may include the home address of the user with abnormal gas monitoring, actual gas usage, continuous gas usage time, etc., so that the management personnel can take safety measures in time when the user cannot solve the problem of gas leakage in time, such as cutting off the gas supply to the user.
[0099] Therefore, this embodiment uses deep learning to automatically identify the sound of the gas meter wheel turning and count it, so as to achieve real-time and remote acquisition of the user's gas usage data; then, by specifying abnormal judgment conditions for the user in a targeted manner, and based on the gas usage data obtained in real time, it can accurately and comprehensively judge whether there are gas safety hazards such as small flow leakage, long-term continuous gas use, etc. in the user's home. If so, an alarm will be issued in time, which improves the real-time and accuracy of gas safety monitoring, discovers small gas leakage faults in advance, and prevents small hazards from becoming big accidents.
[0100] Figure 5 It is a structural schematic diagram of a gas safety monitoring device according to an embodiment of the present application.
[0101] Based on the above embodiments, the present application also provides a gas safety monitoring device, such as Figure 5 As shown, the gas safety monitoring device 500 may include: an acquisition module 510, a first determination module 520, a second determination module 530 and a monitoring module 540. The acquisition module 510 is used to acquire the user's gas usage data and the word wheel rotation count of each time period of the gas meter, and the gas usage data includes gas usage equipment data and unconventional gas usage time; the first determination module 520 is used to determine the user's corresponding abnormal judgment condition according to the gas usage data; the second determination module 530 is used to determine the gas usage and continuous gas usage time of each time period according to the word wheel rotation count of each time period; the monitoring module 540 is used to determine the gas safety monitoring result according to the abnormal judgment condition, the gas usage and continuous gas usage time of each time period.
[0102] In some embodiments, when it is determined based on the gas-using equipment data that there is no equipment that uses gas continuously for a long time, the abnormal judgment conditions include that the continuous gas usage time exceeds the first preset time, the continuous gas usage time during unconventional gas usage time exceeds the second preset time, the continuous gas usage time exceeds the third preset time and the gas usage in the corresponding time period is within the preset range; the first preset time is greater than the second preset time and the third preset time; when it is determined based on the gas-using equipment data that there is equipment that uses gas continuously for a long time, the abnormal judgment conditions include that the continuous gas usage time exceeds the fourth preset time, the continuous gas usage time during unconventional gas usage time exceeds the second preset time, the continuous gas usage time exceeds the third preset time and the gas usage in the corresponding time period is within the preset range; the fourth preset time is greater than the first preset time.
[0103] In some embodiments, the acquisition module 510 is specifically used to: obtain the sound signal of the gas meter in each time period; perform time domain feature extraction on the sound signal in each time period to obtain the time domain features of each time period; determine the corresponding frequency domain signal according to the sound signal in each time period, and perform frequency domain feature extraction on the frequency domain signal in each time period to obtain the frequency domain features of each time period; input the time domain features of each time period and the frequency domain features of each time period into a pre-trained detection model to obtain the character wheel rotation count of each time period.
[0104] In some embodiments, the training process of the detection model includes: obtaining a training sample set, the training sample set includes at least one sample sound signal with labeled information, and preprocessing the sample sound signal in the training sample set; extracting time domain features from the preprocessed sample sound signal to obtain sample time domain features; determining a sample frequency domain signal based on the preprocessed sample sound signal, and extracting frequency domain features from the sample frequency domain signal to obtain sample frequency domain features; inputting the sample time domain features and the sample frequency domain features into the detection model to obtain a sample word wheel rotation count; optimizing the parameters of the detection model using a back propagation algorithm and a gradient descent optimizer and based on the sample word wheel rotation count until the detection model converges to obtain a pre-trained detection model.
[0105] In some implementations, the time domain features include short-time energy and short-time zero-crossing rate of the sound signal, and the frequency domain features include spectrum energy and spectrum centroid of the frequency domain signal.
[0106] In some embodiments, the gas safety monitoring result includes monitoring anomalies; the monitoring module 540 can be specifically used to: determine that the gas safety monitoring result is a monitoring anomaly when the gas consumption and continuous gas consumption duration in each time period meet the abnormality determination conditions.
[0107] In some embodiments, the gas safety monitoring device 500 may further include an alarm module (not shown in the figure), which may be used to generate alarm prompt information according to the gas safety monitoring results; and send the alarm prompt information to the first user terminal and the second user terminal.
[0108] Thus, the user's gas usage data and the real-time collection of the gas meter's wheel rotation counts in each time period are acquired through the acquisition module 510 to obtain the user's daily gas usage; the first determination module 520 then determines the abnormal judgment conditions in a targeted manner based on the user's gas usage data, thereby ensuring the accuracy of gas safety monitoring; the second determination module 530 determines the gas usage and continuous gas usage duration of each time period based on the wheel rotation counts in each time period, that is, the user's current actual gas usage; finally, the monitoring module 540 determines the gas safety monitoring results based on the abnormal judgment conditions, the gas usage and continuous gas usage duration of each time period, thereby, without manual reading, the user's actual gas usage in each time period can be obtained in real time, so that gas safety can be monitored in real time based on the actual gas usage in each time period and the abnormal judgment conditions, thereby realizing real-time, remote metering and accurate safety monitoring of gas.
[0109] It should be noted that for details not disclosed in the gas safety monitoring device of this embodiment, please refer to the details disclosed in the embodiment of the gas safety monitoring method in the embodiments of this specification, and no further details will be given here.
[0110] Based on the above embodiments, Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6As shown, the electronic device may include: a processor (processor) 610, a communication interface (Communications Interface) 620, a memory (memory) 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 can call the logic instructions in the memory 630 to execute the gas safety monitoring method, which includes: obtaining the user's gas usage data and the word wheel rotation count of each time period of the gas meter, the gas usage data including the gas usage equipment data and the unconventional gas usage time; determining the user's corresponding abnormal judgment condition according to the gas usage data; determining the gas usage and continuous gas usage time of each time period according to the word wheel rotation count of each time period; determining the gas safety monitoring result according to the abnormal judgment condition, the gas usage and continuous gas usage time of each time period; wherein, when it is determined according to the gas usage equipment data that there is no equipment that continuously uses gas for a long time, the abnormal judgment condition The conditions include continuous gas usage exceeding the first preset duration, continuous gas usage exceeding the second preset duration during unconventional gas usage time, continuous gas usage exceeding the third preset duration and the gas usage in the corresponding time period is within the preset range; the first preset duration is greater than the second preset duration and the third preset duration; when it is determined based on the gas-using equipment data that there is a device that uses gas continuously for a long time, the abnormal judgment conditions include continuous gas usage exceeding the fourth preset duration, continuous gas usage exceeding the second preset duration during unconventional gas usage time, continuous gas usage exceeding the third preset duration and the gas usage in the corresponding time period is within the preset range; the fourth preset duration is greater than the first preset duration.
[0111] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0112] On the basis of the above embodiments, on the other hand, the present invention further provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the gas safety monitoring method provided by the above methods, which includes: obtaining the user's gas usage data and the character wheel rotation count of each time period of the gas meter, the gas usage data including gas usage equipment data and unconventional gas usage time; determining the user's corresponding abnormal judgment condition based on the gas usage data; determining the gas usage and continuous gas usage time of each time period based on the character wheel rotation count of each time period; determining the gas safety monitoring result based on the abnormal judgment condition, the gas usage and continuous gas usage time of each time period. ; Wherein, when it is determined based on the gas-using equipment data that there is no equipment that uses gas continuously for a long time, the abnormal judgment conditions include that the continuous gas usage time exceeds the first preset time, the continuous gas usage time during unconventional gas usage time exceeds the second preset time, the continuous gas usage time exceeds the third preset time and the gas consumption in the corresponding time period is within the preset range; the first preset time is greater than the second preset time and the third preset time; when it is determined based on the gas-using equipment data that there is equipment that uses gas continuously for a long time, the abnormal judgment conditions include that the continuous gas usage time exceeds the fourth preset time, the continuous gas usage time during unconventional gas usage time exceeds the second preset time, the continuous gas usage time exceeds the third preset time and the gas consumption in the corresponding time period is within the preset range; the fourth preset time is greater than the first preset time.
[0113] On the basis of the above embodiments, on another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the processor executes the gas safety monitoring method provided by the above methods, the method comprising: obtaining the user's gas usage data and the word wheel rotation count of each time period of the gas meter, the gas usage data including the gas usage equipment data and the unconventional gas usage time; determining the user's corresponding abnormal judgment condition according to the gas usage data; determining the gas usage and continuous gas usage time of each time period according to the word wheel rotation count of each time period; determining the gas safety monitoring result according to the abnormal judgment condition, the gas usage and the continuous gas usage time of each time period; wherein, after determining the abnormal judgment condition according to the gas usage equipment data, When it is determined that there is no equipment that uses gas continuously for a long time, the abnormal judgment conditions include that the continuous gas usage time exceeds the first preset time, the continuous gas usage time during unconventional gas usage time exceeds the second preset time, the continuous gas usage time exceeds the third preset time and the gas usage in the corresponding time period is within the preset range; the first preset time is greater than the second preset time and the third preset time; when it is determined based on the gas-using equipment data that there is equipment that uses gas continuously for a long time, the abnormal judgment conditions include that the continuous gas usage time exceeds the fourth preset time, the continuous gas usage time during unconventional gas usage time exceeds the second preset time, the continuous gas usage time exceeds the third preset time and the gas usage in the corresponding time period is within the preset range; the fourth preset time is greater than the first preset time.
[0114] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0115] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
Claims
1. A gas safety monitoring method, characterized in that: include: Obtain the user's gas usage data and the gas meter wheel rotation count for each time period, wherein the gas usage data includes gas usage equipment data and unconventional gas usage time; Determining the corresponding abnormality determination condition of the user according to the gas usage data; Determine the gas consumption and continuous gas consumption duration of each time period according to the rotation count of the character wheel in each time period; Determine the gas safety monitoring result according to the abnormality determination condition, the gas consumption in each time period and the continuous gas consumption duration; Wherein, when it is determined according to the gas-using equipment data that there is no equipment that continuously uses gas for a long time, the abnormal determination conditions include that the continuous gas usage time exceeds the first preset time, the continuous gas usage time during the unconventional gas usage time exceeds the second preset time, the continuous gas usage time exceeds the third preset time and the gas usage in the corresponding time period is within a preset range; the first preset time is greater than the second preset time and the third preset time; In the case where it is determined according to the gas-using equipment data that there is a device that uses gas continuously for a long time, the abnormal determination conditions include that the continuous gas usage time exceeds the fourth preset time, the continuous gas usage time during the unconventional gas usage time exceeds the second preset time, the continuous gas usage time exceeds the third preset time and the gas usage in the corresponding time period is within the preset range; the fourth preset time is greater than the first preset time; The process of obtaining the rotation count of the gas meter wheel in each time period includes: Acquire the sound signal of the gas meter in each time period; Extracting time domain features of the sound signal in each time period to obtain time domain features of each time period; Determine a corresponding frequency domain signal according to the sound signal in each time period, and extract frequency domain features of the frequency domain signal in each time period to obtain frequency domain features of each time period; Input the time domain features of each time period and the frequency domain features of the corresponding time period into a pre-trained detection model to obtain the character wheel rotation count of each time period; The training process of the detection model includes: Acquire a training sample set, the training sample set including at least one sample sound signal with labeled information, and preprocess the sample sound signal in the training sample set; Extracting time domain features from the preprocessed sample sound signal to obtain sample time domain features; Determine a sample frequency domain signal according to the preprocessed sample sound signal, and extract frequency domain features from the sample frequency domain signal to obtain sample frequency domain features; Input the sample time domain features and the sample frequency domain features into the detection model to obtain the sample word wheel rotation count; The parameters of the detection model are optimized according to the sample word wheel rotation count by using a back propagation algorithm and a gradient descent optimizer until the detection model converges to obtain the pre-trained detection model.
2. The gas safety monitoring method according to claim 1, characterized in that: The time domain features include the short-time energy and the short-time zero-crossing rate of the sound signal, and the frequency domain features include the spectrum energy and the spectrum centroid of the frequency domain signal.
3. The gas safety monitoring method according to claim 1, characterized in that: The determining of the gas safety monitoring result according to the abnormality determination condition, the gas consumption in each time period and the continuous gas consumption duration includes: When the gas usage in each time period and the continuous gas usage duration meet the abnormality determination condition, the gas safety monitoring result is determined to be a monitoring abnormality.
4. The gas safety monitoring method according to any one of claims 1 to 3, characterized in that: After determining the gas safety monitoring result according to the abnormality determination condition, the gas usage in each time period and the continuous gas usage duration, the method further includes: Generate alarm information according to the gas safety monitoring result; The alarm prompt information is sent to the first user terminal and the second user terminal.
5. A gas safety monitoring device, characterized in that: include: An acquisition module, used to acquire the user's gas usage data and the gas meter's wheel rotation count for each time period, wherein the gas usage data includes gas usage equipment data and unconventional gas usage time; A first determination module, used to determine the abnormality determination condition corresponding to the user according to the gas usage data; A second determination module is used to determine the gas consumption and continuous gas consumption duration of each time period according to the rotation count of the character wheel in each time period; A monitoring module, used to determine a gas safety monitoring result according to the abnormality determination condition, the gas consumption in each time period and the continuous gas consumption duration; Wherein, when it is determined according to the gas-using equipment data that there is no equipment that continuously uses gas for a long time, the abnormal determination conditions include that the continuous gas usage time exceeds the first preset time, the continuous gas usage time during the unconventional gas usage time exceeds the second preset time, the continuous gas usage time exceeds the third preset time and the gas usage in the corresponding time period is within a preset range; the first preset time is greater than the second preset time and the third preset time; In the case where it is determined based on the gas-using equipment data that there is a device that uses gas continuously for a long time, the abnormal determination conditions include that the continuous gas usage time exceeds the fourth preset time, the continuous gas usage time during the unconventional gas usage time exceeds the second preset time, the continuous gas usage time exceeds the third preset time and the gas usage in the corresponding time period is within the preset range; the fourth preset time is greater than the first preset time; The acquisition module is specifically used to: acquire the sound signal of each time period of the gas meter; extract the time domain features of the sound signal of each time period to obtain the time domain features of each time period; determine the corresponding frequency domain signal according to the sound signal of each time period, and extract the frequency domain features of the frequency domain signal of each time period to obtain the frequency domain features of each time period; input the time domain features of each time period and the frequency domain features of each time period into a pre-trained detection model to obtain the word wheel rotation count of each time period; The training process of the detection model includes: obtaining a training sample set, the training sample set including at least one sample sound signal with labeled information, and preprocessing the sample sound signal in the training sample set; extracting time domain features from the preprocessed sample sound signal to obtain sample time domain features; determining a sample frequency domain signal based on the preprocessed sample sound signal, and extracting frequency domain features from the sample frequency domain signal to obtain sample frequency domain features; inputting the sample time domain features and the sample frequency domain features into the detection model to obtain a sample word wheel rotation count; optimizing the parameters of the detection model based on the sample word wheel rotation count using a back propagation algorithm and a gradient descent optimizer until the detection model converges to obtain the pre-trained detection model.
6. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the program, the gas safety monitoring method according to any one of claims 1 to 4 is implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the gas safety monitoring method according to any one of claims 1 to 4 is implemented.
