Next Article in Journal
Linear Viscoelastic Wood Creep Models
Previous Article in Journal
Study on the Mechanism and Modification of Carbon-Based Materials for Pollutant Treatment
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Compressive Strength-Based Classification of Eco-Friendly Concretes Using Machine Learning Models

by
Daniel Alcala-Gonzalez
1,
Luis F. Mateo
2,3,
M. Ángeles Quijano
1,3,
M. Isabel Más-López
2,3 and
Eva M. García-del-Toro
1,3,*
1
Departamento de Ingeniería Civil: Hidráulica, Energía y Medio Ambiente, ETSI Caminos, Canales y Puertos-Edificio Retiro, Universidad Politécnica de Madrid, Alfonso XII, 3, 28014 Madrid, Spain
2
Departamento de Matemática e Informática Aplicadas a las Ingenierías Civil y Naval, ETSI Caminos, Canales y Puertos-Edificio Retiro, Universidad Politécnica de Madrid, Alfonso XII, 3, 28014 Madrid, Spain
3
Centro I+D+i en Infraestructuras Civiles Inteligentes y Sostenibles (CIVILIS), ETSI Caminos, Canales y Puertos-Edificio Retiro, Universidad Politécnica de Madrid, Alfonso XII, 3, 28014 Madrid, Spain
*
Author to whom correspondence should be addressed.
Materials 2025, 18(23), 5344; https://doi.org/10.3390/ma18235344
Submission received: 24 October 2025 / Revised: 20 November 2025 / Accepted: 25 November 2025 / Published: 27 November 2025
(This article belongs to the Section Materials Simulation and Design)

Abstract

Accurate prediction of compressive strength in eco-friendly concretes, where part of the cement is replaced with recycled glass powder, remains a fundamental challenge for sustainable construction. This study evaluates and compares the performance of five machine learning models—Naïve Bayes, Random Forest, Decision Tree, Support Vector Machine (SVM), and k-Nearest Neighbors (k-NN)—for classifying the compressive strength of concretes with different mix designs and curing ages. The dataset includes 846 experimental samples produced at the School of Civil Engineering of UPM between 2004 and 2019. The results showed that Naïve Bayes and Random Forest achieved the highest accuracy and generalizability, confirming that the incorporation of glass powder does not introduce significant data instability and can serve as a viable and sustainable substitute of cement. The Decision Tree model provided the greatest interpretability, enabling insight into the influence of mixture parameters, while SVM and k-NN were primarily effective in extreme strength categories. Overall, the findings demonstrated that probabilistic and ensemble learning methods outperform deterministic and proximity-based algorithms in classifying materials with high compositional variability. This work reinforces the potential of artificial intelligence as a non-destructive, reliable, and scalable tool for optimizing the performance of low carbon concretes and promoting sustainable materials engineering.

Graphical Abstract

1. Introduction

Concrete is the most widely used man-made material in civil engineering, with a significant impact on both the economy and the environment [1]. The construction sector contributes substantially to economic development (approximately 9% of the European Union’s GDP), generates millions of direct and indirect jobs (around 18 million in the EU), and fulfills the infrastructure and building needs of the population [2,3]. However, it is also one of the main consumers of natural resources, accounting for nearly 50% of total raw material use and 36% of global final energy consumption [4,5], making it a major source of greenhouse gas emissions [4,6].
In response, the scientific and technical community has focused on developing strategies aimed at reducing the consumption of non-renewable resources and emissions associated with concrete production, to promote a more sustainable and environmentally responsible industry [7,8]. Among the most promising alternatives are the recycling of material and the incorporation of mineral additives that partially replace traditional Portland cement, a material with high environmental impact due to emissions generated during its production [9,10,11]. In this context, eco-friendly concrete emerges as an innovative solution, where a fraction of cement is replaced with recycled glass powder derived from glass waste that, due to its physical or chemical properties, cannot be reintroduced into conventional recycling processes and would otherwise end up in landfills. This approach valorizes a difficult-to-manage byproduct, reduces the need for disposal, and actively contributes to circular economy principles and the mitigation of the sector’s environmental impact. In civil engineering, structures are designed to meet specific requirements based on their intended function, expected service life, and exposure conditions [12]. Within the design process, compressive strength is one of the most relevant properties, as it determines the quality and mechanical performance of concrete [13]. The type of concrete is selected according to its strength class (non-structural, ordinary structural, high strength, or very high-strength) based on project requirements and exposure conditions [14]. This classification is based on criteria established in international standards such as Eurocode 2 [15], ACI 318 [16], ACI 239 for UHPC [17], and the Spanish Structural Code [18], which specify minimum required strength levels and applicable conditions for each category. The experimental determination of concrete compressive strength is technically complex due to the nonlinear relationship between the composition of the constituent material and resulting mechanical behavior [19,20,21]. Traditionally, this involves casting multiple specimens cured under controlled conditions over periods ranging from 1 to 365 days [22], followed by destructive laboratory testing to determine compressive strength, which entails a significant cost in terms of time, materials, and labor. In this context, artificial intelligence (AI) and machine learning (ML) models offer a non-destructive and efficient approach for predicting and classifying compressive strength, particularly in eco-friendly concretes with partial cement replacement using non-recyclable glass powder. This represents a significant step toward digitalization and sustainability in the construction sector.
Over the past three decades, artificial neural networks (ANNs) have been successfully applied across a wide range of scientific and engineering disciplines, demonstrating remarkable capabilities for modeling complex phenomena and predicting non-linear behaviors [23,24,25]. Although their adoption in civil engineering has been relatively limited, several studies have shown their potential for estimating the compressive strength of concrete with accuracy comparable to or exceeding that of traditional empirical methods [26,27,28,29]. The quality of the predictions depends heavily on the network design, training parameters, and selection of input variables, enabling continuous optimization of the models and their adaptation to the specific requirements of each application. Beyond ANNs, a wide variety of AI techniques have been applied to concrete behavior studies, including Adaptive Neuro-Fuzzy Inference Systems (ANFIS), Genetic Programming (GP), Support Vector Machines (SVM), Classification and Regression Trees (CART), and Biogeography-Based Programming (BBP), among others [30]. These tools broaden the methodological spectrum for predictive modeling and mix optimization, reducing reliance on exhaustive experimental testing. Recent studies have proposed increasingly sophisticated approaches combining ML models with metaheuristic optimization algorithms. For example, Yasen et al. [31] developed an Extreme Learning Machine (ELM) model to predict the strength of cellular concrete, achieving greater accuracy than Multivariate Adaptive Regression Splines (MARS), M5 Tree, and SVR, demonstrating its usefulness for improving quality control and reducing physical testing. Similarly, Asteris et al. [32] introduced a hybrid learning model (Hybrid Ensembling of Surrogate Machine Learning Models, HENSM) that integrates ANNs, MARS-L/C (linear (L) and cubic (C) variants of the Multivariate Adaptive Regression Splines), Gaussian Process Regression (GPR), and Minimax Probability Machine Regression (MPMR) within a neural network, achieving more accurate and stable predictions with lower risk of overfitting and potential implications for the design of more sustainable concretes. Other studies, such as that by Kandiri et al. [33], combined ANNs with optimization algorithms (Salp Swarm Algorithm (SSA), Genetic Algorithm (GA), Grasshopper Optimization Algorithm (GOA)) to predict the strength of concrete with recycled aggregates, highlighting the robustness of hybrid approaches. Likewise, Bui et al. [34] applied an ANN optimized with the Whale Optimization Algorithm (WOA), outperforming other evolutionary methods (Dragonfly Algorithm (DA) and Ant Colony Optimization (ACO)). Omran et al. [35] compared nine data mining models for concretes with mineral admixed and found that GPR offered the highest predictive accuracy, especially when combined with ensemble methods. Alshihri et al. [36] also demonstrated the effectiveness of Cascade Correlation Neural Networks (CCNN) in predicting the strength of lightweight concrete at different curing ages, significantly reducing testing costs and time. Beyond numerical prediction, several studies have employed AI models to classify concretes according to their compressive strength. Alghamdi [37] used Decision Tree methods to accurately categorize high-strength mix designs. Zhao [38], applying the Naïve Bayes model, reliably identified strength categories in ultra-high-performance concretes, evidencing its usefulness for quality control. Models such as Random Forest (RF) [39,40] have proven robust against noisy data, while Decision Trees, SVM, and k-NN have shown variable results depending on the mix design and data distribution [41,42].
In addition to these advances, recent research has increasingly adopted more powerful machine learning frameworks to model the behavior of sustainable concretes. For example, Khan et al. [43] employed Extreme Gradient Boosting (XGBoost) to predict the mechanical performance of waste-incorporated concretes, demonstrating high accuracy and robust feature sensitivity analysis. Zhang et al. [44] introduced a hybrid RF–GWO (Grey Wolf Optimizer)–XGBoost model for geopolymer blends, highlighting the potential of ensemble techniques in sustainability-oriented applications. Other developments include the work of Demirtürk [45], who optimized XGBoost and Light Gradient Boosting Machine (LightGBM) for high-performance concretes, and Fei et al. [46], who applied ensemble ML models, including XGBoost, Random Forest, LightGBM, and Adaptive Boosting (AdaBoost), to predict the compressive strength of recycled powder mortar.
Most previous studies have focused on predicting the compressive strength of conventional or recycled concrete. In contrast, very few studies have developed machine learning classification methods for eco-friendly concretes produced with glass powder as a partial cement substitute. Therefore, in this study, we focus on analyzing different ML algorithms to classify these concretes based on their compressive strength. The experimental dataset used in this study was specifically generated with systematic variations in glass powder content, allowing for a detailed analysis of its influence on strength classes. The goal of this research is to develop and identify the most reliable and generalizable methods for quality control and mix optimization, thereby reducing the need for destructive testing and the associated material and time costs.

