Abstract
Magnetic shape memory alloys based on the Ni–Mn–Ga system are of strategic interest for aerospace and robotics applications due to their ability to respond to both thermal and magnetic stimuli. However, the NASA Shape Memory Materials Database a key resource for the community exhibits significant gaps in functional parameters, with up to 93.7% of records missing critical properties such as the Curie temperature, and over 88% lacking complete magnetic data. To address this limitation, this study proposes a data imputation strategy based on a stacking ensemble comprising twelve machine learning models (LGBM, XGBoost, CatBoost, GradientBoosting, RandomForest, MLP, BayesianRidge, KNN, SVR, GPR, MICE, and AutoEncoder), optimized via Optuna and evaluated using ten random seeds with 10 repetitions each. The approach was applied to reconstruct missing entries in NASA’s database. For heat treatment 1, the method achieved coefficients of determination () of 0.95 for duration (h) and 0.88 for temperature (°C), respectively. For the phase transformation temperatures (Mf, Ms, As, and Af), the method yielded values of 0.83, 0.82, 0.79, and 0.80, respectively. Magnetic properties saturation magnetization and maximum magnetic field were imputed with an of 0.92. In contrast, the Curie temperature exhibited limited predictive performance ( = 0.15–0.35), primarily due to insufficient data availability. Overall, the proposed methodology integrates machine learning based imputation with physically supported constraints, providing a viable alternative to enhance the completeness and utility of materials databases.
1. Introduction
Shape memory alloys (SMAs) have a strong ability to recover large inelastic strains, often introduced by martensitic reorientation, upon an appropriate thermal stimulus, a capability that uderpins applications ranging from sel-expanding medical devices to aerospace actuators (e.g., satellite control mechanisms) [1]. Among these materials, Ni–Mn–Ga system is a prototypical ferromagnetic SMA because its functional response can be driven not only by temperature but also by moderate magnetic fields (≤1 T), allowing recoverable strains of up to 12% in oriented single crystals [2,3]. This behavior remains stable even under very high cycle counts: cycling 29 tests have shown that its ferromagnetism stays nearly unchanged after 106 loading cycles, and in some configurations far beyond, with limited degradation of functional response, supporting its potential 30 for long-term cyclic actuation [1,4,5]. Nevertheless, for implantable use, long-term bioperformance, including corrosion and ion-release behavior, requires careful validation and, in many concepts, protective surface strategies are considered essential.
Advances in composite materials increasingly rely on dispersing magnetically active Ni–Mn–Ga single-crystal particles within soft polymer matrices to enable cooperative twin-variant reorientation under an applied magnetic field. In a representative approach, Ni–Mn–Ga particles are embedded at vol.% in a low-modulus silicone rubber (e.g., ELASTOSIL M 4400; elastic stiffness MPa, i.e., below 1 MPa) and cured under a magnetic field to promote particle alignment into chain-like structures. Under these conditions, the composite can exhibit a fully reversible magnetic-field-induced rubber-like behavior, characterized by macroscopic magnetic-field-induced strain (MFIS) of approximately 4.0% elongation (and transverse contraction) under a magnetic field of T [5].
In aerospace applications, SMAs are being investigated for adaptive and weight-efficient actuation architectures, including variable-geometry propulsion components such as adaptive exhaust nozzles actuated by SMAs to regulate nozzle area and improve operational flexibility. In parallel, SMA-based morphing concepts continue to be explored for aerodynamic shape control; for example, AFRL has reported flight experiments demonstrating a variable-camber compliant wing concept capable of smoothly altering wing camber across operating conditions [6]. Beyond near-ambient operation, Ni–Mn–Ga–based high-temperature SMAs have also been proposed for actuation in the 400–500 °C regime, with transformation temperatures reported up to 500 °C and functional stability assessed over hundreds of thermal cycles after appropriate thermomechanical conditioning [7]. Finally, in selected Ni–Mn–Ga compositions where magnetic and structural transitions are coupled, the same magnetostructural physics can also support magnetocaloric responses in the vicinity of the transformation [5,8].
Microstructure and Composite Design
Among the martensitic structures, the non-modulated (NM) phase and the modulated monoclinic structures 10 M and 14 M are the most commonly reported. The dominant mechanism behind magnetic shape memory (MSM) is the motion of the twin boundary in this martensitic phase. Detailed studies on single crystals have revealed the complex coexistence of multiple domains (including austenite, martensite variants, and twins), with experimental observations reporting a five-domain propagation interface under a thermal gradient [9,10,11]. These works show that such complex microstructural patterns (such as four- and five-domain configurations) are nearly perfectly compatible, meaning that they generate only a small elastic energy.
This highly mobile twinned microstructure is crucial for damping: in hybrid NiMnGa composites embedded in a polymer matrix (such as soft epoxy), the hysteretic motion of twin boundaries provides a high Relative Damping Capacity (RDC) to the material. For example, a MSM–Epoxy composite achieved an RDC of 3.5 GPa, a value much higher than that of pure NiMnGa single crystals (RDC = 0.2 GPa) [9,10,11,12].
There is a significant challenge in data management, as the documentation of this alloy and many others is scattered throughout the scientific literature. NASA’s Shape Memory Materials Database compiled information from multiple articles, gathering a substantial number of parameters and valuable data on these alloys, constituting a critical resource for the scientific community. However, it presents notable shortcomings: 88% of the records lack complete magnetic hysteresis curves, and 92% omit fundamental parameters such as transition temperatures [13]. These gaps introduce uncertainties in predictive models, limiting their practical usefulness (Figure 1 and Table 1).
Figure 1.
Missing data visualization for the NASA Ni–Mn–Ga database. Yellow cells indicate missing values, while purple cells represent complete data. The figure illustrates the high proportion of missing data for thermal and magnetic properties, particularly for heat treatment 2, phase transformation temperatures, and Curie temperature.
Table 1.
Percentage and count of null data.
In the face of this challenge, traditional imputation methods (e.g., mean/median substitution) are insufficient to address the multivariable complexity of materials data. In contrast, machine learning techniques such as random forest, k-NN, and gradient boosting algorithms (LightGBM, XGBoost, CatBoost) have demonstrated superior performance by capturing nonlinear relationships among composition, microstructure, and properties [14,15]. Recent studies show that imputation quality directly affects predictive model performance, making it critical to select methods that preserve physicochemical correlations [16,17,18].
Although machine learning has been successfully applied to the design of superalloys [19,20,21,22], hihg entropy alloys [23] complex magnetic alloys [24,25,26], and in the study of martensitic transformations that exhibit shape memory effects, such as those analized in the present articles [27,28,29,30,31] its use for imputing data in NASA’s database remains incipient. This work proposes a hybrid approach that combines different machine learning techniques with models such as LightGBM, XGBoost, RandomForest, CatBoost, MLP, BayesianRidge, KNN, SVR, GPR, MICE, and AutoEncoder (optimized using Optuna), along with variable-selective models (XGBoost, MLP, BayesianRidge), selecting the best model for each variable. This approach captures specific relationships among composition, density, and heat treatments, among other parameters, improving dataset integrity for predicting missing values. It is important to note that H. Abedi [32] used NASA’s NiTiHf alloy database in his study due to its low variability across publications and its high data quality for predicting the behavior of this alloy, demonstrating that reliable predictions can be achieved using machine learning.
The models are evaluated using standard metrics such as mean squared error (MSE [33], Equation (1)), root mean squared error (RMSE, Equation (2)), and the coefficient of determination (, Equation (3)).
is the observed value at instance i, is the model prediction, and n is the total number of instances.
where represents the actual (observed) value at point i, is the value predicted by the model, and is the measure of the observed values.
2. Materials and Methods
2.1. Materials
For this work, the NASA Shape Memory Materials Database, available at [13], was used. This database compiles historical research data on nickel, manganese and gallium (Ni–Mn–Ga) alloys published in peer-reviewed scientific articles. The dataset comprises a total of 1184 samples extracted from over 50 publications spanning several decades. It includes information on stoichiometric compositions (atomic percentages of Ni, Mn, and Ga), alloy density, and related physical parameters organized as follows: heat treatment 1 (temperature in °C and holding time in hours), heat treatment 2 (temperature in °C and holding time in hours), martensitic and austenitic transformation temperatures (Ms, Mf, As, and Af) in °C, maximum magnetic field in teslas (MaxMagnetizationField), saturation magnetization in emu/g (SaturationMagnetization), and Curie temperature in °C (CurieTemp).
Data processing and model development were performed using Python 3.9 (Python Software Foundation, Wilmington, DE, USA). The machine learning workflow was implemented using NumPy v1.26, pandas v2.2, scikit-learn v1.5, XGBoost v2.1, LightGBM v4.5, CatBoost v1.2, Optuna v4.0, and PyTorch v2.4 (Meta Platforms, Inc., Menlo Park, CA, USA). Computations were carried out on a Dell Precision 5860 workstation (Dell Technologies Inc., Round Rock, TX, USA) equipped with an Intel Xeon W7-2495X processor (Intel Corporation, Santa Clara, CA, USA) and dual NVIDIA RTX 5000 Ada Generation GPUs (NVIDIA Corporation, Santa Clara, CA, USA). Data were stored in CSV format and subsequently organized using Microsoft Excel 2024 (Microsoft Corporation, Redmond, WA, USA).
2.2. Methods
Model training was optimized to minimize the mean squared error (Equation (1)), as this metric penalizes larger errors and is desirable for precise imputations where significant deviations could affect physical interpretations. To optimize each model’s hyperparameters, the Optuna library was used with its Tree-structured Parzen Estimator (TPE) approach, which is more effective than random or grid searches for high-dimensional and complex spaces. The TPE algorithm iteratively constructs a probabilistic model of the objective function and selects hyperparameter configurations that are likely to improve performance, balancing exploration and exploitation.
A total of 300 trials were used to explore the hyperparameter space for each model and each target variable. The search ranges for each hyperparameter were defined based on prior knowledge and preliminary experiments (see Table 2). Sequential execution was employed to avoid stability issues in global variables, at the cost of increased computation time. For each trial, the model was evaluated using 5-fold cross-validation on the training set, and the hyperparameter combination yielding the lowest average MSE was selected. This process was repeated for each of the 10 random seeds, resulting in 3000 optimization runs per target variable (300 trials × 10 seeds).
Table 2.
Hyperparameters for the different models.
The seven tables were concatenated using the Pandas library, as shown in Figure 1, and an identification column was added to enable constant tracking of the real data before being imputed in the complete table.
In the preprocessing stage, all column values were converted to numerical format using the pd.to_numeric method, assigning to non-numeric entries to prevent errors during model training. For cleaning the heat treatment one parameter, the interquartile range (IQR) was used to trim outliers beyond approximately 2.7 standard deviations in a normal distribution, considering 99.3% of the data under Gaussian assumptions, using Equation (5) derived from Equation (4).
The data for the variables nickel, manganese, gallium, and density were used as predictors because of their physical relationship with the temperatures of heat treatment 1. Additionally, they were chosen for their direct correlation between degrees Celsius and hours of the same variable, since both describe aspects of the same thermal process. For training, the data were split into three sets: 70% for training, 15% for validation, and 15% for model validation tests, ensuring a comprehensive evaluation of the models.
To improve the performance and stability of the models, 10 specific random seeds were used. This approach ensures the reproducibility of the results and introduces controlled variability between repetitions, allowing simulation of different data partitions and evaluation of model robustness. Additionally, each seed was executed 10 times, reducing the bias associated with a single random split and providing a more reliable estimate of the final performance.
Model training was optimized to minimize the mean squared error (Equation (1)), since this metric penalizes larger errors and is desirable for precise imputations, where significant deviations could affect physical interpretations. To optimize each model, the Optuna library was used, which, with its TPE (Tree-structured Parzen Estimator) approach, is more effective than random or grid searches for complex spaces. A total of 300 trials were used to explore the hyperparameter space, and sequential execution was employed to avoid stability issues in global variables, at the cost of increased computation time.
The models tested were the following: boosted trees (LGBM, XGBoost, CatBoost, GradientBoosting), which are suitable for tabular data with nonlinear relationships and noise, common in physical experiments [34]. RandomForest is robust and effective for capturing interactions between variables without assuming specific distributions [35]. MLP is capable of modeling complex and nonlinear relationships, useful when temperatures depend on hidden patterns [36]. BayesianRidge is typically appropriate for linear relationships with uncertainty [37]. KNN, based on local similarity, is useful when the data contains natural clusters [38]. SVR is effective for nonlinear regression with kernels and is robust to outliers [39]. GPR is ideal for modeling smooth and continuous relationships with uncertainty, common in physical data [40]. MICE is a standard statistical method for multivariate imputation [41], and AutoEncoder is an approach based on neural networks to capture latent structures in missing data.
Multiple models were implemented to ensure that the final approach does not depend on a single technique, allowing the identification of the best model tuned with Optuna for the specific characteristics of each dataset [42]. In addition, each model used a specific set of hyperparameters within a defined tuning range, as shown in Table 2.
For each repetition of the 300 trials, the model with the lowest MSE in cross-validation was selected in order to maximize performance in each partition. A pipeline was trained with an initial imputation step (CustomImputer), filling the missing values in the predictors with medians, only for the case of density, which was the only predictor with missing data. After this, a standard scaling (StandardScaler) was applied to normalize the features to mean 0 and variance 1. Subsequently, feature engineering (advancedFeatureEngineer) was applied to identify additional relationships among variables. The temperature ratio Ms/As (martensitic transformation), which has a direct correlation with martensitic phase stability, was used. In addition, the parameters of maximum magnetic field and maximum magnetic saturation were unified into a single feature through their product [43]. Finally, a thermal distribution metric was implemented in which minimum temperatures were subtracted from maximum temperatures to evaluate thermal stability, thermal fatigue, and the martensite/austenite transformation window [44]. Afterward, a robust scaling was applied to adjust the transformed features to median 0 and interquartile range.
Other metrics measured were , mentioned in Equation (3), and RMSE from Equation (2), where indicates the proportion of explained variance and reflects how good the model is, with a range from 0 to 1, where values close to 1 represent a perfect model, while RMSE facilitates the interpretation of the results. The complete methodology of the described process is summarized in Figure 2.
Figure 2.
Flowchart of the complete imputation methodology. The process comprises four main stages: (1) data preprocessing and cleaning, (2) feature engineering including physical constraints, (3) model training and optimization with Optuna, and (4) stacking ensemble and uncertainty quantification.
For the phase temperatures, additional advanced features [45] were used, such as nonlinear transformations (Equations (6)–(9)), thermodynamic relations (Equations (10) and (11)), and critical gradients ((12) and (13)). This process generated 23 new variables in order to better model the behavior of the alloy and improve the training of the different models. The target metric remains the mean squared error, in addition, a physical penalty for violation of thermal ordering is added (Equation (14)). A regularized stacking approach is used with CatBoost as the meta-model.
The advanced feature engineering strategy was designed to encode relevant physical relationships into the input space, thereby guiding the machine learning models toward physically plausible predictions. Specifically, three categories of features were generated:
Nonlinear transformations: Logarithmic, square root, square, and cubic transformations of the original compositional and thermal variables were included to capture potential nonlinear dependencies that are common in phase transformation phenomena
Thermodynamic relationships: Temperature differences () and ratios () were computed for all pairs among the four phase transformation temperatures (Ms, Mf, As, Af). These features encode the expected thermodynamic hierarchy () and provide information about the transformation hysteresis width, which is known to correlate with composition and processing conditions in Ni–Mn–Ga alloys
For temperature pairs where .
With to avoid division by 0 and only for to avoid redundancies.
Critical gradients: The austenite completion range () and the martensitic formation range ( were computed as measures of thermal stability and transformation window.
With Equation (12) the austenite completion range is measured.
For magnetic properties, the product of maximum magnetic field and saturation magnetization was included as a composite feature, based on the physical relationship between these quantities in ferromagnetic materials.
To ensure that the imputed values respect the fundamental thermodynamic ordering of phase transformation temperatures, a physical penalty term was added to the loss function during training Equation (13). This penalty imposes a cost of whenever the predicted values violate the expected hierarchy . This approach, known as physics-informed regularization, has been successfully applied in recent ML studies for shape memory alloys [15,29] and ensures that the imputed values are not only statistically plausible but also physically consistent (see Figure 3).
Figure 3.
Schematic representation of thermal hysteresis in shape memory alloys, showing the characteristic temperature hierarchy Mf < Ms < As < Af. This ordering was enforced as a physical constraint during the imputation process (adapted from Hmede [12]).
For each target variable, the final imputed value was determined through a two-stage procedure. In the first stage, the 12 base models were trained independently on the same training partition, and their predictions on the validation set were recorded. These predictions, along with the original features, were used to train a meta model (CatBoost) in a 5-fold cross-validation setting within the stacking framework. The meta-model learns to combine the base model predictions optimally, effectively weighting each base model according to its performance on the validation data.
In the second stage, the trained stacking ensemble was applied to the test set (and subsequently to the full dataset) to generate the final imputed values. The use of a meta-model, rather than simple averaging, allows the ensemble to adapt to the specific characteristics of each target variable and to leverage the complementary strengths of the base models (see Figure 4). This approach has been shown to reduce both bias and variance compared to individual models or unweighted ensembles [46,47].
Figure 4.
Architecture ofthe stacking ensemble used for imputation. Predictions from 12 base models (LGBM, XGBoost, CatBoost, GradientBoosting, RandomForest, MLP, BayesianRidge, KNN, SVR, GPR, MICE, AutoEncoder) are combined using a CatBoost meta model with 5-fold cross-validation.
2.3. Uncertainty Quantification and Statistical Significance
To assess the reliability of the imputed values and to compare the performance of the stacking ensemble against individual models, we conducted a comprehensive uncertainty analysis. For each target variable and each seed, we computed the following:
To assess the robustness of the stacking ensemble, uncertainty in the performance metrics was quantified using bootstrap resampling. Specifically, 1000 bootstrap resamples of the test predictions were generated for the stacking ensemble, from which the distributions of the MSE and coefficient of determination () were obtained. The corresponding 95% confidence intervals were computed from the bootstrap percentile estimates.
The statistical significance of the performance difference between the stacking ensemble and the corresponding best observed individual model (BOP) was evaluated using a paired t-test. A significance level of was adopted, with indicating statistically significant improvements.
The results are summarized in Table 3. For each target variable, the table reports the best observed performance achieved by an individual model (BOP), the average performance of the stacking ensemble, the associated 95% bootstrap confidence intervals for the stacking metrics, and the corresponding p-values. This analysis complements the deterministic performance metrics by providing an estimate of the uncertainty associated with the stacking ensemble predictions.
Table 3.
Performance comparison between the stacking ensemble and the best individual model, including uncertainty estimates and statistical significance.
3. Results
After applying the imputation process to the variables associated with Heat Treatment 1 (temperature1Hr and temperature1C), using a machine-learning-based approach with multiple models optimized through cross-validation and different random seeds, the metrics used to assess imputation performance are the Mean Squared Error (MSE), the Root Mean Squared Error (RMSE), and the Coefficient of Determination (). These were, calculated for both the test and validation sets for each seed [48].
Imputation of time of Heat Treatment 1, Table 4 summarizes the performance metrics for the imputation of the variable , which represents the duration in hours of Heat Treatment 1. Ten random seeds were used to divide the data into training, validation, and test sets, ensuring the robustness of the predictions against variations in data partitioning.
Table 4.
Holding time of heat treatment 1 (h) per seed (validation and test).
The results show that the CatBoost model achieved the best performance on the test set for seed 3, with an MSE of 68.0433, an RMSE of 8.2488, and an of 0.9729, indicating high accuracy in prediction the missing values. XGBoost also showed consistent results, with an average above 0.95 across several seeds (for example, Testseed1: = 0.9540; Testseed4: = 0.9621). In contrast, LGBM exhibited greater variability, with ranging from 0.8269 (Testseed8) to 0.9128 (Testseed9). In the validation set, XGBoost again stood out with an of 0.9677 for seed 4, while LGBM and CatBoost maintained values above 0.87 in most cases, as shown in Table 4.
Table 5 details the metrics for imputing the heat treatment 1 temperature (°C). As in the previous case, multiple seeds were used to evaluate model stability.
Table 5.
Heat treatment 1 temperature (°C) per seed (validation and test).
For Heat Treatment 1 temperature in °C, XGBoost displayed outstanding performance, with an average above 0.85 for most test seeds (for example, Testseed1: = 0.9179; Testseed8: = 0.9042) and a peak of 0.9593 in Validationseed7. However, the MSE and RMSE values were generally higher than those for , suggesting greater difficulty in predicting this variable, possibly due to a wider dispersion in the original data. Additionally, it must be noted that the temperatures used for the heat treatment were high, in the range of 800–900 °C; therefore, the error reported here is also related to magnitude. LGBM showed more variable results, with an ranging from 0.5788 (Validationseed9) to 0.8619 (Validationseed0), while CatBoost achieved intermediate performance (for example, Validationseed3: = 0.8948; Testseed6: = 0.8421).
The results show that the imputation of was more accurate and stable than that of . This is evidenced in Figure 5, where the violin plots corresponding to the variable in hours exhibit more compact distributions, with smaller dispersions between minimum, maximum, and mean values. The higher values and lower RMSE for this variable reflect that the models were able to capture its statistical structure more easily. One possible reason is that heat treatment durations tend to exhibit intrinsically lower variability than temperatures, reducing the complexity of the pattern the models must learn.
Figure 5.
Violin plots of RMSE distribution for each model and target variable across 10 random seeds. The width of each violin represents the density of RMSE values, while the white dot indicates the mean and the thick black bar represents the interquartile range. Narrower violins indicate greater model stability across data partitions.
Regarding model performance, Figure 5 shows that XGBoost produces narrow violin plots, with means consistently located at the lower end of the error scale, indicating stable behavior across different partitions and seeds. CatBoost also exhibits a relatively controlled distribution, although with slightly larger variations depending on the feature analyzed. In contrast, LGBM shows the highest sensitivity to changes in the data: its violins display greater dispersion, and the minimum and maximum values differ widely, revealing relevant fluctuations between runs (see Table 6).
Table 6.
Summary of average metrics and most frequent model per parameter.
In summary, the imputation performance varied considerably across target variables. Heat treatment duration () was imputed with high accuracy, achieving values consistently above 0.95 in the test set across multiple seeds, with a best of 0.973 (CatBoost, seed 3), which is consistent with the detailed results presented in Table 4. Heat treatment temperature () proved more challenging, with test values ranging from 0.64 to 0.92 (Table 5), reflecting the greater experimental variability in this parameter.
For phase transformation temperatures, the best performance was observed for Mf ( = 0.869 in test, 0.950 in validation), followed by Af ( = 0.765 in test, 0.883 in validation), As ( = 0.730 in test, 0.846 in validation), and Ms ( = 0.764 in test, 0.817 in validation). These results indicate that the models capture the underlying physical relationships more effectively for some transformation temperatures than for others, likely due to differences in data availability and variability.
Magnetic properties maximum magnetic field and saturation magnetization were imputed with values of 0.926 and 0.872 in the test set, respectively, demonstrating the effectiveness of the approach for these parameters. In contrast, the Curie temperature exhibited poor predictive performance ( = 0.148 in test, 0.348 in validation), which we attribute to the limited number of available samples (only 154 data points) and the weak correlation with the available compositional and processing features. This finding highlights the importance of data quantity and quality for successful imputation.
4. Discussion
The results demonstrate that the imputation of heat treatment duration () is substantially more stable and accurate than that of temperature (), as evidenced by consistently lower RMSE and higher values across most random seeds. While this difference is partly attributable to the inherent scale disparity ranges between 24 and 76 h, whereas spans 800–1100 °C the superior performance for also reflects its lower experimental variability. In practical terms, processing times are often selected from standard sets (e.g., 24, 48, 72 h), resulting in fewer unique values and a more learnable statistical distribution. Conversely, the broader scatter in reported heat treatment temperatures, likely arising from diverse furnace calibrations and thermal histories across laboratories, imposes a more complex regression task. Among the individual models, XGBoost exhibited the highest robustness to data partitioning, producing compact error distributions with minimal fluctuation, while CatBoost offered competitive performance with slightly higher variance. The higher sensitivity of LGBM to seed changes suggests that gradient boosting with exclusive feature bundling may overfit specific data splits when the sample size is moderate, highlighting the necessity of the multi-seed evaluation framework adopted in this work.
Beyond statistical metrics, the physical plausibility of the imputed values was critically assessed against established trends in the Ni-Mn-Ga system. The martensitic transformation temperatures in these alloys are known to increase with rising Ni content and to decrease with increasing Ga content due to changes in the electron concentration (valence electron concentration, (e/a) that stabilize the martensite phase [5,8]. The imputed values for Ms, Mf, As, and Af consistently followed these compositional dependencies, with Pearson correlation coefficients ranging from 0.72 to 0.85 between Ni content and the imputed transformation temperatures. More importantly, the thermodynamic hierarchy was preserved in over 98% of the imputed samples, confirming that the physics informed penalty term effectively enforced this critical constraint without severely compromising the statistical fit. The few violations (less than 2%) occurred exclusively in samples characterized by high missingness and broad prediction intervals, indicating that the model appropriately flags uncertain regions. For magnetic properties, the imputed saturation magnetization exhibited the expected inverse correlation with Mn content, consistent with the known weakening of ferromagnetic exchange due to excess Mn occupying Ga sites [5]. These validations provide strong evidence that the framework yields not only statistically coherent estimates but also thermodynamically and magnetically consistent data.
The incorporation of uncertainty quantification and statistical significance testing substantially reinforces the reliability of the proposed methodology. As detailed in Table 3, the stacking ensemble consistently outperformed the best individual model across all target variables, with improvements in MSE ranging from 5% to 10%. Paired t tests confirmed that these gains were statistically significant () for all variables except the Curie temperature, where the paucity of data precluded meaningful learning. The 95% bootstrap confidence intervals for the stacking predictions were consistently narrower than those for individual models, indicating enhanced precision and reduced sensitivity to the specific training validation test split. This stabilization effect is particularly valuable for database imputation, where the goal is to generate robust estimates that can be confidently used in subsequent modeling or experimental design. The success of the stacking approach can be attributed to its ability to mitigate model specific biases: tree based models (XGBoost, CatBoost) excel at capturing nonlinear feature interactions, while GPR and AutoEncoder capture smoother latent structures, and the meta-model optimally balances these contributions [46,47].
The notably poor performance observed for the Curie temperature highlights a fundamental limitation of data-driven imputation when faced with extreme data scarcity. With only 154 available samples (93.7% missingness) and weak statistical correlation with the selected compositional and processing features, neither individual models nor the ensemble could capture the underlying physical determinism of this parameter. While the Curie temperature in Ni-Mn-Ga is indeed influenced by composition, it exhibits a distinct dependence on the degree of chemical ordering and specific heat-treatment protocols, which are coarsely represented in the current database [44]. This result serves as a cautionary note: imputation methods, regardless of their sophistication, cannot compensate for insufficient experimental coverage, and systematic data collection remains irreplaceable for properties governed by subtle microstructural details.
Although this study specifically addresses the Ni-Mn-Ga system, the modular and physics informed architecture of the proposed framework is readily transferable to other materials databases exhibiting similar challenges namely, high proportions of missing data, heterogeneous reporting standards, and complex composition processing property linkages. The methodology can be adapted to other shape memory alloy systems (e.g., Ni-Ti-Hf or Cu-Al-Ni) by substituting the appropriate thermodynamic constraints, transformation hierarchies, and composition dependent rules. For instance, Abedi et al. [32] recently demonstrated the effectiveness of machine learning for predicting actuation strains in NiTiHf alloys using the NASA database; the present imputation framework could be directly applied to complete missing entries in that system as well. Future work will focus on incorporating additional descriptors, such as electronic structure parameters (e.g., e/a ratio) and grain size estimates, to improve predictive performance for poorly represented properties like the Curie temperature. Furthermore, exploring transfer learning strategies could leverage data from related Heusler alloys (e.g., Ni-Mn-In, Ni-Co-Mn-Ga) to enhance model generalization and reduce the dependency on large, fully annotated datasets for each specific composition. Finally, the integration of uncertainty estimates directly into the database as proposed here could enable end users to weigh the reliability of imputed entries when making design decisions, thereby transforming a static repository into a more dynamic decision support tool.
5. Conclusions
This study demonstrates that a multi model stacking ensemble, reinforced by cross-validation, multi seed sampling, and physics-informed constraints, constitutes a robust and effective strategy for imputing missing functional properties in the NASA Ni-Mn-Ga shape memory alloy database. The stacking approach consistently outperformed individual models, achieving statistically significant improvements (, paired t-test) for most target variables, while also providing tighter prediction intervals and reduced sensitivity to data partitioning.
For heat treatment parameters, the imputation of holding time () was highly accurate and stable, with the CatBoost model achieving a test of 0.973 (seed 3) and most seeds yielding . In contrast, heat treatment temperature () proved more challenging due to its wider experimental dispersion, although XGBoost achieved a best test of 0.918 (seed 1), demonstrating that the ensemble can still capture meaningful trends despite higher variability. These results highlight that imputation quality is strongly influenced by the intrinsic statistical structure and measurement scale of each variable.
For the martensitic and austenitic transformation temperatures, the best predictive performance was obtained for the martensite finish temperature (Mf), with test and validation values of 0.869 and 0.950, respectively. The austenite finish (Af), austenite start (As), and martensite start (Ms) temperatures yielded test values of 0.765, 0.730, and 0.764, respectively. Crucially, the physics informed penalty term successfully preserved the thermodynamic hierarchy in over 98% of the imputed samples, and the imputed values showed strong correlations (Pearson –0.85) with Ni content, consistent with established compositional trends in the Ni-Mn-Ga system. These validations confirm that the imputed data are not only statistically coherent but also physically plausible.
Regarding magnetic properties, the maximum magnetic field and saturation magnetization were imputed with test values of 0.926 and 0.872, respectively, further demonstrating the effectiveness of the approach for structure property relationships that are well captured by compositional descriptors. In contrast, the Curie temperature exhibited poor predictive performance (test , validation ), which is attributed to the extreme data scarcity (only 154 available samples, 93.7% missingness) and insufficient correlation with the selected input features. This result underscores a fundamental limitation of data-driven imputation: advanced algorithms cannot compensate for inadequate experimental coverage, and targeted data collection remains essential for properties governed by subtle microstructural or ordering effects.
Uncertainty quantification via bootstrap resampling and prediction intervals revealed that the stacking ensemble provides more reliable imputations than individual models, with narrower 95% confidence intervals and higher coverage rates.
In summary, the combined use of multiple machine-learning models integrated through stacking, enhanced by physically constrained feature engineering and rigorous uncertainty analysis, proved to be a powerful strategy for database completion in the Ni–Mn–Ga system. Nevertheless, the results also highlight critical limitations related to data quantity, experimental variability, and the physical complexity of certain properties. Future work should focus on: (i) expanding the database through systematic experimental campaigns targeting underrepresented compositions and properties; (ii) incorporating additional physical descriptors, such as the valence electron concentration (e/a) and chemical ordering parameters; (iii) exploring transfer learning approaches to leverage data from related Heusler alloy systems (e.g., Ni-Mn-In, Ni-Co-Mn-Ga); and (iv) integrating the imputation framework into interactive database platforms to provide end-users with uncertainty-aware property estimates for accelerated materials design and selection.
Author Contributions
Conceptualization and supervision, M.G.F., D.S., C.O.-P. and J.F.P.; methodology, validation, and formal analysis, J.C.B.D., J.F.P. and M.G.F.; data acquisition and data curation, J.C.B.D., J.E.B.-R. and E.G.C.R.; writing and writing-review, editing, and visualization, all authors. Project administration and funding acquisition, J.F.P. All authors have read and agreed to the published version of the manuscript.
Funding
This work is partially supported by “El Patrimonio Autónomo Fondo Nacional de Financiamiento para la Ciencia, la Tecnología y la Innovación Francisco José de Caldas” CONV CONT. No. 477-2023. The financial support received from the IKUR Strategy (Quantum Technologies, SPINSHALL Project, QT-3) under the collaboration agreement between the Ikerbasque Foundation and BCMaterials on behalf of the Department of Education of the Basque Government, as well as from the grant PID2022-138256NA-C22 funded by MCIN/AEI/10.13039/501100011033.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The raw data supporting the conclusions of this study are available from the NASA Magnetic Shape Memory Alloys Database (https://shapememory.grc.nasa.gov/magnetic_shape_memory_alloys), accessed on 15 January 2025. The processed data used for analysis are available from the corresponding author upon reasonable request.
Acknowledgments
During the preparation of this work, the author(s) used ChatGPT (https://chatgpt.com/) for editing and translation purposes. After using this tool/service, the author(s) reviewed and edited the content as necessary and assume full responsibility for the content of the published article.
Conflicts of Interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper and there is no conflict of interest among the authors.
References
- Costanza, G.; Tata, M.E. Shape memory alloys for aerospace, recent developments, and new applications: A short review. Materials 2020, 13, 1856. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Sratong-on, P.; Chernenko, V.A.; Feuchtwanger, J.; Hosoda, H. Magnetic field-induced rubber-like behavior in Ni-Mn-Ga particles/polymer composite. Sci. Rep. 2019, 9, 3443. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Villa, F.; Bestetti, E.; Frigerio, R.; Caimi, M.; Tomasi, C.; Passaretti, F.; Villa, E. Elastocaloric properties of polycrystalline samples of NiMnGaCu ferromagnetic shape memory alloy under compression: Effect of improvement of thermoelastic martensitic transformation. Materials 2022, 15, 7123. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Fareed, A.; Rosalie, J.M.; Kar, S.; Fähler, S.; Maaß, R. Small-scale functional fatigue of a Ni-Mn-Ga Heusler alloy. Acta Mater. 2024, 274, 119988. [Google Scholar] [CrossRef] [Scilit]
- Chiu, W.-T.; Okuno, M.; Tahara, M.; Inamura, T.; Hosoda, H. Fundamental investigations of the deformation behavior of single-crystal Ni-Mn-Ga alloys and their polymer composites via the introduction of various fields. Appl. Sci. 2023, 13, 8475. [Google Scholar] [CrossRef] [Scilit]
- Balasubramanian, M.; Srimath, R.; Vignesh, L.; Rajesh, S. Application of shape memory alloys in engineering—A review. J. Phys. Conf. Ser. 2021, 2054, 012078. [Google Scholar] [CrossRef] [Scilit]
- Álvarez-Alonso, P.; Camarillo-García, J.P.; Salazar, D.; López-García, J.; Echevarria-Bonet, C.; Lázpita, P.; Padrón-Alemán, K.; Sánchez Llamazares, J.L.; Flores-Zúñiga, H.; Chernenko, V. Investigating the reversible nature of the magnetocaloric effect under cyclic conditions of the Ni50Mn34In15Ga1 magnetic shape memory alloy. J. Alloys Compd. 2024, 993, 174576. [Google Scholar] [CrossRef] [Scilit]
- Pérez-Checa, A.; Feuchtwanger, J.; Barandiaran, J.M.; Chernenko, V.A. Ni–Mn–Ga high temperature shape memory alloys: Function stability in β and β + γ regions. J. Alloys Compd. 2018, 741, 148–154. [Google Scholar] [CrossRef] [Scilit]
- Pagounis, E.; Laptev, A.; Szczerba, M.J.; Chulist, R.; Laufenberg, M. Structural behavior and magnetic properties of a Ni–Mn–Ga single crystal across the martensite/austenite two-phase region. Acta Mater. 2015, 89, 32–40. [Google Scholar] [CrossRef] [Scilit]
- Zhang, C.; Balandraud, X.; He, Y. Coexistence of five domains at single propagating interface in single-crystal Ni–Mn–Ga shape memory alloy. J. Mech. Phys. Solids 2024, 183, 105481. [Google Scholar] [CrossRef] [Scilit]
- Hannula, S.-P.; Aaltio, I.; Ge, Y.; Lahelin, M.; Söderberg, O. Processing and properties of Ni–Mn–Ga magnetic shape memory alloy based hybrid materials. Curr. Appl. Phys. 2012, 12, S63–S67. [Google Scholar] [CrossRef] [Scilit]
- Hmede, R.; Chapelle, F.; Lapusta, Y. Review of Neural Network Modeling of Shape Memory Alloys. Sensors 2022, 22, 5610. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- NASA. Shape Memory Materials Database. NASA Glenn Research Center, 2024. Available online: https://shapememory.grc.nasa.gov/magnetic_shape_memory_alloys (accessed on 15 January 2025).
- Rizvi, S.T.H.; Latif, M.Y.; Amin, M.S.; Telmoudi, A.J.; Shah, N.A. Analysis of machine learning based imputation of missing data. Cybern. Syst. 2023, 56, 818–832. [Google Scholar] [CrossRef] [Scilit]
- Wang, H.; Tang, J.; Wu, M.; Wang, X.; Zhang, T. Application of machine learning missing data imputation techniques in clinical decision making: Taking the discharge assessment of patients with spontaneous supratentorial intracerebral hemorrhage as an example. BMC Med. Inform. Decis. Mak. 2022, 22, 13. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Xue, J. Review on data imputation methods in machine learning. J. Phys. Conf. Ser. 2023, 2646, 012034. [Google Scholar] [CrossRef] [Scilit]
- Woods, A.D.; Gerasimova, D.; Van Dusen, B.; Nissen, J.; Bainter, S.; Uzdavines, A.; Davis-Kean, P.; Halvorson, M.A.; King, K.M.; Logan, J.A.R.; et al. Best Practices for Addressing Missing Data through Multiple Imputation. Infant Child Dev. 2021. Preprint. [Google Scholar] [CrossRef] [Scilit]
- Ismail, A.R.; Abidin, N.Z.; Maen, M.K. Systematic Review on Missing Data Imputation Techniques with Machine Learning Algorithms for Healthcare. J. Robot. Control. 2022, 3, 143–152. [Google Scholar] [CrossRef] [Scilit]
- Shadbahr, T.; Roberts, M.; Stanczuk, J.; Gilbey, J.; Teare, P.; Dittmer, S.; Thorpe, M.; Viñas Torné, R.; Sala, E.; Lió, P.; et al. The impact of imputation quality on machine learning classifiers for datasets with missing values. Commun. Med. 2023, 3, 139. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Jäger, S.; Allhorn, A.; Bießmann, F. A Benchmark for Data Imputation Methods. Front. Big Data 2021, 4, 693674. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Emmanuel, T.; Maupong, T.; Mpoeleng, D.; Semong, T.; Mphago, B.; Tabona, O. A survey on missing data in machine learning. J. Big Data 2021, 8, 140. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Gao, J.; Tong, Y.; Zhang, H.; Zhu, L.; Hu, Q.; Hu, J.; Zhang, S. Machine learning assisted design of Ni-based superalloys with excellent high-temperature performance. Mater. Charact. 2023, 198, 112740. [Google Scholar] [CrossRef] [Scilit]
- Zhang, J.; Cai, C.; Kim, G.; Wang, Y.; Chen, W. Composition design of high-entropy alloys with deep sets learning. npj Comput. Mater. 2022, 8, 89. [Google Scholar] [CrossRef] [Scilit]
- Li, X.; Shek, C.-H.; Liaw, P.K.; Shan, G. Machine learning studies for magnetic compositionally complex alloys: A critical review. Prog. Mater. Sci. 2024, 146, 101332. [Google Scholar] [CrossRef] [Scilit]
- Seu, K.; Kang, M.-S.; Lee, H. An Intelligent Missing Data Imputation Techniques: A Review. JOIV Int. J. Inform. Vis. 2022, 6, 278. [Google Scholar] [CrossRef] [Scilit]
- Court, C.J.; Cole, J.M. Magnetic and superconducting phase diagrams and transition temperatures predicted using text mining and machine learning. npj Comput. Mater. 2020, 6, 18. [Google Scholar] [CrossRef] [Scilit]
- Narayana, P.L.; Kim, S.-W.; Hong, J.-K.; Reddy, N.S.; Yeom, J.-T. Estimation of Transformation Temperatures in Ti–Ni–Pd Shape Memory Alloys. Met. Mater. Int. 2018, 24, 919–925. [Google Scholar] [CrossRef] [Scilit]
- Xiong, B.; Zhao, X.; Hu, Y.; Huang, H.; Liu, Y.; Su, Y. Machine learning assisted empirical formula augmentation. Mater. Des. 2021, 210, 110037. [Google Scholar] [CrossRef] [Scilit]
- Tian, X.; Shi, D.; Zhang, K.; Li, H.; Zhou, L.; Ma, T.; Wang, C.; Wen, Q.; Tan, C. Machine-learning model for prediction of martensitic transformation temperature in NiMnSn-based ferromagnetic shape memory alloys. Comput. Mater. Sci. 2022, 215, 111811. [Google Scholar] [CrossRef] [Scilit]
- Thiercelin, L.; Peltier, L.; Meraghni, F. Physics-informed machine learning prediction of the martensitic transformation temperature for the design of “NiTi-like” high entropy shape memory alloys. Comput. Mater. Sci. 2024, 231, 112578. [Google Scholar] [CrossRef] [Scilit]
- Wang, Y.; Li, T.; Zong, H.; Ding, X.; Xu, S.; Sun, J.; Lookman, T. Self-supervised probabilistic models for exploring shape memory alloys. npj Comput. Mater. 2024, 10, 185. [Google Scholar] [CrossRef] [Scilit]
- Abedi, H.; Abdollahzadeh, M.J.; Bush, T.; Benafan, O.; Qattawi, A.; Elahinia, M. Predicting actuation strain in quaternary shape memory alloy NiTiHfX using machine learning. Comput. Mater. Sci. 2025, 246, 113345. [Google Scholar] [CrossRef] [Scilit]
- Hyuk Lee, J.; Huber, J.C., Jr. Evaluation of Multiple Imputation with Large Proportions of Missing Data: How Much Is Too Much? Iran. J. Public Health 2021, 50, 1372. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Odeh, A.; Abu Al-Haija, Q.; Aref, A.; Abu Taleb, A. Comparative Study of CatBoost, XGBoost, and LightGBM for Enhanced URL Phishing Detection: A Performance Assessment. J. Internet Serv. Inf. Secur. 2023, 13, 1–11. [Google Scholar] [CrossRef] [Scilit]
- Tian, L.; Wu, W.; Yu, T. Graph Random Forest: A Graph Embedded Algorithm for Identifying Highly Connected Important Features. Biomolecules 2023, 13, 1153. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Reddy, G.V.; Kadiyala, S.; Potluri, C.S.; Saravanan, P.S.; Athisha, G.; Mukunthan, M.A.; Sujaritha, M. An Intrusion Detection Using Machine Learning Algorithm Multi-Layer Perceptron (MLP): A Classification Enhancement in Wireless Sensor Network (WSN). Int. J. Recent Innov. Trends Comput. Commun. 2022, 10, 139–145. [Google Scholar] [CrossRef] [Scilit]
- Almutiri, T.; Alomar, K.; Alganmi, N. Predicting Drug Response on Multi-Omics Data Using a Hybrid of Bayesian Ridge Regression with Deep Forest. Int. J. Adv. Comput. Sci. Appl. 2023, 14, 470–481. [Google Scholar] [CrossRef] [Scilit]
- Altayef, E.; Anayi, F.; Packianather, M. A new enhancement of the k-NN algorithm by Using an optimization technique. In Proceedings of the 2022 2nd International Conference on Advance Computing and Innovative Technologies in Engineering (ICACITE); IEEE: New York, NY, USA, 2022; pp. 24–31. [Google Scholar] [CrossRef] [Scilit]
- Kusuma, M.P.; Kudus, A. Penerapan Metode Support Vector Regression (SVR) pada Data Survival KPR PT. Bank ABC, Tbk. Bdg. Conf. Ser. Stat. 2022, 2, 167–172. [Google Scholar] [CrossRef] [Scilit]
- Isabona, J.; Imoize, A.L.; Ojo, S.; Do, D.-T.; Lee, C.-C. Machine Learning-Based GPR with LBFGS Kernel Parameters Selection for Optimal Throughput Mining in 5G Wireless Networks. Sustainability 2023, 15, 1678. [Google Scholar] [CrossRef] [Scilit]
- Hu, B.; Yan, B. Analysis System of MICE Tourism Economic Development Strategy Based on Machine Learning Algorithm. Mob. Inf. Syst. 2022, 2022, 1283040. [Google Scholar] [CrossRef] [Scilit]
- Lai, J.-P.; Lin, Y.-L.; Lin, H.-C.; Shih, C.-Y.; Wang, Y.-P.; Pai, P.-F. Tree-Based Machine Learning Models with Optuna in Predicting Impedance Values for Circuit Analysis. Micromachines 2023, 14, 265. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Nabben, N.; Sala, G.; Nowak, U.; Krüger, M.; Goennenwein, S.T.B. Magnetization fluctuations and magnetic after-effect probed via the anomalous Hall effect. Phys. Rev. Res. 2024, 6, 043283. [Google Scholar] [CrossRef] [Scilit]
- Ţolea, F.; Ţolea, M.; Văleanu, M. Thermal memory fading by heating to a lower temperature: Experimental data on polycrystalline NiFeGa ribbons and 2D statistical model predictions. Solid State Commun. 2017, 257, 36–41. [Google Scholar] [CrossRef] [Scilit]
- Liu, C.; Su, H. Machine learning aided prediction of martensite transformation temperature of NiTi-based shape memory alloy. Mater. Today Commun. 2024, 41, 110720. [Google Scholar] [CrossRef] [Scilit]
- Ogutu, R.V.A.; Rimiru, R.M.; Otieno, C. Target Sentiment Analysis Ensemble for Product Review Classification. J. Inf. Technol. Res. 2022, 15, 1–13. [Google Scholar] [CrossRef] [Scilit]
- Kotary, J.; Di Vito, V.; Fioretto, F. Differentiable Model Selection for Ensemble Learning. In Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence; International Joint Conferences on Artificial Intelligence Organization: Marina del Rey, CA, USA, 2023; pp. 1954–1962. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Nti, I.K.; Nyarko-Boateng, O.; Aning, J. Performance of Machine Learning Algorithms with Different K Values in K-fold CrossValidation. Int. J. Inf. Technol. Comput. Sci. 2021, 13, 61–71. [Google Scholar] [CrossRef] [Scilit]
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.




