Atmospheric sulfide analysis method, device, storage medium and electronic equipment

By using ultraviolet light of different wavelengths to process sulfide-containing gases to generate ultraviolet absorption spectra, it solves the problems of difficult identification and pollution risks in traditional methods, and achieves efficient qualitative analysis and accurate type identification of atmospheric sulfides.

CN118111940BActive Publication Date: 2024-09-13WUHAN YITE ENVIRONMENTAL PROTECTION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Traditional atmospheric sulfide analysis methods rely on chemical reagents and complex instruments, which are time-consuming and labor-intensive, have low sensitivity, are difficult to accurately identify different types of sulfides, and have the risk of secondary pollution.

Method used

By using ultraviolet light of different wavelengths to process sulfide-containing gases, UV absorption spectra are generated, and analysis is performed based on multiple spectra to determine the type label of sulfide and improve the accuracy of analysis and identification.

Benefits of technology

Qualitative analysis of atmospheric sulfides is achieved, the level of analysis and type identification is improved, secondary pollution is avoided, and the sample preparation and analysis process is simplified.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118111940B
    Figure CN118111940B
Patent Text Reader

Abstract

The present application discloses an atmospheric sulfide analysis method, device, storage medium and electronic device, which can make the sulfide-containing gas undergo electronic transition and generate an ultraviolet absorption spectrum by processing the sulfide-containing gas with ultraviolet light of different wavelengths, and further obtain an analysis result based on the multiple ultraviolet absorption spectra of the sulfide-containing gas, and the analysis result is a type label of the sulfide in the sulfide-containing gas. In this way, the sulfide in the atmosphere can be qualitatively analyzed according to the ultraviolet absorption spectra of different wavelengths of the gas samples collected from the atmosphere, thereby improving the level of analysis and type identification of atmospheric sulfide.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent analysis, and more specifically, to an atmospheric sulfide analysis method, device, storage medium and electronic device. Background Art

[0002] In the field of environmental monitoring, the analysis of atmospheric sulfide is an important task. Sulfide, as a common air pollutant, is the main source of air pollution and has serious impacts on human health and the environment. Therefore, monitoring and analyzing the concentration of atmospheric sulfide is of great significance for evaluating air quality and formulating environmental protection policies.

[0003] However, there are many types of sulfides in the atmosphere. Traditional sulfide analysis methods, such as wet chemistry and ion chromatography, usually rely on chemical reagents and complex instrument operations, which are not only time-consuming and labor-intensive, but also have disadvantages such as low sensitivity, complex sample preparation, and long analysis time. They may even cause secondary pollution and make it difficult to accurately identify different types of sulfides.

[0004] Therefore, an optimized atmospheric sulfide analysis protocol is desired. Summary of the invention

[0005] In order to solve the above technical problems, the present application is proposed. The embodiments of the present application provide an atmospheric sulfide analysis method, device, storage medium and electronic device, which can process the sulfide-containing gas by using ultraviolet light of different wavelengths to cause it to undergo electronic transition and generate an ultraviolet absorption spectrum, and further obtain analysis results based on the multiple ultraviolet absorption spectra of the sulfide-containing gas, and the analysis results are type labels of sulfides in the sulfide-containing gas. In this way, the sulfides in the atmosphere can be qualitatively analyzed based on the ultraviolet absorption spectra of different wavelengths of gas samples collected from the atmosphere, thereby improving the level of analysis and type identification of atmospheric sulfides.

[0006] According to one aspect of the present application, there is provided a method for analyzing atmospheric sulfide, comprising:

[0007] Collect sulfide-containing gases in the atmosphere through a sampler;

[0008] Passing the sulfide-containing gas through an ultraviolet spectrophotometer and treating the sulfide-containing gas with ultraviolet light of different wavelengths to obtain a plurality of ultraviolet absorption spectra of the sulfide-containing gas; and

[0009] Based on the multiple ultraviolet absorption spectra of the sulfide-containing gas, an analysis result is obtained, and the analysis result is a type label of the sulfide in the sulfide-containing gas.

[0010] According to another aspect of the present application, there is provided an atmospheric sulfide analysis device, comprising:

[0011] A gas sampling module, used for collecting sulfide-containing gases in the atmosphere through a sampler;

[0012] a gas processing module, used for passing the sulfide-containing gas through an ultraviolet spectrophotometer and treating the sulfide-containing gas with ultraviolet light of different wavelengths to obtain a plurality of ultraviolet absorption spectra of the sulfide-containing gas; and

[0013] The analysis result generating module is used to obtain the analysis result based on the multiple ultraviolet absorption spectra of the sulfide-containing gas, and the analysis result is the type label of the sulfide in the sulfide-containing gas.

[0014] According to another aspect of the present application, a computer storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the atmospheric sulfide analysis method as described above.

