Online monitoring and early warning system for gas in confined spaces on ships

By combining long-distance star networking and optical interference sensors with neural network technology, a cloud monitoring system is constructed, which solves the problem of untimely gas detection in the closed cabin of oil tankers, achieves efficient and low-cost gas monitoring and early warning, and ensures operational safety.

CN118243860BActive Publication Date: 2024-08-27COSCO ZHOUSHAN SHIPYARD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410285180.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-13
Publication Date
2024-08-27
Estimated Expiration
2044-03-13

AI Technical Summary

Technical Problem

During the tanker maintenance process, manual inspection using portable gas detectors to detect the gas environment is not timely and wastes manpower and material resources. It cannot effectively monitor toxic and harmful gases in closed cabins, endangering the health of workers and the safety of equipment.

Method used

The star network using long-distance communication transmission is combined with methane and oxygen concentration sensors based on the principle of optical interference. The image clarity is enhanced through texture histograms and discrete cosine transforms, and fully convolutional neural networks and extreme learning machines are used for data processing. Build a cloud monitoring system for real-time monitoring and early warning.

Benefits of technology

It expands the scope of gas environment monitoring in closed cabins, reduces monitoring costs, improves detection accuracy and efficiency, reduces noise impact, has high computing efficiency and performance, and can provide timely warning and avoid waste of manpower.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118243860B
    Figure CN118243860B
Patent Text Reader

Abstract

The present invention belongs to the field of environmental monitoring, and specifically discloses an online monitoring and early warning system for gas in a limited space of a ship, the system comprising: a gas environment information monitoring module, a gas environment information long-distance wireless transmission module, an environmental information integration processing module, an environmental information upload module, and a cloud environment information online monitoring module. The present invention expands the monitoring range of the gas environment monitoring system through a star-shaped network of long-distance communication transmission; uses edge-based texture histograms and discrete cosine transforms to enhance interference fringe images, better captures information in interference images, and reduces the influence of high-frequency components; regards the phase unwrapping problem of interference fringes as a dense classification problem, uses dense blocks instead of convolutional layers of neural networks, and avoids post-processing steps; constructs an extreme learning machine to learn interference images, which has high computational efficiency and good performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of environmental monitoring, and in particular to an online monitoring and early warning system for gases in confined spaces of ships. Background Art

[0002] During the maintenance of oil tankers, due to the particularity of the hull structure, relatively closed working spaces with limited ventilation conditions will inevitably be formed during construction, and a small amount of toxic and harmful gases and flammable and explosive gases will be generated during construction. When these small amounts of toxic and harmful gases accumulate to a certain extent, they will have a great adverse effect on the health and life safety of the operators, and even endanger the operating equipment. At present, the method of detecting gas at the maintenance site is to use portable gas detectors for environmental gas detection in the form of manual inspections, which not only fails to detect the on-site gas environment in a timely and effective manner, but also wastes a lot of manpower and material resources. Summary of the invention

[0003] In view of the above situation, in order to overcome the defects of the prior art, the present invention provides an online monitoring and early warning system for gas in confined spaces of ships. In view of the problem that the current method of detecting gas at maintenance sites is to use portable gas detectors for environmental gas detection in the form of manual inspection, which not only fails to detect the on-site gas environment in a timely and effective manner, but also wastes a lot of manpower and material resources, the present invention combines the advantages of low power consumption, low cost and strong networking capability with the advantages of large transmission bandwidth and long transmission distance of star networks through star networking of long-distance communication transmission, thereby expanding the monitoring range of the closed cabin gas environment monitoring system and reducing the monitoring cost; the present invention uses a methane concentration sensor and an oxygen concentration sensor based on the principle of optical interference to obtain the methane concentration and oxygen concentration, and uses edge-based texture histograms and discrete cosine transforms By enhancing the interference fringe image, the information in the interference fringe image can be better captured, the clarity of the interference fringe image can be improved, and the influence of high-frequency components can be reduced, thereby achieving smoothing and enhancement of the image; the present invention regards the phase unfolding problem of the interference fringe as a dense classification problem, and trains a neural network based on full convolution, using dense blocks instead of convolution layers, which can avoid post-processing steps and has strong robustness to noise. The residual is integrated by minimizing the gradient difference to improve the prediction accuracy, and the phase is unfolded for unseen complex structures, further strengthening the calculation of additional loss and residual loss relative to the absolute phase; the present invention constructs an extreme learning machine to learn the interference fringe image, and the training speed is very fast, which reduces the difficulty of model design and parameter adjustment, and has high computational efficiency and good performance.

