Data centers & energy · Research feature

From Grey-Box to Green-Box: When can Physics-Informed Machine Learning Reduce Carbon Footprints in Structural Health Monitoring?

A study compares training emissions of physics-informed and black-box machine learning models in structural health monitoring, finding reduced environmental impact for most grey-box approaches.

Adapted from research by Daisy R. Bradley, Nathan A. Hinchliffe, Daniel J. Pitchforth and colleagues.

arXiv preprint revision · 2026-09-27 · Attribution & reuse
In this article
Editorial illustration of server racks.

Authors’ overview

Machine learning plays an increasingly vital role in engineering, but the corresponding increase in compute time is not without environmental cost. Physics-informed machine learning or “grey-box” models have been developed to overcome some of the limitations of traditional black-box learners, utilising the physical insight that an engineer would have about the structure they are modelling and have shown promising results in the structural engineering field among many others. This work explores whether an additional advantage could be a reduced environmental impact, considering the relationship between training data quantity and training time, linking this duration to carbon emissions from computing. In a structural health monitoring context, four physics-informed machine learning approaches - spanning Gaussian processes and neural networks - are evaluated: residual modelling, input augmentation, hybrid modelling, and constrained learning. The emissions for training each of the models to reach a given error threshold is compared, and in most examples, shown to be lower for the physics-informed models (with input augmented models being an exception). This reduction in training emissions further compounds the environmental savings achieved by collecting and storing less data. Although promising results, we cannot expect a silver bullet and the case studies demonstrate that a trade-off is needed between the increased complexity that comes from introducing physics into a machine learner, against the gain from reduced training data requirements.

Introduction

Within the engineering community, our use of machine learning (ML) and artificial intelligence (AI) is significantly increasing, leading to a corresponding rise in the energy demand from our computing. This comes with wide ranging and well documented environmental impacts, including increased carbon emissions. So far, however, there has been little consideration of how this will accelerate further as we increase our use of these tools in a professional context, particularly where we might expect considerable interplay between AI and other approaches with a heavy computational burden, such as computation fluid dynamics (CDF) or finite element analysis (FEA). With the main AI providers not currently required to share their energy and water use, barriers to quantifying and projecting this impact are large. However, regardless, there are steps we can take as engineers to mitigate the potential impact.

Within the broad remit of our AI use, this work considers the impact of machine learning models used for inference in an engineering or scientific context (e.g. for prediction of key structural response variables). Following a growing interest in physics-informed machine learning, and noticing its benefits in particular in reducing the burden on training data, we introduce and ask the question here as to whether embedding physics directly into a machine learning model could help to reduce its environmental impact. In this paper we will explore when this may or may not hold true with examples from regression challenges in structural health monitoring (SHM) (an area where physics-informed models have been shown to outperform their black-box counterparts).

Our particular focus is on the relationship between training data quantity and training time, linking this duration to carbon emissions from computing, and exploring the hypothesis that reducing training data requirements reduces the environmental impact of a model via shorter training duration. We also consider the carbon cost of collecting and storing additional training data.

Throughout, a common theme will be the consideration that in many engineering applications, we have some idea of the required level of performance - how good is good enough? This work is the first to draw comparisons between “grey-box” and black-box models through an environmental lens in the pursuit of “green-box” models which meet the required performance with minimal environmental impact.

Context and literature

The world has now entered into the “Age of Artificial Intelligence”, where AI has gone from an abstract concept to something that many of us use on a daily basis. Within both industry and academia, AI tools are being heartily adopted and deployed, and while this has brought about astonishing advancements across many sectors, the detrimental impact to the environment cannot be ignored. Datacenters used to power AI cause many environmental concerns, ranging from the toxic runoff from the extraction of rare earth elements to manufacture graphics processing units (GPUs), the embodied carbon within the hardware itself, and the significant amounts of water lost for evaporative cooling of datacenters in water-stressed areas. The energy used to power these datacenters is already significant, estimated at 415 TWh in 2024, and predictions from the International Energy Association suggest that this could rise to 945 TWh by 2030 - which is comparable to the annual electricity consumption of the continent of Africa - which would create a predicted 320 Mt of carbon dioxide.

Machine learning methods are a subset of AI which learn patterns from data, and are commonly used within engineering and computer science. Concerns around the impact of AI have given rise to a new field of researchers focusing on sustainable ML, where it is well recognised that accurate measurement of computational carbon footprints is a prerequisite for emissions reduction. Numerous software frameworks have been developed to quantify computing energy usage which can be divided into those which use static estimation techniques that rely on fixed baseline assumptions, and dynamic estimation methods that capture real-time usage data from central processing units (CPUs) and GPUs. Prominent static tools include the Machine Learning Emissions Calculator (MLCO2), whereas utilities such as CodeCarbon and eco2AI represent dynamic tracking implementations. Although these tools are extensively integrated into green computing research, comparative benchmark studies evaluating them against physical power meters reveal notable variance and a systematic tendency to under-report emissions. Nevertheless, applying a chosen tracking methodology consistently provides a valid baseline for relative comparison, guiding more environmentally conscious model design and deployment decisions.

In terms of actually reducing the footprint of ML, there is extensive work in the literature on increasing the efficiency of ML models, although not generally with a view to reducing emissions. In Menghani’s 2023 review, the author categorises efficient techniques into five focus areas: compression techniques, learning techniques, automation, efficient architectures, and infrastructure and hardware. Some of the most successful techniques include pruning, quantisation, and mixture of expert (MoE) architectures. Pruning is a compression technique which has been successful at downsizing ML models without compromising performance; in one study, the total number of parameters was reduced by a factor of 13 with no loss of accuracy. Quantisation is another popular compression technique which has successfully reduced both inference time and storage requirements by reducing the precision used in neural network model. In several instances, the quantised model shows negligible accuracy loss compared to the uncompressed model. The efficient MoE architecture has been widely adopted, with one of the most famous examples being the DeepSeek-V3 model. This was built on the DeepSeekMoE architecture, which achieves comparable performance to LLaMA2 7B with only 40% of its computations. These developments showcase a small subset of the ongoing work in the field of efficient ML. However, Jevons’ paradox states that as technology makes resource use more efficient, total consumption of that resource increases rather than decreases. To avoid this being the case for ML, it is imperative that we keep the broader context of sustainability at the forefront of research and development.

Again, although not necessarily for environmental reasons, considerable research has focused on enhancing the computational efficiency of traditional numerical models in engineering settings. Reduced order methods (ROMs) significantly lessen the computational burden in time-critical applications such as real-time control, structural dynamics, and digital twins. Alternatively, surrogate modelling using statistical methods (e.g. GPs again!) offers a data-driven approach to approximate high-fidelity, computationally expensive simulations.

As engineers, we usually work in environments where we have both data (real or simulated) and a physical understanding of the system we are modelling, which can be combined. As we move towards incorporating physics knowledge into ML, we have the potential to increase our sustainability even more by combining both efficient ML techniques and efficient numerical techniques to reduce our computational demand.

PIML is the subcategory of ML where physical knowledge is integrated into the models to form so-called “grey-box” models. Some of the benefits of grey-box models compared to their black-box counterparts include increased generalisation, efficiency and interpretability. In an SHM context, grey-box models have been shown to outperform black-box models in situations where training data does not span all environmental and operational conditions (EOCs). Here, the relationship between physics input and training data requirements will be further explored and directly linked to environmental impact.

Our Approach

The hypothesis we are interested in exploring is can embedding physics in your machine learner help you to reduce emissions? We have already read how physics in the loss of a PINN can certainly do the opposite. Here we more broadly consider a range of PIML methods, where physical insight/models have varying strengths in the inference.

Caveats: In this initial work we are investigating the examples where we have seen performance gain by introducing physics. The implicit assumption we have made is that if physics does not prove to be useful in terms of performance then it will not help reduce emissions. The second caveat here is that for this initial work, we are exploring our hypothesis with what would be considered very small datasets in a deep learning context - this will be discussed further in later sections.

Residual Modelling

Residual models are a PIML method at the whiter end of the spectrum with physics playing the most dominant role, where a physics-based or “white-box” model is first implemented to capture the known relationships within the data. The white-box model output is then subtracted from the observed data to give a residual, which is then used as a target for a data driven model. In engineering, we often understand some underlying physics of our system, making residual modelling a good candidate for many applications.

The models used in this case study were developed based on the work in to predict longitudinal deck deflections of the Tamar bridge, as this can be used as a performance indicator. The changes in deck deflection are driven by a number of factors, predominately temperature, wind conditions and traffic load. The available data spans from September to January, therefore capturing both daily fluctuations and the seasonal temperature change. As it is known that stay cables expand linearly with temperature, a linear model was fit to the first 500 temperature and deflection data points to serve as the physics component. For the grey-box models, a GP or a neural network was then used to learn the residual between the prediction of the physics component and the measured deflection. The black-box models simply learned the relationships between input and output data directly; here, the GP has been restricted to a temperature only input, while the neural network has inputs of temperature, traffic loading and wind speed. The restriction on the GP is because the black-box GP model showed poor performance when learning the problem with all three inputs, hence why temperature was used alone, allowing for a fair comparison with the grey-box GP. Both models use ADAM optimisation to learn the hyperparameters.

