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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Weather & Aviation Mission Feasibility Analysis
|
| 3 |
+
task_categories:
|
| 4 |
+
- tabular-classification
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- weather
|
| 9 |
+
- aviation
|
| 10 |
+
- EDA
|
| 11 |
+
- mission-feasibility
|
| 12 |
+
- helicopter
|
| 13 |
+
size_categories:
|
| 14 |
+
- 10K<n<100K
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# Weather & Mission Feasibility Analysis
|
| 18 |
+
|
| 19 |
+
**EDA Assignment · March 2026**
|
| 20 |
+
|
| 21 |
+
> A decade of atmospheric data analyzed to determine the environmental thresholds that dictate helicopter mission suitability — bridging meteorology and aviation safety.
|
| 22 |
+
|
| 23 |
+
## 🎬 Video Presentation
|
| 24 |
+
|
| 25 |
+
<video src="Weather Data Analysis for Mission Feasibility.mp4" controls="controls" style="max-width: 720px;"></video>
|
| 26 |
+
|
| 27 |
+
| Dataset | Period | Rows | Features | Questions |
|
| 28 |
+
|---|---|---|---|---|
|
| 29 |
+
| Szeged Weather · Kaggle | 2006–2016 | 96,453 | 12 | 5 |
|
| 30 |
+
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
## 🎯 Main Objective
|
| 34 |
+
|
| 35 |
+
**To analyze to what extent atmospheric variables — humidity, altimeter pressure, and wind speed — can evaluate the suitability of environmental conditions for helicopter flight.**
|
| 36 |
+
|
| 37 |
+
This project focuses exclusively on hours with active weather conditions. There are no clear or sunny baseline days in the dataset — every row represents a moment where weather played a role. The engineered `Mission_Status` variable defines, based on standard aviation thresholds, whether conditions on any given hour were safe enough to fly.
|
| 38 |
+
|
| 39 |
+
The personal motivation: as a helicopter operator serving in the reserves, multiple missions have been cancelled mid-flight due to weather. A data-driven pre-flight weather assessment framework could save time, manpower, and allow missions to be replanned rather than abandoned.
|
| 40 |
+
|
| 41 |
+
### Mission Status Thresholds
|
| 42 |
+
|
| 43 |
+
| Status | Condition |
|
| 44 |
+
|---|---|
|
| 45 |
+
| ✅ **Operational** | Visibility > 4 km **AND** Wind Speed < 45 km/h |
|
| 46 |
+
| ❌ **Non-Operational** | Any breach of the above thresholds |
|
| 47 |
+
|
| 48 |
+
---
|
| 49 |
+
|
| 50 |
+
## 📦 Dataset Description
|
| 51 |
+
|
| 52 |
+
**Source:** [Weather in Szeged 2006–2016](https://www.kaggle.com/datasets/muthuj7/weather-dataset) — Kaggle
|
| 53 |
+
**Size:** 96,453 rows · 12 features
|
| 54 |
+
|
| 55 |
+
### Features
|
| 56 |
+
|
| 57 |
+
**Numeric:** Wind Speed (km/h), Visibility (km), Temperature (C), Apparent Temperature (C), Humidity, Pressure (millibars), Wind Bearing (degrees)
|
| 58 |
+
|
| 59 |
+
**Categorical:** Summary, Precip Type, Formatted Date
|
| 60 |
+
|
| 61 |
+
**Engineered:** `Mission_Status` — Operational / Non-Operational
|
| 62 |
+
|
| 63 |
+
---
|
| 64 |
+
|
| 65 |
+
## 🧹 Data Cleaning
|
| 66 |
+
|
| 67 |
+
| Step | Action | Result |
|
| 68 |
+
|---|---|---|
|
| 69 |
+
| 1 | Date parsing | Converted to UTC datetime |
|
| 70 |
+
| 2 | Duplicate removal | 24 rows removed → 96,429 remaining |
|
| 71 |
+
| 3 | Pressure sensor failures | 1,288 zeros (1.34%) replaced with column median |
|
| 72 |
+
| 4 | Missing Precipitation Type | 517 rows (0.54%) dropped |
|
| 73 |
+
| 5 | Redundant columns | `Loud Cover` (zero variance) and `Daily Summary` dropped |
|
| 74 |
+
| 6 | Humidity validity | All values confirmed in [0, 1] — no action needed |
|
| 75 |
+
| 7 | Visibility ceiling | All values ≤ 16.1 km confirmed — no action needed |
|
| 76 |
+
| 8 | Fog/Visibility contradiction | 1,939 rows relabeled from "Foggy" → "Partly Cloudy" where visibility > 2.5 km |
|
| 77 |
+
|
| 78 |
+
> **Note:** All numeric columns had zero NaN values (confirmed via `df.info()`). No general median-fill was required — only the targeted pressure zero replacement above.
|
| 79 |
+
|
| 80 |
+
---
|
| 81 |
+
|
| 82 |
+
## 📊 Outlier Detection & Handling
|
| 83 |
+
|
| 84 |
+
Distribution shape was checked before selecting any outlier method — IQR assumes symmetry and fails on skewed variables.
|
| 85 |
+
|
| 86 |
+

|
| 87 |
+
|
| 88 |
+
| Column Group | Method | Decision |
|
| 89 |
+
|---|---|---|
|
| 90 |
+
| Temperature, Apparent Temp, Pressure | IQR (symmetric) | **Keep** — real weather extremes |
|
| 91 |
+
| Wind Speed, Visibility, Humidity | 1st–99th percentile (skewed) | **Keep** — operationally critical events |
|
| 92 |
+
| Wind Bearing | None (circular variable) | **Keep** — 0° and 360° are the same direction; IQR/percentiles fail on circular data |
|
| 93 |
+
|
| 94 |
+
**Overall decision: Keep all outliers.** In aviation weather analysis, extreme readings are not errors — they are the most operationally significant events in the dataset.
|
| 95 |
+
|
| 96 |
+
---
|
| 97 |
+
|
| 98 |
+
## ⚖️ Class Balance
|
| 99 |
+
|
| 100 |
+
| Class | Count | Percentage |
|
| 101 |
+
|---|---|---|
|
| 102 |
+
| ✅ Operational | 8,998 | 90.0% |
|
| 103 |
+
| ❌ Non-Operational | 1,002 | 10.0% |
|
| 104 |
+
|
| 105 |
+
**Imbalance ratio: 8.98:1** — A naive model predicting "Operational" every time would score 90% accuracy while being completely useless. Future models should use **F1-score or precision-recall**, not raw accuracy.
|
| 106 |
+
|
| 107 |
+
---
|
| 108 |
+
|
| 109 |
+
## 🔥 Correlation Analysis
|
| 110 |
+
|
| 111 |
+

|
| 112 |
+
|
| 113 |
+
**Key correlations:**
|
| 114 |
+
- Humidity ↔ Visibility: **–0.37** (negative — high humidity predicts low visibility)
|
| 115 |
+
- Wind Speed ↔ Visibility: **+0.10** (near-zero — they are **independent** risk factors)
|
| 116 |
+
- Temperature ↔ Apparent Temperature: **+0.99** (expected — nearly identical variables)
|
| 117 |
+
|
| 118 |
+
---
|
| 119 |
+
|
| 120 |
+
## 🔬 Research Questions & Findings
|
| 121 |
+
|
| 122 |
+
---
|
| 123 |
+
|
| 124 |
+
### Q1 · The Fog Trap
|
| 125 |
+
|
| 126 |
+
**Research Question:** To what extent does humidity serve as an indicator for non-operational mission status based on visibility?
|
| 127 |
+
|
| 128 |
+

|
| 129 |
+
*Left: Scatter plot of Humidity vs. Visibility with 4 km safety threshold · Right: KDE density of humidity by Mission Status*
|
| 130 |
+
|
| 131 |
+
**Finding:** A "Fog Trap" was identified at **90% humidity**. As humidity approaches 100%, visibility consistently crashes below the 4 km safety threshold — making humidity a primary **leading indicator** of mission grounding before conditions become critical.
|
| 132 |
+
|
| 133 |
+
---
|
| 134 |
+
|
| 135 |
+
### Q2 · Atmospheric Pressure Stability
|
| 136 |
+
|
| 137 |
+
**Research Question:** Does atmospheric pressure stability vary between operational and non-operational mission statuses?
|
| 138 |
+
|
| 139 |
+

|
| 140 |
+
*Left: Box plot — pressure spread by mission status · Right: Overlaid pressure distributions by mission status*
|
| 141 |
+
|
| 142 |
+
**Finding:** Non-operational missions show **higher pressure volatility** (std: 9.78 vs 7.29 for operational). Rapid pressure drops correspond to storm systems; high-pressure outliers indicate anticyclonic conditions. Pressure instability is a meaningful — if subtle — indicator of unsafe conditions.
|
| 143 |
+
|
| 144 |
+
---
|
| 145 |
+
|
| 146 |
+
### Q3 · The Wind Speed Ceiling
|
| 147 |
+
|
| 148 |
+
**Research Question:** To what extent can extreme wind speed variations predict a transition from operational to non-operational mission status?
|
| 149 |
+
|
| 150 |
+
 
|
| 151 |
+
*Left: Violin plot — wind speed by mission status · Right: Full dataset wind speed distribution*
|
| 152 |
+
|
| 153 |
+
**Finding:** A hard ceiling exists at **45 km/h** — beyond this, 100% of missions are Non-Operational. However, most non-operational events occur below 20 km/h, confirming **visibility is the dominant grounding factor**, not wind. Wind and visibility are independent (correlation: +0.10) — both must be monitored separately.
|
| 154 |
+
|
| 155 |
+
---
|
| 156 |
+
|
| 157 |
+
### Q4 · Categorical Weather Hazards
|
| 158 |
+
|
| 159 |
+
**Research Question:** To what extent does categorical weather data (Precipitation Type) serve as a reliable indicator for non-operational mission status?
|
| 160 |
+
|
| 161 |
+

|
| 162 |
+
*Left: Mission count by precipitation type · Right: Proportional grounding risk (%) per type*
|
| 163 |
+
|
| 164 |
+
**Finding:** While **Rain** is the most frequent hazard in absolute numbers, **Snow** carries a ~40% higher proportional grounding risk. Most common Non-Operational weather: Foggy. Most common Operational weather: Partly Cloudy. Snow is a disproportionate predictor despite lower frequency.
|
| 165 |
+
|
| 166 |
+
---
|
| 167 |
+
|
| 168 |
+
### Q5 · Seasonal Risk Patterns
|
| 169 |
+
|
| 170 |
+
**Research Question:** Does the risk of mission grounding follow a predictable seasonal pattern throughout the year?
|
| 171 |
+
|
| 172 |
+

|
| 173 |
+
*Left: Monthly grounding risk % (line chart) · Right: Normalized stacked bar — Operational vs. Non-Operational ratio by month*
|
| 174 |
+
|
| 175 |
+
**Finding:** The data reveals a dramatic **U-shaped seasonal curve**. January grounding rate: ~27%. December: highest risk. July: lowest risk. Winter missions are roughly **30× more likely** to be Non-Operational than summer missions — enabling data-driven strategic fleet planning.
|
| 176 |
+
|
| 177 |
+
---
|
| 178 |
+
|
| 179 |
+
## 💡 Key Insights
|
| 180 |
+
|
| 181 |
+
| Insight | Detail |
|
| 182 |
+
|---|---|
|
| 183 |
+
| 💨 **Wind & Visibility are independent** | Near-zero correlation — either alone can ground a mission. Monitor both separately. |
|
| 184 |
+
| 💧 **Humidity is an early warning signal** | Above 90%, visibility reliably drops below 4 km. Predict groundings before they happen. |
|
| 185 |
+
| ❄️ **Snow is disproportionately dangerous** | ~40% higher grounding risk than rain despite lower frequency. |
|
| 186 |
+
| 📅 **Seasonality is predictable** | December/January are ~30× riskier than July. Plan resources accordingly. |
|
| 187 |
+
|
| 188 |
+
---
|
| 189 |
+
|
| 190 |
+
## ⚠️ Limitations
|
| 191 |
+
|
| 192 |
+
- `Mission_Status` is **rule-based**, not naturally observed — engineered from predefined thresholds that may not capture all real-world operational nuance.
|
| 193 |
+
- Results reflect **associations**, not causal relationships.
|
| 194 |
+
- The **90/10 class imbalance** means future classifiers need careful metric selection (F1, precision-recall) and should consider resampling techniques.
|
| 195 |
+
- Some variables may be **indirectly related** through confounders — seasonality drives both temperature and humidity, which in turn influence visibility.
|
| 196 |
+
|
| 197 |
+
---
|
| 198 |
+
|
| 199 |
+
## 📝 Conclusion
|
| 200 |
+
|
| 201 |
+
This analysis demonstrates that aviation mission feasibility is strongly governed by environmental conditions. Through systematic data cleaning, distribution-aware outlier analysis, feature engineering, and five focused research questions, meaningful and actionable insights were derived from raw weather data.
|
| 202 |
+
|
| 203 |
+
Wind speed and visibility define hard safety boundaries; humidity serves as an early warning signal; pressure instability flags turbulent conditions; snow is a disproportionate categorical risk; and seasonality enables proactive operational planning. Together, these findings form a robust data-driven foundation for aviation safety decision-making.
|
| 204 |
+
|
| 205 |
+
---
|
| 206 |
+
|
| 207 |
+
*Weather in Szeged 2006–2016 · Kaggle Dataset · Python · Pandas · Matplotlib · Seaborn*
|