2. Materials and Methods

For this study, data were collected at the materials laboratory of the School of Engineering in the Universidad Politécnica de Madrid between 2004 and 2019. During this period, 846 concrete specimens with varying compositions and mix designs were prepared.
The first step of the study involved the characterization of the materials used in concrete production to ensure their quality and the representativeness of the experimental tests.

2.1. Material Characterization

2.1.1. Glass Powder

The glass powder used in this study was obtained from two sources: ceramic industry waste (frits) and end-of-life recycled glass containers and packaging, which, due to their properties, cannot be reintroduced into the glass manufacturing process and are disposed of in inert landfills.
The glass powders were characterized using three particle size parameters: d10, d50, and d90, which represent the particle diameters below which 10%, 50%, and 90% of the sample particles, respectively, are smaller than the indicated size. For the purpose of this study, only the d50 value is used to characterize the different batches of ground glass. All analyses were performed using a COULTER LS 100Q laser granulometer (Beckman Coulter, Inc., Brea, CA, USA), maintaining a cell obscuration coefficient between 8% and 12%.
Three batches of glass powder were selected to evaluate the influence of particle size on the compressive strength of the concrete specimens, corresponding to d50 = 33 ± 1 µm, 16 ± 1 µm, and 11 ± 1 µm. A summary of the results is presented in Table 1. A Retsch PM 400 planetary ball mill (Retsch GmbH, Haan, Germany) was used to grind the glass to a particle size of approximately 16 µm.

2.1.2. Cement

A commercial Portland cement type CEM I 52.5 R (Cementos Portland Valderrivas, Morata de Tajuña, Madrid, Spain) was used in this study. The cement exhibited a density of 3.12 g/cm3, a specific surface area of 4440 cm2/g, and a greenish-gray color. The particle size distribution analysis indicated that 41.5% of the total volume consisted of particles smaller than 8 μm, while 99.7% were below 96 μm.
The chemical composition of the CEM I 52.5 R cement, expressed as mass percentage, was as follows: CaO (65%), SiO2 (19%), Al2O3 (5.5%), Fe2O3 (2.65%), SO3 (2.0%), MgO (2.0%), Na2O (0.15%), and K2O (0.7%).

2.1.3. Aggregates

The aggregates used were of siliceous nature and non-reactive. A fine aggregate (sand) with a particle size below 4 mm was employed, together with coarse aggregates in two size ranges: 4–12 mm and 12–20 mm.

2.2. Preparation of Samples

To evaluate the different properties of the concrete, a series of specimens were prepared in accordance with the UNE-EN 12390-2 standard [47]. Each batch featured a distinct composition of the components constituting the mixture.
All mixtures were thoroughly homogenized and cast into cylindrical molds measuring 10 × 30 cm. The specimens were then compacted, demolded after 24 h, and cured in a humidity-controlled chamber at 20 °C for 1, 3, 7, 14, 28, 56, 90, 180, 270, and 360 days. After the curing period, compressive strength tests were carried out in accordance with UNE 83-304-84 [48] to determine the compressive strength of the concrete.

Summary of Mix Compositions Used in the Tested Specimens

Table 2 presents a summary of the mix compositions used in the preparation of the 846 specimens tested for compressive strength throughout the study period.

2.3. Mechanical Properties of Concrete

After the specimens reached the specified curing ages (1, 3, 7, 14, 28, 56, 90, 180, 270, and 360 days), compressive strength tests were conducted to determine the mechanical performance of the concrete. The results for each specimen were recorded according to its mixture composition and curing time. Table 3 summarizes the compressive strength values obtained as a function of the curing time.
The concrete samples were categorized into four strength classes: non-structural, ordinary, high, and very high, according to Eurocode 2 (EN 1992-1-1) [15]. Specifically, the non-structural category corresponds to compressive strength < 20 MPa, ordinary to 20–40 MPa, high to 40–60 MPa, and very high to >60 MPa. This standardized classification framework was used as the target variable for the machine learning models, enabling the systematic evaluation of the algorithms’ performance and facilitating comparisons across eco-friendly concretes incorporating glass powder.