[0004] The technical solution adopted by the present invention is as follows: The present invention provides a ship confined space gas online monitoring and early warning system, the system includes a gas environment information monitoring module, a gas environment information long-distance wireless transmission module, an environment information integration processing module, an environment information upload module and a cloud environment information online monitoring module;

[0005] The gas environment information monitoring module is configured with a methane concentration sensor and an oxygen concentration sensor based on the principle of optical interference to obtain gas concentration environment information, wherein the gas concentration environment information includes methane concentration and oxygen concentration. The measurement range of the methane concentration sensor is 0-10% Vol, and the measurement accuracy is %Vol, the measurement range of the oxygen concentration sensor is 0-30%Vol, and the measurement accuracy is %Vol, each closed cabin is equipped with 1-10 gas environment information monitoring modules, each gas environment information monitoring module is equipped with a star networking terminal, and a unique ID number is assigned, which is recorded as the monitoring ID;

[0006] The gas environment information long-distance wireless transmission module converts the gas concentration environment information into small data volume environment information of the star networking protocol;

[0007] The environmental information integration processing module includes a coordinator of the star networking protocol, which is arranged in the monitoring room of the tanker, obtains the small data volume environmental information of the star networking protocol through the bus interface, integrates and processes the small data volume environmental information, obtains the large data volume information, queries the monitoring ID of the gas environment information monitoring module, finds the corresponding relevant cabin, and checks whether the gas environment information monitoring module and the corresponding relevant cabin are added to the same star networking;

[0008] The environmental information uploading module uploads the large amount of information of the environmental information integration processing module to the cloud server through the TCP / IP protocol via 5G wireless, and configures a unique tanker ID number according to the tanker information. One environmental information uploading module corresponds to one cruise ship;

[0009] The cloud-based environmental information online monitoring module is a cloud service system with a B / S architecture. It extracts large amounts of information uploaded to the cloud server and displays and monitors the information in real time through web-based software. The web-based software includes a visualization monitoring module, a historical data query module, an abnormal alarm module, and a task equipment allocation module. The visualization monitoring module monitors the gas concentration environmental information uploaded in real time by the gas environment information monitoring modules of different cabins under different oil tankers. The historical data query module can query the change information and historical alarm information of the gas concentration environmental information of the gas environment information monitoring modules of different cabins under different oil tankers. The abnormal alarm module compares whether the gas concentration environmental information of the gas environment information monitoring module exceeds a preset threshold, and issues an alarm when the methane concentration exceeds the preset threshold and the oxygen concentration is lower than the preset threshold. The task equipment allocation module configures and deploys the environmental information upload module and the gas environment information monitoring module on the cloud server before the cabin maintenance begins.

[0010] The gas environment information monitoring module uses a machine learning method to measure the methane concentration and the oxygen concentration. The machine learning method specifically includes the following steps:

[0011] Step S1: Acquire fringe interference image;

[0012] Step S2: preprocessing the fringe interference image to obtain an initial interference image;

[0013] Step S3: performing phase unwrapping on the initial interference image to obtain a phase unwrapped image;

[0014] Step S4: Construct an extreme learning machine to measure the concentrations of methane and oxygen.

[0015] Furthermore, in step S2, the fringe interference image is preprocessed to obtain an initial interference image, which specifically includes the following steps:

[0016] Step S21: using the Euclidean distance as the standard distance and using the K-Means clustering algorithm to divide the fringe interference image into two clusters;

[0017] Step S22: preset a threshold value, and use the threshold function to construct edge mapping for the two clusters of the fringe interference image respectively. The formula used is as follows:

[0018] ,

[0019] In the formula, It is to construct edge mapping for two clusters of fringe interference images, are the pixel coordinates, is the gradient of the fringe interference image, is the preset threshold;

[0020] Step S23: Calculate the texture histogram of pixels above the threshold to obtain the minimum pixel value and the maximum pixel value;

[0021] Step S24: Obtain an enhanced image according to the cumulative distribution function and the transfer function, using the following formula:

