Skip to main content

neuralfuel

neuralfuel provides open-source neural fuel models for more than 20 aircraft types. It also supports federated learning of these models.

Detailed flight data with fuel measurements, such as quick access recorder (QAR) data, can be difficult to share for privacy reasons. A small neural network trained on those data can often be shared.

The models estimate total fuel flow from Mach number, pressure altitude, aircraft mass, energy-rate variables and static air temperature. Training uses physical constraints. The model guide describes the inputs, networks and constraints.

Install

The Python package includes the shared models in PyTorch and ONNX formats. Install it in a Python 3.12 or newer environment, then list the available models.

python -m pip install neuralfuel
neuralfuel models

Estimate fuel flow

For an A320, load("a320") selects the CFM56-5B recorder model. This example estimates fuel flow in steady, level cruise at Mach 0.78, 37,000 ft, 62 tonnes and a static air temperature of 225 K.

from neuralfuel.inference import fuel_flow
from neuralfuel.model import load

a320 = load("a320")
flow_kgh = fuel_flow(a320, mach=0.78, alt_ft=37000, mass_kg=62000, sat_k=225.0)

To select a model trained on public ACARS reports, use tier="osint". For aircraft with an ACARS model and no recorder model, omitting the tier loads that model and emits an OsintTierWarning with its accuracy and phase coverage. Model selection and inputs

distilled = load("a320", tier="acropole")
b738 = load("b738", tier="osint")
a20n = load("a20n", tier="osint")  # All engines
a20n_leap = load("a20n", tier="osint", engine="leap_1a")  # LEAP-1A only

Models

The Python package includes 29 models for 21 aircraft types. Choose a model by aircraft type and training source.

  • Recorder (recorder). One A320 CFM56-5B model learns from fuel flow measured on board the aircraft. It supports clean climb, cruise and descent.
  • Direct ACARS (osint). Twenty models learn from fuel burned between successive ACARS reports. Each model trains on climb and cruise together. A second stage fits descent while keeping the climb and cruise fit fixed. Climb and cruise are supported within the documented coverage. Descent is experimental. Training method
  • Acropole distilled (acropole). These experimental models learn from Acropole predictions for aircraft types represented in its quick access recorder (QAR) training data. The table lists the reference engine used for each fit. Loading and evaluating the Acropole models

The recorder network learns fuel flow directly. The ACARS network learns a correction to the fuel flow estimated from drag in steady flight. The model then adjusts fuel flow for climbing, descending or changing speed. Network architecture and physical constraints

A. Five flight inputs feed the recorder network, with a separate temperature correction and five training penalties. B. A small ACARS network corrects steady-flight fuel flow before the model applies the climb or descent response.

Supported aircraft types

In the Direct ACARS fits column, “All engines” means one model trained across the engine families present in the data for that aircraft type. Each named family has a separate fit. Aircraft model cards report errors against measured fuel burn on held-out aircraft. ACARS results by aircraft and engine

ICAO Aircraft Recorder fit Direct ACARS fits Acropole distilled
A319 Airbus A319 — CFM56-5B —
A320 Airbus A320 CFM56-5B All engines, CFM56-5B, V2500 CFM56-5B4/P
A321 Airbus A321 — All engines —
A20N Airbus A320neo — All engines, LEAP-1A, PW1100G —
A21N Airbus A321neo — PW1100G —
A332 Airbus A330-200 — All engines Trent 772
A333 Airbus A330-300 — All engines —
A359 Airbus A350-900 — Trent XWB —
AT76 ATR 72-600 — — PW127M-HS568F
B737 Boeing 737-700 — CFM56-7B —
B738 Boeing 737-800 — CFM56-7B CFM56-7B26E
B739 Boeing 737-900 — CFM56-7B —
B744 Boeing 747-400 — All engines —
B772 Boeing 777-200 / 200ER — All engines —
B77W Boeing 777-300ER — GE90-115B —
B789 Boeing 787-9 — All engines —
B78X Boeing 787-10 — All engines —
CRJ7 Bombardier CRJ700 — — CF34-8C5B1
CRJX Bombardier CRJ1000 — — CF34-8C5A1
E170 Embraer E170 — — CF34-8E5
E190 Embraer E190 — — CF34-10E5

Accuracy and coverage

On 110 A320 CFM56-5B test flights, the recorder model’s mean absolute percentage error was 2.42% across all 10-second blocks and 1.76% in cruise. Summed over a flight, the median absolute fuel error was 0.37%. A320 recorder validation

Predicted versus measured fuel flow on A320 recorder test blocks, alongside the distribution of fuel errors per flight.

For recorder and ACARS models, use predict(model, x, coverage=True) to check a prediction. It labels each input as data (within training-data coverage), model (within the model envelope only), or outside. Coverage definitions

Physical constraints

In powered flight, recorder training favours a convex fuel-flow curve against Mach and higher flow as mass or energy demand increases. At high Mach, penalties capture drag rise and favour decreasing specific air range (distance per kilogram of fuel). Recorder constraints · Cruise performance example

The ACARS model adds fuel for a climb or acceleration. In a constant-speed descent, gravity helps overcome drag and predicted flow falls toward idle. ACARS model equations

A320 specific air range against Mach at three altitudes and three masses. Solid curves indicate data coverage. Dashed curves extend to the model’s maximum operating Mach of 0.82.

Comparing the A320 models

All three fits can be evaluated against the same A320 CFM56-5B recorder measurements. The table gives mean absolute percentage error on clean-flight 10-second blocks at or above 10,000 ft. Acropole’s original training flights are undisclosed, so overlap with this test set is unknown. Measured comparison and sample counts

Model Climb Cruise Descent
Recorder 1.23% 1.76% 7.03%
Direct ACARS 6.30% 1.96% 22.81%
Acropole distilled 2.59% 3.72% 14.59%

The figure compares the ACARS and recorder predictions as Mach, altitude and climb rate vary. The curves agree closely in level flight and diverge in steep climb and descent. For a comparison with the AeroX CFM56-5B fuel model, run neuralfuel compare --model a320. A320 comparison example · AeroX comparison

A320 CFM56-5B cruise predictions and ACARS-to-recorder differences. A constant-speed sweep at Mach 0.76 compares descent, level flight and climb. Line styles indicate coverage.

Examples and documentation

Clone the repository to run the examples or train a model with synthetic data. Examples · Training quick start · Documentation index

git clone https://github.com/open-aviation/neuralfuel
cd neuralfuel
uv sync
uv run examples/01_predict.py

Contributing to the federated model training

You can continue training a shared recorder model on local flight data or train a new recorder model. You share the weights, an ONNX export, the run record, an aggregate validation report and a manifest. The raw flight data stays with you. Maintainers check each contribution before combining compatible models into the next shared model. Federated training workflow and quality checks

To contribute a model trained on your own data, see CONTRIBUTING.md.

Contributing with an AI coding agent

The agent instructions give the complete workflow with exact commands. AGENTS.md

Read AGENTS.md. Then write an adapter for my data file, check it, train a model and prepare a contribution.

The agent works from two commands that summarize your data locally. It can write and correct the adapter without reading individual flight records.

  • neuralfuel profile reports column names, types, missing fractions and value ranges for measurement columns.
  • neuralfuel check checks the converted measurements against physical limits. When a value is out of range, the report names the column so the agent can check its units and scale factor.

Every command supports --json and uses fixed exit codes.

Licence

NeuralFuel is licensed under GPL-3.0-only. Licence text

Metadata

Release files for neuralfuel 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neuralfuel 0.1
File Size Uploaded Provenance Actions
neuralfuel-0.1.tar.gz 826.9 kB With provenance Details for neuralfuel-0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for neuralfuel 0.1
File Interpreter ABI Platform Actions
neuralfuel-0.1-py3-none-any.whl Python 3 none any Details for neuralfuel-0.1-py3-none-any.whl

Total release size: 1.7 MB

Release files / neuralfuel-0.1.tar.gz

Download URL neuralfuel-0.1.tar.gz
Size 826.9 kB
Tags Source
SHA-256 checksum
How to use checksums
56b5b0d12fbe4978adc86f2690a57c64df1796344bda762f62091d0df5c1d6d6
BLAKE2b-256 checksum
How to use checksums
7a18c2aa4e38de6d667319f1d03bcfd2e6929d2e22903c64cf041145355eded8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / neuralfuel-0.1-py3-none-any.whl

Download URL neuralfuel-0.1-py3-none-any.whl
Size 887.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ed18b4b3a703ea7e0330d0c51bf05d959321a6a76aaf7c7a11f36bbb41e65b9
BLAKE2b-256 checksum
How to use checksums
6c1a6e2df38e59677369857e01af2afb194e68d60423352b3ade888f424a0a62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for neuralfuel 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for neuralfuel-0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page