2.4. Data Processing and Methodology of Machine Learning Models

To assess the predictive performance of machine learning algorithms in classifying the compressive strength of eco-friendly concrete, a systematic data processing and modeling procedure was implemented. The dataset was preprocessed by detecting outliers using the interquartile range (IQR) method, removing measurement errors, and preserving valid extreme values. Numerical features (cement, water, fine and coarse aggregates, glass powder, and curing age) were normalized to the range [0,1] using Min–Max scaling, and categorical variables were one-hot encoded. Subsequently, the dataset was split into training (70%), testing and validation (30%) subsets, with stratified sampling to preserve the distribution of strength classes. Figure 1 illustrates the overall workflow of the methodology, summarizing the main stages of data collection, processing, model selection, and verification.

Description of the Models

Several ML classification models were evaluated, including Support Vector Machines (SVM), Naïve Bayes, Random Forest, Decision Trees, and k-Nearest Neighbors (k-NN). All models were implemented using the open-source KNIME Analytics Platform (version 5.5) [49], which is particularly suitable for data analysis due to its user-friendly interface and low computational requirements.
The Naïve Bayes model is a supervised ML algorithm used for classification tasks [50], that is, to predict the category or class to which a given observation belongs. This algorithm is based on Bayes’ Theorem and assumes that the features describing an instance are conditionally independent, given the class label. Although this assumption rarely holds true in real-world data, the model remains highly effective and robust across various applications. In this study, the model was trained using 70% of the total dataset, with the remaining 30% reserved for validation. This model predicts strength assuming conditional independence between the input features. Probabilistic distributions are estimated for each feature (cement, water, aggregates, glass powder) relative to discrete output categories or ranges of compressive strength, and predictions are obtained by combining the probabilities according to Bayes’ theorem. The default implementation assumed a Gaussian distribution for numerical features, and hyperparameter tuning was not required due to the model’s simplicity.
Random Forest is a supervised ensemble learning algorithm used for both classification and regression tasks. Its main objective is to predict the class of a given instance by combining the outputs of multiple Decision Trees, to achieve higher accuracy and robustness [51]. In this study, 70% of the total dataset was used for model training, and 30% was reserved for validation. The algorithm constructs an ensemble of decision trees, each trained on random subsets of the input features to generate splitting rules based on cement, water, aggregates, and glass powder. This design allows the model to capture complex nonlinear interactions between the mixed components and reduces overfitting, thereby improving generalization. Once trained, the Random Forest produces its final prediction by aggregating the outputs of all individual trees and assigning each concrete specimen to the class receiving the most votes. The model was configured with 100 trees, a maximum depth of 10, and a minimum sample split of 2. Hyperparameters were optimized using a grid search with 5-fold cross-validation to maximize classification accuracy.
The Decision Tree algorithm is a supervised learning model widely used for classification, as it hierarchically segments data according to the most relevant features [52]. In this work, the model predicts compressive strength classes by recursively splitting the dataset based on thresholds of input features (cement, water, aggregates, glass powder, curing age). The tree structure captures hierarchical relationships among variables and provides class predictions at the leaf nodes. The algorithm was trained with 70% of the dataset, while the remaining 30% was used for validation. At each node, the tree selected the attribute that maximized class separation, effectively dividing the data into increasingly homogeneous subgroups. This approach revealed clear relationships between mixture components, curing time, and compressive strength class, showing that specific composition ranges consistently influenced mechanical performance. After training, the model assigned each new specimen to the class corresponding to the terminal (leaf) node it fell into. The interpretable tree structure also made it possible to visualize the key factors governing compressive strength. A configuration with a maximum tree depth of 8 and a minimum of one sample per leaf, without pruning, was adopted based on validation set performance.
The k-Nearest Neighbors (k-NN) algorithm is an instance-based supervised learning method used for classification tasks [53]. In this study, it was applied to predict the compressive strength class of concrete specimens based on their mix composition (cement, water, aggregates, and glass powder) and curing time. The algorithm measures the distance between a new sample and all samples in the training set, identifies the k most similar mixtures using the Euclidean distance metric, and assigns the new specimen to the most frequent class among these neighbors. This allows the model to capture local relationships in the dataset, where mixtures with similar compositions tend to exhibit similar compressive strength classifications. The model was trained using 70% of the dataset, with the remaining 30% employed for validation. The number of neighbors was set to k = 5, selected based on cross-validation performance.
The Support Vector Machine (SVM) is a supervised ML algorithm widely used for regression and classification tasks due to its robustness and ability to generalize to unseen data [54]. In this study, SVM was employed to model the compressive strength of eco-friendly concretes. The input variables (cement, water, aggregates, and glass powder) were used to capture nonlinear relationships through the RBF kernel. SVM constructs an optimal hyperplane in a high-dimensional feature space, with support vectors defining the regression function based on the most influential samples. When a new mixture is provided, the model evaluates its position relative to this hyperplane to predict compressive strength. As with the other models, 70% of the data were used for training and 30% for validation. Key hyperparameters were tuned using grid search with 10-fold cross-validation (RBF kernel, C = 10, gamma = 0.1) to ensure reliable predictive performance.
As a summary, Figure 2 illustrates the operational framework of the machine learning models developed using the KNIME Analytics Platform (version 5.5), providing a structured representation of the workflow implemented in each case.

3. Results

Table 4 shows the results obtained by laboratory-measured compressive strength of eco-friendly cement samples with the classifications produced by the ML models. This representation highlights the models’ capability to categorize the cements according to their compressive performance across different curing times.
A comprehensive evaluation of the obtained results will be conducted using robust performance metrics designed to rigorously quantify the predictive accuracy and reliability of the proposed artificial intelligence models for the classification of eco-friendly concrete mixtures based on their compressive strength.

Model Performance Evaluation

