Advanced Drone Flight Log Entity Recognizer
Reason this release was yanked:
there were no changes
Project description
ADFLER: Advanced Drone Flight Log Entity Recognizer
ADFLER is an open-source tool developed to perform named entity recognition on drone flight log data to support forensic investigations. It uses a fine-tuned ALBERT model to identify entities (like Event and NonEvent) in log messages and constructs a forensic timeline.
Features
- Forensic Timeline Construction: Merges and sorts logs from Android and iOS devices.
- Entity Recognition: Uses an ALBERT model to highlight key entities in log messages.
- Forensic Report Generation: Generates a PDF report with statistics and the highlighted timeline.
Installation
Prerequisites
- Python 3.7+
- wkhtmltopdf: Required for report generation.
- Windows: Download and install from wkhtmltopdf.org. Default path:
C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe. - Linux:
sudo apt-get install wkhtmltopdf. Default path:/usr/bin/wkhtmltopdf.
- Windows: Download and install from wkhtmltopdf.org. Default path:
Install ADFLER
You can install ADFLER directly from PyPI (coming soon) or from source.
From Source:
git clone https://github.com/DroneNLP/ADFLER.git
cd ADFLER
pip install .
Model
ADFLER uses a fine-tuned ALBERT model (swardiantara/ADFLER-albert-base-v2). By default, the tool will automatically download and cache the model from Hugging Face on its first run.
If you prefer to use a locally downloaded model or an offline environment, you can point to your local directory containing pytorch_model.bin using the --model argument.
Usage
ADFLER provides a Command Line Interface (CLI).
Structure:
adfler [arguments]
Arguments
| Argument | Description |
|---|---|
--evidence <path> |
Path to the directory containing input flight logs (must have android and/or ios subfolders). |
--output <path> |
Path to the directory where results will be saved. |
--model <path> |
Path to the directory containing the ALBERT model (pytorch_model.bin). |
--config <path> |
Path to a custom config.json file. |
Examples
1. Run Pipeline (Recommended):
adfler --evidence "./flight_logs" --output "./results/case_001"
2. Run Pipeline with Custom Model:
adfler --evidence "./flight_logs" --output "./results/case_001" --model "./local_model_dir"
Output Structure
Running adfler will create the following structure in your output directory:
output_dir/
├── raw_list.json # List of detected log files
├── forensic_timeline.csv # Merged and sorted timeline of all logs
├── ner_result.json # Timeline with detected entities (JSON format)
├── statistics.json # Counts of detected entity types
├── forensic_report_.html # Intermediate HTML report
├── forensic_report_.pdf # Final PDF Forensic Report
└── parsed/ # Intermediate parsed CSVs
├── android/
└── ios/
Configuration
You can optionally use a config.json file instead of passing long arguments.
Example config.json:
{
"source_evidence": "./flight_logs",
"output_dir": "./results/test_run",
"model_dir": "./model",
"wkhtml_path": {
"windows": "C:\\Program Files\\wkhtmltopdf\\bin\\wkhtmltopdf.exe",
"linux": "/usr/bin/wkhtmltopdf"
},
"use_cuda": true
}
Run with config:
adfler --config my_config.json
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file adfler-0.1.1.tar.gz.
File metadata
- Download URL: adfler-0.1.1.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62b76c338402db95e73f3b8b658f74645d9615a24bd3d7c50db48fce8a4529b1
|
|
| MD5 |
eabb2df859b2584156b7431fdf721e7b
|
|
| BLAKE2b-256 |
32c0965578e237df84f0db91ccd5095488082fa877af0c4152835189b0cdab44
|
File details
Details for the file adfler-0.1.1-py3-none-any.whl.
File metadata
- Download URL: adfler-0.1.1-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
415e2c5687613b0603a3cd5e8eb98b598c576501f13a2da7255725e9efab1ebb
|
|
| MD5 |
b15ca907ee841dab66a98fe72df2ec6c
|
|
| BLAKE2b-256 |
1f0d3a87d03ed29e79755acb148fbe2ed63ffbe8bf559eb8d3655d7393e06561
|