A flammable and toxic gas early warning method and system for port safety production

By pre-processing and selecting the digital signals of combustible and toxic gases in port safety production, combined with comprehensive evaluation of signal reconstruction error, feature distinction and signal-to-noise ratio, the limitations of signal processing methods in the prior art are solved, resulting in the following: The accuracy of the early warning system has achieved higher warning accuracy and reliability.

CN118762482BActive Publication Date: 2024-12-03TIANJIN RES INST FOR WATER TRANSPORT ENG M O T +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411223733.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-03
Publication Date
2024-12-03
Estimated Expiration
2044-09-03

AI Technical Summary

Technical Problem

The prior art early warning system used for combustible and toxic gases in port safety production cannot promptly and accurately identify and warn of abnormal situations. It is mainly due to the limitations of signal processing methods, which affects the accuracy and reliability of the early warning system.

Method used

By obtaining the digital signals of combustible and toxic gases in the port operating area for pre-processing, including denoising and eliminating invalid signals, using wavelet functions for signal decomposition and denoising, combined with comprehensive evaluation of signal reconstruction error, feature distinction and signal-to-noise ratio The function selects the optimal wavelet function for processing to ensure the effect of signal processing.

Benefits of technology

It improves the accuracy and reliability of the early warning system, can capture the key features of the signal more comprehensively, ensures stable performance under different signal conditions, reduces signal reconstruction errors, and improves the recognition accuracy of abnormal situations of combustible and toxic gases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762482B_ABST
    Figure CN118762482B_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of safe production in ports, and discloses a flammable and toxic gas early warning method and system for safe production in ports. The method comprises the following steps: obtaining a digital signal, dividing the digital signal into a high-frequency signal and a low-frequency signal, defining an evaluation index, constructing a comprehensive evaluation function according to the evaluation index, performing wavelet transformation on the high-frequency signal and the low-frequency signal and calculating the evaluation index, and selecting an optimal wavelet function according to the comprehensive evaluation function; the optimal wavelet function comprises a high-frequency optimal wavelet function and a low-frequency optimal wavelet function; utilizing the high-frequency optimal wavelet function and the low-frequency optimal wavelet function to denoise the high-frequency signal and the low-frequency signal to obtain the denoised high-frequency signal and the low-frequency signal; analyzing the preprocessed digital signal and obtaining the analysis result, implementing an early warning mechanism, and independently processing the designated digital signal to meet the optimal processing requirements of signal processing, fully capturing the key features of the signal, and improving the accuracy and reliability of the early warning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of safe production in ports, and in particular to a flammable and toxic gas early warning method and system for safe production in ports. Background Art

[0002] As ports move from the construction phase to the maintenance phase, the frequency of maintenance has greatly increased, and the frequency of high-risk operations is extremely high. There is a lack of intelligent analysis and judgment of violations and safety risks in various operations involved in port safety production, supported by new technologies. Especially in the supervision of port safety production operations, there is a lack of technical support for off-site law enforcement, and the risks of various participants and key links involved in the operation are difficult to identify. It is difficult to manage human factors in the operation area, and the standardized management of operations needs to be improved. High-risk operations represented by hot work operations are the most prone to accidents in the field of port safety, with high-risk and high-frequency characteristics. According to statistics, more than 90% of the production safety accidents that occurred in the port field in the past five years were related to special high-risk operations such as hot work.

[0003] At present, there are some early warning technologies for combustible and toxic gases on the market, which mainly focus on signal processing and analysis to achieve early warning. The signal processing methods in the existing technology often use fixed wavelet functions or other fixed signal processing algorithms, and the characteristics of different signals vary greatly, which makes it difficult for a single processing method to meet the optimal processing requirements of all signals, and it is also impossible to fully capture the key features in the signal, resulting in the accuracy and reliability of the early warning system being affected. Due to the limitations of signal processing and analysis methods, the early warning system in the existing technology may not be able to timely and accurately identify and warn of abnormal situations of combustible and toxic gases. Summary of the invention