To assess the predictive capability and robustness of the proposed ML models, several performance metrics were employed. All metrics were derived from the confusion matrix presented in Table 5, which summarizes the classification outcomes for the validation dataset. These metrics quantify the models’ ability to accurately classify the compressive strength classes of concrete specimens based on their mix composition and curing time. Standard statistical indicators, including accuracy, precision, recall, and F1-score, were calculated to provide a comprehensive understanding of both the overall and class-specific performance of each algorithm.
Table 6 presents the performance metrics derived from the confusion matrix, used to evaluate the ML models applied in this study. Accuracy measures the proportion of correct predictions over the total number of instances, while precision and recall provide a more detailed, class-specific analysis: precision indicates how reliable the positive predictions are, and recall reflects the model’s ability to identify all actual instances of a given class. The F1-score, as the harmonic mean of precision and recall, provides a balanced measure of overall performance. Finally, specificity complements recall by assessing the model’s ability to avoid false positives. Together, these metrics allow for a comprehensive comparison of the models, considering both their global performance and their capacity to correctly distinguish between different concrete types.
Table 7 complements the information provided in the previous paragraph by presenting the actual values of these metrics for each ML model applied to the concrete dataset.
A detailed examination of the model performance metrics highlights significant differences in predictive behavior across the evaluated algorithms. Naïve Bayes consistently achieved high values across all metrics for all strength categories (precision and recall > 0.85; F1-score ~0.95; overall accuracy 0.95), demonstrating both excellent positive case identification and strong resistance to false positives. This balance indicates a robust capacity to generalize across heterogeneous data, making it the most reliable model for comprehensive classification.
Random Forest exhibited generally strong performance, with moderate to high precision and recall (accuracy 0.76), yet a noticeable decline in recall for the minority classes (Non-structural and Very high-strength) suggests some sensitivity to class imbalance. Its specificity remained high, indicating correct identification of negative cases even when positive instances were misclassified.
Decision Tree achieved perfect metrics (1.0) across all categories, reflecting overfitting rather than true predictive capability. While this ensures flawless performance on the training set, the lack of generalization limits its utility for unseen data.
SVM and k-NN displayed highly uneven metrics. SVM attained perfect precision and recall only in extreme classes (Non-structural and Very high-strength), with poor recall in intermediate categories (e.g., 0.10 for Ordinary structural), indicating failure to capture subtle inter-class boundaries. Similarly, k-NN performed acceptably for low-strength concrete but almost completely failed in High-strength classes (precision 0.01) and very high-strength (recall 0.10), reflecting strong sensitivity to local data distribution and feature scaling.
In conclusion, the comparison of machine learning models highlights their respective strengths and limitations in predicting concrete strength classes. Naïve Bayes consistently achieved high accuracy across all classes, demonstrating robust generalization. Random Forest performed well for “Ordinary structural” and “High strength” classes but showed lower recall for minority classes. SVM excelled in “Non-structural” and “Very high-strength” classes but was less effective for intermediate classes, while k-NN performed well for “Ordinary structural” but struggled with higher strength classes due to sensitivity to local patterns. Decision Tree achieved perfect classification, likely reflecting overfitting. Overall, these results illustrate the analytical focus of each model. SVM emphasizes margin-based separation, Naïve Bayes leverages probabilistic feature relationships, Random Forest and Decision Tree use hierarchical splits, and k-NN relies on local similarity, providing clear guidance for selecting the most appropriate method based on the target concrete class and dataset characteristics.
Figure 3 illustrates a radar chart comparing the global performance of the evaluated machine learning models across five metrics: Precision, Recall, Specificity, F1-Score, and Accuracy.

4. Discussion

The comparative evaluation of five machine learning algorithms—Naïve Bayes, Random Forest, Decision Tree, Support Vector Machine (SVM), and k-Nearest Neighbors (k-NN), for classifying the compressive strength of eco-friendly concretes incorporating recycled glass powder has revealed substantial differences in predictive behavior and practical implications for sustainable material design. These findings not only highlight the computational performance of each model but also provide valuable insight into their suitability for guiding the development and structural use of environmentally responsible cementitious composites.
The Naïve Bayes model exhibited the highest overall performance (accuracy ≈ 0.95), maintaining balanced precision and recall across all strength categories. Its strong predictive capability for high and ultra-high strength concretes aligns with prior studies by Zhao et al. [38], which attribute this robustness to the algorithm’s probabilistic structure and its ability to effectively handle datasets with moderate collinearity and clearly separated quantitative features. In the context of glass powder modified concretes, this performance suggests that the material’s mechanical behavior remains sufficiently distinct across strength classes to be probabilistically separable, supporting the potential use of Naïve Bayes as an efficient, low-complexity model for early-stage material screening.
The Random Forest algorithm achieved comparably strong results (accuracy ≈ 0.76), especially in the ordinary structural and high-strength categories. Its ensemble-based architecture, which aggregates multiple decision trees through bagging, allows it to capture nonlinear interactions between material components and curing parameters. These results corroborate findings by Omran et al. [35] and Asteris et al. [32], who reported similar advantages of tree-based models for predicting concrete mechanical properties. In this study, Random Forest demonstrated high robustness to noise and variability arising from the inclusion of glass powder, confirming its capability for accurate classification and potential real-time monitoring of eco-concretes during production and curing. However, the slight underperformance in the very high-strength category suggests the need for further class balancing or feature engineering when dealing with minority strength ranges.
Conversely, the Decision Tree model achieved perfect performance (accuracy = 1.00), a result indicative of overfitting rather than true generalization. Although this behavior superficially suggests exceptional precision, it compromises reliability when predicting unseen data. Similar overfitting tendencies have been reported by Asteris et al. [32], who noted that decision tree–based models tend to overfit when the number of predictor variables is high or when class distinctions are subtle. Nonetheless, the interpretability and transparent decision rules of this model make it a valuable analytical tool for exploring parameter–response relationships, particularly for visualizing the influence of glass powder content, water-to-binder ratio, or curing age on strength development. In practice, Decision Trees may serve as an explanatory component within hybrid or ensemble frameworks, enhancing interpretability without sacrificing predictive accuracy.
The SVM model, in contrast, exhibited inconsistent performance (accuracy ≈ 0.42), performing well only in the extreme categories (non-structural and ultra-high strength). This pattern mirrors findings from previous studies [41], where the margin-based nature of support vector machines is highly effective for well-separated classes but limited in cases of overlapping or complex nonlinear relationships unless kernel parameters are carefully optimized. Given the compositional heterogeneity of eco-friendly concretes, where particle morphology, pozzolanic activity, and curing kinetics interact non-linearly, the limited adaptability of the SVM underscores the necessity of kernel tuning or hybridization for improved predictive stability in sustainable material systems.
Similarly, the k-Nearest Neighbors (k-NN) model demonstrated the lowest overall accuracy (≈0.49) and weak generalization in the high and very high-strength categories. Although it performed reasonably well for ordinary concrete, its dependence on local data density and sensitivity to feature scaling reduced its robustness in heterogeneous datasets. These limitations, reported also by Kandiri et al. [33], highlight that k-NN is more suited for qualitative or semi-quantitative classification tasks, such as preliminary mixture grouping or process monitoring, rather than for rigorous strength classification.
In summary, the comparative performance trends are consistent with the evidence obtained from the feature importance analysis. Naïve Bayes and Random Forest outperformed SVM, k-NN, and Decision Tree. Naïve Bayes benefited from well-differentiated feature distributions, and Random Forest leveraged its ensemble architecture to capture nonlinear interactions. The feature importance analysis confirmed that cement content, glass powder ratio, and curing age are the dominant variables influencing strength classification, while aggregate ratios and water content play a secondary role. These findings not only explain the superior accuracy of Naïve Bayes and Random Forest but also highlight the practical value of feature-based information for optimizing the design of eco-friendly concrete mixes.
From a broader perspective, these results emphasize that probabilistic and ensemble-learning methods, such as Naïve Bayes and Random Forest, provide the most balanced combination of accuracy, generalization, and interpretability for classifying eco-friendly concretes. Their strong predictive performance confirms that the incorporation of recycled glass powder as a partial cement replacement does not introduce excessive data noise or instability, thereby reinforcing its potential as a viable and sustainable substitute for structural applications. Furthermore, the consistent increase in predicted strength classification with curing age across all models reflects the expected hydration and pozzolanic activity trends of blended cements, validating both the experimental observations and the physical relevance of the models.
In contrast, while the Decision Tree model excels in interpretability, its tendency to overfit limits its predictive generalization, making it more suitable for exploratory or explanatory analyses. Similarly, SVM and k-NN demonstrate effectiveness primarily in extreme strength categories, where class boundaries are more distinct. Collectively, these outcomes are consistent with trends reported in recent literature [31,32,33,34,35,36], which indicate that probabilistic and ensemble-based approaches consistently outperform deterministic and proximity-based models in the classification of materials characterized by high compositional variability.
The discrepancies observed among the algorithms can be partially explained by the intrinsic differences between glass powder concrete and conventional mixes. The incorporation of glass powder as a partial cement replacement results in a more eco-friendly concrete, which exhibits a distinctive characteristic compared to conventional concretes: it prolongs the setting reactions due to the extension of its pozzolanic reactions [54]. This modification affects the hydration kinetics and microstructure, producing denser matrices, but also greater variability in early-age strength due to the pozzolanic reaction. This heterogeneity can influence the predictive behavior models, particularly in algorithms sensitive to data distribution, such as SVM and k-NN. In contrast, ensemble and tree-based methods better capture nonlinear dependencies and compositional interactions, which explain their greater accuracy and recall in most strength classes. However, despite these potential sources of variability, the experimental data did not show significant instability in the compressive strength measurements. This can be attributed to the small particle size of the recycled glass powder, which promotes uniform dispersion; the pozzolanic reaction, which provides additional C–S–H gel without generating abrupt strength fluctuations; and the low substitution levels (1–2% by volume), which preserve the homogeneity of the mixture and prevent clustering or segregation. Together, these factors support the reliability and consistency of the dataset used for machine learning classification.

