Thermal power plant power coal stock dynamic evaluation method and system based on NeRF and storage medium

Through the dynamic assessment method of the NeRF algorithm, the efficiency and accuracy problems of thermal coal inventory assessment in thermal power plants are solved, rapid and accurate inventory assessment is achieved, and the stable operation and energy security of the national grid are guaranteed.

CN118569771APending Publication Date: 2024-08-30STATE GRID ANHUI ELECTRIC POWER CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410420389.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-08
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing technology cannot efficiently and accurately assess the thermal coal inventory of thermal power plants, which affects the dispatch of the national grid and the stable operation of power.

Method used

A dynamic assessment method based on the NeRF algorithm is used to collect data through a monocular camera, perform denoising processing and model training, and use the light integral neural network to calculate the density and volume of thermal coal in thermal power plants, and generate high-quality three-dimensional scenes to estimate the inventory.

Benefits of technology

It improves the accuracy and speed of thermal coal inventory assessment of thermal power plants, ensures the stable operation of the national grid, is adaptable and versatile, and is suitable for dynamic online assessment of different thermal power plants.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569771A
    Figure CN118569771A
Patent Text Reader

Abstract

The invention discloses a neural radiation field (NeRF)-based thermal power plant power coal stock dynamic evaluation method and system and a storage medium. According to the method, a NeRF algorithm is utilized, information in a coal storage scene of a thermal power plant is captured through data acquisition, and the acquired data is preprocessed and made into a data set; and constructing a corresponding prediction model, and training and testing the prediction model to obtain a final prediction model. The density information of the power coal of the thermal power plant is obtained, the collected data is input into the model, and the coal storage volume of the thermal power plant can be estimated by using the model. The system comprises a data acquisition module, a data preprocessing module, a prediction model training module, a volume estimation module and a result visualization module, the coal storage amount of the thermal power plant can be accurately and rapidly evaluated, and it is ensured that the thermal power plant can still operate stably under the condition that the energy demand fluctuates or emergencies occur.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of thermal coal inventory in thermal power plants, and in particular to a NeRF-based dynamic evaluation method, system and storage medium for thermal coal inventory in thermal power plants. Background Art

[0002] The technical background of the dynamic assessment of thermal coal inventory in thermal power plants stems from the management needs of the energy supply chain, which plays a key role in the energy field to ensure sufficient thermal coal storage to meet peak energy demand. Through the dynamic assessment technology of the present invention, the State Grid can understand the actual situation of coal inventory at the first time and flexibly adjust the operation strategy to adapt to changes in market demand and energy supply. This not only reduces inventory costs and improves the efficiency of capital utilization, but also ensures energy security at critical moments, ensuring that thermal power plants can still operate stably in the event of fluctuations in energy demand or emergencies.

[0003] The data on the thermal coal inventory of thermal power plants obtained by the State Grid mainly comes from reports from thermal power plants, and the reliability is not guaranteed. The thermal coal inventory of thermal power plants has a great impact on the dispatching and stable operation of the State Grid. Therefore, accurately obtaining the thermal coal inventory data of thermal power plants is a key step in the dispatching of the State Grid. In the present invention, the NeRF-based algorithm model plays a good role in the dynamic evaluation of the thermal coal inventory of thermal power plants. The thermal coal inventory of thermal power plants is calculated through the model algorithm, which ensures the stable operation of the power of the State Grid.

[0004] NeRF is a deep learning algorithm for 3D scene reconstruction, which reconstructs realistic 3D scenes from 2D images. By learning the radiance and density information of each point in the scene, the invention can generate high-quality 3D scenes and estimate their volumes. Summary of the invention

[0005] The purpose of the present invention is to propose a method for dynamic evaluation of thermal coal inventory in thermal power plants based on NeRF algorithm, which ensures the stable operation of the national power grid dispatching, integrates the influence of other factors on the thermal coal inventory of thermal power plants, and improves the accuracy of evaluation.

[0006] To achieve the above object, the first aspect of the present invention provides a dynamic evaluation of thermal coal inventory in a thermal power plant based on the NeRF algorithm. Further, the method comprises the following steps:

[0007] S1. Perform data collection, use a monocular camera to capture information in the coal storage scene of a thermal power plant, calibrate the camera, and determine the internal parameters of the camera and the external parameters relative to the scene.

[0008] S2. De-noising the collected data, aligning the collected color maps to ensure that they are in the same coordinate system, and de-distorting the color maps to improve the accuracy of matching, and converting the original data into the input format required by the present invention.

[0009] S3. Establish a model and train the model with the processed data to determine the parameters of the NeRF algorithm model and obtain the trained model.

[0010] S4. Evaluate the thermal coal inventory. Obtain the density information of thermal coal in the thermal power plant, input the newly collected data into the model, and use the model of the present invention to estimate the volume size. The volume calculation is completed by integrating the color and density output of the neural network along the camera light. This process samples multiple points in the entire scene to generate a volume representation.

