Downloads · 30 days
0
pgautam0033/5g-delay-predictor
5g-delay-predictor is a machine learning model from pgautam0033. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated Aug 7, 2026
Repo size
46.1 KB
Likes
3
Public
Click a slice to open those files.
.onnx46.1 KB · 88%
From the Hugging Face model README
language: python tags:
This repository contains a high-performance Hybrid LSTM sequence model optimized and exported into ONNX format. It is purpose-built to predict packet-level end-to-end IP layer delay over 5G cellular network infrastructures while strictly mitigating multi-step error accumulation.
Track the live prediction dashboard here: https://forecasting-5g.vercel.app
This project focuses on predicting delay times in 5G networks using time series analysis and machine learning techniques. Our goal is to understand and forecast network performance, which is critical for enhancing the user experience in latency-sensitive 5G services (such as AR/VR, industrial automation, and edge routing).
By studying packet traces across the IP, RLC, MAC, and Physical layers, the project identifies the primary cause of the triangular pattern observed in Delay vs. SN (Sequence Number) graphs:
The time series forecasting model is combined with machine learning techniques to leverage the benefits of both worlds:
ComponentDetails
Model TypeLSTM (Long Short-Term Memory)
LSTM Units50 Units (Stacked 100 → 50 in Deeper Variant)
Output LayerDense (1 unit)
OptimizerAdam
Loss FunctionMean Squared Error (MSE) / Huber Loss
Sequence Length30 timesteps lookback
NormalizationMin-Max Scaling
The model achieved highly accurate tracking performance on the testing dataset (TE1.csv). It cuts residual variance by roughly 45% over fully recursive baselines and matches tight network service level thresholds:
MetricProduction Evaluation Value
Accuracy Score****94.68% (0.9468)
**
R2cap R squared 𝑅2 Coefficient****0.9067**
Mean Absolute Error (MAE) 0.20087 ms (Normalized Scale) / ~0.14 ms to 0.16 ms
Root Mean Square Error (RMSE) 0.441362 (Normalized Scale)
Precision (At 20.0 ms Threshold) 1.0000
Recall (At 20.0 ms Threshold) 0.77657
Note: Deployed in production on Render, a complete streaming batch calculation for 3,470 packet packets delivers live inference within 2.5 seconds while utilizing an optimized ONNX Runtime configuration that dropped background RAM footprint from 450MB down to 80MB.