Forecasting energy consumption with AI: we put Mistral’s Timestral to the test
Fabio Severino
CTO & Founder
Timestral is a new open model from Mistral that uses a company's history to forecast sales, consumption or demand, without building a custom model. We tested it on the real energy consumption of a steel plant: here are the results, the errors, and how to apply it to your company.
On October 15, Mistral released Timestral, an AI model that forecasts data measured over time: electricity consumption, sales, sensor readings[1].
For a company, better demand forecasts can help reduce idle stock in the warehouse and unfulfilled orders. Estimating the workload makes it possible to plan shifts before a peak in requests. Knowing expected consumption can help schedule production in the cheapest time slots, when production constraints allow it.
With Timestral you can get forecasts for different products, departments or services without building a custom model each time. Downloadable code and weights make it possible to run it on your own servers and connect it to company systems, under the terms of their respective licenses.
We tested it on the real energy consumption of a steel plant, forecasting the next 24 hours every day. The demo compares a month of forecasts with actual consumption and with that of the previous week, and also shows where the model gets it wrong.

What Timestral is
A time series is a sequence of measurements ordered in time, such as a meter’s consumption every quarter of an hour or daily sales. Forecasting it means estimating the next values.
Timestral is a family of foundation models for time series. Mistral trained them on many different sequences to learn regularities such as trends, oscillations and recurring cycles, which can then be applied to other data[1].
The principle is similar to that of language models: trained on many texts, they can work on a new text without being retrained every time. With Timestral you provide a history of numbers and ask for its continuation. This use without new training is called zero-shot: in our test the weights, that is the numbers the model learned during training, stay unchanged.
In our experiment it receives three weeks of consumption and forecasts the next 24 hours. It returns a central value for each quarter of an hour and a band that expresses the uncertainty of the forecast[2].
| Step | What it contains |
|---|---|
| History given to the model | 21 days of consumption, one measurement every 15 minutes: 2,016 numbers. |
| Period to forecast | The next day: 96 intervals of 15 minutes. |
| Timestral’s answer | 96 central values, each with an uncertainty band. |
| Check | Comparing those values with the 96 consumption values actually measured. |
Inputs and outputs of this test.
We check separately how close the forecast line is to actual consumption and how often actual values fall within the band: a wide band can contain them even when the central forecast is not very accurate.
For the technical reader: the forecast distribution and the model used
We use Timestral-28M through Mistral’s official implementation. The model produces 21 quantiles for each future interval. The line is the median; the band shown in the demo goes from the 10th to the 90th percentile, P10–P90, and represents the central 80% of the forecast distribution. We did not calibrate these intervals on the steel plant’s data: we measure their actual coverage.
The weights revision is 49b26409ac87b5935539a5d8ffe7f397b720db47, the Mistral code revision is a534bdbd244d64f3d9d743f46c7bf6fc330ed4ff. The uv.lock file pins the experiment’s dependencies.
The advantage over doing what you did last week or last year
Using last Monday’s consumption to forecast next Monday assumes that the weekly rhythm repeats. Using the same period of the previous year assumes that an annual cycle repeats. These are simple, cheap and often effective methods, also used as a baseline to evaluate more complex models[5].
They can lose accuracy, however, if production has grown, shifts have changed or holidays fall on different days. Timestral can combine several recent observations to account for trends and recurring patterns. It can also receive information already known about the future, such as a calendar of closures or a production schedule[2].
If a plant shutdown is scheduled for tomorrow, the schedule is already known while the consumption has yet to be measured. The same goes for a shop’s opening hours and promotions compared with its sales. These schedules must be given to the model: from the numbers alone it cannot know the company’s decisions.
Other statistical or machine learning models can use these factors too. Timestral makes it possible to try this approach without training dedicated to the individual company; the advantage over a simple rule has to be measured on your own data.
Here we only measure the comparison with the previous week. The dataset covers 2018: December 2017 is missing for a year-on-year comparison. Moreover, the 21 days given to the model do not show a complete annual cycle.
What changes for a company
A company can have hundreds of sequences to forecast: sales by item and store, consumption by department, requests by service. Timestral makes it possible to test them without building a model for each one, leaving it to the tests to establish where specific work is needed.
Forecasts can be built into existing procedures. A nightly job, for example, can read consumption and present the expected load for the next day to the plant manager, before they plan the work.
With downloadable code and weights, the history can stay on company servers. The company can keep the verified version and repeat the tests before updating it[2]. It does, however, have to manage machines, data, integration and the monitoring of forecasts over time.
Open source code and the license of Timestral’s weights
The code is released under the Apache-2.0 license; the weights have a separate license, called Modified MIT[2].
The license of the Timestral-28M revision used in the test excludes from the grant companies with global consolidated revenues above 20 million dollars, or the equivalent, in the previous month. In that case it refers to requesting a commercial license from Mistral[4].
Activities where the work can change
These are some applications worth evaluating beyond our test on energy consumption.
| Activity | What to forecast | What it can be used for |
|---|---|---|
| Energy management | Next-day consumption and peak load slots. | Evaluating load distribution in advance. Moving production also depends on production constraints and energy prices. |
| Purchasing and inventory | Demand for each item over the time needed to restock it. | Feeding the reorder calculation, weighing the cost of holding stock against the risk of running out. |
| Service organization | Volumes of calls, tickets or orders by day and time slot. | Planning shifts and capacity according to the expected load. |
| Plant monitoring | Expected trend of temperature, vibration or pressure. | Flagging deviations for a technician to look into. The signal alone does not identify a fault or its cause. |
When choosing how much stock to keep, uncertainty matters too: you need to assess how far actual demand can deviate from the forecast and how much it costs to run out. The model’s intervals must be checked on the company’s own data.
The steel plant’s consumption
For the test we chose Steel Industry Energy Consumption, a public dataset from a South Korean steel plant. It contains a year of consumption from 2018: 35,040 measurements, one every 15 minutes. It is published on UCI by Sathishkumar V E, Changsun Shin and Yongyun Cho, under the CC BY 4.0 license[3].
Each value is the energy consumed in that quarter of an hour, in kWh. The dataset does not contain the plant’s work schedule.
We tried two configurations: one with past consumption only, and one that also receives the hour, the day of the week and a weekend flag, information known in advance.
Preparing the CSV and checking timestamps
The first check stopped the run: each day in the file starts at 00:15, reaches 23:45 and ends with a “00:00” row that keeps the same date. We interpreted that final midnight as 24:00 and assigned each interval its start time, subtracting 15 minutes. The independent check rebuilds the whole year and verifies 96 intervals per day, with no gaps or duplicates. Consumption values keep the order of the original file.
The CSV also contains electrical measurements, emissions and a load class. These columns are excluded from the test. Using their values for the day being forecast would give the model information that would not yet be available at forecast time.
How we checked the forecasts
To evaluate the model we use a past period: we give it only the information available before the day to forecast, and compare its answer with that day’s consumption, held out. This check is called a backtest.
We chose the whole of December as the test period. To forecast December 1, Timestral receives the previous three weeks. For December 2 it receives an updated history, which also includes the now observed consumption of the 1st. We continue like this until December 31.
That makes 31 one-day forecasts, shown side by side in the demo. In daily use you would proceed the same way, but to measure the error you would have to wait for the next day’s consumption.
As a baseline we use the consumption recorded seven days earlier, at the same time. We compare all 2,976 intervals of the month for each configuration.
The essential code and the limits of public data
context = consumption[start - 2016:start]
forecast = model.forecast(context, prediction_length=96)
actual = consumption[start:start + 96]
baseline = consumption[start - 672:start - 576]
This example shows the history-only version; the full script contains both configurations. We also artificially altered future consumption and verified that the forecast stayed identical.
We do not know whether this public dataset was part of Timestral’s original training. The separation between history and future is verified in our experiment, not in the model’s training.
The result for the whole month
We compared each forecast with actual consumption in the same 15-minute interval. For example, forecasting 50 kWh when actual consumption is 60 kWh means an error of 10 kWh. In the error calculation, what counts is how far you are from the actual value, whether above or below.
Averaging these differences over the whole of December, Timestral, in the version that also uses the calendar, is off by 7.95 kWh per interval. Using the consumption recorded one week earlier as the forecast, the mean error rises to 10.56 kWh. Timestral therefore reduces the mean error by about a quarter: 24.7%.
Timestral is more accurate on 22 days out of 31; on the other nine the weekly method is more accurate.
| Method | Mean error, kWh / 15 min | Days more accurate than the baseline |
|---|---|---|
| Same day of the previous week | 10.56 | Baseline |
| Timestral, consumption only | 7.98 | 23 out of 31 |
| Timestral, consumption and calendar | 7.95 | 22 out of 31 |
31 forecasts of 24 hours, from December 1 to 31, 2018.
The calendar changes the average result only slightly: with history alone the error reduction is already 24.4%.
Where the forecast helps
On December 21, consumption during the day is lower than in the previous week. Copying the profile from seven days earlier leads to overestimating it. Timestral follows the observed measurements more closely: the mean error is 3.09 kWh per interval, against 19.16 for the baseline. On that day the reduction is 83.8%.

Where it gets it wrong
December 1 shows a different situation. The steel plant consumes 805.57 kWh over the whole day. The sum of the central values forecast by Timestral reaches 1,893.42 kWh. The mean error on individual quarters of an hour is 11.62 kWh; repeating the previous week brings it down to 4.82 kWh.

Without the work schedule we cannot attribute the error to a shutdown or a change in production. Planned shifts and stoppages would be additional information worth testing.
Despite the error, on that day 90.6% of the measurements fall within the uncertainty band. The band is built to contain 80% of possible values; over the whole month it contains 81.6% of actual measurements. This check concerns uncertainty, separately from the accuracy of the central line.
Exploring the results in Rational AI
We integrated the demo into Rational AI as a custom view of a Knowledge, the data collection used for this test. When opened, it shows the full month and 31 daily charts, with forecasts and actual consumption overlaid.
Selecting a day enlarges the chart and shows the errors of both methods. You can switch configuration or show the uncertainty band.
The demo shows the recorded results; the local service can also recompute all the forecasts. The integration is experimental.
How to try it on your company’s data
- Choose what to forecast and how far ahead. Start from the decision to be made: if purchases are planned weekly, the forecast must cover the time needed to order and receive the goods.
- Prepare the history. Export a table with date, value and, if there are several products or departments, their identifier. Use regular intervals and check for gaps and duplicates: a missing measurement is different from a value of zero. Add any closures or future schedules already known.
- Run a test on the past. Hold out the latest period and forecast it using only earlier data, as in the experiment described. Compare the errors with the method you use today, including both ordinary periods and peaks and closures.
- Check the decision. Before automating it, compare the plan suggested by the forecast with the usual one. Measure costs and service level, including integration and system management.
The first test requires preparing the data and connecting it to the model, but not training it on the company’s history. The period to provide and the one to forecast must be chosen based on the activity: the 21 days of our test are not a general rule.
Reproducing the test
The package contains scripts, the original CSV, versions and results. To repeat the test:
uv sync --frozen
uv run python experiment.py
uv run python verify.py
uv run python verify_service.py
The three scripts compute the forecasts, independently check data and results, and verify that the service does not use future consumption. The standalone demo can be viewed even with the service turned off.
For the technical reader: time and memory
We ran the test on a MacBook Pro with Apple M1 Max and 32 GB, using the CPU with four threads and PyTorch 2.14.1. Excluding the first call of each configuration, the median inference time is about 42 milliseconds with consumption only and 162 milliseconds with the calendar. The peak resident memory of the experiment process was about 446 MiB. The measurements exclude the initial download and the request from the interface.
The demo and verification scripts were prepared with the help of AI.
What remains to be verified
The test covers one plant, one month and one size of Timestral. The baseline is a simple method, not a statistical model fitted to the steel plant’s data. To assess operational use, other periods, other plants and a comparison with the method already used by those who make the decisions are needed.
From forecasts to business decisions
Being able to use your history without building a custom model makes it easier to experiment with forecasting in business processes: reordering, shifts, load planning. Downloadable code and weights make it possible to integrate it into your own infrastructure and control its updates, within the terms of the license.
In our test Timestral reduces the mean error by 24.7% compared with the weekly method. The economic value has to be measured on decisions: less stock and fewer unfulfilled orders at the same service level, shifts that cover demand with less overtime, production scheduled at lower energy costs. A lower error does not mean the same percentage of savings; integration, operation and maintenance also count.
To evaluate Timestral on your data, let’s talk. We start from a concrete decision and measure the benefit against your current method.
Sources
- Mistral AI, Introducing Timestral, October 15, 2026.
- Mistral AI, official Timestral implementation and Timestral-28M.
- Sathishkumar V E, Changsun Shin, Yongyun Cho, Steel Industry Energy Consumption, UCI Machine Learning Repository, DOI 10.24432/C52G8C, CC BY 4.0.
- Mistral AI, Timestral-28M weights license, revision used.
- Rob J Hyndman and George Athanasopoulos, Forecasting: Principles and Practice, simple forecasting methods.
- Experiment: full protocol and results; standalone demo; instructions to reproduce the test.