Update on High-Resolution Mesoscale Temperature Analysis (HRMTA)
Artykuł oryginalnie napisany po angielsku bez edycji brzmienia.

It’s been a while since I have shared any results from HRMTA nor posted any updates regarding it anywhere. Through this time, I have been actively working on learning from errors of all of the previous versions and completely rewriting the entire codebase of previous HRMTA iterations in order to clean it up, increase efficiency and explore some different architectures. After all of this work, I have finally come up with a final, rewritten HRMTA iteration that I am planning to open-source on GitHub around December, if everything goes smoothly. Update on the current state of the project will be at the end of this article, and for now you can enjoy reading the entire history of HRMTA from its beginning up to today.
The History of HRMTA
September 2024
Project’s history begins on September 11, 2024, when I was experimenting with some interpolation approaches after developing a simple, combined weather station data fetching application for Poland. Upon time, I began extending my knowledge on the topic day by day, continuously improving the model that I began developing then. This has allowed for further development of that project and creation of first functional, yet significantly limited iterations. First iteration explored some standard interpolation approaches, more specifically a robust ensemble method designed to capture non-linear relations, combined with a standard kriging methodology to introduce some spatial autocorrelation and first trend variables into the model. This was a great, exciting start for me, results of which, though really poor compared to modern iterations, boosted motivation in me for further, continuous development of that ambitious project. The more that I was researching the topic and learning important things, I noticed that Poland, as other parts of Central-Eastern Europe, lacks advanced, open-sourced and modern interpolation techniques based on the best practices available on the modern market. Of course it has further pushed up ambitions for that specific project and I thought that some people would find it really interesting, exciting, and, what’s the most important — useful. After all, September 2024 passed as a really intense month in terms of project development. I was experimenting with different approaches and I haven’t experienced such level of excitement before in any of my projects, so it’s no wonder that I was working on it months straight researching complex topics and all the time busily trying to craft a perfect model for the specific topography. Firstly, some simple variables and a simple ML model was being fed into the model, which had a lot of limitations back then. For example, the version wasn’t really suitable for national calculation due to the model relying on pre-built environmental dataset, which I was lacking back then. Anyway, my focus then wasn’t developing a national-wide iteration at first, but it has more focused at developing a regional iteration that is especially strong at interpolating complex microclimates. I met up with a lot of limitations on the very first iterations of the projects though. For example, first iterations were struggling with capture of complex spatial patterns, lacking physics integration, and not fully leveraging the information from the input environmental dataset, significantly narrowing model performance. Additionally, there were some fundamental limitations in the first iteration of the model, which lay in the fact that Kriging is not able to capture some really complex temperature patterns that I was aiming to interpolate, like distinct microclimates, urban heat islands, or steep topography. Kriging specifically assumes that spatial correlation rules are uniform across the entire map and is oversmoothing results. While Random Forest (RF) has a limited ability to extrapolate, so its ability to handle extreme events or unseen trends in complex terrain.

October 2024
Now, it’s October 2024, and the second iteration of HRMTA has completed its development. This was one of the most impressive iterations of the project back then, which was the first that could accurately interpolate temperatures in sparse, complex terrain and accurately represent complex features like river influence or urban heat islands. This was possible first of all thanks to integration of Gradient Boosting and XGBoost, a really powerful ML model, and integration of some first, though hardcoded, physical adjustments to the model. This iteration was additionally significantly optimized, with a lot of things getting refined from the first iteration. However, while it was the first iteration of the project to correctly represent complex terrain, new weaknesses have been found. Along with model complexity, some important problems were also scaling up, like overfitting, which drastically reduces model performance and occurs when the model becomes over-reliant on some features and less to other features in the calculations. A significant and worrying problem starting to arise was also increased runtime, which I have definitely underestimated at planning phase of the project. The runtime was completely unsuitable for operational usage and the model has been running for an entire hour straight, calculating millions of grid points at the spatial resolution of 250 meters, trying to capture microclimates. When it comes to the primary data source for microclimate conditions simulation, that iteration has mainly used high-resolution ECOSTRESS LST data for them. That said, the iteration still didn’t have intended performance in complex terrain, and the iteration had significant performance issues under the hood, despite good visual appearance. There were some early indications of overfitting, possibly due to insufficient amount of data that the model could use to base its predictions on. Since the model was fitting data from thousands of weather stations from sources with different quality of data, the measures on data validation weren’t enough and the model was still frequently capturing extremes. After the development of the first, successful, though still limited iterations of the project, I decided to spend the near future evaluating the performance of both iterations on detailed statistics and in different conditions.

