Method and system for predicting element content of cement microscopic image pixel points
By using the neural network model to predict the element content at the pixel level in the cement microstructure image, the problem of coarse particle size and low fineness in the prediction in the existing technology is solved, and higher-fine cement element content analysis is achieved, supporting high-precision analysis. Research and development of performance cements.
Patent Information
- Application Number
- CN202210906370.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-29
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-07-29
AI Technical Summary
Existing technology is difficult to achieve pixel-level element prediction in cement microstructure images that do not contain elemental information, and existing methods predict coarse particle size and low fineness, which cannot meet the needs of high-performance cement research.
By obtaining the cement microstructure image, preprocessing and inputting the trained neural network model, the chemical element content at each pixel is directly predicted, achieving element content prediction at the pixel level and avoiding the need for physical experiments.
It significantly improves the particle size and fineness of element content prediction, provides a more microscopic and fine element content situation, and greatly promotes the progress of cement research.
Smart Images

Figure CN115147399B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of cement element content prediction, and in particular to a method and system for predicting element content of cement microscopic image pixel points. Background Art
[0002] The statements in this section merely mention background art related to the present invention and do not necessarily constitute prior art.
[0003] There are many types of existing cement. According to the hydraulic substances, it can be divided into silicate cement, fluoroaluminate cement, ferroaluminate cement, etc.; according to the technical characteristics, it can be divided into rapid hardening cement, sulfate-resistant cement, high-temperature resistant cement, etc.
[0004] Regardless of the angle from which cement is classified, the composition of cement is an important basis that affects its classification standards. In other words, the different components of cement basically determine the different types of cement and the different properties it exhibits. The different components of cement mean that different chemical reactions will occur during the hydration process inside the cement, resulting in different compounds. These chemical reactions, the resulting compounds and their constituent elements are the fundamental reasons that affect the properties of cement.
[0005] For example, the bones of vertebrates contain a large amount of hydroxyapatite, of which calcium is the main component. In ordinary organisms, bones composed of this calcium-rich compound have the highest hardness, which can help animals complete various movements and maintain postures; Silicon is the main element that constitutes minerals and rocks. It always exists in the form of compounds in nature, and its compounds are almost all silicon dioxide and silicates. It is widely present in various minerals and rocks in the earth's crust and is the main element that constitutes minerals and rocks. The hardness of silicon alone is high, and its properties are inactive at room temperature. Therefore, the properties of its compound silicon dioxide are also very stable, and at the same time, it has high hardness and is difficult to dissolve in water. This is the main reason why common minerals and rocks can withstand tens of millions of years of wind and rain.
[0006] At present, international research on high-performance cement is mainly focused on two directions: one is the study of hydration mechanism. Cement, as a mixture, undergoes various complex chemical reactions during the process of adding water and mixing, which we call hydration. The cement hydration process will generate various different compounds, but its hydration process and mechanism have not yet been fully explored; the second is cement formula optimization. Different cement formulas lead to different hydration reactions, compounds and elemental compositions of cement, thus showing different performance and characteristics. Therefore, whether it is the study of hydration mechanism or cement formula, it is inseparable from the study of its internal elements.
[0007] Nowadays, there are many instruments that can be used to observe the microstructure of cement, such as scanning electron microscope, laser confocal microscope, 3D micro-computed tomography scanner, etc. Among them, scanning electron microscope can also be used to observe the content of elements in each area inside cement. Therefore, researchers often use scanning electron microscope to observe the microstructure and element content of cement, laying the foundation for studying cement hydration mechanism and formula optimization. However, in the process of element analysis, scanning electron microscope and EDS energy spectrum analyzer are indispensable. Many areas only have scanning electron microscope but no EDS energy spectrum analyzer. At the same time, EDS energy spectrum analyzer takes a long time to obtain cement microstructure images and chemical element surface scanning images, and the monetary and time costs are very high, which brings obstacles to the promotion of high-performance cement research.
[0008] At present, there are some related works in the world to analyze and study the elements in different types of materials. The paper "Application Research on EDXRF Analysis of Iron and Titanium Content in Geological Samples Based on PCA-BP Neural Network" uses X-ray fluorescence spectroscopy to quantitatively measure the iron and titanium elements in geological samples; the paper "GA-BP Neural Network Combined with EDXRF Technology to Predict the Content of Cr, Mn and Ni in Low-Medium Alloy Steel" uses energy dispersive X-ray fluorescence spectroscopy (EDXRF) technology and BP neural network to analyze the content of Cr (chromium), Mn (manganese) and Ni (nickel) in low-medium alloy steel. The energy dispersive X-ray fluorescence spectrometer is used to excite six types of low-medium alloy steel standard samples to obtain X-ray fluorescence spectra and obtain the Kα characteristic peak intensity corresponding to each element. The GA-BP neural network is established using the 108 sets of spectral line data and their corresponding contents, and the network is trained for prediction; the paper "Research on the Relationship between Threaded Steel Performance and Element Content Based on BP Neural Network Model" explores the relationship between various trace elements and the mechanical properties of threaded steel, and gives the relationship curves between different elements and the three strengths of threaded steel. The existing work is to treat the material sample to be predicted as a whole, and directly predict the total content of a certain element in the entire sample through some method, and obtain the content of a certain element in the current sample, and its granularity is not fine enough. Summary of the invention
[0009] In order to address the deficiencies of the prior art, the present invention provides a method and system for predicting the element content of cement microscopic image pixels; the method starts from the image itself, directly finds the relationship between the cement microstructure image and the intrinsic element content, and directly predicts the element content at each pixel.
[0010] In order to achieve the above object, the general technical solution of the present invention is as follows:
[0011] In a first aspect, the present invention provides a method for predicting the element content of a pixel point in a cement microscopic image;
[0012] The element content prediction method of cement microscopic image pixel points includes:
[0013] Acquire the microstructure image of the cement to be predicted;
[0014] Preprocessing the acquired microstructure images;
[0015] The preprocessed microstructure image is input into the corresponding trained neural network model to obtain the content of chemical elements at each pixel point on the cement microstructure image.
[0016] In a second aspect, the present invention provides a system for predicting element content of cement microscopic image pixels;
[0017] The element content prediction system of cement microscopic image pixel points includes:
[0018] An acquisition module is configured to: acquire a microstructure image of the cement to be predicted;
[0019] A preprocessing module, which is configured to: preprocess the acquired microstructure image;
[0020] The prediction module is configured to: input the preprocessed microstructure image into the corresponding trained neural network model to obtain the content of chemical elements at each pixel point on the cement microstructure image.
[0021] In a third aspect, the present invention further provides an electronic device, comprising:
[0022] a memory for non-transitory storage of computer-readable instructions; and
[0023] a processor for executing the computer readable instructions,
[0024] When the computer-readable instructions are executed by the processor, the method described in the first aspect is executed.
[0025] In a fourth aspect, the present invention further provides a storage medium that non-temporarily stores computer-readable instructions, wherein when the non-temporary computer-readable instructions are executed by a computer, the instructions of the method described in the first aspect are executed.
[0026] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program, wherein the computer program is used to implement the method described in the first aspect when running on one or more processors.
[0027] Compared with the prior art, the present invention has the following beneficial effects:
[0028] 1. The technical problem to be solved by the present invention is how to achieve pixel-level element prediction for cement microstructure images that do not contain element information. The present invention provides a cement element prediction method, which can directly predict the element content in cement based on the characteristics of cement microstructure images without the need for physical experiments. The method provides a pixel-level numerical prediction technology for element content, which is significantly different from the known prediction methods for predicting the overall single-value content of elements in a sample. The method can predict the element content at each pixel of a cement microstructure image, greatly improving the granularity and precision of the prediction.
[0029] 2. The feature of the present invention is that, for the first time, the prediction of element content is changed from a coarse-grained, low-precision method of predicting the total content of a certain element in a material to a fine-grained, high-precision method of predicting the element content at each pixel point in the microscopic structure image of the material, providing researchers with a more microscopic and detailed element content situation.
[0030] 3. The present invention is the first to directly use cement microstructure images to predict element content without the need for physical analysis.
[0031] 4. The present invention predicts element content at the pixel level for the first time, transforming the previous coarse-grained element content prediction into fine-grained pixel level. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0033] Figure 1 This is a schematic diagram of the structure of the network model of the first embodiment of the present application;
[0034] FIG2( a ) is a microstructure diagram of Example 1 of the present application;
[0035] FIG2( b ) is a surface scan of the calcium element of Example 1 of the present application;
[0036] FIG2( c ) is a surface scan of the aluminum element of Example 1 of the present application. DETAILED DESCRIPTION
[0037] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0038] It should be noted that the terms used herein are only for describing specific embodiments, and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that the terms "include" and "have" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0039] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0040] In this embodiment, all data is obtained in compliance with laws and regulations and based on the user's consent, and is used legally.
[0041] Embodiment 1
[0042] This embodiment provides a method for predicting the element content of pixels in a cement microscopic image;
[0043] The element content prediction method of cement microscopic image pixel points includes:
[0044] S101: Acquire a microstructure image of the cement to be predicted;
[0045] S102: preprocessing the acquired microstructure image;
[0046] S103: Input the preprocessed microstructure image into the corresponding trained neural network model to obtain the content of chemical elements at each pixel.
[0047] Furthermore, the step S101: obtaining a microstructure image of the cement to be predicted; before that, further includes:
[0048] The predicted cement is demoulded, ground and polished.
[0049] Furthermore, the step S102: preprocessing the acquired microstructure image specifically includes:
[0050] S102-1: performing noise reduction processing on the acquired microstructure image;
[0051] S102-2: Standardize the microstructure image after noise reduction.
[0052] Furthermore, the S102-1: performing noise reduction processing on the acquired microstructure image specifically includes:
[0053] The first pixel in the upper left corner of the microstructure image is taken as the center of the sliding window, a sliding window of size 31*31 is selected, and the median grayscale value of all pixels in the current window is calculated as the new value of the current pixel. Then other pixels are processed in this way to obtain the denoised microstructure image.
[0054] Furthermore, the S102-2: performing standardization processing on the microstructure image after noise reduction processing specifically includes:
[0055] Calculate the grayscale mean μ and variance σ of the microstructure image, and perform standardization on each pixel in the microstructure image:
[0056]
[0057] Among them, P stands for Pixel, and P' stands for the processed result;
[0058] Finally, a new grayscale value is obtained for each pixel.
[0059] It should be understood that the microstructure images include but are not limited to backscatter images obtained using a scanning electron microscope, CT images obtained using electronic computed tomography, and other images obtained using other techniques that can reflect the cement microstructure and sample morphology information.
[0060] Furthermore, if Figure 1 As shown, S103: the trained neural network model, wherein the network structure of the neural network model includes:
[0061] A first downsampling layer, a second downsampling layer, a third downsampling layer, and a fourth downsampling layer connected in sequence;
[0062] The fourth downsampling layer is connected to the splicing unit through the first upsampling unit;
[0063] The third downsampling layer is connected to the splicing unit through the second upsampling unit;
[0064] The second downsampling layer is connected to the splicing unit;
[0065] The splicing unit is connected to the third up-sampling unit, and the third up-sampling unit is connected to the output end.
[0066] The first up-sampling unit performs four-fold up-sampling by bilinear interpolation.
[0067] The second up-sampling unit performs two-fold up-sampling by using a bilinear interpolation method.
[0068] The third up-sampling unit performs four-fold up-sampling by bilinear interpolation.
[0069] It should be understood that the output of the fourth downsampling layer is four times upsampled by bilinear interpolation. At this time, the size of the upsampled feature map is (c1, inputsize / 4, inputsize / 4), where inputsize represents the size of the input image;
[0070] Similarly, the output of the third downsampling layer is doubled upsampled using bilinear interpolation, and the size of the feature map obtained is also (c2, inputsize / 4, inputsize / 4).
[0071] Then, the output value of the fourth downsampling layer, the output value of the third downsampling layer, and the output of the second downsampling layer (c3, inputsize / 4, inputsize / 4) are concatenated according to the number of channels to obtain a feature map of size (c1+c2+c3, inputsize / 4, inputsize / 4);
[0072] The feature map is upsampled four times using bilinear interpolation to obtain a feature map of size (1, inputsize, inputsize), which is the output of the model.
[0073] The first downsampling layer comprises: a first standard convolution unit, a second standard convolution unit and a first maximum pooling layer connected in sequence;
[0074] The second downsampling layer comprises: a third standard convolution unit, a fourth standard convolution unit and a second maximum pooling layer connected in sequence;
[0075] The third downsampling layer comprises: a fifth standard convolution unit, a sixth standard convolution unit, a seventh standard convolution unit, an eighth standard convolution unit and a third maximum pooling layer connected in sequence;
[0076] The fourth downsampling layer includes: a ninth standard convolution unit, a tenth standard convolution unit, an eleventh standard convolution unit, a fourth maximum pooling layer, a first simple convolution unit, and a second simple convolution unit connected in sequence;
[0077] Among them, the first maximum pooling layer is connected to the third standard convolution unit; the second maximum pooling layer is connected to the fifth standard convolution unit; and the third maximum pooling layer is connected to the ninth standard convolution unit.
[0078] Among them, the internal structures of the first standard convolution unit, the second standard convolution unit, the third standard convolution unit, the fourth standard convolution unit, the fifth standard convolution unit, the sixth standard convolution unit, the seventh standard convolution unit, the eighth standard convolution unit, the ninth standard convolution unit, the tenth standard convolution unit, and the eleventh standard convolution unit are the same.
[0079] Among them, the first standard convolution unit includes: a convolution layer, a batch normalization layer and a Relu activation function layer connected in sequence.
[0080] Among them, the internal structures of the first simple convolution unit and the second simple convolution unit are the same.
[0081] Among them, the first simple convolution unit includes: a convolution layer and a Relu activation function layer connected in sequence.
[0082] Furthermore, the training process of the trained neural network model includes:
[0083] Construct training sets and test sets; in the training sets and test sets, the microstructure images are data, and the element surface scans are corresponding labels;
[0084] The training set is input into the neural network model to train the model, and the genetic algorithm is used instead of the back propagation algorithm to optimize the parameters;
[0085] The test set is input into the trained neural network model to test the model; when the prediction accuracy of the test result exceeds the set threshold, the test is stopped to obtain the trained neural network model.
[0086] It should be understood that the chemical element surface scanning image refers to an image obtained by using a scanning electron microscope in combination with an EDS energy spectrometer, which contains the element content in each area inside the cement. The principle of the EDS energy spectrometer is that since each element has its own X-ray characteristic wavelength, the size of the characteristic wavelength depends on the characteristic energy △E released during the energy level transition process. It uses the different characteristic energies of X-ray photons of different elements to achieve the purpose of analyzing the type and content of the elements in the micro-region of the material.
[0087] Furthermore, the construction of the training set and the test set specifically includes:
[0088] Demolding, grinding and polishing the prepared samples; placing the processed samples under a scanning electron microscope and other instruments to obtain their microstructure images and chemical element surface scanning images;
[0089] The acquired image data is divided into a training set and a test set in a ratio of 7:3;
[0090] The microstructure images in the training set and the test set were preprocessed in the same way;
[0091] Set the random number seed, and crop the backscatter image and the chemical element surface scan image at the same position into a square image of 32*32 pixels.
[0092] Furthermore, the prepared sample is demoulded, ground and polished; the processed sample is placed under a scanning electron microscope to obtain its microstructure image and chemical element surface scanning image; specifically includes:
[0093] The resin on the outside of the prepared sample is peeled off, and then it is grinded and polished by a machine to obtain a smooth cement surface;
[0094] The treated samples were sent to a drying oven and dried for 12-14 hours;
[0095] According to the horizontal and vertical coordinates, the probe of the scanning electron microscope or other instruments is positioned at the center of the cement sample, and then the probe is rotated counterclockwise to obtain microstructure images at different positions of the cement sample;
[0096] The microstructure image is saved as a full grayscale image, with no upper and lower limits for the grayscale value parameters. The saving mode is the normalization mode, and the chemical element surface scanning image corresponding to the microstructure image is continued to be acquired, with the sampling frame number set to 70 frames; the microstructure image is used as data, and the chemical element surface scanning image is used as a label.
[0097] Furthermore, the optimization of parameters by using a genetic algorithm instead of a back propagation algorithm specifically includes:
[0098] Initialize the population: First, initialize multiple individuals in the population. Each individual is a real number string consisting of the weights and biases of all convolution kernels in the model.
[0099] Substitute all individuals in the population into the model in turn for feedforward calculation to obtain all predicted outputs under the current population. The error between the predicted output and the expected output is taken as the individual fitness value F. The calculation formula of F is:
[0100] F=(∑(O ij -Y ij ) 2 ) / (i*j)
[0101] Selection operation: A variety of selection algorithms can be used, such as roulette and tournament algorithms. Here, roulette is used as the selection algorithm in the embodiment. Roulette is a selection strategy based on fitness ratio. The selection probability p(i) of each individual is:
[0102] f(i)=k / F(i)
[0103]
[0104] Among them, F(i) is the fitness value of the individual, and the smaller the fitness value, the better.
[0105] The crossover rate is set to 30%, that is, 30% of all individuals in the current population are randomly selected as crossover samples, the selected crossover samples are combined in pairs, and the last five of the individual real number strings are selected in each pair of combinations for crossover.
[0106] The mutation rate is set to 30%, 30% of the individuals are selected from the population after crossover as the individuals to be mutated, and the first five numbers of the real number string of the individuals to be mutated are selected and set as random numbers.
[0107] Substitute the updated population into the model, calculate the new individual fitness value, and repeat the above steps until the model's effect on the test set meets the requirements.
[0108] The present invention obtains the microstructure image and element surface scan of the cement sample, makes a data set, pre-processes it, and then uses a genetic algorithm to train the model with the above data, so that the model has the ability to predict the element content at each pixel through the microstructure image, and realizes the fine-grained element content prediction at the pixel level. After the model training is completed, the microstructure image of the new cement sample is input into the trained model, and the corresponding element content at each pixel can be predicted. Figure 2 (a) is a microstructure diagram of Example 1 of the present application; Figure 2 (b) is a calcium element surface scan of Example 1 of the present application; Figure 2 (c) is an aluminum element surface scan of Example 1 of the present application.
[0109] Embodiment 2
[0110] This embodiment provides a system for predicting element content of cement microscopic image pixels;
[0111] The element content prediction system of cement microscopic image pixel points includes:
[0112] An acquisition module is configured to: acquire a microstructure image of the cement to be predicted;
[0113] A preprocessing module, which is configured to: preprocess the acquired microstructure image;
[0114] The prediction module is configured to: input the preprocessed microstructure image into the corresponding trained neural network model to obtain the content of chemical elements at each pixel point on the cement microstructure image.
[0115] It should be noted that the acquisition module, preprocessing module and prediction module described above correspond to steps S101 to S103 in Embodiment 1, and the examples and application scenarios implemented by the modules and the corresponding steps are the same, but are not limited to the contents disclosed in Embodiment 1. It should be noted that the modules described above as part of the system can be executed in a computer system such as a set of computer executable instructions.
[0116] The description of each embodiment in the above embodiments has different emphases. For parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0117] The proposed system can be implemented in other ways. For example, the system embodiment described above is only illustrative, and the division of the modules is only a logical function division. In actual implementation, there may be other division methods, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed.
[0118] Embodiment 3
[0119] This embodiment also provides an electronic device, including: one or more processors, one or more memories, and one or more computer programs; wherein the processor is connected to the memory, and the one or more computer programs are stored in the memory. When the electronic device is running, the processor executes the one or more computer programs stored in the memory so that the electronic device executes the method described in the above embodiment one.
[0120] It should be understood that in this embodiment, the processor may be a central processing unit CPU, and the processor may also be other general-purpose processors, digital signal processors DSP, application-specific integrated circuits ASIC, off-the-shelf programmable gate arrays FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0121] The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.
[0122] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software.
[0123] The method in the first embodiment can be directly embodied as a hardware processor, or a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
[0124] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with this embodiment can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0125] Embodiment 4
[0126] This embodiment further provides a computer-readable storage medium for storing computer instructions. When the computer instructions are executed by a processor, the method described in the first embodiment is completed.
[0127] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. Method for predicting element content of cement microscopic image pixels, Its characteristics are: include: Acquire the microstructure image of the cement to be predicted; Preprocessing the acquired microstructure images; The preprocessed microstructure image is input into the corresponding trained neural network model to obtain the content of chemical elements at each pixel point on the cement microstructure image, wherein the training process of the trained neural network model includes: Constructing a training set and a test set; wherein the training set and the test set both contain surface scanning images of known chemical elements and cement microstructure images; The training set is input into the neural network model to train the model, and the genetic algorithm is used instead of the back propagation algorithm to optimize the parameters; Input the test set into the trained neural network model to test the model; when the prediction accuracy of the test result exceeds the set threshold, stop the test and obtain the trained neural network model; The construction of training set and test set specifically includes: Demolding, grinding and polishing the prepared samples; placing the processed samples under a scanning electron microscope to obtain their microstructure images and chemical element surface scanning images; The acquired image data is divided into a training set and a test set in a ratio of 7:3; The microstructure images in the training set and the test set were preprocessed in the same way; Set the random number seed, and crop the backscatter image and the chemical element surface scan image at the same position into a square image of 32*32 pixels.
2. The method for predicting element content of cement microscopic image pixels as claimed in claim 1, Its characteristics are: Preprocess the acquired microstructure images; specifically including: Perform noise reduction on the acquired microstructure image; The microstructure image after noise reduction is normalized.
3. The method for predicting element content of cement microscopic image pixels as claimed in claim 2, Its characteristics are: The step of performing noise reduction processing on the acquired microstructure image specifically includes: The first pixel in the upper left corner of the microstructure image is taken as the center of the sliding window, and a sliding window of size 31*31 is selected. The median grayscale value of all pixels in the current window is calculated as the new value of the current pixel, and then other pixels are processed in the same way to obtain the denoised microstructure image; The microstructure image after noise reduction is standardized, including: Calculate the grayscale mean μ and variance σ of the microstructure image, and perform standardization on each pixel in the microstructure image: Where P stands for Pixel, and P' stands for the processed result; Finally, a new grayscale value is obtained for each pixel.
4. The method for predicting element content of cement microscopic image pixels as claimed in claim 1, Its characteristics are: The trained neural network model has a network structure comprising: A first downsampling layer, a second downsampling layer, a third downsampling layer, and a fourth downsampling layer connected in sequence; The fourth downsampling layer is connected to the splicing unit through the first upsampling unit; The third downsampling layer is connected to the splicing unit through the second upsampling unit; The second downsampling layer is connected to the splicing unit; The splicing unit is connected to the third up-sampling unit, and the third up-sampling unit is connected to the output end; The first up-sampling unit performs four-fold up-sampling by bilinear interpolation; The second up-sampling unit performs two-fold up-sampling by bilinear interpolation; The third up-sampling unit performs four-fold up-sampling by bilinear interpolation.
5. The method for predicting element content of cement microscopic image pixels as claimed in claim 4, Its characteristics are: The output of the fourth downsampling layer is four times upsampled by bilinear interpolation. At this time, the size of the upsampled feature map is (c1, inputsize / 4, inputsize / 4), where inputsize represents the size of the input image. Similarly, the output of the third downsampling layer is upsampled twice using bilinear interpolation, and the size of the feature map obtained is also (c2, inputsize / 4, inputsize / 4); Then, the output value of the fourth downsampling layer, the output value of the third downsampling layer, and the output of the second downsampling layer (c3, inputsize / 4, inputsize / 4) are concatenated according to the number of channels to obtain a feature map of size (c1+c2+c3, inputsize / 4, inputsize / 4); The feature map is upsampled four times using bilinear interpolation to obtain a feature map of size (1, inputsize, inputsize), which is the output of the model.
6. The method for predicting element content of cement microscopic image pixels as claimed in claim 4, Its characteristics are: The first downsampling layer comprises: a first standard convolution unit, a second standard convolution unit and a first maximum pooling layer connected in sequence; The second downsampling layer comprises: a third standard convolution unit, a fourth standard convolution unit and a second maximum pooling layer connected in sequence; The third downsampling layer comprises: a fifth standard convolution unit, a sixth standard convolution unit, a seventh standard convolution unit, an eighth standard convolution unit and a third maximum pooling layer connected in sequence; The fourth downsampling layer includes: a ninth standard convolution unit, a tenth standard convolution unit, an eleventh standard convolution unit, a fourth maximum pooling layer, a first simple convolution unit, and a second simple convolution unit connected in sequence; Among them, the first maximum pooling layer is connected to the third standard convolution unit; the second maximum pooling layer is connected to the fifth standard convolution unit; the third maximum pooling layer is connected to the ninth standard convolution unit; The first standard convolution unit includes: a convolution layer, a batch normalization layer and a Relu activation function layer connected in sequence; Among them, the first simple convolution unit includes: a convolution layer and a Relu activation function layer connected in sequence.
7. Element content prediction system for cement microscopic image pixels, Its characteristics are: include: An acquisition module is configured to: acquire a microstructure image of the cement to be predicted; A preprocessing module, which is configured to: preprocess the acquired microstructure image; The prediction module is configured to: input the preprocessed microstructure image into the corresponding trained neural network model to obtain the content of the chemical element of each pixel, wherein the training process of the trained neural network model includes: Constructing a training set and a test set; wherein the training set and the test set both contain surface scanning images of known chemical elements and cement microstructure images; The training set is input into the neural network model to train the model, and the genetic algorithm is used instead of the back propagation algorithm to optimize the parameters; Input the test set into the trained neural network model to test the model; when the prediction accuracy of the test result exceeds the set threshold, stop the test and obtain the trained neural network model; The construction of training set and test set specifically includes: Demolding, grinding and polishing the prepared samples; placing the processed samples under a scanning electron microscope to obtain their microstructure images and chemical element surface scanning images; The acquired image data is divided into a training set and a test set in a ratio of 7:3; The microstructure images in the training set and the test set were preprocessed in the same way; Set the random number seed, and crop the backscatter image and the chemical element surface scan image at the same position into a square image of 32*32 pixels.
8. An electronic device, Its characteristics include: a memory for non-transitory storage of computer readable instructions; as well as a processor for executing the computer readable instructions, Wherein, when the computer-readable instructions are executed by the processor, the method described in any one of claims 1 to 6 is executed.
9. A storage medium, characterized in that it non-temporarily stores computer-readable instructions, in, When the non-transitory computer-readable instructions are executed by a computer, the instructions of the method according to any one of claims 1 to 6 are executed.
