# Improving Aviation Safety Analysis: Automated HFACS Classification Using Reinforcement Learning with Group Relative Policy Optimization

**Authors:** Arash Ahmadi, Sarah Sharif, Yaser Banad

arXiv: 2508.21201 · 2025-09-01

## TL;DR

This paper presents an automated HFACS classification system for aviation safety that leverages reinforcement learning with group relative policy optimization to enhance accuracy and outperform larger models, enabling efficient safety analysis.

## Contribution

Introduces a reinforcement learning framework with GRPO to fine-tune a language model for aviation safety classification, improving accuracy and efficiency over existing methods.

## Key findings

- 350% increase in exact match accuracy
- Outperforms GPT-5-mini and Gemini-2.5-fiash models
- Proposes new benchmarking methodology for multi-label classification

## Abstract

Analyzing the human factors behind aviation accidents is crucial for preventing future incidents, yet traditional methods using the Human Factors Analysis and Classification System (HFACS) are limited by scalability and consistency. To address this, we introduce an automated HFACS classification framework for aviation safety analysis that utilizes Reinforcement Learning with Group Relative Policy Optimization (GRPO) to fine-tune a Llama-3.1 8B language model. Our approach incorporates a multi-component reward system tailored for aviation safety analysis and integrates synthetic data generation to overcome class imbalance in accident datasets. The resulting GRPO-optimized model achieved noticeable performance gains, including a 350% increase in exact match accuracy (from 0.0400 to 0.1800) and an improved partial match accuracy of 0.8800. Significantly, our specialized model outperforms state-of-the-art LLMs (Large Language Models), including GPT-5-mini and Gemini-2.5-fiash, on key metrics. This research also proposes exact match accuracy in multi-label HFACS classification problem as a new benchmarking methodology to evaluate the advanced reasoning capabilities of language models. Ultimately, our work validates that smaller, domain-optimized models can provide a computationally efficient and better solution for critical safety analysis. This approach makes powerful, low-latency deployment on resource-constrained edge devices feasible.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/2508.21201/full.md

## Figures

16 figures with captions in the complete paper: https://tomesphere.com/paper/2508.21201/full.md

## References

38 references — full list in the complete paper: https://tomesphere.com/paper/2508.21201/full.md

---
Source: https://tomesphere.com/paper/2508.21201