CN115631158B - Coal detection method for carbon check - Google Patents
Coal detection method for carbon check Download PDFInfo
- Publication number
- CN115631158B CN115631158B CN202211273060.1A CN202211273060A CN115631158B CN 115631158 B CN115631158 B CN 115631158B CN 202211273060 A CN202211273060 A CN 202211273060A CN 115631158 B CN115631158 B CN 115631158B
- Authority
- CN
- China
- Prior art keywords
- image
- coal
- representing
- hidden layer
- neural network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 239000003245 coal Substances 0.000 title claims abstract description 123
- 238000001514 detection method Methods 0.000 title claims abstract description 25
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 title claims abstract description 19
- 229910052799 carbon Inorganic materials 0.000 title claims abstract description 19
- 238000003062 neural network model Methods 0.000 claims abstract description 39
- 238000005070 sampling Methods 0.000 claims abstract description 22
- 238000001914 filtration Methods 0.000 claims abstract description 10
- 238000012549 training Methods 0.000 claims abstract description 10
- 238000000034 method Methods 0.000 claims description 34
- 230000004913 activation Effects 0.000 claims description 7
- 230000003213 activating effect Effects 0.000 claims description 3
- 238000012795 verification Methods 0.000 claims 1
- 239000000446 fuel Substances 0.000 abstract description 12
- 238000010438 heat treatment Methods 0.000 abstract description 8
- 238000012545 processing Methods 0.000 abstract description 4
- 239000000463 material Substances 0.000 description 13
- 238000010586 diagram Methods 0.000 description 11
- 238000003860 storage Methods 0.000 description 6
- 239000000126 substance Substances 0.000 description 5
- 239000002245 particle Substances 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 239000005431 greenhouse gas Substances 0.000 description 3
- 238000012958 reprocessing Methods 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 235000019587 texture Nutrition 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 235000019580 granularity Nutrition 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000000611 regression analysis Methods 0.000 description 2
- 241001270131 Agaricus moelleri Species 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- QVGXLLKOCUKJST-UHFFFAOYSA-N atomic oxygen Chemical compound [O] QVGXLLKOCUKJST-UHFFFAOYSA-N 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 238000004134 energy conservation Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 229910052760 oxygen Inorganic materials 0.000 description 1
- 239000001301 oxygen Substances 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000003595 spectral effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0004—Industrial image inspection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/084—Backpropagation, e.g. using gradient descent
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/20—Image enhancement or restoration using local operators
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/70—Denoising; Smoothing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/12—Edge-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
- G06T7/73—Determining position or orientation of objects or cameras using feature-based methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/80—Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/26—Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/30—Noise filtering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/44—Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/764—Arrangements for image or video recognition or understanding using pattern recognition or machine learning using classification, e.g. of video objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/82—Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/80—Management or planning
- Y02P90/84—Greenhouse gas [GHG] management systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Multimedia (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Software Systems (AREA)
- Computing Systems (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Databases & Information Systems (AREA)
- Medical Informatics (AREA)
- Biomedical Technology (AREA)
- Life Sciences & Earth Sciences (AREA)
- Quality & Reliability (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Molecular Biology (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Physics (AREA)
- Investigating Or Analyzing Materials Using Thermal Means (AREA)
- Image Analysis (AREA)
Abstract
The invention discloses a coal detection method for carbon check, which relates to the technical field of machine vision and image processing and comprises the following steps: collecting images of coal to be detected; calibrating the sampling range of the image; setting a noise template; filtering the sampled image; expanding the filtered image according to a Taylor formula to obtain an edge characteristic image; thresholding the edge feature image; obtaining a gray scale compressed image according to the filtered image and the binary edge characteristic image; calculating a coal characteristic sample; establishing a prediction neural network model; training a prediction neural network model to obtain a consumption function; iteratively calculating a predicted neural network model by using the consumption function to obtain a trained predicted neural network model; and inputting the coal characteristic sample into the trained prediction neural network model to obtain an output value. According to the invention, the image data of the coal fuel is shot by the camera, the coal in the image is detected and reserved, and the heating value of the coal fuel can be automatically analyzed and predicted.
Description
Technical Field
The invention relates to the technical fields of machine vision and image processing, in particular to a coal detection method for carbon check.
Background
The emission of coal fuel is a main production emission source of chemical enterprises, and carbon emission data can be effectively predicted by measuring the calorific value of the coal fuel. From the chemical industry perspective, accurately accounting and reporting of greenhouse gas emissions and related data is a trend and requirement of industry management development.
At present, the problems of unclear accounting boundary, inaccurate accounting method, incomplete accounting data and the like commonly exist in the carbon checking process of chemical enterprises, and the problems are the energy conservation and emission reduction of popularization enterprises, the improvement of environmental protection production technology of the enterprises is encouraged, and the environmental protection is hindered. The traditional coal fuel calorific value determination method comprises an oxygen bomb method and an element analysis method, and is complex in operation steps, long in detection period and low in safety. With the development of machine vision technology, the detection of the calorific value of the coal can be realized based on the spectral image processing analysis method, and the method has the advantages of high analysis efficiency, simple equipment deployment, small influence on environment and manpower saving, is suitable for being used by chemical enterprises of different scales, and has wide application prospect.
Disclosure of Invention
The invention provides a coal detection method for carbon check, which is used for overcoming at least one technical problem in the prior art.
The embodiment of the invention provides a coal detection method for carbon check, which comprises the following steps:
acquiring images of the coal to be detected according to a preset frame rate by using a camera;
Setting a noise template as according to the shape characteristics of the coal to be detectedWherein->Template for representing elliptic curve,Representing coordinates of pixels in the template with the center of the template as a reference;
filtering the sampled image by using the noise template to obtain a filtered imageWherein->Representing convolution operation,/->Representing pixel coordinates in the image;
expanding the filtered image according to a Taylor formula to obtain an edge characteristic image as Wherein->For the derivative image,is a second derivative image;
thresholding the edge feature image to obtain a binary edge feature image Wherein->Representing a threshold value;
obtaining a gray scale compressed image according to the filtered image and the binary edge feature imageWherein->Expressed in terms ofThe offset coordinates in the square neighborhood with the point as the center, W represents the side length of the neighborhood;
calculating a coal characteristic sample according to the gray scale compressed image and the binary edge characteristic image;
taking the coal characteristic sample as input, defining output as Establishing a prediction neural network model; wherein (1)>Representing a third hidden layer->A linear weight representing the output of the element of the third hidden layer and the neural network model, ++>Representing a linear deviation +.>For activating a function, defined as +.>,Representing an activation function convergence parameter; the prediction neural network model comprises a first hidden layer, a second hidden layer and a third hidden layer, wherein the first hidden layer is ,Representation ofCoordinates of the first hidden layer->、Respectively indicate->、Linear weights of local neighborhoods of +.>Representing the linear deviation; the second hidden layer is->,Representing the coordinates of the second hidden layer, +.>Linear weights representing pixels of the first hidden layer and pixels of the second hidden layer, +.>Representing the linear deviation; the third hidden layer isY represents the dimension of the third hidden layer, < >>Representing a linear weight +.>Representing the linear deviation;
by making said predictionsTraining a neural network model to obtain a consumption function of the predicted neural network model,Representing the thermal value of the training sample, +.>Representing the output value +.>Representing the control coefficient;
iteratively calculating the prediction neural network model by using the consumption function to obtain a trained prediction neural network model;
and inputting the coal characteristic sample into the trained predictive neural network model to obtain an output value.
Optionally, the calibrating the sampling range of the image specifically includes:
calibrating the sampling range of the image according to the movement linear speed of the conveyor belt, the field angle of the camera, the distance between the camera and the conveyor belt and the shooting period of the camera to obtain calibration parametersWherein->Represents the linear speed of movement of the conveyor belt, +.>Representing the angle of view of the camera, +.>Indicating the distance of the camera from the conveyor belt, +.>Representing the shooting period of the camera.
Optionally, before the filtering image is expanded according to the taylor formula to obtain the edge feature image, the method further includes:
deriving the filtered image to obtain a derivative image;
and deriving the derivative image to obtain a second derivative image.
Optionally, the coal characteristic sample comprises a first coal characteristic sample and a second coal characteristic sample;
the calculated coal characteristic sample specifically comprises the following components:
The innovation points of the embodiment of the invention include:
1. in the embodiment, the image data of the coal fuel of the enterprises are shot through the camera, the coal in the image is detected and reserved, the heating value of the coal fuel is automatically analyzed and predicted, and the coal fuel is used as the objective data of carbon emission accounting, so that the accounting of the enterprises and the reporting of the greenhouse gas emission and related data are facilitated, and the method is one of the innovation points of the embodiment of the invention.
2. In this embodiment, compared with directly preserving the filtered image, the method can effectively reduce the dimension of the input image data by preserving the gray-scale compressed image and the binary edge feature image, greatly reduce the sample reserving storage amount of the data, and save the sample reserving storage space, which is one of the innovation points of the embodiment of the invention.
3. In this embodiment, compared with the hyperspectral image data source commonly used in industry, the adoption of the visible light image data source can greatly save the data acquisition cost, and in addition, the problems of low fitting degree and large detection error of the modeling of the characteristics of the coal sample by the traditional image regression analysis method are also overcome, so that the method is one of the innovation points of the embodiment of the invention.
4. In this embodiment, the provided coal heat prediction neural network model is dedicated to coal detection, and the model used for coal detection in the past is not specifically optimized. For the image recognition models in other fields, because of different detection objects, the network structure difference is huge, and the image recognition models cannot be directly applied to coal detection, so that the image recognition model is one of the innovation points of the embodiment of the invention.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for detecting coal according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a coal sampling according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of another embodiment of the invention;
FIG. 4 is a schematic diagram of a reprocessing process according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a position structure of a camera and a coal material according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a calibration sampling range provided by an embodiment of the present invention;
fig. 7 is another flowchart of a coal detection method according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without any inventive effort, are intended to be within the scope of the invention.
It should be noted that the terms "comprising" and "having" and any variations thereof in the embodiments of the present invention and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
The embodiment of the invention discloses a coal detection method for carbon check. The following will describe in detail.
Fig. 1 is a flowchart of a coal detection method according to an embodiment of the present invention, fig. 2 is a schematic coal sampling diagram according to an embodiment of the present invention, fig. 3 is another schematic coal sampling diagram according to an embodiment of the present invention, fig. 4 is a post-reprocessed schematic diagram according to an embodiment of the present invention, fig. 5 is a schematic position structure diagram of a camera and a coal according to an embodiment of the present invention, fig. 6 is a schematic diagram of a calibrated sampling range according to an embodiment of the present invention, please refer to fig. 1 to 6, and the coal detection method for carbon check according to the embodiment of the present invention includes:
step 1: acquiring images of the coal to be detected according to a preset frame rate by using a camera;
Step 3: setting a noise template according to the shape characteristics of the coal to be detected,Representing coordinates of pixels in the template with the center of the template as a reference;
step 4: filtering the sampled image by using a noise template to obtain a filtered imageWherein->Representing convolution operation,/->Representing pixel coordinates in the image;
step 5: expanding the filtered image according to a Taylor formula to obtain an edge characteristic imageWherein, the method comprises the steps of, wherein,for derivative image +.>Is a second derivative image;
step 6: thresholding the edge feature image to obtain a binary edge feature imageWherein->Representing a threshold value;
step 7: obtaining a gray scale compressed image according to the filtered image and the binary edge characteristic imageWherein, the method comprises the steps of, wherein,expressed as +.>The offset coordinates in the square neighborhood with the point as the center, W represents the side length of the neighborhood;
step 8: calculating a coal characteristic sample according to the gray scale compressed image and the binary edge characteristic image;
step 9: taking a coal characteristic sample as input, defining output asEstablishing a prediction neural network model; wherein,,representing a third hidden layer->A linear weight representing the output of the element of the third hidden layer and the neural network model, ++>Representing a linear deviation +.>For activating a function, it is defined as,Representing an activation function convergence parameter; the predictive neural network model comprises a first hidden layer, a second hidden layer and a third hidden layer, wherein the first hidden layer is ,Representing the coordinates of the first hidden layer, +.>、Respectively indicate->、Linear weights of local neighborhoods of +.>Representing the linear deviation; the second hidden layer is,Representing the coordinates of the second hidden layer, +.>Linear weights representing pixels of the first hidden layer and pixels of the second hidden layer, +.>Representing the linear deviation; the third hidden layer is->Y represents the dimension of the third hidden layer, < >>Representing a linear weight +.>Representing the linear deviation;
step 10: obtaining the consumption function of the predictive neural network model by training the predictive neural network model,Representing the thermal value of the training sample, +.>Representing the output value +.>Representing the control coefficient;
step 11: iteratively calculating a predicted neural network model by using the consumption function to obtain a trained predicted neural network model;
step 12: and inputting the coal characteristic sample into the trained prediction neural network model to obtain an output value.
Specifically, please refer to fig. 1, 2, 3 and 5, in the method for detecting a coal material for carbon check provided in the present embodiment, firstly, in step 1, an image of the coal material to be detected is captured by using a camera 101, and when the image is collected, the image needs to be continuously collected according to a predetermined frame rate, therefore, in this embodiment, a conveyor belt 102 is arranged on a workshop site, the coal material to be detected is uniformly placed on the conveyor belt, in order to clearly collect the image of the coal material, a visible light camera 101 is disposed right above the conveyor belt 102, and the camera 101 faces downwards to the object plane of the conveyor belt 102, so that each captured image 104 includes a plurality of coal materials, and according to the characteristics of the coal materials in the image 104, the information of the coal material effective for predicting the heat productivity can be extracted. Note that, the black dots in the region 103 in fig. 5 represent the coal uniformly placed on the conveyor belt.
Because the quality of different areas of the image is different, after the image of the coal to be detected is acquired, the sampling range of the image 104 is calibrated in step 2, and referring to fig. 5 and 6, the sampling range of the image is related to the parameters such as the moving linear speed of the conveyor belt, the field angle of the camera, the distance between the camera and the conveyor belt, the shooting period of the camera, and the calibration parameters can be calculated according to the parametersAccording to the calibration parameters->The sampling range in each shot image 104 can be defined as a duty ratio in the image length direction +.>Is not limited in terms of the range of (a). The region 105 as marked in fig. 5 is a sampled image obtained by a calibrated sampling range. The sampling range is calibrated, so that the sampled images obtained each time are not overlapped, and the heating value passing through the recognition each time can be accumulated linearly.
The image also typically contains noise, and thus noise filtering of the image is required. Firstly in step 3, according to the shape characteristics of the coal to be detected, a noise template is setIn this embodiment, the noise template is set asWherein->The template of the elliptic curve is represented,representing a Gaussian filter template, ">Representing coordinates of pixels in the template with respect to the center of the template,/->Representing the variance of the Gaussian template, +.>Representing a natural exponential function. The noise template is set to be a combination of the Gaussian filtering template and the elliptic curve template, so that noise can be filtered more efficiently, and the texture characteristics of coal particles can be maintained.
Then in step 4, the sampled image is filtered by using the noise template obtained in step 3 to filter noise. During filtering, the sampled image and the noise template are subjected to convolution operation to obtain a filtered imageWherein->Representing convolution operation,/->Representing pixel coordinates in the image.
After the filtering processing, in order to save the storage space, the invention reprocesss the filtered image. Referring to fig. 1 and 4, the reprocessing of the filtered image includes steps 5 to 7, firstly, the filtered image is expanded according to taylor formula through step 5 to obtain an edge feature image of the filtered imageWherein, the method comprises the steps of, wherein,for derivative image +.>Is a second derivative image.
It should be noted that, since the derivative image and the second derivative image are required when the edge feature image is acquired, before performing step 5, the method further includes: step 41, deriving the filtered image to obtain a derivative image; step 42, deriving the derivative image to obtain a second derivative image. Referring to fig. 7, fig. 7 is another flowchart of a coal detection method according to an embodiment of the present invention, in which the filtered image is processed in step 41Deriving, obtaining a derivative image as +.>. In step 42, the obtained derivative image is further derived to obtain a second derivative image +.>。
In step 6, thresholding the edge feature image to obtain a binary edge feature imageWherein->Representing a threshold. The binary edge feature image reflects the change degree of each pixel in the image, and the probability that the value of the binary edge feature image at the edge of the coal particles is 1 is far greater than the probability that the value of the binary edge feature image at the edge of the coal particles is 0 because the change degree of the pixels at the edge of the coal particles is high, so that the characteristics of the coal images can be reflected.
In step 7, a gray-scale compressed image is obtained according to the filtered image and the binary edge feature imageWherein, the method comprises the steps of, wherein,expressed as +.>Offset coordinates in a square neighborhood with a point as the center, W represents the side length of the neighborhood, double-diagonal +.>Representing the integer part after the division operation. The gray scale number of the pixels of the gray scale compressed image G is 3, and the corresponding binary edge feature image +.>The pixel gray scale number is 1, so the total pixel gray scale number of the two is 4; filtered image +.>The pixel gray scale number is 8. Thus, each time the sample is left, the gray-scale compressed image G and the binary edge feature image are left +.>Compared to directly preserving the filtered image +.>Saving half of the storage space. Furthermore, according to the gray-scale compressed image G and the binary edge feature image +.>The filtered image may be approximately restored so that the coal may be viewed.
The gray-scale compressed image G and the binary edge characteristic image are obtained through the reprocessing stepsThen, in step 8, a coal characteristic sample is established according to the gray-scale compressed image and the binary edge characteristic image, and the obtained coal characteristic sample contains gray scales from the gray-scale compressed imageThe characteristics of the coal material are characterized by comprising local texture characteristics from the binary edge characteristic image, so that the heating value of the coal material can be reflected more accurately.
In step 9, a coal heat prediction neural network model taking a coal characteristic sample as input and a heat value as output is established. The predictive neural network model includes, in addition to input and output, a plurality of hidden layers, each hidden layer including a linear model expressed as a linear weighted sum of the outputs of the previous layer and a nonlinear model called an activation function defined as,Represents the convergence parameter of the activation function for controlling the convergence speed of the activation function. As a preferred value, +.>The activation function of each hidden layer is the same. />
In the invention, the hidden layer comprises a first hidden layer, which is defined as ,Representing the coordinates of the first hidden layer, +.>Representation ofOffset coordinates in square neighborhood with point as center, +.>Representing the corresponding coordinates in the input image, +.>、Respectively indicate->、Linear weights of local neighborhoods of +.>Representing the linear deviation. Features locally related to the image may be extracted by the first hidden layer.
The hidden layer further comprises a second hidden layer defined asWherein->Representing the coordinates of the first hidden layer, +.>Representing the coordinates of the second hidden layer, each pixel of the first layer (++>) With any one of the pixels of the second layer (+)>) All have a linear weight, noted +.>,Representing the linear deviation. Features related to the global distribution of the image may be extracted by the second hidden layer.
The hidden layer further comprises a third hidden layer defined as,Representing the coordinates of the second hidden layer, the third hidden layer +.>Is a vector with a fixed dimension of 64, y represents the dimension of the vector of the third hidden layer, each pixel of the second hidden layer (">) A linear weight with any dimension of the third hidden layer vector is recorded as,Representing the linear deviation. Defining output as according to the third hidden layer,A linear weight representing an element of the third hidden layer and the neural network model output (i.e. the calorific value,)>Representing the linear deviation.
In step 10, a prediction is obtained by training a prediction neural network modelConsumption function of neural network model,Representing the thermal value of the training sample, +.>Representing the output value +.>Representing the control coefficient, in the present invention is set +.>Which contributes to an improved robustness of the method to data noise, is taken as a preferred value +.>. Then in step 11, the predictive neural network model is iteratively calculated using the consumption function such that +.>And (5) converging, namely finishing training to obtain parameters of each hidden layer, and thus obtaining a trained predictive neural network model. In the iterative calculation, a BP (Back Propagation) algorithm may be adopted, and the BP algorithm may refer to the existing data, which is not described herein.
After the trained prediction neural network model is obtained, in step 12, the coal characteristic sample is input into the trained prediction neural network model, so that an output value can be obtained, and the heat value of the coal is obtained. The coal heat prediction neural network model obtained through training is special for coal detection, and the model used for coal detection in the past is not specially optimized. For the image recognition models in other fields, because of different detection objects, the network structure difference is huge, and the image recognition models cannot be directly applied to coal detection.
According to the coal detection method for carbon check, the image data of the enterprise coal fuel is shot through the camera, the coal in the image is detected and reserved, the heating value of the coal fuel is automatically analyzed and predicted, the coal is used as objective data for carbon emission accounting, and the accounting of chemical enterprises and the reporting of the greenhouse gas emission and related data are facilitated. The method solves the problems of low fitting degree and large detection error of the modeling of the coal sample characteristics by the traditional image regression analysis method; compared with the hyperspectral image data source commonly adopted in the industry, the visible light image data source can greatly save the data acquisition cost. In addition, the method can effectively reduce the dimension of the input image data, greatly reduce the data sample reserving storage space and save the sample reserving storage space.
Optionally, referring to fig. 1, in step 2, the sampling range of the image is calibrated, specifically: calibrating the sampling range of the image according to the movement linear speed of the conveyor belt, the field angle of the camera, the distance between the camera and the conveyor belt and the shooting period of the camera to obtain calibration parametersWherein->Represents the linear speed of movement of the conveyor belt, +.>Representing the angle of view of the camera, +.>Indicating the distance of the camera from the conveyor belt, +.>Representing the shooting period of the camera.
Specifically, referring to fig. 1 and 5, in order to facilitate the photographing of the coal, a conveyor belt 102 is disposed on site in a workshop, the coal to be detected is uniformly disposed on the conveyor belt 102, and the conveyor belt 1 is disposedA visible light camera 101 is arranged right above the belt conveyor 102, and the camera 101 is arranged downwards to face the object plane of the belt conveyor 102. Therefore, when the sampling range of the image is calibrated in step 2, the calibration parameters are related to parameters such as the movement linear velocity of the conveyor belt 102, the angle of view of the camera 101, the distance between the camera 101 and the conveyor belt 102, the photographing period of the camera 101, and the like, and the calibration parameters are obtained based on the above parametersWherein->Represents the linear speed of movement of the conveyor belt, +.>Representing the angle of view of the camera, +.>Indicating the distance of the camera from the conveyor belt, +.>Representing the shooting period of the camera.
The sampling range is calibrated, so that the sampled images obtained each time are not overlapped, and the heating value passing through the recognition each time can be accumulated linearly. From the viewpoint of image quality, the shooting quality of the area close to the center of the image is higher, so that the calibration parameters can be controlledImproving the image quality, experimental preference +.>. Of course, is->The value of 0.7 is only one preferred embodiment of the present invention in this example, and is not intended to limit the present invention, in other examples,The value of (2) may also be other as long as +.>And (3) obtaining the product.
Optionally, the coal characteristic samples comprise a first coal characteristic sample and a second coal characteristic sample; the calculation coal characteristic sample specifically comprises: calculating a first coal characteristic sample according to the gray scale compressed imageThe method comprises the steps of carrying out a first treatment on the surface of the Calculating a second coal characteristic sample from the binary edge characteristic image>。
Specifically, the coal characteristic sample comprises a first coal characteristic sample calculated according to the gray scale compressed image GAnd from binary edge feature imagesThe calculated second coal characteristic sample. The first coal characteristic sample and the second coal characteristic sample are combined to form the coal characteristic sample, so that the coal characteristic sample simultaneously contains gray characteristics from gray-scale compressed images and local texture characteristics from binary edge characteristic images, and the calorific value of the coal can be reflected more accurately.
Based on the method, the inventor detects the coal sample in the image and reserves the coal material by shooting the image data of the coal fuel of the enterprise, and automatically analyzes and predicts the heating value of the coal fuel. According to the method, the inventors carried out tests on coal materials with different granularities and different colors, and obtained test results shown in table 1. Referring to the field test data given in table 1, the results show that the method has lower error compared with the true value in identifying the heating value of the coal materials with different granularities, and can meet the application requirements.
TABLE 1
Those of ordinary skill in the art will appreciate that: the drawing is a schematic diagram of one embodiment and the modules or flows in the drawing are not necessarily required to practice the invention.
Those of ordinary skill in the art will appreciate that: the modules in the apparatus of the embodiments may be distributed in the apparatus of the embodiments according to the description of the embodiments, or may be located in one or more apparatuses different from the present embodiments with corresponding changes. The modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (5)
1. A coal detection method for carbon verification, comprising:
acquiring images of the coal to be detected according to a preset frame rate by using a camera;
Setting a noise template according to the shape characteristics of the coal to be detected,Representing coordinates of pixels in the template with the center of the template as a reference;
filtering the sampled image by using the noise template to obtain a filtered imageWherein->Representing convolution operation,/->Representing pixel coordinates in the image;
expanding the filtered image according to a Taylor formula to obtain an edge characteristic image as Wherein->Is a derivative image, ++>The second derivative image;
thresholding the edge feature image to obtain a binary edge feature imageWherein->Representing a threshold value;
obtaining a gray scale compressed image according to the filtered image and the binary edge feature imageWherein->Expressed in terms ofThe offset coordinates in the square neighborhood with the point as the center, W represents the side length of the neighborhood;
calculating a coal characteristic sample according to the gray scale compressed image and the binary edge characteristic image;
taking the coal characteristic sample as input, defining output as Establishing a prediction neural network model; wherein (1)>Representing a third hidden layer->A linear weight representing the output of the element of the third hidden layer and the neural network model, ++>Representing a linear deviation +.>For activating a function, it is defined as,Representing an activation function convergence parameter; the prediction neural network model comprises a first hidden layer, a second hidden layer and a third hidden layer, wherein the first hidden layer is ,Representing the coordinates of the first hidden layer, +.>、Respectively indicate->、Linear weights of local neighborhoods of +.>Representing the linear deviation; the second hidden layer is,Representing the coordinates of the second hidden layer,linear weights representing pixels of the first hidden layer and pixels of the second hidden layer, +.>Representing the linear deviation; the third hidden layer is->Y represents the dimension of the third hidden layer, < >>Representing a linear weight +.>Representing the linear deviation;
obtaining a consumption function of the predictive neural network model by training the predictive neural network model,Representing the thermal value of the training sample, +.>Representing the output value +.>Representing the control coefficient;
iteratively calculating the prediction neural network model by using the consumption function to obtain a trained prediction neural network model;
and inputting the coal characteristic sample into the trained predictive neural network model to obtain an output value.
2. The method for detecting coal for carbon check according to claim 1, wherein the calibrating the sampling range of the image specifically comprises:
calibrating the sampling range of the image according to the movement linear speed of the conveyor belt, the field angle of the camera, the distance between the camera and the conveyor belt and the shooting period of the camera to obtain calibration parametersWherein->Represents the linear speed of movement of the conveyor belt, +.>Representing the angle of view of the camera, +.>Indicating the distance of the camera from the conveyor belt, +.>Representing the shooting period of the camera.
4. The method for detecting coal for carbon check according to claim 1, wherein before the filtering image is expanded according to taylor formula to obtain an edge feature image, further comprising:
deriving the filtered image to obtain a derivative image;
and deriving the derivative image to obtain a second derivative image.
5. The method for carbon check as claimed in claim 1, wherein the coal characteristic samples include a first coal characteristic sample and a second coal characteristic sample;
the calculated coal characteristic sample specifically comprises the following components:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211273060.1A CN115631158B (en) | 2022-10-18 | 2022-10-18 | Coal detection method for carbon check |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211273060.1A CN115631158B (en) | 2022-10-18 | 2022-10-18 | Coal detection method for carbon check |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115631158A CN115631158A (en) | 2023-01-20 |
CN115631158B true CN115631158B (en) | 2023-05-12 |
Family
ID=84907344
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211273060.1A Active CN115631158B (en) | 2022-10-18 | 2022-10-18 | Coal detection method for carbon check |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115631158B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011148924A (en) * | 2010-01-22 | 2011-08-04 | Nippon Steel Corp | Method for estimating coke oven gas yield and method for producing coke |
CN112836902A (en) * | 2021-03-11 | 2021-05-25 | 西北大学 | Coal combustion calorific capacity prediction method based on improved BP neural network |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105026902A (en) * | 2013-03-07 | 2015-11-04 | 西门子公司 | Systems and methods for boosting coal quality measurement statement of related cases |
-
2022
- 2022-10-18 CN CN202211273060.1A patent/CN115631158B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011148924A (en) * | 2010-01-22 | 2011-08-04 | Nippon Steel Corp | Method for estimating coke oven gas yield and method for producing coke |
CN112836902A (en) * | 2021-03-11 | 2021-05-25 | 西北大学 | Coal combustion calorific capacity prediction method based on improved BP neural network |
Non-Patent Citations (6)
Title |
---|
A method for in-situ measurement of calorific value of coal_ a numerical study;Linglong Wang,Xue cheng Wu,et.al;Thermochimica Acta;全文 * |
Determination of Calorific Value of Mixed Coals by Analysis of Major Elements Using Data Pre-Processing in Laser-Induced Breakdown Spectroscopy;Jong Hyun Park,Choong Mo Ryu,et.al;Applied Sciences;全文 * |
Quantitative Analysis of Calorific Value of Coal Based on Spectral Preprocessing by Laser-Induced Breakdown Spectroscopy(LIBS);Wenbing Li,Jidong Lu,et.al;Energy Fuels;全文 * |
一种燃煤发热量的综合预测方法;王晓红,吴德会;煤炭科学技术;第34卷(第6期);全文 * |
基于高光谱图像和卷积神经网络的燃煤热值估计算法;杨明花,张克涵;中国电力;第52卷(第9期);全文 * |
采用KPCA特征提取的近红外煤炭发热量预测模型;雷萌,李明;化工学报;第63卷(第12期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN115631158A (en) | 2023-01-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111094956B (en) | Processing thermal imaging images with neural networks to identify subsurface erosion on insulation (CUI) | |
CN111325713B (en) | Neural network-based wood defect detection method, system and storage medium | |
KR102166458B1 (en) | Defect inspection method and apparatus using image segmentation based on artificial neural network | |
CN108960245B (en) | Tire mold character detection and recognition method, device, equipment and storage medium | |
CN108918536B (en) | Tire mold surface character defect detection method, device, equipment and storage medium | |
CN111126136A (en) | Smoke concentration quantification method based on image recognition | |
CN111630356A (en) | Method for characterizing a sample using a neural network | |
KR102141302B1 (en) | Object detection method based 0n deep learning regression model and image processing apparatus | |
Laga et al. | Image-based plant stornata phenotyping | |
CN117541483B (en) | Structural performance evaluation method and system for diffusion plate | |
CN117152119A (en) | Profile flaw visual detection method based on image processing | |
CN117668518B (en) | Discrete intelligent manufacturing method and system | |
CN111627018B (en) | Steel plate surface defect classification method based on double-flow neural network model | |
CN113155839A (en) | Steel plate outer surface defect online detection method based on machine vision | |
US20240087105A1 (en) | Systems and Methods for Paint Defect Detection Using Machine Learning | |
CN115631158B (en) | Coal detection method for carbon check | |
Zhang et al. | Weld joint penetration state sequential identification algorithm based on representation learning of weld images | |
CN113112482A (en) | PCB defect detection method based on attention mechanism network | |
CN117011759A (en) | Method and system for analyzing multi-element geological information of surrounding rock of tunnel face by drilling and blasting method | |
CN111105417A (en) | Image noise positioning method and system | |
CN113607068B (en) | Method for establishing and extracting recognition model of photoacoustic measurement signal characteristics | |
CN113077002B (en) | Machine olfaction visual sensing data analysis method based on space heterodyne Raman spectrum | |
CN114548250A (en) | Mobile phone appearance detection method and device based on data analysis | |
CN112767365A (en) | Flaw detection method | |
Huang et al. | ASD-YOLO: An aircraft surface defects detection method using deformable convolution and attention mechanism |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |