← Latest papers
⚡ electrical engineering

Reconstructing Soil Temperature Time Series with Prolonged Gaps Across Depths: An Interpretable LSTM-Based Approach

This study presents an interpretable LSTM-based framework, optimized with Optuna and validated via SHAP explainability, that successfully reconstructs prolonged gaps in multi-depth soil temperature time series in Uruguay by integrating local sensor data with global reanalysis and temporal attributes.

Original authors: Leticia Barros Dias Soares, Natássia Siqueira Medeiros, João Inácio Moreira Bezerra, Geilson de Almeida Soares, Jairo Valões de Alencar Ramalho, Marlon Maurício Hernandez Cely, Honório Joaquim Fernand
Published 2026-09-24
📖 4 min read☕ Coffee break read

Original authors: Leticia Barros Dias Soares, Natássia Siqueira Medeiros, João Inácio Moreira Bezerra, Geilson de Almeida Soares, Jairo Valões de Alencar Ramalho, Marlon Maurício Hernandez Cely, Honório Joaquim Fernando

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The ground beneath our feet is rarely as still as it appears. Just as the air above us warms in the day and cools at night, the soil responds to these shifts, though it does so with a slow, heavy rhythm. This thermal pulse travels downward, but as it goes deeper, the daily swings fade away, replaced by a more stable, delayed warmth. Understanding this hidden temperature profile is vital for tapping into shallow geothermal energy, a clean power source that uses the earth's natural heat to warm and cool buildings. To design systems that work, engineers need a continuous, unbroken record of how the soil temperature changes over time. Yet, in the real world, the sensors buried to take these measurements often fail. Power cuts, broken wires, or communication errors create long stretches of missing data, leaving gaps in the timeline that make it impossible to see the full picture of how the earth is behaving.

A team of researchers in Brazil and Uruguay set out to fix these broken records using a type of computer intelligence designed to learn from sequences of events. They worked with data from a monitoring station in Rivera, Uruguay, where sensors had been tracking soil temperature at various depths for a year. The data was full of holes, some lasting for days or even weeks. Instead of simply guessing the missing numbers, the team trained a sophisticated computer model to reconstruct the missing segments. They fed the model not only the local sensor readings but also global weather data and information about the time of day and year, allowing the computer to learn the complex rules that govern how heat moves through the ground.

The researchers found that the computer model could fill in the missing pieces with remarkable accuracy, but the results were not the same at every depth. For the soil near the surface, where temperatures change quickly with the sun, the model reduced the average error from a noticeable 0.16 degrees Celsius down to just 0.06. For the intermediate layer, buried deeper where the changes are more moderate, the improvement was even more dramatic, with errors dropping from 0.29 to 0.07 degrees. However, the deepest layer presented a different challenge. While the model got the general shape of the temperature curve right, it struggled to match the exact temperature at every single point, suggesting a trade-off between following the overall trend and hitting the precise numbers.

To ensure the computer was not just memorizing patterns but actually understanding the physics of the soil, the team used a special tool to peek inside the model's decision-making process. They discovered that the model relied heavily on the most recent data points and on the global weather trends to make its guesses. For the shallow and middle layers, the model looked almost exclusively at the immediate past to predict the present. But for the deep layer, the model spread its attention over a longer history, which makes sense because heat takes much longer to travel deep underground. This investigation revealed that while the computer was excellent at filling gaps, its logic was different depending on how deep it was looking.

The study concludes that this approach is a powerful tool for restoring broken environmental records, but it is not a one-size-fits-all solution. The intermediate layer of soil proved to be the most reliable for reconstruction, where the model's predictions were both accurate and robust even during long periods of missing data. The surface layer worked well but was highly reactive to immediate changes, while the deep layer required more caution, as the model tended to smooth out the details. By combining high-tech prediction with a clear understanding of how the model thinks, the researchers showed that we can recover lost climate data with confidence, provided we respect the unique behavior of each layer of the earth. This work offers a practical way to keep our energy systems running smoothly, even when the sensors buried in the ground go silent.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →