Evaluation of foundational models for PM2.5 in forest fires

Find out if foundational models outperform recurrent networks in predicting PM2.5 during wildfires in California. Results

11 jul 2026 • 5 min read • Q2BSTUDIO Team

Do foundational models predict extreme PM2.5?

Predicting air quality during forest fires represents one of the most complex challenges in environmental modelling. Fine PM2.5 particles, capable of penetrating deep into the lungs, reach extreme concentrations that far exceed the usual safety thresholds. Traditional models, based on recurrent neural networks such as LSTM or BiLSTM, have proven to be effective, but the emergence of foundational time-series models has opened a new debate: can these large pre-trained models, trained with big data from other domains, correctly generalize to extreme phenomena such as wildfire smoke? The results of recent evaluations, which compare models such as TimesFM, Chronos-2, Moirai-2 or Time-MoE against classical architectures, reveal a nuanced reality: recurrent models trained specifically for the task still outperform any foundational model, especially in detecting dangerous peaks.

This finding has profound implications for the development of operating early warning systems. In real situations, it is not enough to predict the average concentration; We must accurately anticipate those moments when air quality becomes extremely harmful. Common metrics such as mean absolute error (MAE) or root mean square error (RMSE) hide poor performance in distribution queues. For example, some foundational models in zero-shot mode showed severe instability in the RMSE for 24-hour horizons, with negative values of R², indicating that they consistently failed in extreme events. Only after applying efficient tuning techniques such as LoRA was it possible to stabilize performance, although without reaching the levels of a BiLSTM trained from scratch with local data.

From a business and technology perspective, this reinforces the importance of having customized solutions and not relying exclusively on generic models. In artificial intelligence for companies, the key is not in the size of the model but in the suitability of the specific problem. Recurrent architectures can be more computationally efficient and perform better against out-of-distribution data, provided that a representative training set is available. For an organization that needs to implement an air quality monitoring system, it is more strategic to invest in custom software development that integrates trained models with local historical data, rather than adopting standard solutions that can fail precisely when they are needed most.

In this context, technology companies such as Q2BSTUDIO offer services that go beyond the simple deployment of models. Creating tailor-made applications for environmental management involves not only selecting the right algorithm, but also orchestrating the data infrastructure, integrating with weather and sensor sources, and visualizing results in real time. AWS and Azure cloud services provide the scalability needed to process large volumes of hourly data from hundreds of monitoring stations, while business intelligence tools such as Power BI allow you to build dashboards that alert civil protection teams intuitively.

Cybersecurity also plays a critical role, especially when early warning systems are connected to government networks or critical infrastructure. An attack that manipulates predictions could have catastrophic consequences. Therefore, any implementation must include robust security protocols, such as those that are integrated into the pentesting and cybersecurity services offered by Q2BSTUDIO. In addition, process automation using AI agents allows the system not only to predict, but also to take corrective actions, such as activating evacuation protocols or modifying the operation of ventilation systems in public buildings.

The aforementioned study shows that foundational models are not a silver bullet. Its main advantage—transferred learning from large data corpora—becomes a weakness when the application domain has distributions that are very different from those of training. Wildfires generate PM2.5 spikes that can be orders of magnitude higher than typical urban pollution, and pre-trained models typically haven't seen those values during their learning phase. Instead, a BiLSTM trained on 12 years of data from 79 stations in California, with more than a thousand fire incidents, learns to recognize precisely those extreme patterns. In fact, the F1 exceedance for the highest threshold (dangerous, >225.5 μg/m³) reached 0.63 compared to 0.54 for the best fine-tuned foundational model.

These results offer practical guidance for any organization that wants to implement environmental prediction systems. The first thing is to have a sufficiently long and representative historical dataset of extreme events. The second thing is not to underestimate the capacity of well-trained classical recurring architectures. Third, consider efficient tuning as an intermediate option when training data is scarce, but always validating performance in distribution queues. And fourthly, to integrate everything into a platform that allows the continuous updating of the models, the monitoring of their performance and automated action.

The application of business intelligence services such as Power BI is especially useful for transforming numerical predictions into operational decisions. A dashboard showing heat maps of predicted concentrations, along with threshold alerts, can be consulted by emergency teams in real time from any device. Artificial intelligence for companies should not be limited to generating numbers; it should facilitate interpretation and action. In this sense, AI agents can act as virtual assistants that suggest evacuation routes, confinement schedules or even coordinate the shipment of respiratory protection supplies to the most affected areas.

In short, the evaluation of foundational models for PM2.5 in forest fires reminds us that technological innovation does not always follow a straight line. Sometimes, more consolidated approaches, combined with careful data engineering and a robust deployment platform, deliver superior results than massive but generic models. For companies looking to develop high-impact solutions, the key is in balance: leveraging the capabilities of artificial intelligence and the cloud, but without losing sight of the specificity of the problem. At Q2BSTUDIO we understand that each client has unique needs, which is why our portfolio ranges from the creation of custom software to the integration of cloud services, ensuring that the solutions are not only technically advanced, but also operationally effective and secure.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.