[0004] In order to solve the above technical problems, the present invention provides a flammable and toxic gas early warning method and system for port safety production to achieve accurate early warning.

[0005] The present invention provides a flammable and toxic gas early warning method for port safety production, comprising:

[0006] Step S1, obtaining a digital signal of flammable and toxic gases in the port operation area;

[0007] Step S2, preprocessing the digital signal to obtain a preprocessed digital signal; the preprocessing includes: digital signal denoising and eliminating invalid digital signals;

[0008] The digital signal denoising specifically includes the following steps:

[0009] Step S21, dividing the digital signal into a high-frequency signal and a low-frequency signal according to the frequency of gas concentration change;

[0010] Step S22, obtaining candidate wavelet functions, and combining all candidate wavelet functions into a database;

[0011] Step S23, defining evaluation indicators according to the high-frequency signal and the low-frequency signal, and constructing a comprehensive evaluation function according to the evaluation indicators;

[0012] Step S24, traversing each wavelet function in the database, performing wavelet transformation on the high-frequency signal and the low-frequency signal respectively and calculating the evaluation index, and selecting the optimal wavelet function according to the comprehensive evaluation function; the optimal wavelet function includes the high-frequency optimal wavelet function and the low-frequency optimal wavelet function;

[0013] Step S25, denoising the high-frequency signal using the high-frequency optimal wavelet function to obtain a denoised high-frequency signal; denoising the low-frequency signal using the low-frequency optimal wavelet function to obtain a denoised low-frequency signal;

[0014] Step S3, analyzing the preprocessed digital signal and obtaining analysis results, and implementing an early warning mechanism based on the analysis results.

[0015] Furthermore, obtaining the digital signal of the flammable and toxic gas in the port operation area specifically includes the following steps:

[0016] Step S11, using a gas sensor array to monitor the concentration of combustible and toxic gases in the port operation area in real time;

[0017] Step S12, obtaining the original electrical signal monitored by the gas sensor array through a data sensor;

[0018] Step S13, converting the original electrical signal into a digital signal.

[0019] Furthermore, the evaluation indicators include: signal reconstruction error, feature discrimination, and signal-to-noise ratio.

[0020] Furthermore, the comprehensive evaluation function is:

[0021] ;

[0022] In the formula, G represents the comprehensive evaluation function, E represents the signal reconstruction error, represents the weight of the signal reconstruction error, D represents the feature discrimination, represents the weight of feature discrimination, S represents the signal-to-noise ratio, Represents the weight of the signal-to-noise ratio.

[0023] Furthermore, the weights of the signal reconstruction error, feature discrimination, and signal-to-noise ratio in the comprehensive evaluation function are obtained by specifically including the following steps:

[0024] Step S241, constructing a weight prediction model;

[0025] Step S242, obtaining a training set according to the denoised high-frequency signal and the low-frequency signal, training the weight prediction model, and obtaining a trained weight prediction model;

[0026] Step S243, the signal-to-noise ratio, complexity, and stability of the digital signal to be predicted are input into the trained weight prediction model, and the weights of the signal reconstruction error, feature discrimination, and signal-to-noise ratio are output.

[0027] Further, historical digital signals are obtained, 2 / 5 high-frequency signals and 2 / 5 low-frequency signals are selected from the high-frequency signals and low-frequency signals of the historical digital signals, respectively, and the signal-to-noise ratio, complexity, and stability are calculated for each high-frequency signal and low-frequency signal;

[0028] Define initial weights for the signal-to-noise ratio, complexity, and stability of each high-frequency signal and low-frequency signal;

[0029] Each high-frequency signal and low-frequency signal in the historical digital signal, the signal-to-noise ratio, complexity, and stability corresponding to the high-frequency signal and the low-frequency signal, as well as the signal-to-noise ratio weight, complexity weight, and stability weight corresponding to the calibrated high-frequency signal and the low-frequency signal in the historical digital signal, and the initial signal-to-noise ratio weight, initial complexity weight, and initial stability weight of each high-frequency signal and low-frequency signal are used as training sets.