[0022] ,

[0023] In the formula, is the enhanced image, is the fringe interference image, is the cumulative distribution function, is the cumulative number of times in the cumulative distribution function, is the gray level of the texture histogram of the fringe interference image;

[0024] Step S25: Use discrete cosine transform to refine and enhance the local contrast of the image. The formula used is as follows:

[0025] ,

[0026] In the formula, is the refined image, is the width of the fringe interference image;

[0027] Step S26: applying discrete cosine transform to merge the two clusters' refined images into one image to obtain an initial interference image;

[0028] Further, in step S3, the initial interference image is phase-unwrapped to obtain a phase-unwrapped image, which specifically includes the following steps:

[0029] Step S31: randomly generate Gaussian distribution functions with different means and variances, and repeatedly perform addition and subtraction operations to generate an interference atlas, wherein the interference atlas includes a wrapped image of the interference atlas and a corresponding expanded image;

[0030] Step S32: Establish and initialize a convolutional neural network, wherein the convolutional neural network is composed of an encoder network, a decoder network and a classifier, and the convolutional neural network is constructed by dense blocks. The encoder constitutes a downsampling layer of the convolutional neural network, and there is a maximum pooling layer behind each dense block of the decoder to reduce the spatial distribution rate of the feature map with a step of 2*2, and the decoder constitutes an upsampling layer of the convolutional neural network;

[0031] Step S33: inputting the interference atlas into a convolutional neural network for learning, performing feature extraction on each layer of the convolutional neural network to obtain a feature map;

[0032] Step S34: concatenate the feature map of the upsampling layer with the feature map of the corresponding encoder to form the input of a new dense block, perform transposed convolution on the last layer of the dense block of each decoder, upsample the feature map, and obtain the spatial dimension of the wrapped image;

[0033] Step S35: Calculate the residual loss of the wrapped phase and the unwrapped phase, using the following formula:

[0034] ,

[0035] In the formula, is the residual loss, is the size of the wrapped image, yes Iterate over the accumulated values ​​of the wrapped image, and They are along Direction and along The phase gradient in the direction, and The predicted edges are Direction and along Phase gradient in direction;

[0036] Step S36: Calculate the pixel cross entropy loss of the convolutional neural network using the following formula:

[0037] ,

[0038] In the formula, is the pixel cross entropy loss, and Respectively in The true and predicted package counts;

[0039] Step S37: Calculate the L1 loss using the following formula:

[0040] ,

[0041] In the formula, is the L1 loss, is the predicted phase unwrapping, is the corresponding expanded image in the interference pattern set;

[0042] Step S38: taking the sum of residual loss, pixel cross entropy loss and L1 loss as the total loss of the convolutional neural network;

[0043] Step S39: inputting the initial interference image into the learned convolutional neural network, the convolutional neural network outputs an intermediate expanded image of the initial interference image, and using a Gaussian filter to denoise the intermediate expanded image to obtain a phase unwrapped image;

[0044] Further, in step S4, an extreme learning machine is constructed to measure the concentrations of methane and oxygen, which specifically includes the following steps:

[0045] Step S41: collecting a methane light interference atlas and an oxygen light interference atlas, wherein the methane light interference atlas and the oxygen light interference atlas respectively include light interference patterns and corresponding gas concentrations;

[0046] Step S42: Use the pre-trained deep CNN models vgg16 and vgg19 to extract deep learning features of the optical interference pattern to obtain the original feature vector;

[0047] Step S43: Calculate the mean square error using the following formula:

[0048] ,

[0049] In the formula, is the mean square error, It is The regularization parameter of the original eigenvectors, is the number of original eigenvectors, It is The average value of the regularization parameter of the original eigenvectors, yes From 1 to The cumulative sum of

[0050] Step S44: If the mean square error is greater than or equal to 0.1, the feature is updated using the following formula:

[0051] ,

[0052] In the formula, is the updated feature vector, yes and The affine combination of , is the minimum pixel value of the light interference pattern, is the original eigenvector, is to calculate the Chebyshev distance, Yes Seeking guidance, Yes The vector representation of Yes Updated value;

[0053] Step S45: using a fusion method based on partial least squares to fuse the updated feature vectors into a combined matrix;

