How zinedinekamel/gps_spoofing works
This repository is a Streamlit application for detecting GPS spoofing in UAV flight logs. The main workflow is to upload a CSV, normalize and validate its telemetry features, scale them, and run a selected Random Forest or MLP model; users can inspect single or batch results and compare the models. The repository also includes benign, jamming, and spoofing flight-log datasets. The sampled app excerpt shows these runtime stages, but not the complete model-loading or feature-normalization implementations; the README documents the models and pipeline at a high level.
Main entry points: app.py Streamlit App · outputs Random Forest · UAVGPSAttacks Flight Log Dataset
Components 16
Flight Data
- Uploaded CSV
- Flight Log Dataset
UAVGPSAttacks
Detection Runtime
- Streamlit App
app.py - Column Normalization
app.py - Feature Validation
app.py - Feature Preparation
app.py - Feature Scaling
app.py - Prediction Dispatch
app.py
Results and Analysis
- Single Prediction
app.py - Batch Results
app.py - Model Comparison
app.py - Feature Explanations
app.py - Evaluation Metrics
app.py
Model Artifacts
- Random Forest
outputs - MLP Model
outputs
Other components
- Operator
Connections 18
- Operator → Streamlit App: opens
README.md - Operator → Uploaded CSV: uploads
- Flight Log Dataset → Uploaded CSV: provides logs
- Uploaded CSV → Streamlit App: loads CSV
app.py - Streamlit App → Column Normalization: normalizes
app.py - Column Normalization → Feature Validation: checks features
app.py - Feature Validation → Feature Preparation: selects features
app.py - Feature Preparation → Feature Scaling: fills and scales
app.py - Feature Scaling → Prediction Dispatch: sends features
app.py - Streamlit App → Random Forest: loads model
- Streamlit App → MLP Model: loads model
- Prediction Dispatch → Random Forest: dispatches
app.py - Prediction Dispatch → MLP Model: dispatches
app.py - Prediction Dispatch → Single Prediction: returns predictions
app.py - Prediction Dispatch → Batch Results: returns predictions
app.py - Streamlit App → Model Comparison: compares models
app.py - Streamlit App → Feature Explanations: shows contributions
app.py - Streamlit App → Evaluation Metrics: shows metrics
app.py