Visualization method and system for inhalable particulate matter pollution based on neural radiation field
By constructing clear scene and particulate matter scene modules based on neural radiation field methods, using neural radiation field representation and hierarchical sampling method, the problem of poor visualization of respirable particulate matter pollution in the existing technology is solved, and higher accuracy is achieved. performance and reliability.
Patent Information
- Application Number
- CN202410866910.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-01
AI Technical Summary
Existing respirable particulate matter pollution visualization technology has insufficient capabilities in terms of fidelity, consistency, generalization ability, and controllable synthesis during the volume rendering process, resulting in poor respirable particulate matter pollution visualization effects.
An inhalable particulate matter pollution visualization method based on neural radiation fields is adopted. By acquiring and preprocessing image data, a clear scene module and a particulate matter scene module are constructed. The neural radiation field representation method and hierarchical sampling method are used for volume rendering, combined with a multi-layer perceptron. and backpropagation algorithm to optimize model training and loss function calculation to improve the accuracy and reliability of visualizing respirable particulate matter pollution.
It significantly improves the fidelity, consistency and controllability of the visualization of inhalable particulate matter pollution, improves the accuracy and reliability of the visualization of inhalable particulate matter pollution, and can more effectively reflect the distribution and concentration of particulate matter in image data.
Smart Images

