Home
AeroflotClient

Forecasting bookings before departure

Demand modeling at flight, cabin and booking-class level.

Inference without retraining

Adapted Autoformer to booking curves aligned by days before departure.

STACK

  • PyTorch
  • NeuralForecast
  • Autoformer
  • pandas
  • SARIMAX
  • Streamlit

From booking history to a forecast

DTD / TRAINING / SAVED MODEL / INFERENCEPan the diagram or select a stage below
01 / BOOKING-CURVE PREPARATIONPast departuresFlight · cabin · booking classBooking history for the selected segmentDays-to-departure alignmentAlign and average historical curvesOne axis: days before departureNeuralForecast seriesds · y · unique_idHistory window and forecast horizon02 / TRAINING ADAPTATION AND MODEL PERSISTENCEAutoformer trainingPyTorch · NeuralForecastPrepared booking curvesPublished architectureDecomposition + Auto-CorrelationTrend + seasonal componentSaved modelSave and loadReady for reuse03 / REUSABLE INFERENCENew bookingsThe same input preparationUpdated booking-class historyLoad and run inferenceSaved model + updated seriesNo retraining for each requestBooking-class forecastHorizon to departureŷ[t+1] · … · ŷ[t+h]Checked training, loading, inference and runtime across different series.04 / SEPARATE SARIMAX RESEARCHSARIMAX + StreamlitSelect the flight, class and history cutoffForecast beside history · a separate statistical branch

Main branch: booking curves → Autoformer → saved model → inference. SARIMAX is a separate study.

DIAGRAM NOTE

The diagram uses symbolic series to explain the mechanism. Flight data, fares, training settings and commercial results are omitted.

Scroll diagram ↔
Tools by task

Neural forecasting

Autoformer · PyTorch · NeuralForecast

Series decomposition, temporal dependencies, training and reusable model inference.

Booking data

Python · pandas · NumPy

Time-series preparation and slicing by flight, cabin and booking class.

Statistical research

statsmodels · SARIMAX · Streamlit · Matplotlib

Separate statistical experiments and interactive booking-curve inspection.

Original Autoformer paper ↗
Architecture, step by stepHighlighted data flow and technical walkthrough

Booking forecasts: from sales segment to model inference

Scroll to highlight each stage and its data flow.

01 / 05
Booking forecasts: from sales segment to model inference01 / BOOKING-CURVE FORECASTING02 / AUTOFORMER03 / EXPERIMENTS AND INFERENCE04 / SEPARATE SARIMAX RESEARCHPast departuresflight · cabin · classMean curvealigned by days todepartureHistory windowtime-series inputHorizontime to departureDecompositiontrend + residualTrenddecoder accumulationAuto-Correlationlags · shifts · weightsDecodertrend + seasonalModel forecastforecast trajectoryExperimentsbehavior · runtimeTrained modelsave and loadNew forecastmodel inferenceClass demandfor revenue managementNew observationsupdated bookingsCurve and cutoffflight · class · days to departureSARIMAXstatsmodelsInteractive inspectionStreamlit · forecast and history

Pan to explore the diagram ↔

DataModelStateEvaluation

Define the booking curve

01

Define the booking curve

Bookings for a flight and class are aligned by days remaining before departure.

02

Forecast the continuation

Autoformer uses decomposition and time-shift aggregation to forecast the continuation of a series.

03

Examine model behavior

Experiments check module behavior across different input series.

04

Apply the model to new history

A saved model receives updated history and returns a forecast.

05

Explore SARIMAX separately

The statistical demonstrator shows a forecast at the selected history cutoff.