A method, device, equipment and storage medium for predicting concrete compressive capacity
By establishing a concrete compressive resistance prediction model and processing and screening sample data, the accuracy and efficiency of predicting concrete compressive resistance in the prior art are solved, and high-precision prediction in complex environments are achieved.
Patent Information
- Application Number
- CN202210242036.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-11
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-03-11
AI Technical Summary
The prior art is difficult to accurately predict the compressive resistance of concrete in a short period of time, and the common methods are insufficient in accuracy or are affected by detection instruments and the environment.
By determining the prediction function, the concrete compressive ability prediction model is established, the sample data is obtained and processed, outliers are added, and the target concrete compressive ability prediction model is screened, which is used to predict the compressive ability of the concrete sample data.
Accurately predicting the compressive resistance of concrete in complex data environments improves prediction accuracy and reduces dependence on detection instruments and the environment.
Smart Images

Figure CN114580299B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of concrete compressive strength prediction, and in particular to a method, device, equipment and storage medium for predicting concrete compressive strength. Background Art
[0002] Freeze-thaw cycle damage is the main problem of concrete in cold regions and has become a focus of research at home and abroad. Compressive strength is one of the important indicators for evaluating the durability of concrete, and predicting the compressive strength of concrete has important practical value.
[0003] At present, the commonly used testing methods for concrete compressive strength include 1h accelerated setting pressure steaming method, neural network prediction method, grey theory prediction method, fresh concrete on-site testing method and ultrasonic rebound comprehensive method.
[0004] Among them, although both the grey theory and the current neural network method can realize timely evaluation according to the characteristic parameters, their accuracy is related to the rationality of the original database and the algorithm, and the fluctuation may be large; the 1h accelerated coagulation autoclave method and the fresh concrete on-site detection method need to prepare the sample in advance, which takes a certain amount of time, and the 1h accelerated coagulation autoclave method uses the mortar rapid hardening strength to infer the concrete strength, without considering the role of stone in the grading, the interface structure and size effect of stone and cement mortar, and its accuracy is insufficient. The fresh concrete on-site detection method is affected by the limitations of the test instrument and the detection environment, and has accuracy problems; the test piece structure prepared in the ultrasonic rebound comprehensive method is completed and has a certain strength before it can be tested, which takes the longest time, and this method is also affected by the limitations of the detection instrument and the detection environment, and has accuracy problems. Summary of the invention
[0005] In view of this, it is necessary to provide a method, device, equipment and storage medium for predicting the compressive capacity of concrete, so as to solve the problem that the compressive capacity of concrete cannot be accurately predicted in a short time in the prior art.
[0006] In order to achieve the above technical objectives, the present invention adopts the following technical solutions:
[0007] In a first aspect, the present invention provides a method for predicting the compressive capacity of concrete, comprising:
[0008] Determine the prediction function, and establish a concrete compressive capacity prediction model based on the prediction function;
[0009] Acquire concrete sample data, and process the concrete sample data;
[0010] According to the processed concrete sample data, the concrete compressive capacity prediction model is screened to obtain the target concrete compressive capacity prediction model;
[0011] According to the target concrete compressive capacity prediction model, the compressive capacity of the concrete sample data to be predicted is predicted.
[0012] Preferably, the prediction function includes: an indicator substitution function and a loss function; determining the prediction function and establishing a concrete compressive capacity prediction model according to the prediction function includes: determining the concrete compressive capacity prediction model according to the indicator substitution function and the loss function.
[0013] Preferably, the prediction function further includes: a density estimation function; obtaining concrete sample data, and processing the concrete sample data, including:
[0014] Determine a density threshold indicator function according to the density estimation function and the indicator substitute function;
[0015] The concrete sample data is screened by using the density threshold indicator function and the preset error density threshold;
[0016] The screened concrete sample data is divided into a data training set, a data verification set and a data test set;
[0017] Different proportions of outliers are added to the data training set, and the data validation set and the data test set are not processed.
[0018] Preferably, the screened concrete sample data is divided into a data training set, a data verification set and a data test set, including:
[0019] Generate a matrix in a preset format based on the screened concrete sample data;
[0020] Each row of the matrix data in the preset form is taken as a set of sample data to obtain a number of sample data;
[0021] The sample data is divided into a data training set, a data validation set, and a data test set.
[0022] Preferably, the concrete compressive capacity prediction model is screened according to the processed concrete sample data to obtain the target concrete compressive capacity prediction model, including:
[0023] Iteratively train the concrete compressive capacity prediction model based on preset parameters and data training sets;
[0024] According to the data validation set, the concrete compressive capacity prediction model after iterative training is screened to obtain the target concrete compressive capacity prediction model.
[0025] Preferably, the concrete compressive capacity prediction model is iteratively trained according to preset parameters and a data training set, including:
[0026] In each round of iterative training, the gradient corresponding to the concrete compressive capacity prediction model is calculated;
[0027] According to the gradient corresponding to the concrete compressive capacity prediction model, the target coefficient is updated;
[0028] When the iteration stop condition is reached, the iteration loop is stopped and the target coefficient at the time of stopping the iteration is retained.
[0029] Preferably, the concrete compressive capacity prediction model after iterative training is screened according to the data verification set to obtain the target concrete compressive capacity prediction model, including:
[0030] The determination coefficient of the concrete compressive capacity prediction model after iterative training is calculated, and the target concrete compressive capacity prediction model is determined through a preset verification method.
[0031] In a second aspect, the present invention further provides a device for predicting the compressive strength of concrete, comprising:
[0032] Establishing a module for determining a prediction function, and establishing a concrete compressive capacity prediction model according to the prediction function;
[0033] A processing module, used for acquiring concrete sample data and processing the concrete sample data;
[0034] A screening module is used to screen the concrete compressive capacity prediction model according to the processed concrete sample data to obtain the target concrete compressive capacity prediction model;
[0035] The prediction module is used to predict the compressive capacity of the concrete sample data to be predicted based on the target concrete compressive capacity prediction model.
[0036] In a third aspect, the present invention further provides an electronic device, including a memory and a processor, wherein:
[0037] Memory, used to store programs;
[0038] The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps in the method for predicting the compressive capacity of concrete in any of the above implementations.
[0039] In a fourth aspect, the present invention further provides a computer-readable storage medium for storing computer-readable programs or instructions, which, when executed by a processor, can implement the steps in the method for predicting the compressive strength of concrete in any of the above-mentioned implementations.
[0040] The beneficial effects of adopting the above-mentioned embodiments are as follows: the method, device, equipment and storage medium for predicting the compressive capacity of concrete provided by the present invention determine multiple concrete compressive capacity prediction models through different prediction functions, process the acquired concrete sample data, add abnormal values, screen out the target concrete compressive capacity prediction model, predict the compressive capacity of the concrete sample data to be predicted, and can accurately predict the compressive capacity of concrete in a complex data environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A schematic diagram of a flow chart of an embodiment of a method for predicting the compressive strength of concrete provided by the present invention;
[0042] Figure 2 A schematic diagram of a process flow of an embodiment of processing concrete sample data provided by the present invention;
[0043] FIG3 (a), FIG3 (b), and FIG3 (c) are simulation effect diagrams of an embodiment of a partial derivative curve of an objective function to an error provided by the present invention;
[0044] Figure 4 A schematic structural diagram of an embodiment of a device for predicting the compressive strength of concrete provided by the present invention;
[0045] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0046] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.
[0047] In the description of the present application, “plurality” means two or more than two, unless otherwise clearly and specifically defined.
[0048] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0049] The present invention provides a method, device, equipment and storage medium for predicting the compressive capacity of concrete, which are respectively described below.
[0050] See also Figure 1 , Figure 1A flow chart of an embodiment of a method for predicting the compressive strength of concrete provided by the present invention is provided. A specific embodiment of the present invention discloses a method for predicting the compressive strength of concrete, comprising:
[0051] S101, determining a prediction function, and establishing a concrete compressive capacity prediction model according to the prediction function;
[0052] S102, obtaining concrete sample data, and processing the concrete sample data;
[0053] S103, screening the concrete compressive capacity prediction model according to the processed concrete sample data to obtain a target concrete compressive capacity prediction model;
[0054] S104. Predicting the compressive capacity of the concrete sample data to be predicted based on the target concrete compressive capacity prediction model.
[0055] In a specific embodiment of the present invention, step S101 first determines the selectable prediction function. The loss function and the indicator substitution function of the present invention can have multiple options, so that multiple possible concrete compressive capacity prediction models can be constructed, and the selection of related functions for parameter calculation in the model is also flexible.
[0056] In a specific embodiment of the present invention, step S102 processes data differently for different regression tasks. For example, for a linear regression task, a column of all-1 vectors is added to the input data X in the training set for learning constants in subsequent linear regression; for polynomial regression, high-order terms are generated based on the input data X in the training set, and the dimension of X is expanded to achieve better fitting. Among them, the 0-order term is used to learn constants; for kernel regression, the corresponding Gram matrix is generated based on the input data X in the training set, and each row of the matrix is used as a sample input model for training.
[0057] In a specific embodiment of the present invention, step S103 screens a plurality of possible concrete compressive capacity prediction models established through processed concrete sample data, and selects a concrete compressive capacity prediction model with the best prediction ability, which is the target concrete compressive capacity prediction model.
[0058] In a specific embodiment of the present invention, after obtaining the target concrete compressive capacity prediction model, step S104 can predict the compressive capacity of the concrete sample data to be predicted, and input the concrete sample data to be predicted into the target concrete compressive capacity prediction model to obtain the compressive capacity of the concrete.
[0059] Compared with the prior art, the method for predicting the compressive capacity of concrete provided in this embodiment determines multiple concrete compressive capacity prediction models through different prediction functions, processes the acquired concrete sample data, adds outliers, screens out the target concrete compressive capacity prediction model, and predicts the compressive capacity of the concrete sample data to be predicted, so as to accurately predict the compressive capacity of concrete in a complex data environment.
[0060] In some embodiments of the present invention, the prediction function includes: an indication substitution function and a loss function; determining the prediction function and establishing a concrete compressive capacity prediction model based on the prediction function includes: determining the concrete compressive capacity prediction model based on the indication substitution function and the loss function.
[0061] In the above embodiment, the loss function is There are many choices for loss functions, including but not limited to classic square loss and exponential loss based on entropy; there are many choices for indicator surrogate functions, including but not limited to entropy-induced surrogate functions commonly used in classification tasks in machine learning, Sigmoid and Tanh functions, Hinge functions, etc. to replace non-smooth 0 / 1 indicator functions. Through different choices of loss functions and indicator surrogate functions, multiple concrete compressive capacity prediction models can be combined.
[0062] Please refer to Table 1, which shows possible combinations of loss functions and indicator substitution functions provided by the present invention.
[0063] Table 1
[0064]
[0065] See also Figure 2 , Figure 2 The flowchart of an embodiment of processing concrete sample data provided by the present invention is as follows. In some embodiments of the present invention, the prediction function further includes: a density estimation function; obtaining concrete sample data, and processing the concrete sample data, including:
[0066] S201, determining a density threshold indication function according to a density estimation function and an indication substitution function;
[0067] S202, screening concrete sample data by using a density threshold indicator function and a preset error density threshold;
[0068] S203, dividing the screened concrete sample data into a data training set, a data verification set and a data test set;
[0069] S204. Add outliers of different proportions to the data training set, and do not process the data validation set and the data test set.
[0070] In a specific embodiment of the present invention, step S201 constructs a density threshold indication function according to the determined density estimation function and indication substitution function. , where λ is the error density threshold set to distinguish normal samples from abnormal samples.
[0071] In a specific embodiment of the present invention, the preset error density threshold in step S202 is λ, and a suitable λ can be selected according to actual conditions. By minimizing the average value of the sum of the loss function and the indicator function, the specific formula can be: , screen the concrete sample data, eliminate the data that does not meet the experimental requirements, and improve the accuracy of model prediction.
[0072] It should be noted that given a set of input and the estimated function, a corresponding set of error values will be generated , the sample subset is In addition to considering the case where the error density is greater than λ ( ), we can also consider the error density between a certain range ( , ) between the cases ( ). For positive parameters ( , ) actually affects the sample subset that the model focuses on.
[0073]
[0074] When λ is zero, the loss density-based model restores the traditional empirical minimization framework, that is, the model focuses on the entire sample set; when the value of λ is too small, the sample subset may include low-density abnormal samples; when the value of λ is too large, the sample subset may be empty, and the error between the actual data distribution and the training target curve does not exist with a density greater than λ.
[0075] In a specific embodiment of the present invention, step S203 screens a variety of concrete compressive capacity prediction models, including a process of training and verifying the models. By training the concrete compressive capacity prediction models, possible concrete compressive capacity prediction models are obtained, and then the possible concrete compressive capacity prediction models are verified to determine the optimal concrete compressive capacity prediction model. After that, the prediction performance of the optimal concrete compressive capacity prediction model needs to be tested. The screened concrete sample data is divided into a data training set, a data verification set, and a data test set, which is conducive to determining the optimal concrete compressive capacity prediction model.
[0076] In a specific embodiment of the present invention, in order to highlight the robustness of the method proposed in this application to random outliers, step S204 adds outliers of different proportions to the training set, that is, randomly adds a larger value to the sample label of the training set, and records the sample as an outlier; the validation set and the test set are not processed. The training set is substituted into the model for iterative training, and the iterative prediction value is retained for comparison with the true value to obtain the error value and error density statistics.
[0077] By adding outliers of different proportions to the data training set, when training the concrete compressive capacity prediction model, the prediction ability of the model can be improved when there are outliers in the experimental data. The validation set and the test set are mainly used to further determine the concrete compressive capacity prediction model with the best prediction ability. If there are outliers, the model selection will be inaccurate and ultimately fail to meet the prediction needs.
[0078] In the above embodiment, it is first necessary to determine the density threshold indicator function, and then screen the concrete sample data according to the density threshold indicator function and the preset error density threshold, and eliminate the data that does not meet the requirements. Then, the screened concrete sample data is divided into a data training set, a data verification set and a data test set, and different proportions of abnormal values are added to the data training set. The data verification set and the data test set are not processed. When selecting a prediction model, the prediction ability of the model can be improved, and the model can have a certain anti-interference ability.
[0079] In some embodiments of the present invention, the screened concrete sample data is divided into a data training set, a data verification set, and a data test set, including:
[0080] Generate a matrix in a preset format based on the screened concrete sample data;
[0081] Each row of the matrix data in the preset form is taken as a set of sample data to obtain a number of sample data;
[0082] The sample data is divided into a data training set, a data validation set, and a data test set.
[0083] In the above embodiment, the real concrete compressive strength data includes 1030 samples, including 8 independent variables (weight (kg) of cement, blast furnace slag, fly ash, water, superplasticizer, coarse aggregate, fine aggregate and the number of days of concrete testing) and one dependent variable (concrete compressive strength). Since there is a highly nonlinear relationship between high-strength concrete and various material components, the present invention considers using the Gaussian kernel regression method. Concentrate n data X={x1,x2,...,x n}, according to the Gram matrix formula Generate the corresponding value of the i-th row and j-th column in the Gram matrix G of size N*N, treat each row of the matrix as a sample, and divide it into training set, validation set and test set.
[0084] In some embodiments of the present invention, the concrete compressive capacity prediction model is screened according to the processed concrete sample data to obtain the target concrete compressive capacity prediction model, including:
[0085] Iteratively train the concrete compressive capacity prediction model based on preset parameters and data training sets;
[0086] According to the data validation set, the concrete compressive capacity prediction model after iterative training is screened to obtain the target concrete compressive capacity prediction model.
[0087] In the above embodiment, the concrete compressive capacity prediction model is screened, that is, the concrete compressive capacity prediction model is trained and optimized. For the optimization method, the traditional gradient descent method can be simply used as the optimization solution method. In addition, some efficient convex optimization and non-convex optimization methods are also feasible, such as ADMM algorithm, ISTA, FISTA and other algorithms. This embodiment selects the gradient descent algorithm under the Gaussian kernel regression task to train and optimize the concrete compressive capacity prediction model.
[0088] First, the parameter data of the iterative process is set, such as the maximum number of iterations, learning rate, early stopping and other parameters. Then, the concrete compressive capacity prediction model is iteratively trained through the data training set to determine the possible concrete compressive capacity prediction model. Then, the possible concrete compressive capacity prediction model is further verified through the data verification set to obtain the target concrete compressive capacity prediction model.
[0089] As a preferred embodiment, the present invention sets the maximum number of iterations to 5000, the candidate values of the learning rate are {0.0001, 0.0005, 0.001, 0.005, 0.01}, the candidate values of the bandwidth parameters corresponding to the kernel density estimation, the indicator substitution function and the Gaussian kernel regression are {0.5, 1, 2}, and the threshold λ is uniformly taken from 0 to 2 at intervals of 0.05.
[0090] In some embodiments of the present invention, the concrete compressive capacity prediction model is iteratively trained according to preset parameters and a data training set, including:
[0091] In each round of iterative training, the gradient corresponding to the concrete compressive capacity prediction model is calculated;
[0092] According to the gradient corresponding to the concrete compressive capacity prediction model, the target coefficient is updated;
[0093] When the iteration stop condition is reached, the iteration loop is stopped and the target coefficient at the time of stopping the iteration is retained.
[0094] In the above embodiment, the specific process of the gradient descent algorithm of EDRM (S, C) under Gaussian kernel regression is as follows:
[0095] Input: training set data {X∈R N×P , y∈R N}, maximum number of iterations Z∈N, step length γ,
[0096] Kernel parameters κ, h and σ, preset error density threshold λ, early stopping threshold t;
[0097] Initialization: number of iterations z=0 and target coefficient α z =0 N ;
[0098] Gram matrix G is generated: And G∈RN×N,G i represents the i-th row of matrix G.
[0099] repeat
[0100] Using each row of the matrix G separately i Calculate the gradient g obtained by the current iteration z z :
[0101] for i = 1 to N do
[0102] For each G i Calculate its error E i , the loss function value L i and the corresponding gradient dE i , dL i :
[0103] E i =(y i -G i α z ), dE i = -G i T
[0104] L i =(y i -G i α z ) 2 , dL i = G i T (G i α z -y i )
[0105] end for
[0106] for i = 1 to N do
[0107] For G i Calculate its error density ρ i and the corresponding gradient dρ i :
[0108] ;
[0109] ;
[0110] For G i Calculate its indicative substitution function Φ i (λ) and the corresponding gradient dΦ i (λ):
[0111] ;
[0112] ;
[0113] For G i Calculate the objective function gradient value obtained by the current iteration z :
[0114] ;
[0115] end for
[0116] Calculate the overall gradient :
[0117] ;
[0118] Using the overall gradient Update target coefficient α z :
[0119] ;
[0120] Update the early stopping parameter t:
[0121] ;
[0122] Update the current iteration number z:
[0123] z=z+1
[0124] until z=Z or t≤T
[0125] Output: .
[0126] In some embodiments of the present invention, the concrete compressive capacity prediction model after iterative training is screened according to the data validation set to obtain the target concrete compressive capacity prediction model, including:
[0127] The determination coefficient of the concrete compressive capacity prediction model after iterative training is calculated, and the target concrete compressive capacity prediction model is determined through a preset verification method.
[0128] In the above example, the R2 score (coefficient of determination) is a standard measure for regression problems and can be used to determine how well the model fits the data. It reflects the proportion of the fluctuations of the dependent variable that can be described by the fluctuations of the independent variable through the regression relationship. is the estimated function obtained by model training, is the true distribution function of the data, It is the value obtained by averaging all samples on the estimated function. The calculation formula of R2 score is as follows:
[0129]
[0130] Table 2 is the Gaussian kernel regression result on the concrete compressive strength data set. The average R2 score obtained from 10 independent repeated experiments of different models is given as the training result, and the best model is marked in black bold. Among them, Huber represents Huber regression, MCC represents the minimum correlation entropy regression method, EDRM (S, C) and EDRM (C, C) respectively represent the specific function form combination of risk minimization based on loss density in this application, and refer to Table 1. The real data experiment corresponding to Table 2 adds different proportions of abnormal values to the real data, and then evaluates the robustness of the method proposed in this application compared with other methods. Since the gradient descent method of Gaussian kernel regression is not suitable for MoM (this application supplements the comparison with the MoM method in the linear simulation data experiment), the experimental results only include robust Huber regression, MCC regression and two specific methods of error density risk minimization (EDRM) proposed in this invention (EDRM (S, C) and EDRM (C, C)). By comparing with robust Huber regression and MCC regression, the method proposed in this invention has good robustness in solving regression problems in complex environments.
[0131] Table 2
[0132]
[0133] In order to further intuitively highlight the robust performance of this method, the present invention supplements a simple linear experiment and compares the regression effects of different machine learning methods (supplements the MoM method under linear regression). First, a training data set containing 10% outliers is designed: 30 outlier samples and 270 normal samples . Design another test data set that does not contain outliers, containing 300 normal samples whose distribution is consistent with the normal samples in the training set.
[0134] Table 3 shows the test accuracy (R2 score) of 10 average experiments on the data obtained by the corresponding different models, and the best model is marked in bold black.
[0135] Table 3
[0136]
[0137] The sample subsets that the EDRM models discussed above focus on are Further, the present invention uses the simple linear regression experiment mentioned above to expand the discussion on the sample subset. The performance of the EDRM model is shown below.
[0138] The present invention further starts from the objective function itself, compares the partial derivatives of the objective functions of different robust models to the loss e and visualizes them as sensitivity curves. Please refer to Figures 3 (a), 3 (b), and 3 (c). Figures 3 (a), 3 (b), and 3 (c) are simulation effect diagrams of an embodiment of the partial derivative curve of the objective function to the error provided by the present invention. Figures 3 (a), 3 (b), and 3 (c) show the sensitivity curves of the objective functions of Huber regression, MCC regression, and EDRM (S, C) regression proposed by the present invention to the loss e. It can be obtained that the Huber regression method uses absolute value constraints for larger outliers, thereby reducing the weight of the original square loss to the outliers; MCC is similar to the method proposed by the present invention, and robustness is achieved by giving larger outliers a very small weight, or even a weight of 0.
[0139] This embodiment simultaneously utilizes the loss value of the sample and the density information corresponding to the loss to achieve a good robust regression effect. This embodiment first processes all input data. Since this embodiment considers a more complex kernel regression task, the corresponding Gram matrix is generated according to the input data X of the data set, and each row of the matrix is used as a sample input model for training. Subsequently, the nonlinear regression task is optimized and solved according to an empirical risk minimization learning algorithm based on loss density proposed in this application. In the specific implementation, due to the influence of parameters, the cross-validation method is used to divide the training set and the validation set and find the model corresponding to the best parameter combination, and save the regression coefficient (weight coefficient) trained by the optimal model. Finally, the saved regression coefficient (weight coefficient) is used to predict the test set data, and the prediction result is obtained and evaluated with the R2 score.
[0140] In the experimental results of real concrete strength data and simulated simple linear data, it can be seen that the method proposed in the present invention exceeds the classic ERM method and is comparable to the performance of known robust methods (Huber regression, mean median regression and entropy regression). The method proposed in the present invention improves the prediction accuracy of traditional methods for high-strength concrete data and reduces the impact of abnormal samples that may occur during data collection.
[0141] This embodiment solves the problem of sensitivity to noise and outliers in traditional empirical risk minimization regression technology when processing regression problems in complex environments, thereby being superior to traditional empirical risk minimization methods in terms of effect and comparable to some current mainstream robust regression methods.
[0142] In order to better implement the concrete compressive capacity prediction method in the embodiment of the present invention, based on the concrete compressive capacity prediction method, correspondingly, please refer to Figure 4 , Figure 4 This is a schematic diagram of the structure of an embodiment of a concrete compressive capacity prediction device provided by the present invention. The embodiment of the present invention provides a concrete compressive capacity prediction device 400, comprising:
[0143] Establishing module 401, for determining a prediction function, and establishing a concrete compressive capacity prediction model according to the prediction function;
[0144] The processing module 402 is used to obtain concrete sample data and process the concrete sample data;
[0145] A screening module 403 is used to screen the concrete compressive capacity prediction model according to the processed concrete sample data to obtain a target concrete compressive capacity prediction model;
[0146] The prediction module 404 is used to predict the compressive capacity of the concrete sample data to be predicted according to the target concrete compressive capacity prediction model.
[0147] It should be noted here that: the device 400 provided in the above embodiment can implement the technical solutions described in the above method embodiments. The specific implementation principles of the above modules or units can refer to the corresponding contents in the above method embodiments, which will not be repeated here.
[0148] See also Figure 5 , Figure 5A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Based on the above concrete compressive capacity prediction method, the present invention also provides a concrete compressive capacity prediction device, which can be a computing device such as a mobile terminal, a desktop computer, a notebook, a PDA, and a server. The concrete compressive capacity prediction device includes a processor 510, a memory 520, and a display 530. Figure 5 Only some components of the electronic device are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0149] In some embodiments, the memory 520 may be an internal storage unit of the concrete compressive capacity prediction device, such as a hard disk or memory of the concrete compressive capacity prediction device. In other embodiments, the memory 520 may also be an external storage device of the concrete compressive capacity prediction device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (FlashCard), etc. equipped on the concrete compressive capacity prediction device. Further, the memory 520 may also include both an internal storage unit and an external storage device of the concrete compressive capacity prediction device. The memory 520 is used to store application software and various data installed in the concrete compressive capacity prediction device, such as program codes for installing the concrete compressive capacity prediction device. The memory 520 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 520 stores a concrete compressive capacity prediction program 540, which can be executed by the processor 510, thereby realizing the concrete compressive capacity prediction method of each embodiment of the present application.
[0150] In some embodiments, the processor 510 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run program codes or process data stored in the memory 520, such as executing a concrete compressive capacity prediction method.
[0151] In some embodiments, the display 530 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 530 is used to display information on the concrete compressive capacity prediction device and to display a visual user interface. The components 510-530 of the concrete compressive capacity prediction device communicate with each other via a system bus.
[0152] In one embodiment, when the processor 510 executes the concrete compressive capacity prediction program 540 in the memory 520 , the steps in the above concrete compressive capacity prediction method are implemented.
[0153] This embodiment also provides a computer-readable storage medium, on which a concrete compressive capacity prediction program is stored. When the concrete compressive capacity prediction program is executed by a processor, the following steps are implemented:
[0154] Determine the prediction function, and establish a concrete compressive capacity prediction model based on the prediction function;
[0155] Acquire concrete sample data, and process the concrete sample data;
[0156] According to the processed concrete sample data, the concrete compressive capacity prediction model is screened to obtain the target concrete compressive capacity prediction model;
[0157] According to the target concrete compressive capacity prediction model, the compressive capacity of the concrete sample data to be predicted is predicted.
[0158] In summary, the present embodiment provides a method, device, equipment and storage medium for predicting the compressive capacity of concrete. Through different prediction functions, multiple concrete compressive capacity prediction models are determined, the acquired concrete sample data are processed, outliers are added, and the target concrete compressive capacity prediction model is screened out. The compressive capacity of the concrete sample data to be predicted is predicted, and the compressive capacity of the concrete sample data to be predicted can be accurately predicted in a complex data environment.
[0159] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.
Claims
1. A method for predicting the compressive capacity of concrete. It is characterized in that include: According to the indicator surrogate function and the loss function, a prediction model of concrete compressive capacity is determined; Acquire concrete sample data, and process the concrete sample data; According to the processed concrete sample data, the concrete compressive capacity prediction model is screened to obtain a target concrete compressive capacity prediction model; According to the target concrete compressive capacity prediction model, the compressive capacity of the concrete sample data to be predicted is predicted; The method of screening the concrete compressive capacity prediction model according to the processed concrete sample data to obtain a target concrete compressive capacity prediction model includes: Iteratively training the concrete compressive capacity prediction model according to preset parameters and a data training set; According to the data validation set, the concrete compressive capacity prediction model after iterative training is screened to obtain the target concrete compressive capacity prediction model; The iterative training of the concrete compressive capacity prediction model according to the preset parameters and the data training set includes: In each round of iterative training, the gradient corresponding to the concrete compressive capacity prediction model is calculated; updating the target coefficient according to the gradient corresponding to the concrete compressive capacity prediction model; When the iteration stop condition is reached, the iteration loop is stopped and the target coefficient at the time of stopping the iteration is retained; The method of screening the concrete compressive capacity prediction model after iterative training according to the data verification set to obtain a target concrete compressive capacity prediction model includes: The determination coefficient of the concrete compressive capacity prediction model after the iterative training is calculated, and the target concrete compressive capacity prediction model is determined through a preset verification method.
2. The method for predicting the compressive strength of concrete according to claim 1, It is characterized in that The prediction function also includes: a density estimation function; the obtaining of concrete sample data and processing of the concrete sample data include: Determining a density threshold indication function according to the density estimation function and the indication substitute function; The concrete sample data is screened by using the density threshold indicator function and the preset error density threshold; Dividing the screened concrete sample data into a data training set, a data verification set and a data test set; Different proportions of outliers are added to the data training set, and the data validation set and the data test set are not processed.
3. The method for predicting the compressive strength of concrete according to claim 2, It is characterized in that The screened concrete sample data is divided into a data training set, a data verification set and a data test set, including: Generate a matrix in a preset form according to the screened concrete sample data; Taking each row of the matrix in the preset form as a set of sample data, a plurality of sample data are obtained; The sample data is divided into a data training set, a data validation set and a data test set.
4. A device for predicting the compressive strength of concrete, It is characterized in that include: Establishing a module for determining a concrete compressive capacity prediction model based on an indicative surrogate function and a loss function; A processing module, used for acquiring concrete sample data and processing the concrete sample data; A screening module, used for screening the concrete compressive capacity prediction model according to the processed concrete sample data to obtain a target concrete compressive capacity prediction model; A prediction module, used for predicting the compressive capacity of concrete sample data to be predicted according to the target concrete compressive capacity prediction model; The method of screening the concrete compressive capacity prediction model according to the processed concrete sample data to obtain a target concrete compressive capacity prediction model includes: Iteratively training the concrete compressive capacity prediction model according to preset parameters and a data training set; According to the data validation set, the concrete compressive capacity prediction model after iterative training is screened to obtain the target concrete compressive capacity prediction model; The iterative training of the concrete compressive capacity prediction model according to the preset parameters and the data training set includes: In each round of iterative training, the gradient corresponding to the concrete compressive capacity prediction model is calculated; updating the target coefficient according to the gradient corresponding to the concrete compressive capacity prediction model; When the iteration stop condition is reached, the iteration loop is stopped and the target coefficient at the time of stopping the iteration is retained; The method of screening the concrete compressive capacity prediction model after iterative training according to the data verification set to obtain a target concrete compressive capacity prediction model includes: The determination coefficient of the concrete compressive capacity prediction model after the iterative training is calculated, and the target concrete compressive capacity prediction model is determined through a preset verification method.
5. An electronic device, It is characterized in that comprising a memory and a processor, wherein: The memory is used to store programs; The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps in the method for predicting the compressive strength of concrete as described in any one of claims 1 to 3 above.
6. A computer-readable storage medium, It is characterized in that Used to store computer-readable programs or instructions, which, when executed by a processor, can implement the steps of the method for predicting the compressive strength of concrete as described in any one of claims 1 to 3 above.