Figure CN118411458B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of visualization of inhalable particle pollution, and in particular to a method and system for visualization of inhalable particle pollution based on a neural radiation field. Background Art
[0002] Air pollution visualization refers to the use of computer graphics and data visualization technology to convert air pollution data into easy-to-understand graphics or images to facilitate the analysis and display of the distribution, changing trends and potential impacts of air pollution.
[0003] Traditional air pollution visualization is a technology and method that displays air pollution data in the form of images or charts. Through visualization, people can more intuitively understand the status, trends and impacts of air pollution. Existing methods include: in the spatial dimension, using geographic information system (GIS) technology to integrate air pollution data with map data to generate heat maps, contour maps, scatter plots, etc. to show the distribution of pollution levels in different regions; in the time dimension, combining historical data with real-time data to generate line graphs, bar graphs, radar charts, etc. to show the evolution characteristics of air pollutants in different time periods; in terms of interactivity, users can customize the visualization interface and parameters, and select pollutants of interest, spatial and temporal ranges, and presentation methods according to their needs.
[0004] Visualization includes not only the generation of images (i.e. rendering), but also the analysis, interpretation and presentation of data. Rendering refers to the process of converting a three-dimensional model, scene or data into a two-dimensional image. This process involves the simulation of light, the processing of material properties, the selection of viewing angles, etc., and ultimately generates a static image or animation sequence. The purpose of rendering is to reproduce the three-dimensional world or scene as realistically as possible, which relies on complex mathematical algorithms and the computing power of graphics hardware. Among rendering technologies, volume rendering is specifically used to process and visualize three-dimensional volume data. Unlike traditional surface rendering, volume rendering directly operates on the interior of the data instead of just rendering the geometry of the surface.
[0005] Nowadays, many studies on pollutant visualization are based on volume rendering, which is a technology used to simulate and render three-dimensional volume data. It can create semi-transparent or fully transparent visual effects such as fog, clouds, and smoke. In atmospheric rendering, volume rendering technology can be used to simulate scattering phenomena in the atmosphere, especially scattering related to atmospheric pollutants. Although volume rendering has good effects, it is still insufficient in terms of realism, consistency, generalization ability, and controllable synthesis, resulting in poor visualization of inhalable particulate matter pollution. Summary of the invention
[0006] In order to overcome the problem that the existing inhalable particle pollution visualization technology has insufficient fidelity, consistency, generalization ability and controllable synthesis capabilities in the volume rendering process, resulting in poor visualization effect of inhalable particle pollution, the present invention proposes an inhalable particle pollution visualization method and system based on neural radiation field. The method can effectively improve the fidelity, consistency, generalization ability and controllable synthesis capabilities in the volume rendering process, thereby improving the accuracy and reliability of inhalable particle pollution visualization.
[0007] To achieve the purpose of the present invention, the present invention adopts the following technical solutions:
[0008] A method for visualizing inhalable particulate matter pollution based on neural radiation fields, the method comprising the following steps:
[0009] Acquire image data of different inhalable particulate matter concentrations, and pre-process the acquired image data;
[0010] Constructing an inhalable particle pollution visualization model, and dividing the preprocessed image data into a training set and a verification set, using the training set to perform inhalable particle pollution visualization training on the inhalable particle pollution visualization model, and using the verification set to verify the trained inhalable particle pollution visualization model, and obtaining a trained inhalable particle pollution visualization model after the verification passes;
[0011] The trained particle pollution visualization model is used to predict particle pollution using image data of different particle concentrations to be predicted, and the prediction results are visualized.
[0012] In the above technical scheme, preprocessing the acquired image data can reduce the chain reaction caused by quality problems of the image data and improve the reliability of the image data; the constructed inhalable particle pollution visualization model is trained for inhalable particle pollution visualization in order to obtain a model that can effectively predict inhalable particle pollution based on image data with different inhalable particle concentrations to be predicted, so as to use the trained model to perform visualization prediction of inhalable particle pollution and output the prediction results in a visualized manner, thereby improving the accuracy and reliability of inhalable particle pollution visualization.
[0013] Furthermore, the process of preprocessing the acquired image data includes:
[0014] The image data of rainy days and foggy days are eliminated from the image data, the remaining image data are combined into a data set, and the pose data of each image in the data set is obtained.
[0015] According to the above technical scheme, eliminating image data of rainy and foggy days in the image data can effectively minimize the impact of water mist in the air on visualization in the initial stage, thereby ensuring the reliability of the image data; obtaining the pose data of each image in the data set can provide more effective data support for subsequent model training, so as to speed up the training efficiency of the model.
[0016] Furthermore, the process of performing inhalable particle pollution visualization training on the inhalable particle pollution visualization model using the training set includes:
[0017] The inhalable particulate matter pollution visualization model includes a clear scene module and a particulate matter scene module;
[0018] The training set is input into the clear scene module and the particle scene module respectively to obtain the color value and density value of the image data;
[0019] Volume rendering is performed based on the color value and density value of the image data to obtain pixel values corresponding to the clear scene module and the particle scene module;
[0020] The pixel values corresponding to the clear scene module and the particle scene module are superimposed to obtain a visualization image of the inhalable particle pollution predicted by the inhalable particle pollution visualization model;
[0021] Based on the image data in the validation set, a loss function is set to calculate the loss of the predicted inhalable particulate matter pollution visualization image, and the inhalable particulate matter pollution visualization model is iteratively trained according to the calculated loss. When the loss function converges, a trained inhalable particulate matter pollution visualization model is obtained.
[0022] Furthermore, the process of obtaining the color value and density value of the image data includes:
[0023] Generate sight rays based on the image’s pose data;
[0024] The position coordinates of the sight line are encoded using a neural radiation field representation method, and the encoding expression is:
[0025] ;
[0026] The encoded position coordinates and the pollutant concentration data in the image data are input into the clear scene module and the particulate matter scene module respectively, and the density value of the clear scene in the image data is extracted by the clear scene module With color value , use the particle scene module to extract the density value of the particle scene in the image data With color value ;
[0027] in, = , represents the three-dimensional space coordinates and viewing angle; x Represents the coordinates of a point in three-dimensional space ( x , y , z ), each coordinate point is normalized to the interval [-1,1]; d = , represents the direction vector; Represents a hyperparameter whose value is an integer.
[0028] In the above technical solution, the neural radiation field representation method is used to encode the position coordinates of the line of sight light, which can better sample the particles in the image data, thereby obtaining a density value that can better reflect the clear scene of the inhalable particles in the image data. , color value Density value of the particle scene , color value .
[0029] Furthermore, the process of obtaining pixel values corresponding to the clear scene module and the particulate matter scene module includes:
[0030] Density value based on clear scene , color value Density value of the particle scene , color value , the hierarchical sampling method is used to render the image data volume, and the expression is:
[0031] ;
[0032] By performing volume rendering on the image data, the pixel value of the particle scene is obtained, and the expression is:
[0033] ;
[0034] By performing volume rendering on the image data, the pixel value of the clear scene is obtained, and the expression is:
[0035] ;
[0036] in, and Indicates that a ray emitted by the camera is from Location to Location; represents the contribution of the PM scene; Indicates the contribution of clear scenes; Indicates that in a clear scene, the line of sight light is from arrive The cumulative transmittance of Indicates that in the particulate matter scene, the line of sight light is from arrive The cumulative transmittance of represents the line of sight ray vector; e represents the base of the natural logarithm, which is a constant; , indicating a point The basic information includes three-dimensional coordinates and directions; N represents the total number of discrete points. The larger N is, the more accurate the result is and the slower the rendering speed is; i represents a natural number; Indicates from arrive Any point in is the independent variable; Indicates the distance between two adjacent sampling points; Indicates the distance between two adjacent sampling points.
[0037] In the above technical solution, a hierarchical sampling method is used to perform volume rendering on image data, which can sample the inhalable particulate matter in the image data from more levels and more angles, thereby improving the training accuracy of the model, and further improving the accuracy and reliability of the trained model in visualizing inhalable particulate matter pollution.
[0038] Furthermore, the pixel values corresponding to the clear scene and the particle scene are superimposed to obtain the pixel values of the inhalable particle pollution visualization image predicted by the inhalable particle pollution visualization model, which is expressed as:
[0039] ;
[0040] in, Indicates the distance between two adjacent sampling points; Indicates the distance between two adjacent sampling points.
[0041] Furthermore, based on the image data in the validation set, the process of setting the loss function to calculate the loss of the predicted visualization image of the inhalable particulate matter pollution includes:
[0042] Calculate the loss of image pixel values, the expression is:
[0043] ;
[0044] Calculate the clear scene loss value and use entropy minimization. The expression is:
[0045] ;
[0046] Calculate the loss value of the particle scene using entropy maximization, the expression is:
[0047] ;
[0048] Calculate the total loss value, the expression is:
[0049] ;
[0050] According to the total loss value, the inhalable particle pollution visualization model is iteratively trained. When the loss value output by the loss function converges, the trained inhalable particle pollution visualization model is obtained. The trained inhalable particle pollution visualization model is used to predict the inhalable particle pollution of image data with different inhalable particle concentrations to be predicted, and the prediction results are visualized.
[0051] Among them, r, g, b represent red, green, and blue image pixels respectively; E represents the mathematical symbol for calculation expectation, Represents the predicted pixel value; The pixel value representing the real pixel; , , are hyperparameters, representing the weights corresponding to the image pixel value, clear scene loss value, and particle scene loss value respectively; , indicating a point The basic information includes three-dimensional coordinates and directions.
[0052] In the above technical solution, the method of using triple loss functions to calculate the loss values of the model output results respectively can effectively reduce the number of iterative training of the model and improve the efficiency and accuracy of model training.
[0053] Furthermore, according to the total loss value, the back propagation algorithm is used to iteratively train the inhalable particulate matter pollution visualization model.
[0054] Furthermore, the clear scene module and the particle scene module are both multi-layer perceptrons (MLPs).
[0055] In the above technical solution, the back-propagation algorithm is used to iteratively train the inhalable particulate matter pollution visualization model, which can better feed back the loss value into the model training, thereby improving the efficiency and accuracy of the model training; the set multi-layer perceptron MPL can better reflect the clear scene and inhalable particulate matter scene of the image data.
[0056] A visualization system for inhalable particulate matter pollution based on neural radiation field, the system comprising:
[0057] An acquisition module, used for acquiring image data of different inhalable particulate matter concentrations;
[0058] A processing module, used for preprocessing the acquired image data;
[0059] A building block for building a visualization model of particulate matter pollution;
[0060] The processing module is also used to divide the preprocessed image data into a training set and a verification set;
[0061] A training module, used for performing inhalable particle pollution visualization training on the inhalable particle pollution visualization model according to a training set;
[0062] A verification module is used to verify the trained inhalable particle pollution visualization model according to the verification set, and obtain the trained inhalable particle pollution visualization model after the verification passes;
[0063] The prediction and visualization module is used to use the trained inhalable particle pollution visualization model to predict the inhalable particle pollution of image data with different inhalable particle concentrations to be visualized, and visualize the prediction results.
[0064] Compared with the prior art, the present invention has the following beneficial effects:
[0065] The present invention proposes a method and system for visualizing inhalable particle pollution based on neural radiation fields. First, the acquired image data is preprocessed to reduce the chain reaction caused by quality problems of the image data and improve the reliability of the image data. Then, the constructed inhalable particle pollution visualization model is trained for inhalable particle pollution visualization in order to obtain a model that can effectively predict inhalable particle pollution using image data of different inhalable particle concentrations to be predicted. Finally, the trained model is used to perform visualization prediction of inhalable particle pollution, and the prediction results are output in a visualized manner, thereby improving the accuracy and reliability of visualization of inhalable particle pollution. In addition, the present invention can be combined with actual observation data and simulation data. The present invention can also perform parameterized control: multi-perspective scenes with different pollution degrees are represented by setting the mass concentrations of different inhalable particles. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 A flow chart of a method for visualizing inhalable particulate matter pollution based on neural radiation fields provided in an embodiment of the present application;
[0067] Figure 2 A structural block diagram of the inhalable particulate matter pollution visualization model provided in an embodiment of the present application;
[0068] Figure 3 A parameter diagram of density values and color values of clear scenes in image data extracted by a clear scene module provided in an embodiment of the present application;
[0069] Figure 4A parameter diagram of the density value and color value of a particle scene in image data extracted by a particle scene module provided in an embodiment of the present application;
[0070] Figure 5 A comparison diagram of the output result diagram of the inhalable particulate matter pollution visualization model provided in the embodiment of the present application and the real image;
[0071] Figure 6 A mass concentration data graph of PM2.5 and PM10 recorded when taking photos provided in an embodiment of the present application;
[0072] Figure 7 A schematic diagram of the structure of an inhalable particulate matter pollution visualization system based on neural radiation field provided in an embodiment of the present application. DETAILED DESCRIPTION
[0073] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Preferred embodiments of the present invention are provided in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present invention more thorough and comprehensive.
[0074] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.
[0075] Embodiment 1:
[0076] This embodiment provides a method for visualizing inhalable particulate matter pollution based on neural radiation fields. Figure 1 , the method comprises the following steps:
[0077] S1: acquiring image data of different inhalable particulate matter concentrations and preprocessing the acquired image data;
[0078] S2: constructing an inhalable particle pollution visualization model, and dividing the preprocessed image data into a training set and a verification set, using the training set to perform inhalable particle pollution visualization training on the inhalable particle pollution visualization model, and using the verification set to verify the trained inhalable particle pollution visualization model, and obtaining a trained inhalable particle pollution visualization model after verification;
[0079] S3: Use the trained particle pollution visualization model to predict particle pollution using image data of different particle concentrations to be predicted, and visualize the prediction results.
[0080] The process of preprocessing the acquired image data described in step S1 includes:
[0081] The image data of rainy days and foggy days are eliminated from the image data, the remaining image data are combined into a data set, and the pose data of each image in the data set is obtained.
[0082] For example, real images with different particle concentrations are obtained, and the concentration data of PM2.5 and PM10 corresponding to the images are obtained. Since the water mist in the air has a greater impact on visualization, pictures of rainy and foggy days are eliminated. The image pose data is obtained using COLMAP software based on the existing images. The preprocessed data set includes images, particle concentrations, and camera pose data.
[0083] It can be understood that eliminating image data from rainy and foggy days can effectively minimize the impact of water mist in the air on visualization in the initial stage, thereby ensuring the reliability of the image data; obtaining the pose data of each image in the data set can provide more effective data support for subsequent model training, thereby speeding up the training efficiency of the model.
[0084] See also Figure 2 The process of using the training set to perform inhalable particle pollution visualization training on the inhalable particle pollution visualization model in step S2 includes:
[0085] The inhalable particulate matter pollution visualization model includes a clear scene module and a particulate matter scene module;
[0086] S21: input the training set into the clear scene module and the particle scene module respectively to obtain the color value and density value of the image data;
[0087] S22: Perform volume rendering based on the color value and density value of the image data to obtain pixel values corresponding to the clear scene module and the particle scene module;
[0088] S23: superimposing the pixel values corresponding to the clear scene module and the particle scene module to obtain a visualization image of the inhalable particle pollution predicted by the inhalable particle pollution visualization model;
[0089] S24: Based on the image data in the validation set, a loss function is set to calculate the loss of the predicted inhalable particulate matter pollution visualization image, and the inhalable particulate matter pollution visualization model is iteratively trained according to the calculated loss. When the loss function converges, a trained inhalable particulate matter pollution visualization model is obtained.
[0090] In this embodiment, the acquired image data is preprocessed to reduce the chain reaction caused by quality problems of the image data and improve the reliability of the image data; then, the constructed inhalable particle pollution visualization model is trained for inhalable particle pollution visualization in order to obtain a model that can effectively predict inhalable particle pollution using image data of different inhalable particle concentrations to be predicted; finally, the trained model is used to perform visualization prediction of inhalable particle pollution, and the prediction results are output as a visualization, thereby improving the accuracy and reliability of visualization of inhalable particle pollution; in addition, the present invention can be combined with actual observation data and simulation data; the present invention can also perform parameterized control: by setting the mass concentration of different inhalable particles to represent multi-perspective scenes with different pollution degrees.
[0091] Embodiment 2:
[0092] This embodiment further describes steps S21 to S24 in the embodiment. Figure 2 , as follows:
[0093] The process of obtaining the color value and density value of the image data in step S21 includes:
[0094] Generate sight rays based on the image’s pose data;
[0095] The position coordinates of the sight line are encoded using a neural radiation field representation method, and the encoding expression is:
[0096] ;
[0097] The encoded position coordinates and the pollutant concentration data in the image data are input into the clear scene module and the particulate matter scene module respectively, and the density value of the clear scene in the image data is extracted by the clear scene module With color value , use the particle scene module to extract the density value of the particle scene in the image data With color value ;
[0098] in, = , represents the three-dimensional space coordinates and viewing angle; x Represents the coordinates of a point in three-dimensional space ( x ,y , z ), each coordinate point is normalized to the interval [-1,1]; d = , represents the direction vector; Represents a hyperparameter whose value is an integer.
[0099] For example, see Figure 3 , the MLP parameters of the clear scene refer to the neural radiance field method, such as Figure 4 As shown: In this method, the hyperparameter for The spatial three-dimensional coordinate encoding is set to 10, and the hyperparameter for The direction code is set to 4. Therefore Figure 3 , Figure 4 Coordinate encoding of three-dimensional space in The dimension is . Viewing angle The dimension is . Figure 4 The m(PM) in Figure 2 In the equation, m(PM2.5) and m(PM10) represent the mass concentrations of PM2.5 and PM10, respectively. After passing through the multi-layer perceptron MLP, Figure 3 , Figure 4 The clear scene density value is shown as follows and particle scene density value , get the clear scene RGB vector and particle scene RGB vector .
[0100] It can be understood that the use of the neural radiation field representation method to encode the position coordinates of the line of sight light can better sample the particles in the image data, thereby obtaining a density value that can better reflect the clear scene of the inhalable particles in the image data. , color value Density value of the particle scene , color value .
[0101] The process of obtaining the pixel values corresponding to the clear scene module and the particulate matter scene module in step S22 includes:
[0102] Density value based on clear scene , color value Density value of the particle scene , color value , the hierarchical sampling method is used to render the image data volume, and the expression is:
[0103] ;
[0104] By performing volume rendering on the image data, the pixel value of the particle scene is obtained, and the expression is:
[0105] ;
[0106] By performing volume rendering on the image data, the pixel value of the clear scene is obtained, and the expression is:
[0107] ;
[0108] in, and Indicates that a ray emitted by the camera is from Location to Location; represents the contribution of the PM scene; Indicates the contribution of clear scenes; Indicates that in a clear scene, the line of sight light is from arrive The cumulative transmittance of Indicates that in the particulate matter scene, the line of sight light is from arrive The cumulative transmittance of represents the line of sight ray vector; e represents the base of the natural logarithm, which is a constant; , indicating a point The basic information includes three-dimensional coordinates and directions; N represents the total number of discrete points. The larger N is, the more accurate the result is and the slower the rendering speed is; i represents a natural number; Indicates from arrive Any point in is the independent variable; , Represents an RGB vector, which is used to represent the color value of an image; Indicates the distance between two adjacent sampling points; Indicates the distance between two adjacent sampling points.
[0109] It can be understood that the use of hierarchical sampling method to perform volume rendering on image data can sample the inhalable particulate matter in the image data from more levels and more angles, improve the training accuracy of the model, and then improve the accuracy and reliability of the trained model in visualizing inhalable particulate matter pollution.
[0110] In step S23, the pixel values corresponding to the clear scene and the particle scene are superimposed to obtain the pixel values of the inhalable particle pollution visualization image predicted by the inhalable particle pollution visualization model, and the expression is:
[0111] ;
[0112] in, Indicates the distance between two adjacent sampling points; Indicates the distance between two adjacent sampling points.
[0113] In step S24, the process of setting a loss function to calculate the loss of the predicted visualization image of inhalable particulate matter pollution based on the image data in the validation set includes:
[0114] Calculate the loss of image pixel values, the expression is:
[0115] ;
[0116] Calculate the clear scene loss value and use entropy minimization. The expression is:
[0117] ;
[0118] Calculate the loss value of the particle scene using entropy maximization, the expression is:
[0119] ;
[0120] Calculate the total loss value, the expression is:
[0121] ;
[0122] According to the total loss value, the inhalable particle pollution visualization model is iteratively trained. When the loss value output by the loss function converges, the trained inhalable particle pollution visualization model is obtained. The trained inhalable particle pollution visualization model is used to predict the inhalable particle pollution of image data with different inhalable particle concentrations to be predicted, and the prediction results are visualized.
[0123] Among them, r, g, b represent red, green, and blue image pixels respectively; E represents the mathematical symbol for calculation expectation, Represents the predicted pixel value; The pixel value representing the real pixel; , , are hyperparameters, representing the weights corresponding to the image pixel value, clear scene loss value, and particle scene loss value respectively; , indicating a point The basic information includes three-dimensional coordinates and directions.
[0124] For example, model detection and visualization: the experimental data set obtained in step S1 is randomly divided into a training set, a test set, and a validation set in a ratio of 6:2:2, and the designed inhalable particle pollutant scene representation model is input for training, and the trained weight file is used for accuracy testing and visualization detection. The results are as follows Figure 5 shown. Figure 5 The left side shows the image from one of the viewing angles generated by the model with the corresponding inhalable particulate matter concentration set, and the right side shows the actual image taken. Figure 6 This is the mass concentration data of PM2.5 and PM10 recorded when the photo was taken, in micrograms per cubic meter.
[0125] It can be understood that the method of using triple loss functions to calculate the loss values of the model output results can effectively reduce the number of iterative training of the model and improve the efficiency and accuracy of model training.
[0126] As a preferred embodiment, according to the total loss value, the back propagation algorithm is used to iteratively train the inhalable particulate matter pollution visualization model. The back propagation algorithm is used to back propagate the loss to the neural network trained by the inhalable particulate matter pollution visualization model, calculate the gradient and update the weight.
[0127] As a preferred embodiment, the clear scene module and the particle scene module are both configured as multi-layer perceptrons (MLPs).
[0128] It can be understood that the iterative training of the inhalable particulate matter pollution visualization model using the back-propagation algorithm can better feed back the loss value into the model training, thereby improving the efficiency and accuracy of the model training; the set multi-layer perceptron MPL can better reflect the clear scenes and inhalable particulate matter scenes of the image data.
[0129] Embodiment three:
[0130] This embodiment provides a visualization system for inhalable particulate matter pollution based on neural radiation field, see Figure 7 , the system comprising:
[0131] An acquisition module, used for acquiring image data of different inhalable particulate matter concentrations;
[0132] A processing module, used for preprocessing the acquired image data;
[0133] A building block for building a visualization model of particulate matter pollution;
[0134] The processing module is also used to divide the preprocessed image data into a training set and a verification set;
[0135] A training module, used for performing inhalable particle pollution visualization training on the inhalable particle pollution visualization model according to a training set;
[0136] A verification module is used to verify the trained inhalable particle pollution visualization model according to the verification set, and obtain the trained inhalable particle pollution visualization model after the verification passes;
[0137] The prediction and visualization module is used to use the trained inhalable particle pollution visualization model to predict the inhalable particle pollution of image data with different inhalable particle concentrations to be visualized, and visualize the prediction results.
[0138] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for visualizing inhalable particulate matter pollution based on neural radiation field, characterized in that: The method comprises the following steps: Acquire image data of different inhalable particulate matter concentrations, and pre-process the acquired image data; Constructing an inhalable particle pollution visualization model, and dividing the preprocessed image data into a training set and a verification set, using the training set to perform inhalable particle pollution visualization training on the inhalable particle pollution visualization model, and using the verification set to verify the trained inhalable particle pollution visualization model, and obtaining a trained inhalable particle pollution visualization model after the verification passes; Use the trained particle pollution visualization model to predict particle pollution using the image data of different particle concentrations to be predicted, and visualize the prediction results; The process of performing inhalable particle pollution visualization training on the inhalable particle pollution visualization model using the training set includes: The inhalable particulate matter pollution visualization model includes a clear scene module and a particulate matter scene module; The training set is input into the clear scene module and the particle scene module respectively to obtain the color value and density value of the image data; Volume rendering is performed based on the color value and density value of the image data to obtain pixel values corresponding to the clear scene module and the particle scene module; The pixel values corresponding to the clear scene module and the particle scene module are superimposed to obtain a visualization image of the inhalable particle pollution predicted by the inhalable particle pollution visualization model; Based on the image data in the validation set, a loss function is set to calculate the loss of the predicted inhalable particulate matter pollution visualization image, and the inhalable particulate matter pollution visualization model is iteratively trained according to the calculated loss. When the loss function converges, a trained inhalable particulate matter pollution visualization model is obtained; The process of obtaining the color value and density value of image data includes: Generate sight rays based on the image’s pose data; The position coordinates of the sight line are encoded using a neural radiation field representation method, and the encoding expression is: ; The encoded position coordinates and the pollutant concentration data in the image data are input into the clear scene module and the particulate matter scene module respectively, and the density value of the clear scene in the image data is extracted by the clear scene module With color value , use the particle scene module to extract the density value of the particle scene in the image data With color value ; in, = , represents the three-dimensional space coordinates and viewing angle; x Represents the coordinates of a point in three-dimensional space ( x , y , z ), each coordinate point is normalized to the interval [-1,1]; d = , represents the direction vector; Represents a hyperparameter whose value is an integer.
2. The method for visualizing inhalable particulate matter pollution based on neural radiation field according to claim 1, characterized in that: The process of preprocessing the acquired image data includes: The image data of rainy days and foggy days are eliminated from the image data, the remaining image data are combined into a data set, and the pose data of each image in the data set is obtained.
3. The method for visualizing inhalable particulate matter pollution based on neural radiation field according to claim 2 is characterized in that: The process of obtaining the pixel values corresponding to the clear scene module and the particle scene module includes: Density value based on clear scene , color value Density value of the particle scene , color value , the hierarchical sampling method is used to render the image data volume, and the expression is: ; By performing volume rendering on the image data, the pixel value of the particle scene is obtained, and the expression is: ; By performing volume rendering on the image data, the pixel value of the clear scene is obtained, and the expression is: ; in, and Indicates that a ray emitted by the camera is from Location to Location; represents the contribution of the PM scene; Indicates the contribution of clear scenes; Indicates that in a clear scene, the line of sight light is from arrive The cumulative transmittance of Indicates that in the particulate matter scene, the line of sight light is from arrive The cumulative transmittance of represents the line of sight ray vector; e represents the base of the natural logarithm, which is a constant; , indicating a point The basic information includes three-dimensional coordinates and directions; N represents the total number of discrete points. The larger N is, the more accurate the result is and the slower the rendering speed is; i represents a natural number; Indicates from arrive Any point in is the independent variable; Indicates the distance between two adjacent sampling points; Indicates the distance between two adjacent sampling points.
4. The method for visualizing inhalable particulate matter pollution based on neural radiation field according to claim 3 is characterized in that: The pixel values corresponding to the clear scene and the particle scene are superimposed to obtain the pixel values of the inhalable particle pollution visualization image predicted by the inhalable particle pollution visualization model. The expression is: ; in, Indicates the distance between two adjacent sampling points; Indicates the distance between two adjacent sampling points.
5. The method for visualizing inhalable particulate matter pollution based on neural radiation field according to claim 4 is characterized in that: Based on the image data in the validation set, the process of setting the loss function to calculate the loss of the predicted visualization image of inhalable particulate matter pollution includes: Calculate the loss of image pixel values, the expression is: ; Calculate the clear scene loss value and use entropy minimization. The expression is: ; Calculate the loss value of the particle scene using entropy maximization, the expression is: ; Calculate the total loss value, the expression is: ; According to the total loss value, the inhalable particle pollution visualization model is iteratively trained. When the loss value output by the loss function converges, the trained inhalable particle pollution visualization model is obtained. The trained inhalable particle pollution visualization model is used to predict the inhalable particle pollution of image data with different inhalable particle concentrations to be predicted, and the prediction results are visualized. Among them, r, g, b represent red, green, and blue image pixels respectively; E represents the mathematical symbol for calculation expectation, Represents the predicted pixel value; The pixel value representing the real pixel; , , are hyperparameters, representing the weights corresponding to the image pixel value, clear scene loss value, and particle scene loss value respectively; , indicating a point The basic information includes three-dimensional coordinates and directions.
6. The method for visualizing inhalable particulate matter pollution based on neural radiation field according to claim 5, characterized in that: According to the total loss value, the back propagation algorithm is used to iteratively train the inhalable particulate matter pollution visualization model.
7. The method for visualizing inhalable particulate matter pollution based on neural radiation field according to any one of claims 2 to 6, characterized in that: The clear scene module and the particle scene module are both configured as multi-layer perceptrons (MLPs).
8. A visualization system for inhalable particulate matter pollution based on neural radiation field, the system is used to implement the method steps described in any one of claims 1 to 7, characterized in that: The system comprises: An acquisition module, used for acquiring image data of different inhalable particulate matter concentrations; A processing module, used for preprocessing the acquired image data; A building block for building a visualization model of particulate matter pollution; The processing module is also used to divide the preprocessed image data into a training set and a verification set; A training module, used for performing inhalable particle pollution visualization training on the inhalable particle pollution visualization model according to a training set; A verification module is used to verify the trained inhalable particle pollution visualization model according to the verification set, and obtain the trained inhalable particle pollution visualization model after the verification passes; The prediction and visualization module is used to use the trained inhalable particle pollution visualization model to predict the inhalable particle pollution of image data with different inhalable particle concentrations to be visualized, and visualize the prediction results.