This model was established to explore how useful the grey-box approach is in the case of data available for model training. It is often the case that data for a monitoring system are available only for a fixed time, and will not cover all operational/environmental conditions that a structure will see in its life time. Here we explore the performance of the models with different training periods - which in this case relates to different coverage of the environmental conditions. The data reflect a time when the weather is getting progressively colder, so models trained on only, say the first 10% of the data, are required to extrapolate into the colder temperatures - this is where the linear physics increases the grey-box performance. In terms of the impact of establishing the models, we expect that the ability to work with less training data should lead to reduced training time and therefore emissions, as well as those from the collection and storage of data.

For the results here, the data were split into 10% coverage increments temporally. Training data were increased by adding 10% increments until full coverage was reached. Within the training coverage area, the GPs used a 50/50 train/test split the NNs used a 50/15/35 train/validation/test split. The training times reported for this study do not include the time to train the linear model, as it is only run once as a pre-processing step prior to model training, and was not repeated for each coverage increment.

Results and Discussion

This case study highlights several important points for us to consider. Firstly, sometimes, increasing training data only leads to marginal performance gains while significantly scaling the run time. We must consider the necessity of these one percent gains against the penalty of doubling or tripling (or worse) our emissions from training - we will likely find them to be superfluous. Secondly, we should consider the sensitivity of our models to training data layout to avoid needing to repeat training runs to achieve good performance, creating unnecessary emissions in the process. Finally, where training data are few or incomplete in certain conditions, the grey-box models that are able to extrapolate must necessarily out-perform their black-box counterparts. Depending on our performance needs, it may be that we can implement the black-box model to reduce training time and emissions, or we may require the grey-box advantage for a suitable model. In any case, if possible, it would be advantageous to be aware of the emissions from training and consider the trade-offs before we start collecting training data. In this way, we can also make carbon savings from the collection and storage of unnecessary training data.

Discussion and conclusions

In this work, we examined five case studies of different PIML methods: residual modelling, input augmentation, hybrid models with physics-informed kernel selection (with and without switching), and constrained GPs. In each case, the physics-informed model was compared to an equivalent black-box model in terms of performance (normalised mean squared error) and training time to evaluate the impact of integrating physical knowledge on model emissions during training.

Across the five case studies, several common themes emerged. Firstly, as expected, the performance advantage of physics-informed models is most prominent when training data quantity is low. In terms of emissions, requiring less training data to be collected is already a saving in terms of data storage and transmission; the best results here also showed notable reduction in run time and subsequent emissions from model training. At given target errors, we saw gains from each of the model types explored except in the input augmentation case study - where adapting the inputs to the GPs and neural networks made little difference.

While you can cherry pick very good results in terms of savings from the case studies, the results are variable if you consider different target error thresholds. In a number of the case studies, we demonstrated how adding physical knowledge can increase model complexity, resulting in longer training times than a black-box model for a given dataset size; in these cases, a reduction in training data is essential to achieve a net benefit in emissions.

A third observation from the case studies is that grey-box models often demonstrate more consistent performance as training data increases or as the data layout changes, making them (in the cases shown) more reliable and robust than their black-box equivalents. In some applications, this reliability is more important than peak performance, making grey-box models the better choice even with a performance penalty.

How does this compare to what we expect? The training time when establishing a regression model should broadly be a function of the complexity of the model, the amount of training data used, and the number of steps required to successfully navigate the cost surface during training. We expect that a physics-informed approach can help to lessen the requirement on training data, and indeed have demonstrated gains from this here - this is our main result and one that we expect to see much benefit from as we increase the considered training data from the relatively small sizes that we used for this initial work. We could particularly expect to see larger gains from this if the training data used requires access to the DRAM/VRAM - so long as our physics still holds in such cases.

We have also seen that the increased complexity of some physics-informed models can counteract the gains from reduced data requirements, with a trade-off required between complexity cost and performance - this would of course also be true if we implemented less simple and more computationally expensive physics into the models. Here we saw the increased complexity manifest in an increased hyperparameter count in the GP models, lengthening the time needed during optimisation. Something that we have only touched briefly on here in the context of residual models, is also the possibility that physics could make the cost surface less navigable and increase runtime. Our results are positive but with a number of caveats and trade-offs.