November 2024
After months of busy work on the model, November 2024 was a more chilly month. I spent less time on developing the project, and if I did so most of the time it was evaluation of the existing iterations when more interesting thermal conditions have occurred or just researched some topics related to the future of the project.

December 2024
During this month, works on the model’s core architecture have been renewed. Another, experimental iteration of the project has been in development, which introduced a technology called Scalable Sparse Gaussian Process to intelligently correct the spatial errors from the primary ML model, allowing to capture some temperature variations that would be otherwise missed. That iteration has also introduced more physics-based hardcoded refinements to improve model’s physical realism. Therefore the primary objective of the new iteration was to create a model that would be not just good at statistical accuracy, but first of all that would represent high physical realism. It was intended to capture microclimates even better, and the new iteration was planned to explicitly be designed to accurately interpolate small-scale temperature variations. The core architecture was based on a powerful, multi-stage ensemble system.

January 2025
The new year began with continued work on the project and on the latest iteration, which was internally called “prt4”, which stands for Prototype 4. Later on, the iteration got renamed to a more formal and recognizable name “v2.0”, since this iteration brings the most significant architecture rework to the project compared to its previous iterations we were talking about earlier. Fortunately enough, winter of 2025 saw quite a few cold spells that allowed me to evaluate the model performance in detail during cold thermal conditions. The model was much stronger at physical realism, correctly interpolating terrain influence on temperature from cities or rivers. However, the model still had several critical limitations. First of all, the model wasn’t able to produce a spatially coherent output and was focusing too much on terrain influence, still overfitting to the data, and the runtime for the model was still way too high and unsuitable for any operational deployment. Furthermore, what’s important to consider, all of those iterations were tested only for a single region of Poland with a relatively flat topography, the Masovian Voivodeship. It wasn’t tested for any other regions of Poland before, and was assuming basically flat topography everywhere. This was a critical flaw later on. Then, I have decided to test that specific iteration on region of Poland with some of the most complex topography, the Lesser Poland Voivodeship, as I was afraid that the model with its current limited architecture might have been performing relatively well only in flat areas, because it was lacking explicit modules for key mountain physics. And that was true. After thoroughly testing the iteration on complex terrain of The Carpathians, it was evident that the model completely ignored mountainous terrain. Fortunately, it was still winter, so the thermal conditions across Europe allowed me to refine the model faster. I have decided to embed a separate function into the model’s architecture that would be responsible for specifically mountainous terrain physics. It was simulating the real-world physics of mountains that the main ML model couldn’t learn on its own. It calculated and applied cooling effects from shadows cast by terrain, cold air in valleys and slopes facing away from the sun. It has definitely helped to drastically increase model performance in mountainous terrain, but it has also somewhat decreased model performance in flat areas, and the approach still had significant limitations. For example, it still wasn’t able to capture mountainous microclimates properly, it was missing atmospheric data, so it assumes stability and doesn’t knows if there’s some inversion present or not, and it had simplified physics. However, I couldn’t significantly improve physics of the model because it would massively increase running time of the model and put additional computational overload on the model, which is already way too high.