[0030] Furthermore, the complexity calculation process is: according to the high-frequency signal and the low-frequency signal, the signal length, the number of peaks, the energy distribution, and the frequency of the high-frequency signal and the low-frequency signal are obtained, and the complexity is calculated.

[0031] Furthermore, the calculation process of stability is: according to the high-frequency signal and the low-frequency signal, the variance, mean, and instantaneous change rate of the high-frequency signal and the low-frequency signal are obtained, and the stability is calculated.

[0032] The present invention also provides a flammable and toxic gas early warning system for port safety production, which is used to execute the above-mentioned flammable and toxic gas early warning method for port safety production, and includes the following modules:

[0033] Digital signal acquisition module: used to obtain digital signals of flammable and toxic gases in the port operation area;

[0034] Preprocessing module: connected to the digital signal acquisition module, used to preprocess the digital signal to obtain a preprocessed digital signal;

[0035] Early warning module: connected with the preprocessing module, used to analyze the preprocessed digital signal and obtain the analysis results, and implement the early warning mechanism according to the analysis results.

[0036] The embodiments of the present invention have the following technical effects:

[0037] 1. The present invention first classifies digital signals, defines evaluation indicators for each type of digital signal, sets a comprehensive evaluation function based on the evaluation indicators, and finally selects the optimal wavelet function according to the comprehensive evaluation function, so that different types of digital signals select the corresponding optimal wavelet function for denoising. It can independently process the specified digital signal to meet the optimal processing requirements of signal processing, fully capture the key features of the signal, and improve the accuracy and reliability of the early warning.

[0038] 2. The present invention considers the three evaluation indicators of signal reconstruction error, feature discrimination, and signal-to-noise ratio at the same time, sets a comprehensive evaluation function to comprehensively evaluate the effect of digital signal processing, maintains stable performance under different signal conditions, ensures that the result of signal processing retains the important features of the original signal, has a high signal-to-noise ratio, and reduces the signal reconstruction error. This comprehensive evaluation method can evaluate the effect of signal processing more objectively and comprehensively, and helps to improve the performance of the early warning system.

[0039] 3. The present invention uses signal-to-noise ratio, complexity, and stability as training sets. The model can learn the optimal weight combination under different signal conditions to achieve the best signal processing effect, ensuring that the optimal wavelet function obtained based on the comprehensive evaluation function will be more accurate, laying the foundation for the subsequent identification of abnormal conditions of combustible and toxic gases, and improving the early warning accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 It is a flow chart of a flammable and toxic gas early warning method for port safety production provided by an embodiment of the present invention;

[0042] Figure 2 It is a structural diagram of a flammable and toxic gas early warning system for port safety production provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.

[0044] Figure 1 This is a flow chart of a flammable and toxic gas early warning method for port safety production provided by an embodiment of the present invention. Figure 1 , including:

[0045] Step S1, obtaining a digital signal of flammable and toxic gases in a port operation area.

[0046] Step S11, using a gas sensor array to monitor the concentration of combustible and toxic gases in the port operation area in real time;

[0047] Deploy multiple different types of gas sensors to form a gas sensor array for detecting a variety of flammable and toxic gases. According to the characteristics of the port operation area, the gas sensor array is installed at key locations to ensure full coverage and to monitor the changes in gas concentration in the entire area in real time. The gas sensor array continuously monitors gas concentration.

[0048] Step S12, obtaining the original electrical signal monitored by the gas sensor array through a data sensor;

[0049] A data sensor is integrated on each gas sensor to capture the raw electrical signal output by the sensor. The data sensor is responsible for obtaining the raw electrical signal from the gas sensing array and converting it into a form suitable for subsequent processing.

[0050] Step S13, converting the original electrical signal into a digital signal.