[0054] Step S46: Establish and initialize an extreme learning machine, input the combination matrix into the extreme learning machine for training, and define the minimization function and constraint conditions as follows:

[0055] ,

[0056] ,

[0057] In the formula, It is An optical interference pattern, yes The corresponding gas concentration, is the training error, is the maximum pixel value of the light interference pattern, yes The transpose of yes The input weight vector to the hidden layer is, is the penalty parameter, is the length of the interference pattern, yes From 1 to The cumulative sum of

[0058] Step S47: input the phase unwrapped image into a trained extreme learning machine, and the extreme learning machine outputs the corresponding methane concentration and oxygen concentration.

[0059] The beneficial effects achieved by the present invention using the above scheme are as follows:

[0060] (1) The present invention combines the advantages of low power consumption, low cost and strong networking capability with the advantages of large transmission bandwidth and long transmission distance of the star network through star networking for long-distance communication transmission, thereby expanding the monitoring range of the closed cabin gas environment monitoring system and reducing the monitoring cost;

[0061] (2) The present invention uses a methane concentration sensor and an oxygen concentration sensor based on the principle of optical interference to obtain methane concentration and oxygen concentration, and uses an edge-based texture histogram and discrete cosine transform to enhance the interference fringe image, which can better capture the information in the interference fringe image, improve the clarity of the interference fringe image, and reduce the influence of high-frequency components, thereby achieving smoothing and enhancement of the image;

[0062] (3) The present invention regards the phase unwrapping problem of interference fringes as a dense classification problem and trains a neural network based on full convolution. The dense blocks are used instead of the convolutional layers, which can avoid the post-processing steps and have strong robustness to noise. The residual is integrated by minimizing the gradient difference to improve the prediction accuracy, and the phase is unwrapped for unseen complex structures, which further strengthens the calculation of the additional loss and residual loss relative to the absolute phase.

[0063] (4) The present invention constructs an extreme learning machine to learn interference fringe images. The training speed is very fast, which reduces the difficulty of model design and parameter adjustment and has high computational efficiency and good performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 This is a module connection diagram of the ship confined space gas online monitoring and early warning system provided by the present invention.

[0065] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION

[0066] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0067] Example 1: See Figure 1 , this embodiment provides a ship confined space gas online monitoring and early warning system, the ship confined space gas online monitoring and early warning system includes a gas environment information monitoring module, a gas environment information long-distance wireless transmission module, an environment information integration processing module, an environment information upload module and a cloud environment information online monitoring module;

[0068] The gas environment information monitoring module is configured with a methane concentration sensor and an oxygen concentration sensor based on the principle of optical interference to obtain gas concentration environment information, the gas concentration environment information includes methane concentration and oxygen concentration, and the peripheral LCD display screen displays the gas concentration environment information. The information processing module of the gas environment information monitoring module is a control module composed of a STM32F3 series single chip. The measurement range of the methane concentration sensor is 0-10% Vol, and the measurement accuracy is %Vol, the measurement range of the oxygen concentration sensor is 0-30%Vol, and the measurement accuracy is %Vol, 1-10 gas environment information monitoring modules are arranged in each closed cabin, a star networking terminal is adapted for each gas environment information monitoring module, and a unique ID number is assigned, which is recorded as the monitoring ID. The star networking terminal is composed of a Lierda WB25 LoRa module. The LoRa module is configured as a terminal function, and the low-frequency transparent transmission function of the LoRa module is used to send the gas concentration environment information to the coordinator module in the star self-organizing network;

[0069] The gas environment information long-distance wireless transmission module converts the gas concentration environment information into small data volume environment information of the star networking protocol;

[0070] The environmental information integration processing module includes a coordinator of the star networking protocol, which is arranged in the monitoring room of the tanker, obtains the small data volume environmental information of the star networking protocol through the bus interface, integrates and processes the small data volume environmental information, obtains the large data volume information, queries the monitoring ID of the gas environment information monitoring module, finds the corresponding relevant cabin, and checks whether the gas environment information monitoring module and the corresponding relevant cabin are added to the same star networking;

[0071] The environmental information uploading module uploads the large amount of information of the environmental information integration processing module to the cloud server through the TCP / IP protocol via 5G wireless, and configures a unique tanker ID number according to the tanker information. One environmental information uploading module corresponds to one cruise ship;

[0072] The cloud-based environmental information online monitoring module is a cloud service system with a B / S architecture. It extracts large amounts of information uploaded to the cloud server and displays and monitors the information in real time through web-based software. The web-based software includes a visualization monitoring module, a historical data query module, an abnormal alarm module, and a task equipment allocation module. The visualization monitoring module monitors the gas concentration environmental information uploaded in real time by the gas environment information monitoring modules of different cabins under different oil tankers. The historical data query module can query the change information and historical alarm information of the gas concentration environmental information of the gas environment information monitoring modules of different cabins under different oil tankers. The abnormal alarm module compares whether the gas concentration environmental information of the gas environment information monitoring module exceeds a preset threshold, and issues an alarm when the methane concentration exceeds the preset threshold and the oxygen concentration is lower than the preset threshold. The task equipment allocation module configures and deploys the environmental information upload module and the gas environment information monitoring module on the cloud server before the cabin maintenance begins.

[0073] Through the above operations, the current method of detecting gas at maintenance sites is to use portable gas detectors for environmental gas detection in the form of manual inspections, which not only fails to detect the on-site gas environment in a timely and effective manner, but also wastes a lot of manpower and material resources. The present invention combines the advantages of low power consumption, low cost and strong networking capability with the advantages of large star network transmission bandwidth and long transmission distance through star networking for long-distance communication transmission, thereby expanding the monitoring range of the closed cabin gas environment monitoring system and reducing the monitoring cost.

[0074] Example 2: See Figure 1This embodiment is based on the above embodiment. The gas environment information monitoring module uses a machine learning method to measure the methane concentration and the oxygen concentration. The machine learning method specifically includes the following steps:

[0075] Step S1: Acquire fringe interference image;

[0076] Step S2: preprocessing the fringe interference image to obtain an initial interference image;

[0077] Step S3: performing phase unwrapping on the initial interference image to obtain a phase unwrapped image;

[0078] Step S4: Construct an extreme learning machine to measure the concentrations of methane and oxygen.

[0079] In step S2, the fringe interference image is preprocessed to obtain an initial interference image, which specifically includes the following steps:

[0080] Step S21: using the Euclidean distance as the standard distance and using the K-Means clustering algorithm to divide the fringe interference image into two clusters;

[0081] Step S22: preset a threshold value, and use the threshold function to construct edge mapping for the two clusters of the fringe interference image respectively. The formula used is as follows:

[0082] ,

[0083] In the formula, It is to construct edge mapping for two clusters of fringe interference images, are the pixel coordinates, is the gradient of the fringe interference image, is the preset threshold;

[0084] Step S23: Calculate the texture histogram of pixels above the threshold to obtain the minimum pixel value and the maximum pixel value;

[0085] Step S24: Obtain an enhanced image according to the cumulative distribution function and the transfer function, using the following formula:

[0086] ,

[0087] In the formula, is the enhanced image, is the fringe interference image, is the cumulative distribution function, is the cumulative number of times in the cumulative distribution function, is the gray level of the texture histogram of the fringe interference image;

[0088] Step S25: Use discrete cosine transform to refine and enhance the local contrast of the image. The formula used is as follows:

[0089] ,

[0090] In the formula, is the refined image, is the width of the fringe interference image;

[0091] Step S26: Apply discrete cosine transform to merge the refined images of the two clusters into one image to obtain an initial interference image.

[0092] Through the above operations, the present invention uses a methane concentration sensor and an oxygen concentration sensor based on the principle of optical interference to obtain the methane concentration and the oxygen concentration, and uses an edge-based texture histogram and discrete cosine transform to enhance the interference fringe image, which can better capture the information in the interference fringe image and improve the clarity of the interference fringe image, while reducing the influence of high-frequency components, thereby achieving image smoothing and enhancement.

[0093] Example 3, see Figure 1 This embodiment is based on the above embodiment. In step S3, the initial interference image is phase-unwrapped to obtain a phase-unwrapped image. Specifically, the following steps are included:

[0094] Step S31: randomly generate Gaussian distribution functions with different means and variances, and repeatedly perform addition and subtraction operations to generate an interference atlas, wherein the interference atlas includes a wrapped image of the interference atlas and a corresponding expanded image;

[0095] Step S32: Establish and initialize a convolutional neural network, wherein the convolutional neural network is composed of an encoder network, a decoder network and a classifier, and the convolutional neural network is constructed by dense blocks. The encoder constitutes a downsampling layer of the convolutional neural network, and there is a maximum pooling layer behind each dense block of the decoder to reduce the spatial distribution rate of the feature map with a step of 2*2, and the decoder constitutes an upsampling layer of the convolutional neural network;

[0096] Step S33: inputting the interference atlas into a convolutional neural network for learning, performing feature extraction on each layer of the convolutional neural network to obtain a feature map;

[0097] Step S34: concatenate the feature map of the upsampling layer with the feature map of the corresponding encoder to form the input of a new dense block, perform transposed convolution on the last layer of the dense block of each decoder, upsample the feature map, and obtain the spatial dimension of the wrapped image;

[0098] Step S35: Calculate the residual loss of the wrapped phase and the unwrapped phase, using the following formula:

[0099] ,

[0100] In the formula, is the residual loss, is the size of the wrapped image, yes Iterate over the accumulated values ​​of the wrapped image, and They are along Direction and along The phase gradient in the direction, and The predicted edges are Direction and along Phase gradient in direction;

[0101] Step S36: Calculate the pixel cross entropy loss of the convolutional neural network using the following formula:

[0102] ,

[0103] In the formula, is the pixel cross entropy loss, and Respectively in The true and predicted package counts;

[0104] Step S37: Calculate the L1 loss using the following formula:

[0105] ,

[0106] In the formula, is the L1 loss, is the predicted phase unwrapping, is the corresponding expanded image in the interference pattern set;

[0107] Step S38: taking the sum of residual loss, pixel cross entropy loss and L1 loss as the total loss of the convolutional neural network;

[0108] Step S39: Input the initial interference image into the learned convolutional neural network, the convolutional neural network outputs the intermediate expanded image of the initial interference image, and uses a Gaussian filter to denoise the intermediate expanded image to obtain a phase unwrapped image.

[0109] Through the above operations, the present invention regards the phase unwrapping problem of interference fringes as a dense classification problem, and trains a neural network based on full convolution. Dense blocks are used instead of convolution layers, which can avoid post-processing steps and have strong robustness to noise. The residual is integrated by minimizing the gradient difference to improve the prediction accuracy, and the phase is unwrapped for unseen complex structures, which further strengthens the calculation of additional loss and residual loss relative to the absolute phase.

[0110] Example 4, see Figure 1 This embodiment is based on the above embodiment. In step S4, an extreme learning machine is constructed to measure the concentrations of methane and oxygen, which specifically includes the following steps:

[0111] Step S41: collecting a methane light interference atlas and an oxygen light interference atlas, wherein the methane light interference atlas and the oxygen light interference atlas respectively include light interference patterns and corresponding gas concentrations;

[0112] Step S42: Use the pre-trained deep CNN models vgg16 and vgg19 to extract deep learning features of the optical interference pattern to obtain the original feature vector;

[0113] Step S43: Calculate the mean square error using the following formula:

[0114] ,

[0115] In the formula, is the mean square error, It is The regularization parameter of the original eigenvectors, is the number of original eigenvectors, It is The average value of the regularization parameter of the original eigenvectors, yes From 1 to The cumulative sum of

[0116] Step S44: If the mean square error is greater than or equal to 0.1, the feature is updated using the following formula:

[0117] ,

[0118] In the formula, is the updated feature vector, yes and The affine combination of , is the minimum pixel value of the light interference pattern, is the original eigenvector, is to calculate the Chebyshev distance, Yes Seeking guidance, Yes The vector representation of Yes Updated value;

[0119] Step S45: using a fusion method based on partial least squares to fuse the updated feature vectors into a combined matrix;

[0120] Step S46: Establish and initialize an extreme learning machine, input the combination matrix into the extreme learning machine for training, and define the minimization function and constraint conditions as follows:

[0121] ,

[0122] ,

[0123] In the formula, It is An optical interference pattern, yes The corresponding gas concentration, is the training error, is the maximum pixel value of the light interference pattern, yes The transpose of yes The input weight vector to the hidden layer is, is the penalty parameter, is the length of the interference pattern, yes From 1 to The cumulative sum of

[0124] Step S47: input the phase unwrapped image into a trained extreme learning machine, and the extreme learning machine outputs the corresponding methane concentration and oxygen concentration.

[0125] Through the above operations, the present invention constructs an extreme learning machine to learn the interference fringe image, the training speed is very fast, the difficulty of model design and parameter adjustment is reduced, and it has high computing efficiency and good performance.

[0126] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0127] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

[0128] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.

Claims

1. The ship confined space gas online monitoring and early warning system is characterized by: It includes a gas environment information monitoring module, a gas environment information long-distance wireless transmission module, an environment information integration processing module, an environment information upload module and a cloud environment information online monitoring module; The gas environment information monitoring module is configured with a methane concentration sensor and an oxygen concentration sensor based on the principle of optical interference to obtain gas concentration environment information, wherein the gas concentration environment information includes methane concentration and oxygen concentration. The measurement range of the methane concentration sensor is 0-10% Vol, and the measurement accuracy is %Vol, the measurement range of the oxygen concentration sensor is 0-30%Vol, and the measurement accuracy is %Vol, each closed cabin is equipped with 1-10 gas environment information monitoring modules, each gas environment information monitoring module is equipped with a star networking terminal, and a unique ID number is assigned, which is recorded as the monitoring ID; The gas environment information long-distance wireless transmission module converts the gas concentration environment information into small data volume environment information of the star networking protocol; The environmental information integration processing module includes a coordinator of the star networking protocol, which is arranged in the monitoring room of the tanker, obtains the small data volume environmental information of the star networking protocol through the bus interface, integrates and processes the small data volume environmental information, obtains the large data volume information, queries the monitoring ID of the gas environment information monitoring module, finds the corresponding relevant cabin, and checks whether the gas environment information monitoring module and the corresponding relevant cabin are added to the same star networking; The environmental information uploading module uploads the large amount of information of the environmental information integration processing module to the cloud server through the TCP / IP protocol via 5G wireless, and configures a unique tanker ID number according to the tanker information. One environmental information uploading module corresponds to one cruise ship; The cloud environment information online monitoring module is a cloud service system with a B / S architecture, which extracts large amounts of information uploaded to the cloud server, and displays and monitors the information in real time through the web-side software. The web-side software includes a visualization monitoring module, a historical data query module, an abnormal alarm module and a task equipment allocation module. The visualization monitoring module monitors the gas concentration environmental information uploaded in real time by the gas environment information monitoring modules of different cabins under different oil tankers. The historical data query module can query the change information and historical alarm information of the gas concentration environmental information of the gas environment information monitoring modules of different cabins under different oil tankers. The abnormal alarm module compares whether the gas concentration environmental information of the gas environment information monitoring module exceeds the preset threshold, and alarms when the methane concentration exceeds the preset threshold and the oxygen concentration is lower than the preset threshold. The task equipment allocation module configures and deploys the environmental information upload module and the gas environment information monitoring module on the cloud server before the cabin maintenance begins; The gas environment information monitoring module uses a machine learning method to measure the methane concentration and the oxygen concentration. The machine learning method specifically includes the following steps: Step S1: Acquire fringe interference image; Step S2: preprocessing the fringe interference image to obtain an initial interference image; Step S3: performing phase unwrapping on the initial interference image to obtain a phase unwrapped image; Step S4: construct an extreme learning machine to measure the concentrations of methane and oxygen; In step S2, the fringe interference image is preprocessed to obtain an initial interference image, which specifically includes the following steps: Step S21: using the Euclidean distance as the standard distance and using the K-Means clustering algorithm to divide the fringe interference image into two clusters; Step S22: preset a threshold value, and use the threshold function to construct edge mapping for the two clusters of the fringe interference image respectively. The formula used is as follows: , In the formula, It is to construct edge mapping for two clusters of fringe interference images, are the pixel coordinates, is the gradient of the fringe interference image, is the preset threshold; Step S23: Calculate the texture histogram of pixels above the threshold to obtain the minimum pixel value and the maximum pixel value; Step S24: Obtain an enhanced image according to the cumulative distribution function and the transfer function, using the following formula: , In the formula, is the enhanced image, is the fringe interference image, is the cumulative distribution function, is the cumulative number of times in the cumulative distribution function, is the gray level of the texture histogram of the fringe interference image; Step S25: Use discrete cosine transform to refine and enhance the local contrast of the image. The formula used is as follows: , In the formula, is the refined image, is the width of the fringe interference image; Step S26: Apply discrete cosine transform to merge the refined images of the two clusters into one image to obtain an initial interference image.

2. The ship confined space gas online monitoring and early warning system according to claim 1 is characterized in that: In step S3, the initial interference image is phase-unwrapped to obtain a phase-unwrapped image, which specifically includes the following steps: Step S31: randomly generate Gaussian distribution functions with different means and variances, and repeatedly perform addition and subtraction operations to generate an interference atlas, wherein the interference atlas includes a wrapped image of the interference atlas and a corresponding expanded image; Step S32: Establish and initialize a convolutional neural network, wherein the convolutional neural network is composed of an encoder network, a decoder network and a classifier, and the convolutional neural network is constructed by dense blocks. The encoder constitutes a downsampling layer of the convolutional neural network, and there is a maximum pooling layer behind each dense block of the decoder to reduce the spatial distribution rate of the feature map with a step of 2*2, and the decoder constitutes an upsampling layer of the convolutional neural network; Step S33: inputting the interference atlas into a convolutional neural network for learning, performing feature extraction on each layer of the convolutional neural network to obtain a feature map; Step S34: concatenate the feature map of the upsampling layer with the feature map of the corresponding encoder to form the input of a new dense block, perform transposed convolution on the last layer of the dense block of each decoder, upsample the feature map, and obtain the spatial dimension of the wrapped image; Step S35: Calculate the residual loss of the wrapped phase and the unwrapped phase, using the following formula: , In the formula, is the residual loss, is the size of the wrapped image, yes Iterate over the accumulated values ​​of the wrapped image, and They are along Direction and along The phase gradient in the direction, and The predicted edges are Direction and along Phase gradient in direction; Step S36: Calculate the pixel cross entropy loss of the convolutional neural network using the following formula: , In the formula, is the pixel cross entropy loss, and Respectively in The true and predicted package counts; Step S37: Calculate the L1 loss using the following formula: , In the formula, is the L1 loss, is the predicted phase unwrapping, is the corresponding expanded image in the interference pattern set; Step S38: taking the sum of residual loss, pixel cross entropy loss and L1 loss as the total loss of the convolutional neural network; Step S39: Input the initial interference image into the learned convolutional neural network, the convolutional neural network outputs the intermediate expanded image of the initial interference image, and uses a Gaussian filter to denoise the intermediate expanded image to obtain a phase unwrapped image.

3. The ship confined space gas online monitoring and early warning system according to claim 2 is characterized by: In step S4, an extreme learning machine is constructed to measure the concentrations of methane and oxygen, which specifically includes the following steps: Step S41: collecting a methane light interference atlas and an oxygen light interference atlas, wherein the methane light interference atlas and the oxygen light interference atlas respectively include light interference patterns and corresponding gas concentrations; Step S42: Use the pre-trained deep CNN models vgg16 and vgg19 to extract deep learning features of the optical interference pattern to obtain the original feature vector; Step S43: Calculate the mean square error using the following formula: , In the formula, is the mean square error, It is The regularization parameter of the original eigenvectors, is the number of original eigenvectors, It is The average value of the regularization parameter of the original eigenvectors, yes From 1 to The cumulative sum of Step S44: If the mean square error is greater than or equal to 0.1, the feature is updated using the following formula: , In the formula, is the updated feature vector, yes and The affine combination of , is the minimum pixel value of the light interference pattern, is the original eigenvector, is to calculate the Chebyshev distance, Yes Seeking guidance, Yes The vector representation of Yes Updated value; Step S45: using a fusion method based on partial least squares to fuse the updated feature vectors into a combined matrix; Step S46: Establish and initialize an extreme learning machine, input the combination matrix into the extreme learning machine for training, and define the minimization function and constraint conditions as follows: , , In the formula, It is An optical interference pattern, yes The corresponding gas concentration, is the training error, is the maximum pixel value of the light interference pattern, yes The transpose of yes The input weight vector to the hidden layer is, is the penalty parameter, is the length of the interference pattern, yes From 1 to The cumulative sum of Step S47: input the phase unwrapped image into a trained extreme learning machine, and the extreme learning machine outputs the corresponding methane concentration and oxygen concentration.