February 2025
The month passed with massive investigations and evaluations of newest iterations, mainly within the extent of Lesser Poland Voivodeship and with primary tests pointed at complex, mountainous terrain. Unfortunately, there were still a lot of noise present in model’s output and overall there were some signs pointing to potential overfitting occurring deep into model’s architecture, despite it’s good accuracy performance at benchmarks like MAE and relatively well physical realism at first glance. Despite the fact that the model at that stage was already beating most of the traditional interpolation approaches in terms of accuracy (IDW, Kriging, RBF), I have decided that the model still had a lot of limitations to fix and have further postponed the model public release, since the results weren’t too satisfactory for me back then. My primary objective for a “perfect” iteration suitable for a public release was not to just beat some benchmarks and point-to-point accuracy, but to also achieve exceptional physical realism and reliability. What’s more, the code had the entire physics and the entire model architecture hardcoded, all in a single, really long code, which is absolutely unacceptable for a public release and at that stage I had a lot of problems with managing such a long, hardcoded codebase. At this point investigation of some potential model issues had become just way too complex. That was the month that I have for the first time presented my project to a slightly larger group of people. However, as you could judge by this text, it was still pretty far from public release and operational deployment.

March 2025
After learning on issues from the previous months and iterations, I had considered complete rework of the project, cleaning all the code and learning on errors from the past, which should of course significantly delay public release of the project, but it would drastically improve the quality of it, so it would be worth it. I have started some first foundations for the completely new version of the project back then, but, unfortunately, my plans got unexpectedly temporarily completely shattered by a strong COVID disease that I got infected by. It was so strong that it has significantly affected my long-term plans for the projects and shifted release timelines of the project for several months due to rich subset of long-lasting neurological symptoms that I got from COVID, which has directly affected my brain and has drastically decreased my motivation for the project and overall state of health.
April 2025
That month, due to my health problems, has resulted in one of the most silent in terms of programming the project. The only thing that I was doing for the project through that month was planning the next version that should get truly revolutionary, shift from the plateau, and finally push the project much closer to a public release. This has involved complete reconsideration of project’s purpose from a previous point of creating the most high-resolution and computationally efficient model in order to interpolate complex microclimates in the most accurate way, into a point which was intending to create a national model for the entire Poland, not just some regionally restricted model, that would completely shift focus from resolution and microclimates, putting most of the focus into operational deployment, physical realism, and efficiency. The core architecture that I was exploring was intelligent implementation of Regression Kriging.
May 2025
During that month, my health problems began to very slowly resolving, which allowed me to work on the project once again. However, my motivation for the further project development was still at record low level. There’s not much to tell about what I have exactly been working on, and most of the work has been early and experimental.
June 2025
During the first summer month, works on the next version of the project have continued, with me exploring different architecture approaches while further planning the future of it. However, the health status has remained more or less the same as in May 2025, and my motivation for that specific project stayed at low levels, therefore works on the next version have slowed down and I was more focused on some of my other projects in the meantime. My attention on HRMTA was additionally distracted due to active storm season start in central Europe, but I was still trying my best.
July 2025
The situation remained largely unchanged compared to May & June 2025. My health was very slowly improving, but the motivation stayed low and I was continuing to slowly work on the next version of HRMTA.
August 2025
Works on most of my other, smaller projects have already been finished by this month, while my health continued to steadily improve and the ongoing storm season has been really weak. Due to combination of all of those factors, my motivation on the project has returned and I began focusing on my largest project to date, the HRMTA and working on it more intensively, as my initial long-term plans for the project included public release of the refined model until the end of 2025. I was trying the best I could to finish everything according to the initial plans.
September 2025
Despite my continued health problems directly associated with brain, like decreased thinking speed or derealization episodes, I have accepted them and learned how to ignore them, and have continued ramping up works on the next iteration of HRMTA in order to meet my expectations and plans. The goal was to create a model that would be to focus much less at resolution and microclimates. I was hoping to create an actual beast in physical realism that would excel in all types of terrain, showcasing impressive consistency and significant improvement over baseline, traditional interpolation methodologies, one that would also be completely suitable for operational deployment, therefore it should have a really low runtime. My previous iterations were running for long hours on the extent of entire Poland at any given spatial resolution due to how hardcoded and computationally expensive they were. And the aim was always to learn on previous errors. So, I was actively working on a version based on a completely reworked, unique and multi-layered architecture. I will explain how it works in a simplified way without going in depth of that technical nightmare. Basically, it firstly learns through fundamental physics of the atmosphere, then it uses machine learning to capture the subtle effects of the local landscape, and finally it fine-tunes the predictions to perfectly match the real-world data. Such hybrid design is exactly what is needed for the creation of truly realistic and consistent temperature maps. By that architecture the model solves all the issues that previous iterations have introduced, like long runtime, risk of overfitting, struggling in mountainous terrain, or issues in physical realism. The layering process naturally smooths out unrealistic artifacts produced by the model, and it has no problem with interpolating in complex, mountainous terrain, because the architecture is specifically designed to handle it, as the ML model can grasp complex terrain influences that other, simpler models simply ignore. It is also one of the most computationally efficient architectures that I came up with, that has the best balance between runtime and quality.