[0051] An analog-to-digital converter is used to convert the analog electrical signal output by the gas sensor array into a digital signal. Before the analog-to-digital conversion, the original electrical signal is appropriately adjusted, such as amplification and filtering, to improve the signal quality. The analog-to-digital converter converts the conditioned electrical signal into a digital signal for subsequent processing and analysis.

[0052] Step S2, preprocessing the digital signal to obtain a preprocessed digital signal; the preprocessing includes: digital signal denoising and eliminating invalid digital signals.

[0053] Invalid digital signals refer to digital signals with large noise. Invalid digital signals can be eliminated by setting a rejection threshold Z. Digital signals greater than or equal to the threshold Z are eliminated, and digital signals less than the threshold Z are retained as data signals to be denoised.

[0054] Next, the data signal to be denoised is subjected to denoising processing.

[0055] The denoising process specifically includes the following steps:

[0056] Step S21, dividing the digital signal into a high-frequency signal and a low-frequency signal according to the frequency of gas concentration change;

[0057] According to the frequency of gas concentration change, the digital signal is divided into a high-frequency signal and a low-frequency signal. In this embodiment, Fourier transform can be used to determine the frequency component of the signal and divide the signal according to the frequency range. For example, the threshold frequency f is set c , the frequency is greater than f c The signal is classified as a high frequency signal, which is lower than and equal to f c The signal is classified as a low frequency signal.

[0058] Step S22, obtaining candidate wavelet functions, and combining all candidate wavelet functions into a database;

[0059] In this embodiment, the candidate wavelet functions are: Daubechies (dbN), Symlets (symN), Coiflets (coifN), Biorthogonal (biorNr.Nd). These wavelet functions and their parameters are combined into a database.

[0060] Step S23, defining evaluation indicators according to the high-frequency signal and the low-frequency signal, and constructing a comprehensive evaluation function according to the evaluation indicators;

[0061] The evaluation indicators include:

[0062] Signal reconstruction error E: Calculate the reconstruction error between the digital signal and the data signal to be denoised. Use mean square error to calculate.

[0063] The calculation formula of the signal reconstruction error E is:

[0064] ;

[0065] Where N represents the length of the digital signal. represents the i-th digital signal, Represents the i-th data signal to be denoised.

[0066] Feature discrimination D: Evaluates the feature discrimination capability of the data signal to be denoised. Calculates the distance between the high-frequency signal and the low-frequency signal features, which can be calculated using the Euclidean distance or the Mahalanobis distance.

[0067] The calculation formula of feature discrimination D is:

[0068] ;

[0069] in, represents the jth eigenvalue in the high-frequency signal, represents the jth eigenvalue in the low-frequency signal, and F represents the maximum number of eigenvalues ​​in the high-frequency signal or the low-frequency signal.

[0070] Signal-to-noise ratio S:

[0071] .

[0072] The comprehensive evaluation function is:

[0073] ;

[0074] In the formula, G represents the comprehensive evaluation function, E represents the signal reconstruction error, represents the weight of the signal reconstruction error, D represents the feature discrimination, represents the weight of feature discrimination, S represents the signal-to-noise ratio, Represents the weight of the signal-to-noise ratio.

[0075] The smaller the signal reconstruction error E, the better, so negative weights are used This can ensure that the contribution of the reconstruction error is reduced in the comprehensive evaluation function. This helps to give priority to reducing the signal reconstruction error in the comprehensive evaluation function, thereby improving the overall quality of signal processing.

[0076] Step S24, traversing each wavelet function in the database, performing wavelet transformation on the high-frequency signal and the low-frequency signal respectively and calculating the evaluation index, and selecting the optimal wavelet function according to the comprehensive evaluation function; the optimal wavelet function includes the high-frequency optimal wavelet function and the low-frequency optimal wavelet function;

[0077] For high-frequency signals, the wavelet function with the largest comprehensive evaluation function value of high-frequency signals is selected as the optimal high-frequency wavelet function. For low-frequency signals, the wavelet function with the largest comprehensive evaluation function value of low-frequency signals is selected as the optimal low-frequency wavelet function.