[0015] Compared with the prior art, the present application provides an atmospheric sulfide analysis method, device, storage medium and electronic device, which can make the sulfide-containing gas undergo electronic transition and generate an ultraviolet absorption spectrum by processing the sulfide-containing gas with ultraviolet light of different wavelengths, and further obtain an analysis result based on the multiple ultraviolet absorption spectra of the sulfide-containing gas, and the analysis result is a type label of the sulfide in the sulfide-containing gas. In this way, the sulfide in the atmosphere can be qualitatively analyzed according to the ultraviolet absorption spectra of different wavelengths of the gas samples collected from the atmosphere, thereby improving the level of analysis and type identification of atmospheric sulfides. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0017] Figure 1 is a flow chart of an atmospheric sulfide analysis method according to an embodiment of the present application;

[0018] Figure 2 A system architecture diagram of an atmospheric sulfide analysis method according to an embodiment of the present application;

[0019] Figure 3 is a flow chart of the training phase of the atmospheric sulfide analysis method according to an embodiment of the present application;

[0020] Figure 4is a flow chart of sub-step S3 of the atmospheric sulfide analysis method according to an embodiment of the present application;

[0021] Figure 5 is a flowchart of sub-step S33 of the atmospheric sulfide analysis method according to an embodiment of the present application;

[0022] Figure 6 is a block diagram of an atmospheric sulfide analysis device according to an embodiment of the present application;

[0023] Figure 7 is a block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.

[0025] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.

[0026] Although the present application makes various references to certain modules in the system according to the embodiments of the present application, any number of different modules can be used and run on the user terminal and / or server. The modules are only illustrative, and different aspects of the system and method can use different modules.

[0027] Flowcharts are used in the present application to illustrate the operations performed by the system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, various steps may be processed in reverse order or simultaneously as required. Meanwhile, other operations may also be added to these processes, or a certain step or several steps of operations may be removed from these processes.

[0028] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.

[0029] Traditional sulfide analysis methods, such as wet chemistry and ion chromatography, usually rely on chemical reagents and complex instrument operations, which are not only time-consuming and labor-intensive, but also have disadvantages such as low sensitivity, complex sample preparation, and long analysis time. They may even cause secondary pollution and make it difficult to accurately identify different types of sulfides. Therefore, an optimized atmospheric sulfide analysis scheme is desired.

[0030] In response to the above technical problems, in the technical solution of the present application, a method for analyzing atmospheric sulfides is proposed, which can perform qualitative analysis on sulfides in the atmosphere based on ultraviolet absorption spectra of different wavelengths of gas samples collected from the atmosphere. This is because different types of sulfides have characteristic ultraviolet absorption bands, and the type of sulfide present in the sample can be identified based on the intensity and wavelength of the absorption spectrum. Specifically, ultraviolet light of different wavelengths has different effects on sulfide gas, because different sulfide gases have different electronic energy level structures and have different absorption capabilities for ultraviolet light of different energies. Generally speaking, the shorter the wavelength and the higher the energy, the better the excitation effect on sulfide gas, and the clearer the resulting ultraviolet absorption spectrum. Therefore, ultraviolet light in different wavelength ranges has different performance characteristics for different sulfide gases. For sulfur dioxide (SO2), it is recommended to use ultraviolet light of 200-300 nanometers (nm), because SO2 has a strong absorption peak in this range; for sulfuric acid mist (H2SO4), it is recommended to use ultraviolet light of 250-350nm, because H2SO4 has a strong absorption peak in this range; for hydrogen sulfide (H2S), it is recommended to use ultraviolet light of 300-400nm, because H2S has a strong absorption peak in this range.

[0031] In the technical solution of the present application, a method for analyzing atmospheric sulfides is proposed. Figure 1 The figure is a flow chart of a method for analyzing atmospheric sulfide according to an embodiment of the present application. Figure 2 1 is a system architecture diagram of the atmospheric sulfide analysis method according to an embodiment of the present application. Figure 1 and Figure 2 As shown, the atmospheric sulfide analysis method according to the embodiment of the present application includes the steps of: S1, collecting sulfide-containing gas in the atmosphere through a sampler; S2, passing the sulfide-containing gas through an ultraviolet spectrophotometer, and treating the sulfide-containing gas with ultraviolet light of different wavelengths to obtain a plurality of ultraviolet absorption spectra of the sulfide-containing gas; and, S3, obtaining an analysis result based on the plurality of ultraviolet absorption spectra of the sulfide-containing gas, wherein the analysis result is a type label of the sulfide in the sulfide-containing gas.

[0032] In particular, the S1, collects sulfide-containing gases in the atmosphere through a sampler. Here, in the environmental monitoring and sampling process, the sampler used is usually a device specially designed to collect various gases or particulate matter in the atmosphere. These samplers collect different types of pollutants, including sulfide-containing gases, as needed.

[0033] In particular, in S2, the sulfide-containing gas is passed through an ultraviolet spectrophotometer, and the sulfide-containing gas is treated with ultraviolet light of different wavelengths to obtain a plurality of ultraviolet absorption spectra of the sulfide-containing gas. It should be understood that the treatment of the sulfide-containing gas with ultraviolet light of different wavelengths can cause electron transitions to occur in the sulfide-containing gas, thereby generating ultraviolet absorption spectra. In other words, ultraviolet light of different wavelengths can excite different electron transitions, thereby obtaining different ultraviolet absorption spectra, reflecting the structure and concentration information of the sulfide gas.

[0034] In particular, the S3, based on the plurality of ultraviolet absorption spectra of the sulfide-containing gas, obtains an analysis result, wherein the analysis result is a type label of the sulfide in the sulfide-containing gas. In particular, in a specific example of the present application, Figure 4 As shown, the S3 includes: S31, performing spectral correction based on Gaussian distribution on the multiple ultraviolet absorption spectra of the sulfide-containing gas respectively to obtain multiple corrected ultraviolet absorption spectra of the sulfide gas; S32, performing feature extraction on each of the multiple corrected ultraviolet absorption spectra of the sulfide gas respectively through an absorption spectrum semantic feature extractor based on a deep neural network model to obtain multiple ultraviolet absorption spectrum semantic feature vectors; S33, performing spectral semantic sharing on the multiple ultraviolet absorption spectrum semantic feature vectors to obtain ultraviolet absorption spectrum shared semantic features; S34, determining the analysis result based on the ultraviolet absorption spectrum shared semantic features, wherein the analysis result is used to represent the type label of the sulfide in the sulfide-containing gas.

[0035] Specifically, in S31, the multiple sulfide-containing gas ultraviolet absorption spectra are respectively corrected based on Gaussian distribution to obtain multiple corrected sulfide gas ultraviolet absorption spectra. Considering that the ultraviolet absorption spectra obtained by ultraviolet spectrophotometer usually have baseline drift, this will affect the identification and quantification of absorption peaks. Based on this, in the technical solution of the present application, it is necessary to perform spectral correction based on Gaussian distribution on the multiple sulfide-containing gas ultraviolet absorption spectra to obtain multiple corrected sulfide gas ultraviolet absorption spectra. The spectral correction process based on Gaussian distribution can accurately fit the baseline to remove noise and baseline drift in the spectrum. Moreover, the Gaussian distribution function has a smooth curve shape, which can well fit the contour of the absorption peak. By using the Gaussian distribution function for correction, the characteristics of the absorption peak can be retained and enhanced, and the resolution of the spectrum can be improved.

[0036] Specifically, the S32, through the absorption spectrum semantic feature extractor based on the deep neural network model, features are extracted from each of the multiple corrected sulfide gas ultraviolet absorption spectra to obtain multiple ultraviolet absorption spectrum semantic feature vectors. In particular, in a specific example of the present application, the deep neural network model is based on a convolutional neural network model. That is, the multiple corrected sulfide gas ultraviolet absorption spectra are respectively subjected to feature mining in the absorption spectrum semantic feature extractor based on the convolutional neural network model to respectively extract the ultraviolet absorption spectrum semantic feature information in the multiple corrected sulfide gas ultraviolet absorption spectra, thereby obtaining multiple ultraviolet absorption spectrum semantic feature vectors, which provide a basis for subsequent sulfide type identification and analysis. More specifically, each layer of the absorption spectrum semantic feature extractor based on the convolutional neural network model performs the following operations on the input data in the forward pass of the layer: convolution processing on the input data to obtain a convolution feature map; pooling based on a feature matrix on the convolution feature map to obtain a pooled feature map; and nonlinear activation on the pooled feature map to obtain an activation feature map; wherein the output of the last layer of the absorption spectrum semantic feature extractor based on the convolutional neural network model is the multiple ultraviolet absorption spectrum semantic feature vectors, and the input of the first layer of the absorption spectrum semantic feature extractor based on the convolutional neural network model is the multiple corrected sulfide gas ultraviolet absorption spectra.

[0037] It is worth noting that the Convolutional Neural Network (CNN) is a deep learning model that is particularly suitable for processing data with grid structures, such as images and videos. The following is the general structure and step-by-step expansion of the Convolutional Neural Network model: Input layer: accepts input data, usually images, audio or text, etc.; Convolution layer: The convolution layer is one of the core components of CNN. It extracts local features from the input data by applying a series of filters (also called convolution kernels). The convolution operation multiplies the filter with the input data element by element and sums them to generate a feature map; Activation function: After the convolution layer, a nonlinear activation function such as ReLU is usually applied to introduce nonlinear features; Pooling layer: The pooling layer is used to reduce the spatial size of the feature map and retain the most important features. Common pooling operations are maximum pooling and average pooling; Fully connected layer: The fully connected layer connects the output of the pooling layer to one or more fully connected layers to map the features to the final output category or regression value. Each neuron in the fully connected layer is connected to all neurons in the previous layer; Output layer: The output layer selects appropriate activation functions according to different tasks, such as softmax function for multi-classification tasks and linear activation function for regression tasks; Loss function: Select appropriate loss functions according to different tasks, such as cross entropy loss function for classification tasks and mean square error loss function for regression tasks; Back propagation and optimization: Through the back propagation algorithm and gradient descent optimization algorithm, the gradient of the model parameters is calculated according to the loss function, and the parameters are updated to minimize the loss function.

[0038] Specifically, the S33 performs spectral semantic sharing on the plurality of ultraviolet absorption spectrum semantic feature vectors to obtain ultraviolet absorption spectrum shared semantic features. In particular, in a specific example of the present application, Figure 5 As shown, the S33 includes: S331, passing the multiple ultraviolet absorption spectrum semantic feature vectors through a spectral semantic sharer based on an autocorrelation attention network to obtain an ultraviolet absorption spectrum shared semantic feature vector; S332, based on the multiple ultraviolet absorption spectrum semantic feature vectors, constraining the optimization of the ultraviolet absorption spectrum shared semantic feature vector to obtain an ultraviolet absorption spectrum optimized shared semantic feature vector as the ultraviolet absorption spectrum shared semantic feature.

[0039] More specifically, in S331, the multiple ultraviolet absorption spectrum semantic feature vectors are passed through a spectrum semantic sharer based on an autocorrelation attention network to obtain an ultraviolet absorption spectrum shared semantic feature vector. It should be understood that ultraviolet light in different wavelength ranges has different performance characteristics for different sulfide gases. For example, for sulfur dioxide (SO2), there is a strong absorption peak under ultraviolet light of 200-300 nanometers; for sulfuric acid mist (H2SO4), there is a strong absorption peak under ultraviolet light of 250-350 nanometers; for hydrogen sulfide (H2S), there is a strong absorption peak under ultraviolet light of 300-400 nanometers. Therefore, in order to be able to perform correlation analysis and focus on key spectral semantics for the semantic features of ultraviolet absorption spectra at different wavelengths, so as to improve the expression ability of the semantic features of ultraviolet absorption spectra of sulfide-containing gases, thereby improving the judgment of sulfide types, in the technical solution of the present application, the multiple ultraviolet absorption spectrum semantic feature vectors are further processed through a spectrum semantic sharer based on an autocorrelation attention network to obtain ultraviolet absorption spectrum shared semantic feature vectors. In particular, the autocorrelation attention network can effectively learn the correlation and interaction between the semantic features of ultraviolet absorption spectra at different wavelengths, and dynamically adjust the weight of the features according to the correlation between the semantics of spectra at different wavelengths, to ensure that the information of each spectra is fully utilized and to avoid losing important information during the feature fusion process. In this way, the information of different spectra can be integrated together while retaining key information, thereby improving the characterization ability of the overall features. In a specific example, the multiple ultraviolet absorption spectrum semantic feature vectors are processed through the spectrum semantic sharer based on the autocorrelation attention network with the following spectrum semantic sharing formula to obtain the ultraviolet absorption spectrum shared semantic feature vector; wherein, the spectrum semantic sharing formula is:

[0040]

[0041]

[0042]

[0043] Among them, h i is the i-th ultraviolet absorption spectrum semantic feature vector among the multiple ultraviolet absorption spectrum semantic feature vectors, and W i Represent the weight coefficient vector and weight coefficient matrix respectively, B i is the offset vector, tanh(·) represents the tanh function, e i is the attention score of the i-th semantic feature vector of the ultraviolet absorption spectrum, exp(·) represents the exponential operation, e kis the attention score of the kth ultraviolet absorption spectrum semantic feature vector, t is the number of vectors of the multiple ultraviolet absorption spectrum semantic feature vectors, a i is the weight value of the i-th semantic feature vector of the ultraviolet absorption spectrum, and V1 is the shared semantic feature vector of the ultraviolet absorption spectrum.

[0044] More specifically, in S332, based on the multiple ultraviolet absorption spectrum semantic feature vectors, the ultraviolet absorption spectrum shared semantic feature vector is constrained and optimized to obtain an ultraviolet absorption spectrum optimized shared semantic feature vector as the ultraviolet absorption spectrum shared semantic feature. Considering that in the actual correlation analysis of the semantic features of ultraviolet absorption spectra of different wavelengths is performed to carry out semantic sharing of absorption spectra, in order to detect the type of sulfides in sulfide-containing gases, there is uncertainty because the sulfide types in sulfide-containing gases may contain multiple types. Therefore, in order to improve the stability and generalization ability of the model, in the technical solution of the present application, the ultraviolet absorption spectrum shared semantic feature vector is further constrained and optimized based on the multiple ultraviolet absorption spectrum semantic feature vectors to obtain an ultraviolet absorption spectrum optimized shared semantic feature vector. The processing of constrained optimization can help ensure that the generated shared semantic feature vector meets the constraints. At the same time, through constrained optimization, the global semantics and randomness between the semantics of ultraviolet absorption spectra of multiple wavelengths can be introduced to adjust the shared semantic feature vector, so that it can better characterize the characteristics of ultraviolet absorption spectra of multiple different wavelengths, thereby improving the expressive power and discrimination of the features, and providing a more reliable and effective feature representation for the subsequent identification of the type of sulfide in sulfide-containing gas. In a specific example, based on the multiple ultraviolet absorption spectrum semantic feature vectors, the ultraviolet absorption spectrum shared semantic feature vector is constrained and optimized using the following constrained optimization formula to obtain the ultraviolet absorption spectrum optimized shared semantic feature vector; wherein the constrained optimization formula is:

[0045]

[0046] Wherein, V1 is the shared semantic feature vector of the ultraviolet absorption spectrum, V rand is the ultraviolet absorption spectrum semantic feature vector at a random position in the plurality of ultraviolet absorption spectrum semantic feature vectors, V * is the mean feature vector of the multiple ultraviolet absorption spectrum semantic feature vectors, p1 and p2 are weight hyperparameters, f1 and f2 are hyperparameters that use a Gaussian distribution random number function with a mean of 0 and a variance of 1 as the coefficient of the Gaussian distribution function, and are vector subtraction and vector addition respectively, and V is the optimized shared semantic feature vector of the ultraviolet absorption spectrum.

[0047] It is worth mentioning that in other specific examples of the present application, the multiple ultraviolet absorption spectrum semantic feature vectors can also be spectrally semantically shared in other ways to obtain ultraviolet absorption spectrum shared semantic features, for example: input the multiple ultraviolet absorption spectrum semantic feature vectors; perform feature extraction on each ultraviolet absorption spectrum semantic feature vector to capture its important semantic information; apply shared learning technology to cross-learn and share the semantic information in multiple ultraviolet absorption spectrum semantic feature vectors; fuse the feature vectors processed by shared learning to obtain ultraviolet absorption spectrum shared semantic features.

[0048] Specifically, the S34 determines the analysis result based on the shared semantic features of the ultraviolet absorption spectrum, wherein the analysis result is used to represent the type label of the sulfide in the sulfide-containing gas. That is, in the technical solution of the present application, the shared semantic feature information of the multi-wavelength ultraviolet absorption spectrum after constraint optimization is used for classification processing, so as to perform sulfide type analysis of the sulfide-containing gas, thereby obtaining the type label of the sulfide. In this way, the sulfides in the atmosphere can be qualitatively analyzed based on the ultraviolet absorption spectra of different wavelengths of gas samples collected from the atmosphere, thereby improving the level of analysis and type recognition of atmospheric sulfides.

[0049] It should be understood that before using the above neural network model for inference, it is necessary to train the absorption spectrum semantic feature extractor based on the convolutional neural network model, the spectrum semantic sharer based on the autocorrelation attention network, and the sulfide analyzer based on the classifier. That is to say, in the atmospheric sulfide analysis method of the present application, a training phase is also included for training the absorption spectrum semantic feature extractor based on the convolutional neural network model, the spectrum semantic sharer based on the autocorrelation attention network, and the sulfide analyzer based on the classifier.

[0050] Figure 3 FIG. 4 is a flow chart of the training phase of the atmospheric sulfide analysis method according to an embodiment of the present application. Figure 3As shown, the atmospheric sulfide analysis method according to the embodiment of the present application includes: a training stage, including: S110, obtaining training data, wherein the training data includes processing the sulfide-containing gas to obtain a plurality of training sulfide-containing gas ultraviolet absorption spectra; S120, respectively performing spectral correction based on Gaussian distribution on the plurality of training sulfide-containing gas ultraviolet absorption spectra to obtain a plurality of corrected training sulfide gas ultraviolet absorption spectra; S130, respectively performing feature extraction on each of the plurality of corrected training sulfide gas ultraviolet absorption spectra by using an absorption spectrum semantic feature extractor based on a convolutional neural network model to obtain a plurality of training ultraviolet absorption spectrum semantic feature vectors; S140, extracting the plurality of training ultraviolet absorption spectrum semantic feature vectors by using an absorption spectrum semantic feature extractor based on an autocorrelation attention neural network model; A spectral semantic sharer of the network is used to obtain a training ultraviolet absorption spectrum shared semantic feature vector; S150, based on the multiple training ultraviolet absorption spectrum semantic feature vectors, the training ultraviolet absorption spectrum shared semantic feature vector is constrained optimized to obtain a training ultraviolet absorption spectrum optimized shared semantic feature vector; S160, the training ultraviolet absorption spectrum optimized shared semantic feature vector is iteratively optimized to obtain an optimized training ultraviolet absorption spectrum optimized shared semantic feature vector; S170, the optimized training ultraviolet absorption spectrum optimized shared semantic feature vector is passed through a classifier to obtain a classification loss function value; S180, based on the classification loss function value, the absorption spectrum semantic feature extractor based on the convolutional neural network model, the spectral semantic sharer based on the autocorrelation attention network and the sulfide analyzer based on the classifier are trained.

[0051] In particular, in the above technical solution, each of the multiple training ultraviolet absorption spectrum semantic feature vectors expresses the image semantic features of the corresponding sulfide gas ultraviolet absorption spectrum map. Therefore, considering the image semantic feature distribution differences of the multiple training ultraviolet absorption spectrum semantic feature vectors caused by the semantic differences of the source images of the multiple training sulfide gas ultraviolet absorption spectrum maps, based on the image semantic feature distribution of each training ultraviolet absorption spectrum semantic feature vector, the self-attention distribution is strengthened and the shared semantic features of the training ultraviolet absorption spectrum are shared through the spectral semantic sharer of the autocorrelation attention network. After the vector is constrained and optimized, the training ultraviolet absorption spectrum optimized shared semantic feature vector will have a discretized expression of the global image semantic features corresponding to the respective training ultraviolet absorption spectrum semantic feature vectors, that is, it will have the difference in feature distribution of eigenvalues ​​corresponding to the local image semantic feature representation of the respective training ultraviolet absorption spectrum semantic feature vectors under the global image semantic feature representation, that is, the inconsistency of the local feature distribution of the training ultraviolet absorption spectrum optimized shared semantic feature vector based on the eigenvalue numerical distribution, thereby affecting the convergence speed of the training ultraviolet absorption spectrum optimized shared semantic feature vector through the class regression iteration of the classifier. Therefore, the applicant of the present application iteratively optimizes the training ultraviolet absorption spectrum optimized shared semantic feature vector each time the training ultraviolet absorption spectrum optimized shared semantic feature vector is iterated through the classifier for classification regression, which is expressed as:

[0052]

[0053] where v i is the i-th eigenvalue of the shared semantic feature vector optimized by the training ultraviolet absorption spectrum, φ(v i ) represents the probabilistic function of the eigenvalue, that is, the eigenvalue v i The probability function mapped to the interval [0,1], p is the class probability value obtained by the classifier, L is the length of the training UV absorption spectrum optimization shared semantic feature vector, and α is the weight hyperparameter, exp() represents the exponential operation. Here, the feature value v of the training UV absorption spectrum optimization shared semantic feature vector is obtained by taking the Bernoulli probability likelihood distribution as the authoritative meta-entity i Based on the high-level class decision of Bernoulli probability distribution (p, 1-p), and introducing the probability density space mapping allocation relative to the whole feature set, the eigenvalue v of the shared semantic feature vector is optimized by determining the training ultraviolet absorption spectrum i The key insight with respect to the class probability mapping is to implement the training UV absorption spectrum to optimize the eigenvalues ​​of the shared semantic feature vector v iBased on the correctness of the matching function of the class probability distribution (p, 1-p) and the class convergence, the convergence of samples is promoted through the superiority of convergence performance, and the classification training speed is improved. In this way, the sulfides in the atmosphere can be qualitatively analyzed according to the ultraviolet absorption spectra of different wavelengths of gas samples collected from the atmosphere, so as to accurately identify the types of sulfides present in the atmospheric sulfides and improve the level of atmospheric sulfide analysis.

[0054] In summary, the atmospheric sulfide analysis method according to the embodiment of the present application is explained, which can cause electronic transitions to occur in the sulfide-containing gas by treating the sulfide-containing gas with ultraviolet light of different wavelengths, generate ultraviolet absorption spectra, and further obtain analysis results based on the multiple ultraviolet absorption spectra of the sulfide-containing gas, and the analysis results are type labels of sulfides in the sulfide-containing gas. In this way, the sulfides in the atmosphere can be qualitatively analyzed based on the ultraviolet absorption spectra of different wavelengths of gas samples collected from the atmosphere, thereby improving the level of analysis and type identification of atmospheric sulfides.

[0055] Furthermore, an atmospheric sulfide analysis device is also provided.

[0056] Figure 6 FIG. 1 is a block diagram of an atmospheric sulfide analysis device according to an embodiment of the present application. Figure 6 As shown, according to an embodiment of the present application, the atmospheric sulfide analysis device 300 includes: a gas sampling module 310, which is used to collect sulfide-containing gas in the atmosphere through a sampler; a gas processing module 320, which is used to pass the sulfide-containing gas through an ultraviolet spectrophotometer, and use ultraviolet light of different wavelengths to process the sulfide-containing gas to obtain a plurality of ultraviolet absorption spectra of the sulfide-containing gas; and an analysis result generation module 330, which is used to obtain an analysis result based on the plurality of ultraviolet absorption spectra of the sulfide-containing gas, wherein the analysis result is a type label of the sulfide in the sulfide-containing gas.

[0057] As described above, the atmospheric sulfide analysis device 300 according to the embodiment of the present application can be implemented in various wireless terminals, such as a server with an atmospheric sulfide analysis algorithm. In a possible implementation, the atmospheric sulfide analysis device 300 according to the embodiment of the present application can be integrated into the wireless terminal as a software module and / or a hardware module. For example, the atmospheric sulfide analysis device 300 can be a software module in the operating system of the wireless terminal, or can be an application developed for the wireless terminal; of course, the atmospheric sulfide analysis device 300 can also be one of the many hardware modules of the wireless terminal.

[0058] Alternatively, in another example, the atmospheric sulfide analysis device 300 and the wireless terminal may also be separate devices, and the atmospheric sulfide analysis device 300 may be connected to the wireless terminal via a wired and / or wireless network and transmit interactive information in accordance with an agreed data format.

[0059] Below, reference Figure 7 To describe an electronic device according to an embodiment of the present application.

[0060] Figure 7 A block diagram of an electronic device according to an embodiment of the present application is illustrated.

[0061] like Figure 7 As shown, the electronic device 10 includes one or more processors 11 and a memory 12 .

[0062] The processor 11 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 10 to perform desired functions.

[0063] The memory 12 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 11 may run the program instructions to implement the functions and / or other desired functions in the atmospheric sulfide analysis method of each embodiment of the present application described above. Various contents such as the corrected training sulfide gas ultraviolet absorption spectrum may also be stored in the computer-readable storage medium.

[0064] In one example, the electronic device 10 may further include: an input device 13 and an output device 14, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0065] The input device 13 may include, for example, a keyboard, a mouse, etc.

[0066] The output device 14 can output various information to the outside, including classification results, etc. The output device 14 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.

[0067] Of course, to simplify, Figure 7Only some of the components related to the present application in the electronic device 10 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 10 may also include any other appropriate components.

[0068] In addition, an embodiment of the present application may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enable the processor to perform the steps in the functions of the atmospheric sulfide analysis method according to various embodiments of the present application described in the above “Exemplary Method” section of this specification.

[0069] 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.

[0070] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.

[0071] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.

[0072] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for analyzing atmospheric sulfide, It is characterized in that include: Collect sulfide-containing gases in the atmosphere through a sampler; Passing the sulfide-containing gas through an ultraviolet spectrophotometer and treating the sulfide-containing gas with ultraviolet light of different wavelengths to obtain a plurality of ultraviolet absorption spectra of the sulfide-containing gas; as well as Based on the multiple ultraviolet absorption spectra of the sulfide-containing gas, an analysis result is obtained, wherein the analysis result is a type label of the sulfide in the sulfide-containing gas; Wherein, based on the multiple ultraviolet absorption spectra of the sulfide-containing gas, an analysis result is obtained, and the analysis result is a type label of the sulfide in the sulfide-containing gas, including: Performing spectrum correction based on Gaussian distribution on the plurality of sulfide-containing gas ultraviolet absorption spectra to obtain a plurality of corrected sulfide gas ultraviolet absorption spectra; The absorption spectrum semantic feature extractor based on the deep neural network model is used to extract features of each of the multiple corrected sulfide gas ultraviolet absorption spectra to obtain multiple ultraviolet absorption spectrum semantic feature vectors; Performing spectrum semantic sharing on the multiple ultraviolet absorption spectrum semantic feature vectors to obtain ultraviolet absorption spectrum shared semantic features; Determining the analysis result based on the shared semantic features of the ultraviolet absorption spectrum, wherein the analysis result is used to represent the type label of the sulfide in the sulfide-containing gas; The step of performing spectral semantic sharing on the plurality of ultraviolet absorption spectrum semantic feature vectors to obtain ultraviolet absorption spectrum shared semantic features includes: Passing the plurality of ultraviolet absorption spectrum semantic feature vectors through a spectrum semantic sharer based on an autocorrelation attention network to obtain an ultraviolet absorption spectrum shared semantic feature vector; Based on the multiple ultraviolet absorption spectrum semantic feature vectors, constrainingly optimizing the ultraviolet absorption spectrum shared semantic feature vector to obtain an ultraviolet absorption spectrum optimized shared semantic feature vector as the ultraviolet absorption spectrum shared semantic feature; The method of passing the plurality of ultraviolet absorption spectrum semantic feature vectors through a spectrum semantic sharer based on an autocorrelation attention network to obtain an ultraviolet absorption spectrum shared semantic feature vector comprises: passing the plurality of ultraviolet absorption spectrum semantic feature vectors through the spectrum semantic sharer based on an autocorrelation attention network to process the plurality of ultraviolet absorption spectrum semantic feature vectors using the following spectrum semantic sharing formula to obtain the ultraviolet absorption spectrum shared semantic feature vector; The spectral semantic sharing formula is: ;in, is the first of the plurality of ultraviolet absorption spectrum semantic feature vectors UV absorption spectrum semantic feature vectors, and Represent the weight coefficient vector and weight coefficient matrix respectively, is the offset vector, express function, For the The attention score of the semantic feature vector of the ultraviolet absorption spectrum, represents exponential operation, For the The attention score of the semantic feature vector of the ultraviolet absorption spectrum, is the number of vectors of the plurality of ultraviolet absorption spectrum semantic feature vectors, For the The weight value of the semantic feature vector of the ultraviolet absorption spectrum, is a shared semantic feature vector for the ultraviolet absorption spectrum.

2. The atmospheric sulfide analysis method according to claim 1, It is characterized in that The deep neural network model is based on a convolutional neural network model.

3. The atmospheric sulfide analysis method according to claim 2, It is characterized in that Based on the multiple ultraviolet absorption spectrum semantic feature vectors, constraining and optimizing the ultraviolet absorption spectrum shared semantic feature vector to obtain an ultraviolet absorption spectrum optimized shared semantic feature vector as the ultraviolet absorption spectrum shared semantic feature, comprising: based on the multiple ultraviolet absorption spectrum semantic feature vectors, constraining and optimizing the ultraviolet absorption spectrum shared semantic feature vector using the following constrained optimization formula to obtain the ultraviolet absorption spectrum optimized shared semantic feature vector; Wherein, the constraint optimization formula is: ;in, is the shared semantic feature vector of the ultraviolet absorption spectrum, is an ultraviolet absorption spectrum semantic feature vector at a random position in the plurality of ultraviolet absorption spectrum semantic feature vectors, is the mean feature vector of the multiple ultraviolet absorption spectrum semantic feature vectors, and is the weight hyperparameter, and The hyperparameters of the Gaussian distribution function coefficients are generated by a Gaussian distribution random number function with a mean of 0 and a variance of 1. and are vector subtraction and vector addition, respectively. A shared semantic feature vector is optimized for the ultraviolet absorption spectrum.

4. The atmospheric sulfide analysis method according to claim 3, It is characterized in that Based on the shared semantic features of the ultraviolet absorption spectrum, the analysis result is determined, wherein the analysis result is used to represent the type label of the sulfide in the sulfide-containing gas, including: passing the ultraviolet absorption spectrum optimized shared semantic feature vector through a classifier-based sulfide analyzer to obtain the analysis result, wherein the analysis result is used to represent the type label of the sulfide in the sulfide-containing gas.

5. The atmospheric sulfide analysis method according to claim 4, It is characterized in that The method further includes a training step: for training the absorption spectrum semantic feature extractor based on the convolutional neural network model, the spectrum semantic sharer based on the autocorrelation attention network, and the sulfide analyzer based on the classifier; Wherein, the training step includes: Acquiring training data, the training data comprising processing the sulfide-containing gas to obtain a plurality of training sulfide-containing gas ultraviolet absorption spectra; Performing a spectrum correction based on Gaussian distribution on the plurality of training sulfide-containing gas ultraviolet absorption spectra to obtain a plurality of corrected training sulfide gas ultraviolet absorption spectra; Extracting features from each of the multiple corrected training sulfide gas ultraviolet absorption spectra by using an absorption spectrum semantic feature extractor based on a convolutional neural network model to obtain multiple training ultraviolet absorption spectrum semantic feature vectors; Passing the plurality of training ultraviolet absorption spectrum semantic feature vectors through a spectrum semantic sharer based on an autocorrelation attention network to obtain a training ultraviolet absorption spectrum shared semantic feature vector; Based on the multiple training ultraviolet absorption spectrum semantic feature vectors, constrainingly optimizing the training ultraviolet absorption spectrum shared semantic feature vector to obtain a training ultraviolet absorption spectrum optimized shared semantic feature vector; Iteratively optimizing the training ultraviolet absorption spectrum optimized shared semantic feature vector to obtain an optimized training ultraviolet absorption spectrum optimized shared semantic feature vector; Passing the optimized training ultraviolet absorption spectrum optimized shared semantic feature vector through a classifier to obtain a classification loss function value; The absorption spectrum semantic feature extractor based on the convolutional neural network model, the spectrum semantic sharer based on the autocorrelation attention network and the classifier-based sulfide analyzer are trained based on the classification loss function value.

6. An atmospheric sulfide analysis device for the atmospheric sulfide analysis method according to claim 1, It is characterized in that include: A gas sampling module, used for collecting sulfide-containing gases in the atmosphere through a sampler; A gas processing module, used for passing the sulfide-containing gas through an ultraviolet spectrophotometer and treating the sulfide-containing gas with ultraviolet light of different wavelengths to obtain a plurality of ultraviolet absorption spectra of the sulfide-containing gas; as well as The analysis result generating module is used to obtain the analysis result based on the multiple ultraviolet absorption spectra of the sulfide-containing gas, and the analysis result is the type label of the sulfide in the sulfide-containing gas.

7. A computer storage medium having computer program instructions stored thereon, wherein when the computer program instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 5.