5. Conclusions

The results of this study demonstrate that ML models constitute effective and sustainable tools for classifying the compressive strength of eco-friendly concretes in which a fraction of the cement is replaced with glass powder. This data-driven approach contributes to more efficient resource management, supports the principles of the circular economy, and reduces the need for extensive destructive testing. Based on model performance, the key findings can be summarized as follows:
  • The Naïve Bayes classifier achieved the highest overall accuracy (≈0.95) demonstrating a balance between accuracy and comprehensiveness across all strength categories. Random Forest also performed reliably (accuracy ≈ 0.76), effectively capturing the nonlinear interactions between mixture components and curing parameters. Its consistent performance confirms that partial cement replacement with glass powder does not introduce significant instability into the data, reinforcing its potential as a viable and sustainable substitute for structural concrete applications.
  • The Decision Tree model achieved perfect accuracy (1.00), indicating possible overfitting; Nevertheless, its interpretability makes it particularly valuable for explanatory analysis and understanding the relative influence of mixture parameters such as glass powder content, water-to-binder ratio, and curing age on concrete strength.
  • The SVM and k-NN methods, with accuracies of 0.42 and 0.50, respectively, demonstrated competitive performance in extreme strength categories but lower overall accuracy in heterogeneous datasets, limiting their applicability for generalized prediction. However, their simplicity and responsiveness to local patterns make them suitable for preliminary mixture screening, process monitoring, or rapid on-site quality control.
Overall, the findings highlight that probabilistic and ensemble-based methods outperform deterministic and proximity-based algorithms when classifying materials with high compositional variability. The choice of model should therefore be guided by the specific objectives of the study, balancing interpretability, accuracy, and generalization depending on the intended application.
In summary, AI-based models, such as Naïve Bayes and Random Forest, can optimized mix design, enable real-time monitoring during production, and contribute to non-destructive testing by providing early strength class predictions. This scalable framework improves decision-making, efficiency, and reliability in sustainable construction and can accelerate the adoption of low-carbon materials and the efficient use of resources, supporting the broader goals of sustainable construction and the circular economy in the cement and concrete industry.
A potential future line of research could explore several avenues to further strengthen and expand the findings of this study. For example, studying other types of additives to cement to produce different kinds of eco-friendly concretes (such as ground granulated blast furnace slag, fly ash, eggshell, etc.) could enhance the model’s applicability. Conducting external validation using an independent dataset, processed through the same preprocessing steps but without retraining the model, could also help assess performance across diverse contexts. Moreover, examining and applying data balancing techniques for categories with fewer samples may contribute to improved generalizability and robustness of the model.

Author Contributions