[0078] Different wavelet functions are selected as the optimal wavelet functions for high-frequency signals and low-frequency signals.

[0079] Step S241, constructing a weight prediction model;

[0080] The weight prediction model is preferably a neural network model.

[0081] Step S242, obtaining a training set according to the denoised high-frequency signal and the low-frequency signal, training the weight prediction model, and obtaining a trained weight prediction model;

[0082] Obtain a historical digital signal, select 2 / 5 high-frequency signals and 2 / 5 low-frequency signals from the high-frequency signals and low-frequency signals of the historical digital signal, respectively, and calculate the signal-to-noise ratio, complexity, and stability of each high-frequency signal and low-frequency signal;

[0083] Define initial weights for the signal-to-noise ratio, complexity, and stability of each high-frequency signal and low-frequency signal;

[0084] Analyze the processing results of historical digital signals. If the historical processing effect is good, set the initial weight of signal reconstruction error to a smaller value, set the initial weight of feature discrimination to a higher value, and set the initial weight of signal-to-noise ratio to a moderate value. If the historical processing effect is average, set the initial weight of signal reconstruction error to a moderate value, set the initial weight of feature discrimination to a moderate value, and set the initial weight of signal-to-noise ratio to a lower value. If the historical processing effect is very good, set the initial weight of signal reconstruction error to a lower value, set the initial weight of feature discrimination to a moderate value, and set the initial weight of signal-to-noise ratio to a higher value.

[0085] Each high-frequency signal and low-frequency signal in the historical digital signal, the signal-to-noise ratio, complexity, and stability corresponding to the high-frequency signal and the low-frequency signal, as well as the signal-to-noise ratio weight, complexity weight, and stability weight corresponding to the calibrated high-frequency signal and the low-frequency signal in the historical digital signal, and the initial signal-to-noise ratio weight, initial complexity weight, and initial stability weight of each high-frequency signal and the low-frequency signal are used as training sets. The training set is used to train the weight prediction model, and the model parameters are optimized to minimize the difference between the predicted weight and the actual weight, so as to obtain a trained weight prediction model.

[0086] The calculation process of complexity is: according to the high-frequency signal and the low-frequency signal, the signal length, peak number, energy distribution, and frequency of the high-frequency signal and the low-frequency signal are obtained, and the complexity is calculated.

[0087] ;

[0088] In the formula, represents the complexity of the digital signal, P represents the number of peak values ​​of the digital signal, E represents the energy distribution of the digital signal, and F represents the frequency of the digital signal. , , An adjustment factor representing complexity. Energy distribution can be obtained through energy entropy.

[0089] The calculation process of stability is: according to the high-frequency signal and the low-frequency signal, the variance, mean value and instantaneous change rate of the high-frequency signal and the low-frequency signal are obtained to calculate the stability.

[0090] ;

[0091] In the formula, Represents the stability of the digital signal. represents the variance of the digital signal, W represents the mean of the high-frequency signal, and I represents the instantaneous rate of change of the high-frequency signal. , , An adjustment factor representing stability.

[0092] Step S243, the signal-to-noise ratio, complexity, and stability of the digital signal to be predicted are input into the trained weight prediction model, and the weights of the signal reconstruction error, feature discrimination, and signal-to-noise ratio are output.

[0093] Step S25, denoising the high-frequency signal using the high-frequency optimal wavelet function to obtain a denoised high-frequency signal; denoising the low-frequency signal using the low-frequency optimal wavelet function to obtain a denoised low-frequency signal;

[0094] The high-frequency signal is subjected to wavelet transformation using the high-frequency optimal wavelet function, and the low-frequency signal is subjected to wavelet transformation using the low-frequency optimal wavelet function. The coefficients are subjected to soft threshold or hard threshold processing according to the threshold value to remove noise, reconstruct the signal, and obtain the denoised high-frequency signal and low-frequency signal. The above denoising process is the prior art.

[0095] Step S3, analyzing the preprocessed digital signal and obtaining analysis results, and implementing an early warning mechanism based on the analysis results.

[0096] Extract key features from the high-frequency and low-frequency signals after denoising, use statistical analysis methods and pattern recognition technology to analyze the extracted key features, identify possible abnormalities or dangerous situations in the signals, determine thresholds for signal features based on historical digital signals, adjust thresholds based on actual conditions to adapt to different environmental conditions, and trigger early warning mechanisms when signal features exceed preset thresholds. Design an alarm system to notify relevant personnel or automatic control systems, and take appropriate response measures based on the early warning level.

[0097] Figure 2 This is a structural diagram of a flammable and toxic gas early warning system for port safety production provided by an embodiment of the present invention. Figure 2 This embodiment also discloses a flammable and toxic gas early warning system for port safety production, which is used to execute the above-mentioned flammable and toxic gas early warning method for port safety production, and includes the following modules:

[0098] Digital signal acquisition module: used to obtain digital signals of flammable and toxic gases in the port operation area;

[0099] Preprocessing module: connected to the digital signal acquisition module, used to preprocess the digital signal to obtain a preprocessed digital signal;

[0100] Early warning module: connected with the preprocessing module, used to analyze the preprocessed digital signal and obtain the analysis results, and implement the early warning mechanism according to the analysis results.

[0101] This embodiment also discloses an electronic device, including one or more processors and a memory.

[0102] The processor may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.

[0103] The memory may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor may run the program instructions to implement a flammable and toxic gas early warning method for port safety production and / or other desired functions of any embodiment of the present application described above. Various contents such as initial external parameters, thresholds, etc. may also be stored in the computer-readable storage medium.

[0104] In one example, the electronic device may further include: an input device and an output device, and these components are interconnected through a bus system and / or other forms of connection mechanisms (not shown). The input device may include, for example, a keyboard, a mouse, etc. The output device may output various information to the outside, including early warning information, braking force, etc. The output device may include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, etc.

[0105] In addition, the electronic device may further include any other appropriate components according to specific application scenarios.

[0106] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of a flammable and toxic gas early warning method for port safety production provided in any embodiment of the present application.

[0107] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0108] In addition, an embodiment of the present application may also be a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps of a flammable and toxic gas early warning method for port safety production provided by any embodiment of the present application.

[0109] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or 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 of the above.

[0110] It should be noted that the terms used in the present invention are only for describing specific embodiments, rather than limiting the scope of the present application. As shown in the present specification, unless the context clearly indicates an exception, the words "one", "a", "a kind of" and / or "the" do not specifically refer to the singular, but may also include the plural. The terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method or device. In the absence of more restrictions, the elements defined by the sentence "include one..." do not exclude the presence of other identical elements in the process, method or device including the elements.

[0111] It should also be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. Unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", etc. should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0112] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention 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 replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the technical solutions of the embodiments of the present invention.

Claims

1. A flammable and toxic gas early warning method for port safety production, characterized in that: include: Step S1, obtaining a digital signal of flammable and toxic gases in the port operation area; Step S2, preprocessing the digital signal to obtain a preprocessed digital signal; The preprocessing includes: digital signal denoising and eliminating invalid digital signals; The digital signal denoising specifically includes the following steps: Step S21, dividing the digital signal into a high-frequency signal and a low-frequency signal according to the frequency of gas concentration change; Step S22, obtaining candidate wavelet functions, and combining all candidate wavelet functions into a database; Step S23, defining evaluation indicators according to the high-frequency signal and the low-frequency signal, and constructing a comprehensive evaluation function according to the evaluation indicators; The evaluation indicators include: signal reconstruction error, feature discrimination, and signal-to-noise ratio; The comprehensive evaluation function is: ; In the formula, G represents the comprehensive evaluation function, E represents the signal reconstruction error, represents the weight of the signal reconstruction error, D represents the feature discrimination, represents the weight of feature discrimination, S represents the signal-to-noise ratio, represents the weight of the signal-to-noise ratio; Step S24, traversing each wavelet function in the database, performing wavelet transformation on the high-frequency signal and the low-frequency signal respectively and calculating the evaluation index, and selecting the optimal wavelet function according to the comprehensive evaluation function; the optimal wavelet function includes the high-frequency optimal wavelet function and the low-frequency optimal wavelet function; The weights of signal reconstruction error, feature discrimination, and signal-to-noise ratio in the comprehensive evaluation function are obtained by specifically following the steps: Step S241, constructing a weight prediction model; Step S242, obtaining a training set according to the denoised high-frequency signal and the low-frequency signal, training the weight prediction model, and obtaining a trained weight prediction model; Obtain a historical digital signal, select 2 / 5 high-frequency signals and 2 / 5 low-frequency signals from the high-frequency signals and low-frequency signals of the historical digital signal, respectively, and calculate the signal-to-noise ratio, complexity, and stability of each high-frequency signal and low-frequency signal; Define initial weights for the signal-to-noise ratio, complexity, and stability of each high-frequency signal and low-frequency signal; Each high-frequency signal and low-frequency signal in the historical digital signal, the signal-to-noise ratio, complexity, and stability corresponding to the high-frequency signal and the low-frequency signal, as well as the signal-to-noise ratio weight, complexity weight, and stability weight corresponding to the calibrated high-frequency signal and the low-frequency signal in the historical digital signal, and the initial signal-to-noise ratio weight, initial complexity weight, and initial stability weight of each high-frequency signal and the low-frequency signal are used as training sets; Step S243, inputting the signal-to-noise ratio, complexity, and stability of the digital signal to be predicted into the trained weight prediction model, and outputting the weights of signal reconstruction error, feature discrimination, and signal-to-noise ratio; Step S25, denoising the high-frequency signal using the high-frequency optimal wavelet function to obtain a denoised high-frequency signal; denoising the low-frequency signal using the low-frequency optimal wavelet function to obtain a denoised low-frequency signal; Step S3, analyzing the preprocessed digital signal and obtaining an analysis result, and implementing an early warning mechanism according to the analysis result; Extract key features from the high-frequency and low-frequency signals after denoising and identify abnormal conditions in the signals.

2. The flammable and toxic gas early warning method for port safety production according to claim 1 is characterized in that: Obtaining the digital signal of flammable and toxic gases in the port operation area includes the following steps: Step S11, using a gas sensor array to monitor the concentration of combustible and toxic gases in the port operation area in real time; Step S12, obtaining the original electrical signal monitored by the gas sensor array through a data sensor; Step S13, converting the original electrical signal into a digital signal.

3. The flammable and toxic gas early warning method for port safety production according to claim 1 is characterized in that: The calculation process of complexity is: according to the high-frequency signal and the low-frequency signal, the signal length, peak number, energy distribution, and frequency of the high-frequency signal and the low-frequency signal are obtained, and the complexity is calculated.

4. The flammable and toxic gas early warning method for port safety production according to claim 1 is characterized in that: The calculation process of stability is: according to the high-frequency signal and the low-frequency signal, the variance, mean value and instantaneous change rate of the high-frequency signal and the low-frequency signal are obtained to calculate the stability.

5. A flammable and toxic gas early warning system for port safety production, used to execute a flammable and toxic gas early warning method for port safety production as described in any one of claims 1 to 4, characterized in that: Includes the following modules: Digital signal acquisition module: used to obtain digital signals of flammable and toxic gases in the port operation area; Preprocessing module: connected to the digital signal acquisition module, used to preprocess the digital signal to obtain a preprocessed digital signal; Early warning module: connected with the preprocessing module, used to analyze the preprocessed digital signal and obtain the analysis results, and implement the early warning mechanism according to the analysis results.