Abstract: | Concrete is the most widely used material in construction. It has the characteristics of strong plasticity, good economy, high safety, and good durability. As a kind of structural material, concrete must have sufficient strength to resist various loads. At the same time, due to the brittleness of concrete, compressive strength is the most important mechanical property of concrete. To solve the disadvantages of the low efficiency of the traditional concrete compressive strength prediction methods, this study proposes a firefly algorithm (FA) and random forest (RF) hybrid machine-learning method to predict the compressive strength of concrete. First, a database is built based on the data of published articles. The dataset in the database contains eight input variables (cement, blast furnace slag, fly ash, water, superplasticizer, coarse aggregate, fine aggregate, and age) and one output variable (concrete compressive strength). Then, the correlation of the eight input variables was analyzed, and the results showed that there was no high correlation between the input variables; thus, they could be used as input variables to predict the compressive strength of concrete. Next, this study used the FA algorithm to optimize the hyperparameters of RF to obtain better hyperparameters. Finally, we verified that the FA and RF hybrid machine-learning model proposed in this study can predict the compressive strength of concrete with high accuracy by analyzing the R values and RSME values of the training set and test set and comparing the predicted value and actual value of the training set and test machine. |