Conceptualization, L.F.M., M.I.M.-L., E.M.G.-d.-T., M.Á.Q. and D.A.-G.; methodology, E.M.G.-d.-T. and L.F.M. software, L.F.M.; validation, E.M.G.-d.-T. and L.F.M.; formal analysis, L.F.M., M.Á.Q. and E.M.G.-d.-T.; investigation, E.M.G.-d.-T. and M.I.M.-L., writing—original draft preparation, E.M.G.-d.-T. and L.F.M.; writing—review and editing, M.Á.Q. and E.M.G.-d.-T.; supervision, M.Á.Q. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Zuo, J.; Zhao, Z.Y. Green Building Research-Current Status and Future Agenda: A Review. Renew. Sustain. Energy Rev. 2014, 30, 271–281. [Google Scholar] [CrossRef]
  2. European Commission. The European Construction Sector; European Union: Brussels, Belgium, 2016; 16p. [Google Scholar]
  3. Sánchez-García, E.; Martínez-Falcó, J.; Marco-Lajara, B.; Manresa-Marhuenda, E. Revolutionizing the Circular Economy through New Technologies: A New Era of Sustainable Progress. Environ. Technol. Innov. 2024, 33, 103509. [Google Scholar] [CrossRef]
  4. UN Environment Programme. Global Status Report for Building and Construction—Towards a Zero-Emissions, Efficient and Resilient Buildings and Construction Sector; United Nations Environment Programme: Nairobi, Kenya, 2019; ISBN 9789280736861. [Google Scholar]
  5. Pérez-Lombard, L.; Ortiz, J.; Pout, C. A Review on Buildings Energy Consumption Information. Energy Build. 2008, 40, 394–398. [Google Scholar] [CrossRef]
  6. Allouhi, A.; El Fouih, Y.; Kousksou, T.; Jamil, A.; Zeraouli, Y.; Mourad, Y. Energy Consumption and Efficiency in Buildings: Current Status and Future Trends. J. Clean. Prod. 2015, 109, 118–130. [Google Scholar] [CrossRef]
  7. Agrawal, R.; Yadav, A.; Yadav, A.; Jamwal, A. Life Cycle Assessment Research: A Review by Bibliometric Analysis. Optim. Methods Eng. Probl. 2023, 76, 54–71. [Google Scholar] [CrossRef]
  8. Wu, P.; Xia, B.; Zhao, X. The Importance of Use and End-of-Life Phases to the Life Cycle Greenhouse Gas (GHG) Emissions of Concrete—A Review. Renew. Sustain. Energy Rev. 2014, 37, 360–369. [Google Scholar] [CrossRef]
  9. Turk, O.; Yehia, S.; Abdelfatah, A.; Elchalakani, M. Sustainable Concrete Production: The Potential of Utilizing Recycled Waste Materials. J. Build. Eng. 2024, 98, 111467. [Google Scholar] [CrossRef]
  10. Silva, J.V.S.; Reis, E.D.; Poggiali, F.S.J. Experimental Investigation on Structural Mortars with Partial Cement Replacement by Semi-Coke. J. Build. Eng. 2025, 111, 113239. [Google Scholar] [CrossRef]
  11. Más-López, M.I.; García Del Toro, E.M.; García-Salgado, S.; Alcala-Gonzalez, D.; Pindado, S. Application of Concretes Made with Glass Powder Binder at High Replacement Rates. Materials 2021, 14, 3796. [Google Scholar] [CrossRef]
  12. Adesina, A.; Zhang, J. Impact of Concrete Structures Durability on Its Sustainability and Climate Resiliency. Next Sustain. 2024, 3, 100025. [Google Scholar] [CrossRef]
  13. Mehta, P.K.; Monteiro, P.J.M. Concrete: Microstructure, Properties, and Materials, 4th ed.; McGraw-Hill Education: Columbus, OH, USA, 2013; ISBN 0071589198. [Google Scholar]
  14. Ouyang, X.; Wu, Z.; Shan, B.; Chen, Q.; Shi, C. A Critical Review on Compressive Behavior and Empirical Constitutive Models of Concrete. Constr. Build. Mater. 2022, 323, 126572. [Google Scholar] [CrossRef]
  15. EN 1992-1-1; Eurocode 2: Design of Concrete Structures—Part 1-1: General Rules. European Committee for Standardization: Brussels, Belgium, 2020.
  16. American Concrete Institute. Building Code Requirements for Structural Concrete (ACI 318-19) and Commentary; ACI Committee: Farmington Hills, MI, USA, 2019. [Google Scholar]
  17. ACI Committee 239. ACI PRC-239. Ultra-High-Performance Concrete. Tech. Note; American Concrete Institute: Farmington Hills, MI, USA, 2024. [Google Scholar]
  18. Ministerio de Transportes Movilidad y Agenda Urbana Código Estructural. Boletín of del Estado 2021. pp. 97664–99452. Available online: https://www.boe.es/eli/es/rd/2021/06/29/470 (accessed on 13 July 2025).
  19. Pourbaba, M.; Chakraborty, R.; Pourbaba, M.; Belarbi, A.; Yeon, J.H. A New Insight into the Design Compressive Strength of Ultra-High Performance Concrete. Buildings 2023, 13, 2909. [Google Scholar] [CrossRef]
  20. Richardson, D. Review of Variables That Influence Measured Concrete Compressive Strength. J. Mater. Civ. Eng. 1991, 3, 95–112. [Google Scholar] [CrossRef]
  21. Abdullah, A.I. Effects of Loading Rates on Concrete Compressive Strength. IOP Conf. Ser. Mater. Sci. Eng. 2021, 1144, 012033. [Google Scholar] [CrossRef]
  22. Ryu, G.S.; An, G.H.; Yoon, Y.S.; Kim, J.Y.; Choi, S. Evaluation of Concrete Compressive Strength Prediction Using the Maturity Method Incorporating Various Curing Temperatures and Binder Compositions. Materials 2024, 17, 5794. [Google Scholar] [CrossRef]
  23. Abilov, A.; Zeybek, Z. Use of Neural Network for Modeling of Non-Linear Process Integration Technology in Chemical Engineering. Chem. Eng. Process. Process Intensif. 2000, 39, 449–458. [Google Scholar] [CrossRef]
  24. Mateo, L.F.; Más-López, M.I.; García-del-Toro, E.M.; García-Salgado, S.; Quijano, M.Á. Artificial Neural Networks to Predict Electrical Conductivity of Groundwater for Irrigation Management: Case of Campo de Cartagena (Murcia, Spain). Agronomy 2024, 14, 524. [Google Scholar] [CrossRef]
  25. García-del-Toro, E.M.; García-Salgado, S.; Mateo, L.F.; Quijano, M.Á.; Más-López, M.I. Machine Learning as a Diagnosis Tool of Groundwater Quality in Zones with High Agricultural Activity (Region of Campo de Cartagena, Murcia, Spain). Agronomy 2022, 12, 3076. [Google Scholar] [CrossRef]
  26. Yeh, I.-C. Modeling of Strength of High-Performance Concrete Using Artificial Neural Networks. Cem. Concr. Res. 1998, 28, 3–8. [Google Scholar] [CrossRef]
  27. Başyigit, C.; Akkurt, I.; Kilincarslan, S.; Beycioglu, A. Prediction of Compressive Strength of Heavyweight Concrete by ANN and FL Models. Neural Comput. Appl. 2010, 19, 507–513. [Google Scholar] [CrossRef]
  28. Deepa, C.; SathiyaKumari, K.; Sudha, V.P. Prediction of the Compressive Strength of High Performance Concrete Mix Using Tree Based Modeling. Int. J. Comput. Appl. 2010, 6, 18–24. [Google Scholar] [CrossRef]
  29. Kostić, S.; Vasović, D. Prediction Model for Compressive Strength of Basic Concrete Mixture Using Artificial Neural Networks. Neural Comput. Appl. 2015, 26, 1005–1024. [Google Scholar] [CrossRef]
  30. Malami, S.I.; Musa, A.A.; Haruna, S.I.; Aliyu, U.U.; Usman, A.G.; Abdurrahman, M.I.; Bashir, A.; Abba, S.I. Implementation of Soft-Computing Models for Prediction of Flexural Strength of Pervious Concrete Hybridized with Rice Husk Ash and Calcium Carbide Waste. Model. Earth Syst. Environ. 2022, 8, 1933–1947. [Google Scholar] [CrossRef]
  31. Yaseen, Z.M.; Deo, R.C.; Hilal, A.; Abd, A.M.; Bueno, L.C.; Salcedo-Sanz, S.; Nehdi, M.L. Predicting Compressive Strength of Lightweight Foamed Concrete Using Extreme Learning Machine Model. Adv. Eng. Softw. 2018, 115, 112–125. [Google Scholar] [CrossRef]
  32. Asteris, P.G.; Skentou, A.D.; Bardhan, A.; Samui, P.; Pilakoutas, K. Predicting Concrete Compressive Strength Using Hybrid Ensembling of Surrogate Machine Learning Models. Cem. Concr. Res. 2021, 145, 106449. [Google Scholar] [CrossRef]
  33. Kandiri, A.; Sartipi, F.; Kioumarsi, M. Predicting Compressive Strength of Concrete Containing Recycled Aggregate Using Modified Ann with Different Optimization Algorithms. Appl. Sci. 2021, 11, 485. [Google Scholar] [CrossRef]
  34. Tien Bui, D.; Abdullahi, M.M.; Ghareh, S.; Moayedi, H.; Nguyen, H. Fine-Tuning of Neural Computing Using Whale Optimization Algorithm for Predicting Compressive Strength of Concrete. Eng. Comput. 2021, 37, 701–712. [Google Scholar] [CrossRef]
  35. Omran, B.A.; Chen, Q.; Jin, R. Comparison of Data Mining Techniques for Predicting Compressive Strength of Environmentally Friendly Concrete. J. Comput. Civ. Eng. 2016, 30, 04016029. [Google Scholar] [CrossRef]
  36. Alshihri, M.M.; Azmy, A.M.; El-Bisy, M.S. Neural Networks for Predicting Compressive Strength of Structural Light Weight Concrete. Constr. Build. Mater. 2009, 23, 2214–2219. [Google Scholar] [CrossRef]
  37. Alghamdi, S.J. Classifying High Strength Concrete Mix Design Methods Using Decision Trees. Materials 2022, 5, 1950. [Google Scholar] [CrossRef]
  38. Zhao, Z. Predicting Compressive Strength of Ultra-High-Performance Concrete Using Naive Bayes Regression in Novel Approaches. Multiscale Multidiscip. Model. Exp. Des. 2024, 7, 5235–5249. [Google Scholar] [CrossRef]
  39. Yang, D.; Xu, P.; Zaman, A.; Alomayri, T.; Houda, M.; Alaskar, A.; Javed, M.F. Compressive Strength Prediction of Concrete Blended with Carbon Nanotubes Using Gene Expresion Programing and Random Forest: Hyper-Tuning and Optimization. J. Mater. Res. Technol. 2023, 24, 7198–7218. [Google Scholar] [CrossRef]
  40. Shaqadan, A. Prediction of Concrete Mix Strength Using Random Forest Model. Int. J. Appl. Eng. Res. 2016, 11, 11024–11029. [Google Scholar]
  41. Zhang, W.; Liu, D.; Cao, K. Prediction of Concrete Compressive Strength Using Suppor Vector Machine Regresion and Non-Destrucive Testing. Constr. Mater. 2024, 21, e03416. [Google Scholar]
  42. Halder, R.K.; Uddin, M.N.; Uddin, M.A.; Aryal, S.; Khraisat, A. Enhancing K-Nearest Neighbor Algorithm: A Comprehensive Review and Performance Analysis of Modifications. J. Big Data 2024, 11, 113. [Google Scholar] [CrossRef]
  43. Khan, A.; Manan, A.; Umar, M.; Mehmood, M.; Onyelowe, K.C.; Arunachalam, K.P. Enhancing Concrete Strength for Sustainability Using a Machine Learning Approach to Improve Mechanical Performance. Sci. Rep. 2025, 15, 23067. [Google Scholar] [CrossRef]
  44. Zhang, J.; Wang, R.; Lu, Y.; Huang, J. Prediction of Compressive Strength of Geopolymer Concrete Landscape Design: Application of the Novel Hybrid RF–GWO–XGBoost Algorithm. Buildings 2024, 14, 591. [Google Scholar] [CrossRef]
  45. Demirtürk, D.; Mintemur, Ö.; Arslan, A. Optimizing LightGBM and XGBoost Algorithms for Estimating Compressive Strength in High-Performance Concrete. Arab. J. Sci. Eng. 2025. [Google Scholar] [CrossRef]
  46. Fei, Z.; Liang, S.; Cai, Y.; Shen, Y. Ensemble Machine-Learning-Based Prediction Models for the Compressive Strength of Recycled Powder Mortar. Materials 2023, 16, 583. [Google Scholar] [CrossRef]
  47. UNE-EN 12390-3; AENOR Determinación de La Resistencia a Compresión de Probetas de Hormigón. Spanish Association for Standardization (UNE): Madrid, Spain, 2004; pp. 1–18.
  48. UNE 83-304-84; AENOR Ensayos de Hormigón; Rotura Por Comprensión: Norma Española. Instituto Español de Normalización: Madrid, Spain, 1985; pp. 1–3.
  49. Platform, K.A. KoNstanz Information MinEr. Available online: https://www.knime.com/software-overview (accessed on 5 February 2022).
  50. Peretz, O.; Koren, M.; Koren, O. Naive Bayes Classifier—An Ensemble Procedure for Recall and Precision Enrichment. Eng. Appl. Artif. Intell. 2024, 136, 108972. [Google Scholar] [CrossRef]
  51. Salman, H.A.; Kalakech, A.; Steiti, A. Random Forest Algorithm Overview. Babylonian J. Mach. Learn. 2024, 2024, 69–79. [Google Scholar] [CrossRef] [PubMed]
  52. Mienye, I.D.; Jere, N. A Survey of Decision Trees: Concepts, Algorithms, and Applications. IEEE Access 2024, 12, 86716–86727. [Google Scholar] [CrossRef]
  53. Suyal, M.; Goyal, P. A Review on Analysis of K-Nearest Neighbor Classification Machine Learning Algorithms Based on Supervised Learning. Int. J. Eng. Trends Technol. 2022, 70, 43–48. [Google Scholar] [CrossRef]
  54. Más-López, M.I.; del Toro, E.M.G.; Patiño, A.L.; García, L.J.M. Eco-Friendly Pavements Manufactured with Glass Waste: Physical and Mechanical Characterization and Its Applicability in Soil Stabilization. Materials 2020, 13, 3727. [Google Scholar] [CrossRef] [PubMed]