October 2025
This month has marked as one of the most intense and critical in the entire history of the development of HRMTA. The first prototypes of the new version have proven their performance and the results were finally really exciting for me. Based on the thorough validation of the codebase and model outputs, I have eliminated most of the overfitting risks without sacrificing model accuracy, thanks to a simple physics model being used under the hood that is keeping the complex ML model grounded in reality. The physical realism of these prototypes were also incredible: the model was able to learn detailed physics and correctly interpolate local terrain variations, like river valleys, riverbanks, uplands, spits, or mountains, all while preserving great spatial consistency and detail. What’s important, everything was calculated approximately 90% quicker compared to other iterations, thanks to the greatly optimized model architecture. All of these successes have made me believe once again in the project’s potential and my motivation has gone up. I was almost certain that I would be able to conduct an valuable release for everyone really soon and I was excited of the fact and proud about myself.

November 2025
The new version of HRMTA is currently nearing its development with promising results that I am, as an perfectionist, counting as successful. I am evaluating everything in detail, gathering crucial data, and waiting for colder period to come in order to evaluate the model performance in different conditions. Thanks to its hybrid architecture, it is able to determine inversions in mountainous areas properly for the first time without being hardcoded, though only under specific hyperparameters chosen, as preliminary tests shown. I am actively working on further solutions that would significantly boost model performance in complex terrain under inversion conditions using dynamic lapse rate integration, but it is something that I am going to actively work on after public release, for other versions of the project. In general conditions, the model proven its performance and is suitable for operational deployment. It takes only about 5 to 15 minutes to fully run the model pipeline and obtain all the results for the entire extent of Poland. Everything was possible thanks to my strong willpower and active development of previous iterations of the project that have allowed to create this, unified and final iteration of HRMTA that learns on the issues of each and reconsiders priorities.

December 2025
The month when the latest and the most successful iteration of the model is scheduled for public release on GitHub for everyone.
What data does the model use to base its predictions on?
Regarding what data model uses to primarily base its predictions, the model uses pre-built environmental and observational dataset for its calculations. Environmental dataset is full of nation-wide rasters necessarily for ML model, like population density, high-resolution Digital Elevation Model (DEM), land cover classification, human settlement data, ECOSTRESS, forest coverage and water body data. The entire environmental dataset is already pre-built and available for download upon release, so you won’t have to manually collect it. While the observational dataset was more complex to obtain and set up, since there’s no single, massive, unified and clean source of observational data available for the extent of Poland. Official weather stations like ones from IMGW are accurate but extremely sparse, while crowdsourced networks like Netatmo offer better density but they suffer from significant data quality issues. To overcome these challenges and create a balanced, accurate approach, I have engineered a data pipeline that automatically collects information from multiple sources. This involved both integrating modern APIs for services like Netatmo or IMGW and building custom web scrapers to extract data from other sources like Traxelektronik. But of course, simply fetching data from PWS stations of services like Netatmo would bring a lot of quality errors to the entire pipeline. Therefore, I have additionally developed a custom spatial quality control algorithm that intelligently validates each station. Instead of a simple statistical outlier flagging, it compares station’s observation to its neighbors after adjusting for expected temperature differences due to elevation. This allows the model to correctly identify and discard a faulty sensor left in the sun, while preserving a legitimate, cold reading from a mountainous weather station. This feature alone allows to significantly improve model’s physical realism and accuracy. However, a significant portion of observational data lacked precise geographical coordinates of the weather stations, and manual addition of each would take ages and is highly impractical. Therefore the system integrates another element, an automated geocoding step, which converts location names into latitude and longitude coordinates. This is essential for placing every single observation on the map. However, while the approach is robust, this approach also has limitations and is fundamentally limited by the quality of the location information contained in the sources, which is important to consider.
Spatial resolution considerations
When it comes to spatial resolution, you could set any resolution starting from 1 km in the model configuration file. Higher resolutions would take slightly longer to calculate, but the difference is still in minutes and is suitable for operational deployment. You could also set the resolution below 1 km, but this would be higher resolution than the input environmental dataset and it would worsen the model performance, introducing noise to the calculations while significantly boosting the model’s runtime, as it has to calculate predictions for the entire Poland, therefore it is strongly not recommended to set the resolution below 1 km.
Details on Public Release of HRMTA
Currently, the release candidate version is undergoing its final testing and I am working on some final cosmetic changes for the launch. Model architecture itself is now mostly finished. The result is finally satisfactory enough for me, and the model has proven its solid performance in different conditions. Therefore, currently public release is being scheduled for December 2025. The version is going to be fully open-sourced through GitHub and easy to install. Unlike early iterations of HRMTA, the version is not going to be available for specific regions at the moment of launch and it has been tweaked to calculate the entire extent of Poland, which is far more useful operationally and requires less computational power to run. The configuration and running of the model pipeline is going to be easy and everything will be precisely described in the project’s GitHub repository.
Limitations of HRMTA
- The model is not going to tell you precise temperature values at given point. There will always be a margin of error and the application is not intended for ultra-precise temperature calculations. It will only present an physically realistic estimate of temperature field.
- Of course, there are resolution constraints, and the model, when run for the extent of entire Poland, could predict temperature at resolution as high as 1 km. Higher resolutions will degrade model performance practically in all areas due to computational inefficiency and lack of data.
- The model is overly dependent on specific structure of observational data sources and relies on scraping specific websites, therefore if their structure changes in any way, the automated data collection is going to obviously fail.
- Automatic geocoding of observational data introduces considerable degree of spatial uncertainty. This is one of the primary sources of error in the model, especially in more complex terrain.
- It is important to note that the model is diagnostic and intended first of all for interpolation of the current temperature field based on current data. It is definitely not a weather forecasting tool and it can’t predict future conditions.
- The model is geographically specified for Poland and has been adjusted for specific sources of data that are available for Poland. Data obtaining for other countries is manual, requires deep knowledge of the topic and is not recommended for non-professionals in the field.
What’s next?
After the public release of this project, I am planning to actively continue work on it, mainly by improvement based on early user feedback, and by further following plans for the project. In the near months, I am going to continue experimenting with different model architectures and I am going to work on more parameters for the national-wide version, since right now only 2 m temperature is available for interpolation and it is the only parameter that has been properly tested and integrated. However, data sources and models architecture allows for much more parameters to be added in the future under proper refinement of models physics engine. First parameters that I am taking as a priority and firstly going to experiment with are dew point and wind gusts. However, I am going to consider more parameters in the future, like moisture, or even precipitation sums and snow depth. I am going to also explore possibility of creation of regional version of the model based on the same architecture approach that might allow for even higher resolution interpolation, but this is currently being reviewed as it wouldn’t be intended for operational deployment and would require massive computational resources.