[0011] Furthermore, the data collected in step S1 for dynamic evaluation of thermal coal inventory in thermal power plants include:

[0012] S1.1. Use a monocular camera to capture information in the coal storage scene of a thermal power plant, calibrate the camera, determine the internal parameters of the camera and the external parameters relative to the scene, and collect 3D data related to the scene or object.

[0013] Furthermore, the data collected in step S2 for dynamic evaluation of thermal coal inventory in thermal power plants include:

[0014] S2.1. De-noising the data collected in step S1 using an autoencoder. Construct an autoencoder of a type suitable for the present invention, where the encoder maps the input data to a latent space and the decoder maps the latent representation back to the original space.

[0015] S2.2. Using the prepared noisy dataset, add noise to the original data and use the noisy input data and the corresponding noise-free target data to train the autoencoder. The training goal is to minimize the reconstruction error, that is, the difference between the output of the noisy input after passing through the encoder and decoder and the original noise-free data.

[0016] Furthermore, the data collected in step S3 for dynamic evaluation of thermal coal inventory in thermal power plants include:

[0017] S3.1. Generation of light. Input: an RGB image, output: o(x,y,z), d(x,y,z) of each pixel in the image and x(x,y,z) obtained from o and d. Where o represents the starting point coordinate of the light, d represents the viewing angle, and x,y,z represent the spatial position coordinates.

[0018] The light generation process is as follows: Coordinate system conversion: In the present invention, the processing involves three coordinate systems: (1) world coordinate system (2) camera coordinate system (3) image coordinate system

[0019] World coordinate system: represents the physical three-dimensional world coordinates; camera coordinate system: represents the virtual three-dimensional camera coordinates; image coordinate system: represents the two-dimensional coordinates of the input image. The coordinates in different coordinate systems have the following conversion relationship: the coordinates in the camera [X c ,Y c ,Z c ] T and the coordinates of the three-dimensional world [X,Y,Z] T . Where T represents transpose.

[0020]

[0021] The matrix on the right side of equation (1) is an affine transformation matrix, which is used to transform from world coordinates to camera coordinates, and in the present invention, its inverse matrix is ​​provided for transforming from camera coordinates to unified world coordinates. Wherein, r represents the rotation part, p represents the projection part, and t represents the translation part.

[0022] The coordinates of a two-dimensional image are [x, y] T The coordinate transformation relationship with the camera coordinate system is:

[0023]

[0024] The matrix on the right side of equation (2) refers to the camera's intrinsic parameters, including the focal length and the coordinates of the image center point. For the same data set, the intrinsic parameter matrix is ​​generally fixed. With the above parameters, an image can be processed in the following three steps: the first step is to construct a two-dimensional pixel coordinate of an image, the second step is to transform the pixel coordinates to the camera coordinates (based on the camera's intrinsic parameters), and the third step is to transform the camera coordinates to the world coordinates (based on the camera's extrinsic parameters). Among them, f x , f y represents the focal length of the camera in the horizontal and vertical directions, c x , c y Represents the coordinates of the principal point or optical center.

[0025] Through the internal and external parameters of the camera, the pixel coordinates of an image can be converted into coordinates in a unified world coordinate system, and the origin of a coordinate system can be determined. For each pixel of an image, the unit direction vector d (expressed in three-dimensional coordinates, the origin is also expressed in three-dimensional coordinates) of the pixel relative to the origin can be calculated based on the origin and the position of the image pixel. According to the origin o and direction d, by changing different depths t, a light ray passing through the pixel can be simulated by constructing a series of discrete points.

[0026] r(t)=o+td (3)

[0027] The coordinates and directions of these points are the input to the MLP, and the output is the loss obtained by combining the value obtained after volume rendering with the value of the pixel through which this ray passes.

[0028] S3.2, Position encoding. Input: x(x,y,z),d(x,y,z) on a ray output r(x),r(d), the position encoding is shown in formula (4):

[0029] r(p)=(sin(2 0 πp),cos(2 0 πp),...,sin(2 L-1 πp),cos(2 L-1 πp)) (4)

[0030] It should be noted that in the previous step, a series of discrete points are used to simulate a ray of light. The coordinates of these points are different, but the unit direction d(x, y, z) is the same for all points on the ray. The position of each point is encoded. It was originally 3-dimensional, and L is 10. The final dimension is 3×2×10=60. Similarly, the unit direction vector dimension is also 3-dimensional, and L is 10, so the final dimension is 24-dimensional.

[0031] S3.3, MLP prediction. Input: r(x), r(d), Output: c(r,g,b), σ.

[0032] The input vector is represented by r(x), r(d), the middle one represents the hidden layer, and the last σ and image represent the output vector; the "+" sign represents vector concatenation; the black solid arrow indicates that the hidden layer uses Relu activation, the orange solid arrow indicates that the hidden layer does not use an activation function, and the black dotted arrow indicates that the hidden layer uses a sigmoid activation function.

[0033] The input data x and d are first encoded with position information, mapping the original input data to high frequencies, which makes it easier for the network to understand and model position information and improve rendering clarity. The position input r(x) after position encoding passes through 8 layers of N-dimensional fully connected ReLU layers, including SKIP connections that connect this position information to the activation layer of the 5th layer; the 9th layer is used to output the voxel density σ and the N-dimensional feature vector, using ReLU to ensure that σ does not contain negative values; the feature vector is concatenated with the position-encoded r(d), and then passes through an N-dimensional fully connected layer, and finally outputs the color prediction at position x related to direction d.

[0034] S3.4, Voxel rendering algorithm based on radiation field. Neural radiation field represents a scene as the voxel density σ of any point in space (3D position) and the "radiance" color related to the viewing angle. But when a camera is used to image this scene, a pixel on the resulting 2D image actually corresponds to all continuous spatial points on a ray starting from the camera. We need to use a rendering algorithm to obtain the final rendering color of this ray from all points on this ray. At the same time, in order to ensure that the network can be trained, a differentiable rendering method needs to be used in NeRF.

[0035] The voxel density σ(x) can be understood as the probability that a ray passing through space is terminated by an infinitesimal particle at x. This probability is differentiable and can be approximately understood as the opacity of the position point. A virtual camera observes along a specific direction, and the points on its observation ray are continuous. The corresponding pixel color on the camera imaging plane can be understood as the integral of the color of the points through which the corresponding ray passes. The origin of a ray is marked as o, and the ray direction (i.e., the camera view) is marked as d. The ray can be represented as r(t) = o + td, and the near and far boundaries of t are tn and tf respectively. The color of this ray can be expressed in an integral manner as shown in Formula 5, where tn and tf represent the distance range for sampling along the ray. Among them, C(r) represents the color on ray r, r(t) represents the parameterized representation of the ray, σ(r(t)) represents the density at point r(t) on the ray, and c(r(t), d) represents the color at point r(t) on the ray.

[0036]

[0037] Among them, T(t) represents the cumulative transparency of the ray from tn to t, that is, the probability that the ray does not stop due to hitting any particles from tn to t, which is specifically expressed as shown in formula (6):

[0038]

[0039] In a continuous radiation field, to render at any perspective, it is necessary to calculate the above color integral for the rays passing through each pixel of the target virtual camera, so as to obtain the color of each pixel and render the image at that perspective.

[0040] S3.5, numerical approximation. In practical applications, it is not possible to use the NeRF algorithm to estimate continuous 3D point information (continuous points on the ray), which requires a numerical approximation method. A method of using the quadrature method to approximate continuous integrals is proposed. Deterministic quadrature is usually used to render discrete voxel grids. Generally, N points are uniformly sampled in the area where the quadrature is required for approximate calculations, but this will cause the MLP to learn only on a series of certain discrete points, which greatly limits the resolution of the neural radiation field. Therefore, a stratified sampling method is proposed: first, the area [tn, tf] where the ray needs to be integrated is evenly divided into N parts, and then uniform random sampling is performed in each small area:

[0041]

[0042] This method enables MLP to be optimized in a continuous manner while sampling only discrete points, thus ensuring the continuity of the radiation field in expressing the scene. Based on these sampling points, the above integral can be simplified to a summation form:

[0043]

[0044] Among them, σ i =t i +1-t i is the distance between two neighboring sampling points, where T(t) is rewritten as:

[0045]

[0046] This kind of (c i ,σ i ) The method of summing the ray rendering color is also differentiable and can be simplified to the traditional transparency blending algorithm.

[0047] Furthermore, the step of dynamically evaluating the thermal coal inventory of the thermal power plant in step S4 includes:

[0048] S4. Evaluate the thermal coal inventory. Obtain the density information of thermal coal in the thermal power plant, input the newly collected data into the model, and use the model of the present invention to estimate the volume size. The volume calculation is completed by integrating the color and density output of the neural network along the camera light. This process samples multiple points in the entire scene to generate a volume representation.

[0049] S4.1. Select a series of three-dimensional points in the scene to form a spatial grid or voxel, perform inference on each voxel using the NeRF algorithm to obtain the color and density information of each point in the scene, and integrate the color and density information in the volume to calculate the volume of each voxel.

[0050] In a second aspect, the present invention also provides a storage medium, wherein the storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the steps of evaluating the power generation capacity of a thermal power plant as described in any embodiment provided in the present application.

[0051] In a third aspect, the present invention further proposes a NeRF-based dynamic assessment system for thermal coal inventory in a thermal power plant, characterized in that the system comprises:

[0052] Data acquisition module: used to collect and capture the depth information and external information in the scene, and generate data for dynamic evaluation of thermal coal inventory in thermal power plants;

[0053] Data preprocessing module: align the depth map and color map to ensure alignment in the coordinate system, dedistort the depth map and color map to improve the matching accuracy, and convert the raw data into the input format required by the NeRF algorithm;

[0054] Prediction model training module: training the model with preprocessed data, determining the parameters of the model of the present invention, and obtaining the trained model;

[0055] Volume estimation module: Save the trained model, perform NeRF algorithm inference on each voxel to obtain the color and density information of each point in the scene, integrate the color and density information in the volume to calculate the volume of each voxel;

[0056] Result visualization module: Provides a user interface or other visualization tools to allow users to view and analyze the estimated volume data.

[0057] The technical solution of the present invention has the following beneficial effects: (1) The present invention uses the advanced NeRF algorithm to construct a dynamic assessment model for the thermal coal inventory of a thermal power plant, which has high assessment accuracy, fast speed, good effect, and can evaluate the thermal coal inventory of a thermal power plant online; (2) The training of the model of the present invention uses various collected data, so that the trained model has good versatility. When the model is used for the dynamic assessment of the thermal coal inventory of a specific thermal power plant, it collects new data and updates its own parameters, has a certain degree of adaptability, and can be used for the dynamic online assessment of the thermal coal inventory of different thermal power plants for a long time. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0059] Figure 1 This is the flow chart of dynamic online assessment of thermal coal inventory in thermal power plants based on NeRF algorithm;

[0060] Figure 2 Schematic diagram of three-dimensional dense reconstruction of the target based on the NeRF algorithm; Figure 3 This is a schematic diagram of the structure of the dynamic online assessment and prediction system for thermal coal inventory in thermal power plants based on the NeRF algorithm.

[0061] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0062] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0063] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the meaning of "and / or" appearing in the full text includes three parallel schemes. Taking "A and / or B" as an example, it includes scheme A, or scheme B, or a scheme that satisfies both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0064] The present invention proposes a method for dynamically evaluating the thermal coal inventory of a thermal power plant based on the NeRF algorithm, aiming to solve the problem that the thermal coal inventory of a thermal power plant cannot be evaluated efficiently and accurately.

[0065] Example 1

[0066] In order to achieve the above objectives, this embodiment proposes a method for dynamic evaluation of thermal coal inventory of thermal power plants based on the NeRF algorithm. The NeRF algorithm is used as the core algorithm of the evaluation model, the model is trained using multiple collected data, and the dynamic online evaluation of thermal coal inventory of specific thermal power plants is realized, thereby constructing an evaluation model with adaptive capabilities to perform dynamic online evaluation of thermal coal inventory of major thermal power plants.

[0067] It should be noted that the evaluation model of the present invention is based on the deep learning algorithm NeRF, which has fast speed, good effect, can process large-scale data, and supports customized loss functions.

[0068] It should be understood that the model of the present invention collects multiple sets of monitoring data during training, has strong versatility, and after being used in a designated thermal power plant, can regularly learn new data of the thermal power plant and update its own parameters.

[0069] In a specific implementation, the present invention has a certain degree of adaptability and can be used for long-term online evaluation of thermal coal inventory in thermal power plants in different scenarios.

[0070] Further, see Figure 1 :Specifically include the following steps:

[0071] S1. Perform data collection, use a monocular camera to capture information in the coal storage scene of a thermal power plant, calibrate the camera, and determine the internal parameters of the camera and the external parameters relative to the scene.

[0072] S1.1. Use a monocular camera to capture information in the coal storage scene of a thermal power plant, calibrate the camera, determine the internal parameters of the camera and the external parameters relative to the scene, and collect 3D data related to the scene or object.

[0073] Furthermore, the method for preprocessing the relevant data for obtaining the power generation capacity of the thermal power plant in step S2 is as follows:

[0074] S2. De-noising the collected data, aligning the collected color maps to ensure that they are in the same coordinate system, and de-distorting the color maps to improve the accuracy of matching, and converting the original data into the input format required by the present invention.

[0075] S2.1. De-noising the data collected in step S1 using an autoencoder. Construct an autoencoder of a type suitable for the present invention, where the encoder maps the input data to a latent space and the decoder maps the latent representation back to the original space.

[0076] S2.2. Using the prepared noisy dataset, add noise to the original data and use the noisy input data and the corresponding noise-free target data to train the autoencoder. The training goal is to minimize the reconstruction error, that is, the difference between the output of the noisy input after passing through the encoder and decoder and the original noise-free data.

[0077] Furthermore, the data collected in step S3 for dynamic evaluation of thermal coal inventory in thermal power plants include:

[0078] S3. Establish a model and train the model with the processed data to determine the parameters of the NeRF algorithm model and obtain the trained model.

[0079] S3.1. Generation of light. Input: an RGB image, output: o(x,y,z), d(x,y,z) of each pixel in the image and x(x,y,z) obtained from o and d. Where o represents the starting point coordinate of the light, d represents the viewing angle, and x,y,z represent the spatial position coordinates.

[0080] The light generation process is as follows: Coordinate system conversion: In the present invention, the processing involves three coordinate systems: (1) world coordinate system (2) camera coordinate system (3) image coordinate system

[0081] World coordinate system: represents the physical three-dimensional world coordinates; camera coordinate system: represents the virtual three-dimensional camera coordinates; image coordinate system: represents the two-dimensional coordinates of the input image. The coordinates in different coordinate systems have the following conversion relationship: the coordinates in the camera [X c ,Y c ,Z c ] T and the coordinates of the three-dimensional world [X,Y,Z] T . Where T represents transpose.

[0082]

[0083] The matrix on the right side of equation (1) is an affine transformation matrix, which is used to transform from world coordinates to camera coordinates, and in the present invention, its inverse matrix is ​​provided for transforming from camera coordinates to unified world coordinates. Wherein, r represents the rotation part, p represents the projection part, and t represents the translation part.

[0084] The coordinates of a two-dimensional image are [x, y] T The coordinate transformation relationship with the camera coordinate system is:

[0085]

[0086] The matrix on the right side of equation (2) refers to the camera's intrinsic parameters, including the focal length and the coordinates of the image center point. For the same data set, the intrinsic parameter matrix is ​​generally fixed. With the above parameters, an image can be processed in the following three steps: the first step is to construct a two-dimensional pixel coordinate of an image, the second step is to transform the pixel coordinates to the camera coordinates (based on the camera's intrinsic parameters), and the third step is to transform the camera coordinates to the world coordinates (based on the camera's extrinsic parameters). Among them, f x , f y represents the focal length of the camera in the horizontal and vertical directions, c x , c y Represents the coordinates of the principal point or optical center.

[0087] Through the internal and external parameters of the camera, the pixel coordinates of an image can be converted into coordinates in a unified world coordinate system, and the origin of a coordinate system can be determined. For each pixel of an image, the unit direction vector d (expressed in three-dimensional coordinates, the origin is also expressed in three-dimensional coordinates) of the pixel relative to the origin can be calculated based on the origin and the position of the image pixel. According to the origin o and direction d, by changing different depths t, a light ray passing through the pixel can be simulated by constructing a series of discrete points.

[0088] r(t)=o+td (3)

[0089] The coordinates and directions of these points are the input to the MLP, and the output is the loss obtained by combining the value obtained after volume rendering with the value of the pixel through which this ray passes.

[0090] S3.2, Position encoding. Input: x(x,y,z),d(x,y,z) on a ray output r(x),r(d), the position encoding is shown in formula (4):

[0091] r(p)=(sin(2 0 πp),cos(2 0 πp),...,sin(2 L-1 πp),cos(2 L-1 πp)) (4)

[0092] It should be noted that in the previous step, a series of discrete points are used to simulate a ray of light. The coordinates of these points are different, but the unit direction d(x, y, z) is the same for all points on the ray. The position of each point is encoded. It was originally 3-dimensional, and L is 10. The final dimension is 3×2×10=60. Similarly, the unit direction vector dimension is also 3-dimensional, and L is 10, so the final dimension is 24-dimensional.

[0093] S3.3, MLP prediction. Input: r(x), r(d), Output: c(r,g,b), σ.

[0094] The input vector is represented by r(x), r(d), the middle one represents the hidden layer, and the last σ and image represent the output vector; the "+" sign represents vector concatenation; the black solid arrow indicates that the hidden layer uses Relu activation, the orange solid arrow indicates that the hidden layer does not use an activation function, and the black dotted arrow indicates that the hidden layer uses a sigmoid activation function.

[0095] The input data x and d are first encoded with position information, mapping the original input data to high frequencies, which makes it easier for the network to understand and model position information and improve rendering clarity. The position input r(x) after position encoding passes through 8 layers of N-dimensional fully connected ReLU layers, including SKIP connections that connect this position information to the activation layer of the 5th layer; the 9th layer is used to output the voxel density σ and the N-dimensional feature vector, using ReLU to ensure that σ does not contain negative values; the feature vector is concatenated with the position-encoded r(d), and then passes through an N-dimensional fully connected layer, and finally outputs the color prediction at position x related to direction d.

[0096] S3.4, Voxel rendering algorithm based on radiation field. Neural radiation field represents a scene as the voxel density σ of any point in space (3D position) and the "radiance" color related to the viewing angle. But when a camera is used to image this scene, a pixel on the resulting 2D image actually corresponds to all continuous spatial points on a ray starting from the camera. We need to use a rendering algorithm to obtain the final rendering color of this ray from all points on this ray, see Figure 2 At the same time, in order to ensure that the network can be trained, a differentiable rendering method needs to be adopted in NeRF.

[0099] The voxel density σ(x) can be understood as the probability that a ray passing through space is terminated by an infinitesimal particle at x. This probability is differentiable and can be approximately understood as the opacity of the position point. A virtual camera observes along a specific direction, and the points on its observation ray are continuous. The corresponding pixel color on the camera imaging plane can be understood as the integral of the color of the points through which the corresponding ray passes. The origin of a ray is marked as o, and the ray direction (i.e., the camera view) is marked as d. The ray can be represented as r(t) = o + td, and the near and far boundaries of t are tn and tf respectively. The color of this ray can be expressed in an integral manner as shown in Formula 5, where tn and tf represent the distance range for sampling along the ray. Among them, C(r) represents the color on ray r, r(t) represents the parameterized representation of the ray, σ(r(t)) represents the density at point r(t) on the ray, and c(r(t), d) represents the color at point r(t) on the ray.

[0100]

[0101] Among them, T(t) represents the cumulative transparency of the ray from tn to t, that is, the probability that the ray does not stop due to hitting any particles from tn to t, which is specifically expressed as shown in formula (6):

[0102]

[0103] In a continuous radiation field, to render at any viewing angle, it is necessary to calculate the color integral for each ray passing through each pixel of the target virtual camera, thereby obtaining the color of each pixel and rendering the image at that viewing angle;

[0104] S3.5, numerical approximation. In practical applications, it is not possible to use the NeRF algorithm to estimate continuous 3D point information (continuous points on the ray), which requires a numerical approximation method. A method of using the quadrature method to approximate continuous integrals is proposed. Deterministic quadrature is usually used to render discrete voxel grids. Generally, N points are uniformly sampled in the area where the quadrature is required for approximate calculations, but this will cause the MLP to learn only on a series of certain discrete points, which greatly limits the resolution of the neural radiation field. Therefore, a stratified sampling method is proposed: first, the area [tn, tf] where the ray needs to be integrated is evenly divided into N parts, and then uniform random sampling is performed in each small area:

[0105]

[0106] This method enables MLP to be optimized in a continuous manner while sampling only discrete points, thus ensuring the continuity of the radiation field in expressing the scene. Based on these sampling points, the above integral can be simplified to a summation form:

[0107]

[0108] Among them, σ i =t i +1-t i is the distance between two neighboring sampling points, where T(t) is rewritten as:

[0109]

[0110] This kind of (c i ,σ i ) The method of summing the ray rendering color is also differentiable and can be simplified to the traditional transparency blending algorithm.

[0111] Furthermore, the step of dynamically evaluating the thermal coal inventory of the thermal power plant in step S4 includes:

[0112] S4. Evaluate the stock of thermal coal. Obtain the density information of thermal coal in the thermal power plant, input the newly collected data into the model, use the model of the present invention to estimate the volume, and finally calculate the stock of the coal yard using the relationship between density and volume to perform a dynamic evaluation of the stock of thermal coal in the thermal power plant.

[0113] S4.1. Select a series of three-dimensional points in the scene to form a spatial grid or voxel, perform inference on each voxel using the NeRF algorithm to obtain the color and density information of each point in the scene, and integrate the color and density information in the volume to calculate the volume of each voxel.

[0114] In a second aspect, the present invention also provides a storage medium, wherein the storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the steps of evaluating the power generation capacity of a thermal power plant as described in any embodiment provided in the present application.

[0115] Example 2

[0116] In addition, to achieve the above-mentioned purpose, this embodiment provides a storage medium, on which a thermal power plant power generation capacity assessment program based on the NeRF algorithm is stored. When the thermal power plant power coal inventory dynamic assessment program based on the NeRF algorithm is executed by a processor, the calculation process of the thermal power plant power generation capacity assessment program method based on the NeRF algorithm described above is implemented.

[0117] Example 3

[0118] In addition, to achieve the above purpose, see Figure 3 :This embodiment also proposes a thermal power plant thermal coal inventory dynamic assessment system based on NeRF algorithm, the system comprising:

[0119] Data acquisition module: used to collect and capture the depth information and external information in the scene, and generate data for dynamic evaluation of thermal coal inventory in thermal power plants;

[0120] Data preprocessing module: align the depth map and color map to ensure alignment in the coordinate system, dedistort the depth map and color map to improve the matching accuracy, and convert the raw data into the input format required by the NeRF algorithm;

[0121] Prediction model training module: training the model with preprocessed data, determining the parameters of the model of the present invention, and obtaining the trained model;

[0122] Volume estimation module: Save the trained model, perform NeRF algorithm inference on each voxel to obtain the color and density information of each point in the scene, and integrate the color and density information in the volume to calculate the volume of each voxel.

[0123] Result visualization module: Provides a user interface or other visualization tools to allow users to view and analyze the estimated volume data.

[0124] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0125] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0126] The above are only preferred 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. The NeRF-based dynamic evaluation method for thermal coal inventory in a thermal power plant according to claim 1, characterized in that: The specific steps include: S1. Perform data collection, use a monocular camera to capture information in the coal storage scene of a thermal power plant, calibrate the camera, and determine the internal parameters of the camera and the external parameters relative to the scene. S2. De-noising the collected data, aligning the collected color maps to ensure that they are in the same coordinate system, and de-distorting the color maps to improve the accuracy of matching, and converting the original data into the input format required by the present invention. S3. Establish a model and train the model with the processed data to determine the parameters of the NeRF algorithm model and obtain the trained model. S4. Evaluate the thermal coal inventory. Obtain the density information of thermal coal in the thermal power plant, input the newly collected data into the model, and use the model of the present invention to estimate the volume size. The volume calculation is completed by integrating the color and density output of the neural network along the camera light. This process samples multiple points in the entire scene to generate a volume representation.

2. The method for evaluating the stock of thermal coal in a thermal power plant based on the NeRF algorithm according to claim 2 is characterized in that: The steps of obtaining data in step S1 are as follows: S1.

1. Use a monocular camera to capture information in the coal storage scene of a thermal power plant, calibrate the camera, determine the internal parameters of the camera and the external parameters relative to the scene, and collect 3D data related to the scene or object.

3. The NeRF-based dynamic evaluation method for thermal coal inventory in thermal power plants according to claim 2 is characterized in that: The data is preprocessed in step S2, which specifically includes the following steps: S2.

1. De-noising the data collected in step S1 using an autoencoder. Construct an autoencoder of a type suitable for the present invention, where the encoder maps the input data to a latent space and the decoder maps the latent representation back to the original space. S2.

2. Using the prepared noisy dataset, add noise to the original data and use the noisy input data and the corresponding noise-free target data to train the autoencoder. The training goal is to minimize the reconstruction error, that is, the difference between the output of the noisy input after passing through the encoder and decoder and the original noise-free data.

4. The NeRF-based dynamic evaluation method for thermal coal inventory in thermal power plants according to claim 2 is characterized in that: The data is preprocessed in step S3, which specifically includes the following steps: S3.

1. Generation of light. Input: an RGB image, output: o(x,y,z), d(x,y,z) of each pixel in the image and x(x,y,z) obtained from o and d. Where o represents the starting point coordinate of the light, d represents the viewing angle, and x,y,z represent the spatial position coordinates. The light generation process is as follows: Coordinate system conversion: In the present invention, the processing involves three coordinate systems: (1) world coordinate system (2) camera coordinate system (3) image coordinate system World coordinate system: represents the physical three-dimensional world coordinates; camera coordinate system: represents the virtual three-dimensional camera coordinates; image coordinate system: represents the two-dimensional coordinates of the input image. The coordinates in different coordinate systems have the following conversion relationship: the coordinates in the camera [X c ,Y c ,Z c ] T and the coordinates of the three-dimensional world [X,Y,Z] T . Where T represents transpose. The matrix on the right side of equation (1) is an affine transformation matrix, which is used to transform from world coordinates to camera coordinates, and in the present invention, its inverse matrix is ​​provided for transforming from camera coordinates to unified world coordinates. Wherein, r represents the rotation part, p represents the projection part, and t represents the translation part. The coordinates of a two-dimensional image are [x, y] T The coordinate transformation relationship with the camera coordinate system is: The matrix on the right side of equation (2) refers to the camera's intrinsic parameters, including the focal length and the coordinates of the image center point. For the same data set, the intrinsic parameter matrix is ​​generally fixed. With the above parameters, an image can be processed in the following three steps: the first step is to construct a two-dimensional pixel coordinate of an image, the second step is to transform the pixel coordinates to the camera coordinates (based on the camera's intrinsic parameters), and the third step is to transform the camera coordinates to the world coordinates (based on the camera's extrinsic parameters). Among them, f x , f y represents the focal length of the camera in the horizontal and vertical directions, c x , c y Represents the coordinates of the principal point or optical center. Through the internal and external parameters of the camera, the pixel coordinates of an image can be converted into coordinates in a unified world coordinate system, and the origin of a coordinate system can be determined. For each pixel of an image, the unit direction vector d (expressed in three-dimensional coordinates, the origin is also expressed in three-dimensional coordinates) of the pixel relative to the origin can be calculated based on the origin and the position of the image pixel. According to the origin o and direction d, by changing different depths t, a light ray passing through the pixel can be simulated by constructing a series of discrete points. r(t)=o+td (3) The coordinates and directions of these points are the input to the MLP, and the output is the loss obtained by combining the value obtained after volume rendering with the value of the pixel through which this ray passes. S3.2, Position encoding. Input: x(x,y,z),d(x,y,z) on a ray output r(x),r(d), the position encoding is shown in formula (4): r(p)=(sin(2 0 πp),cos(2 0 πp),…,sin(2 L-1 πp),cos(2 L-1 πp)) (4) It should be noted that in the previous step, a series of discrete points are used to simulate a ray of light. The coordinates of these points are different, but the unit direction d(x, y, z) is the same for all points on the ray. The position of each point is encoded. It was originally 3-dimensional, and L is 10. The final dimension is 3×2×10=60. Similarly, the unit direction vector dimension is also 3-dimensional, and L is 10, so the final dimension is 24-dimensional. S3.3, MLP prediction. Input: r(x), r(d), Output: c(r,g,b), σ. The input vector is represented by r(x), r(d), the middle represents the hidden layer, and the last σ and image represent the output vector; the "+" symbol represents vector concatenation; the black solid arrow indicates that the hidden layer uses Relu activation, the orange solid arrow indicates that the hidden layer does not use an activation function, and the black dotted arrow indicates that the hidden layer uses a sigmoid activation function. The input data x and d are first encoded with position information, mapping the original input data to high frequencies, which makes it easier for the network to understand and model position information and improve rendering clarity. The position input after position encoding passes through 8 layers of N-dimensional fully connected ReLU layers, including SKIP connections that connect this position information to the activation layer of the 5th layer; the 9th layer is used to output the voxel density σ and the N-dimensional feature vector, using ReLU to ensure that σ does not contain negative values; the feature vector is concatenated with the position-encoded r(d), and then passes through an N-dimensional fully connected layer, and finally outputs the color prediction at position x related to direction d. S3.4, Voxel rendering algorithm based on radiation field. Neural radiation field represents a scene as the voxel density σ of any point in space (3D position) and the "radiance" color related to the viewing angle. But when a camera is used to image this scene, a pixel on the resulting 2D image actually corresponds to all continuous spatial points on a ray starting from the camera. We need to use a rendering algorithm to obtain the final rendering color of this ray from all points on this ray. At the same time, in order to ensure that the network can be trained, a differentiable rendering method needs to be used in NeRF. The voxel density σ(x) can be understood as the probability that a ray passing through space is terminated by an infinitesimal particle at x. This probability is differentiable and can be approximately understood as the opacity of the position point. A virtual camera observes along a specific direction, and the points on its observation ray are continuous. The corresponding pixel color on the camera imaging plane can be understood as the integral of the color of the points through which the corresponding ray passes. The origin of a ray is marked as o, and the ray direction (i.e., the camera view) is marked as d. The ray can be represented as r(t) = o + td, and the near and far boundaries of t are tn and tf respectively. The color of this ray can be expressed in an integral manner as shown in Formula 5, where tn and tf represent the distance range for sampling along the ray. Among them, C(r) represents the color on ray r, r(t) represents the parameterized representation of the ray, σ(r(t)) represents the density at point r(t) on the ray, and c(r(t), d) represents the color at point r(t) on the ray. Among them, T(t) represents the cumulative transparency of the ray from tn to t, that is, the probability that the ray does not stop due to hitting any particles from tn to t, which is specifically expressed as shown in formula (6): In a continuous radiation field, to render at any perspective, it is necessary to calculate the above color integral for the rays passing through each pixel of the target virtual camera, so as to obtain the color of each pixel and render the image at that perspective. S3.5, numerical approximation. In practical applications, it is not possible to use the NeRF algorithm to estimate continuous 3D point information (continuous points on the ray), which requires a numerical approximation method. A method of using the quadrature method to approximate continuous integrals is proposed. Deterministic quadrature is usually used to render discrete voxel grids. Generally, N points are uniformly sampled in the area where the quadrature is required for approximate calculations, but this will cause the MLP to learn only on a series of certain discrete points, which greatly limits the resolution of the neural radiation field. Therefore, a stratified sampling method is proposed: first, the area [tn, tf] where the ray needs to be integrated is evenly divided into N parts, and then uniform random sampling is performed in each small area: This method enables MLP to be optimized in a continuous manner while sampling only discrete points, thus ensuring the continuity of the radiation field in expressing the scene. Based on these sampling points, the above integral can be simplified to a summation form: Among them, σ i =t i +1-t i is the distance between two neighboring sampling points, where T(t) is rewritten as: This kind of (c i ,σ i ) The method of summing the ray rendering color is also differentiable and can be simplified to the traditional transparency blending algorithm.

5. The NeRF-based dynamic evaluation method for thermal coal inventory in thermal power plants according to claim 2, characterized in that: The data is preprocessed in step S4, which specifically includes the following steps: S4. Evaluate the thermal coal inventory. Obtain the density information of thermal coal in the thermal power plant, input the newly collected data into the model, and use the model of the present invention to estimate the volume size. The volume calculation is completed by integrating the color and density output of the neural network along the camera light. This process samples multiple points in the entire scene to generate a volume representation. S4.

1. Select a series of three-dimensional points in the scene to form a spatial grid or voxel, perform inference on each voxel using the NeRF algorithm to obtain the color and density information of each point in the scene, and integrate the color and density information in the volume to calculate the volume of each voxel.

6. A NeRF-based dynamic assessment system for thermal coal inventory in thermal power plants, characterized in that: The system includes: Data acquisition module: used to collect and capture the depth information and external information in the scene, and generate data for dynamic evaluation of thermal coal inventory in thermal power plants; Data preprocessing module: align the depth map and color map to ensure alignment in the coordinate system, dedistort the depth map and color map to improve the matching accuracy, and convert the raw data into the input format required by the NeRF algorithm; Prediction model training module: training the model with preprocessed data, determining the parameters of the model of the present invention, and obtaining the trained model; Volume estimation module: Save the trained model, perform NeRF algorithm inference on each voxel to obtain the color and density information of each point in the scene, integrate the color and density information in the volume to calculate the volume of each voxel; Result visualization module: Provides a user interface or other visualization tools to allow users to view and analyze the estimated volume data.