Figure 1. General flow chart of the machine learning methodology used for accurate classification of compressive strength in eco-friendly concrete.
Figure 1. General flow chart of the machine learning methodology used for accurate classification of compressive strength in eco-friendly concrete.
Materials 18 05344 g001
Figure 2. Overview of the KNIME-based workflow used for the development, training, and evaluation of the machine learning models for accurate classification of compressive strength in eco-friendly concrete.
Figure 2. Overview of the KNIME-based workflow used for the development, training, and evaluation of the machine learning models for accurate classification of compressive strength in eco-friendly concrete.
Materials 18 05344 g002
Figure 3. Radar chart comparison of performance metrics of the Machine Learning models for eco-friendly concrete classification according to its compressive strength.
Figure 3. Radar chart comparison of performance metrics of the Machine Learning models for eco-friendly concrete classification according to its compressive strength.
Materials 18 05344 g003
Table 1. Granulometric characterization of glass powder according to milling time.
Table 1. Granulometric characterization of glass powder according to milling time.
Glass PowderGrinding Time (h)d10d50d90
12.5 2.92 ± 0.01 33 ± 1 110 ± 2
24.25 1.96 ± 0.01 16 ± 1 59 ± 2
35 1.65 ± 0.01 11 ± 1 43 ± 2
Table 2. Summary of the composition of the tested specimens (kg/m3).
Table 2. Summary of the composition of the tested specimens (kg/m3).
ConstituentMinimumMaximumMeanStandard Deviation
Cement7859534779
Water10226617823
Gravel64913551146128
Sand20980675158
Glass powder094196128
Table 3. Compressive strength (MPa) results of eco-friendly concrete samples versus curing time.
Table 3. Compressive strength (MPa) results of eco-friendly concrete samples versus curing time.
Curing Time (Days)MinimumMaximumMeanSDN
36525.7276.2550.2913.1739
27044.7950.0947.002.5915
18010.3774.4545.8914.6555
908.6795.7646.6616.97105
5611.1255.4035.729.75119
280.8281.4136.5212.59216
147.7344.1128.1810.9839
71.5469.7229.1211.37201
30.5133.3818.229.8740
12.4629.8212.128.5417
Table 4. Results obtained in the classification of eco-friendly concrete samples, based on compressive strength and curing time, measured in the laboratory and predicted by the five machine learning models analyzed.
Table 4. Results obtained in the classification of eco-friendly concrete samples, based on compressive strength and curing time, measured in the laboratory and predicted by the five machine learning models analyzed.
Curing Time13714285690180270365
Measured compressive strength
Ordinary structural77121612100
Non-structural27564532610405
High-strength009342923817
Very high-strength0070408204
Predicted by the SVM model
Ordinary structural7671402100
Non-structural00259412404
High-strength28682783220818
Very high-strength0030408204
Predicted by the Naïve Bayes model
Ordinary structural91480892394315116
Non-structural17581452269405
High-strength009228924817
Very high-strength0030608204
Predicted by the Random Forest model
Ordinary structural77111612100
Non-structural27574532610405
High-strength009329923817
Very high-strength0030408204
Predicted by the Decision Tree model
Ordinary structural77121612100
Non-structural27564532610405
High-strength009329923817
Very high-strength0030408204
Predicted by the k-Nearest Neighbors model
Ordinary structural3371615000
Non-structural310515602511502
High-strength311922410239114
Very high-strength0030204100
Table 5. Confusion matrices showing the classification performance of the machine learning models.
Table 5. Confusion matrices showing the classification performance of the machine learning models.
ModelConcrete Classification Based on Compressive Strength
Ordinary StructuralNon-StructuralHigh-StrengthVery High-Strength
SMVOrdinary structural1701500
Non-structural02890
High-strength230660
Very high-strength00021
Naïve BayesOrdinary structural159440
Non-structural53200
High-strength230660
Very high-strength00021
Random ForestOrdinary structural1376240
Non-structural162010
High-strength150731
Very high-strength4089
Decision TreeOrdinary structural167000
Non-structural03700
High-strength00890
Very high-strength00021
k-NNOrdinary structural1376240
Non-structural162000
High-strength15011
Very high-strength40739
Table 6. Performance metrics and their mathematical formulas.
Table 6. Performance metrics and their mathematical formulas.
MetricMathematical Formula
Precision P = T P T P + F P
Recall R = T P T P + F N
Specificity S = T N T N + F P
F1-Score F 1 = 2 P R P + R
Accuracy A = T P + T N T P + T N + F P + F N
Where: TP: True Positives; TN: True Negatives; FP: False Positives; FN: False Negatives.
Table 7. Results obtained for the performance metrics of the machine learning models studied in the classification of eco-friendly concrete based on its compressive strength.
Table 7. Results obtained for the performance metrics of the machine learning models studied in the classification of eco-friendly concrete based on its compressive strength.
ModelMetrics
PrecisionRecallSpecificityF1-ScoreAccuracy
SMVOrdinary structural0.42 ± 0.030.10 ± 0.030.84 ± 0.020.16 ± 0.020.42 ± 0.04
Non-structural1.00 ± 0.000.76 ± 0.051.00 ± 0.000.86 ± 0.03
High-strength0.29 ± 0.040.74 ± 0.050.29 ± 0.030.42 ± 0.04
Very high-strength1.00 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.00
Naïve BayesOrdinary structural0.95 ± 0.010.95 ± 0.010.94 ± 0.010.95 ± 0.010.95 ± 0.01
Non-structural0.89 ± 0.020.86 ± 0.030.99 ± 0.010.88 ± 0.02
High-strength0.96 ± 0.010.94 ± 0.020.96 ± 0.010.95 ± 0.01
Very high-strength0.91 ± 0.021.00 ± 0.001.00 ± 0.020.96 ± 0.01
Random ForestOrdinary structural0.80 ± 0.020.82 ± 0.030.87 ± 0.020.81 ± 0.020.76 ± 0.02
Non-structural0.77 ± 0.030.56 ± 0.050.96 ± 0.020.64 ± 0.04
High-strength0.69 ± 0.030.82 ± 0.030.85 ± 0.030.75 ± 0.03
Very high-strength0.90 ± 0.020.50 ± 0.040.98 ± 0.020.64 ± 0.03
Decision treeOrdinary structural1.00 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.00
Non-structural1.00 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.00
High-strength1.00 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.00
Very high-strength1.00 ± 0.001.00 ± 0.001.00 ± 0.001.00 ± 0.00
k-NNOrdinary structural0.80 ± 0.020.82 ± 0.030.78 ± 0.020.81 ± 0.020.50 ± 0.03
Non-structural0.77 ± 0.030.56 ± 0.020.98 ± 0.020.64 ± 0.04
High-strength0.01 ± 0.010.51 ± 0.020.67 ± 0.030.18 ± 0.01
Very high-strength0.90 ± 0.020.10 ± 0.031.00 ± 0.010.19 ± 0.02
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Alcala-Gonzalez, D.; Mateo, L.F.; Quijano, M.Á.; Más-López, M.I.; García-del-Toro, E.M. Compressive Strength-Based Classification of Eco-Friendly Concretes Using Machine Learning Models. Materials 2025, 18, 5344. https://doi.org/10.3390/ma18235344

AMA Style

Alcala-Gonzalez D, Mateo LF, Quijano MÁ, Más-López MI, García-del-Toro EM. Compressive Strength-Based Classification of Eco-Friendly Concretes Using Machine Learning Models. Materials. 2025; 18(23):5344. https://doi.org/10.3390/ma18235344

Chicago/Turabian Style

Alcala-Gonzalez, Daniel, Luis F. Mateo, M. Ángeles Quijano, M. Isabel Más-López, and Eva M. García-del-Toro. 2025. "Compressive Strength-Based Classification of Eco-Friendly Concretes Using Machine Learning Models" Materials 18, no. 23: 5344. https://doi.org/10.3390/ma18235344

APA Style

Alcala-Gonzalez, D., Mateo, L. F., Quijano, M. Á., Más-López, M. I., & García-del-Toro, E. M. (2025). Compressive Strength-Based Classification of Eco-Friendly Concretes Using Machine Learning Models. Materials, 18(23), 5344. https://doi.org/10.3390/ma18235344

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop