MichaelYitzchak commited on
Commit
c1d2df7
·
verified ·
1 Parent(s): 6396a4f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +207 -55
README.md CHANGED
@@ -1,55 +1,207 @@
1
- 1. Project Overview
2
- This project analyzes a decade of atmospheric data to determine the specific environmental thresholds that dictate helicopter mission suitability. By engineering a Mission_Status target variable, we transition from raw weather observation to a predictive aviation safety model.
3
- 2. Dataset Description
4
- Source: Weather in Szeged 2006-2016 (Kaggle)
5
- Size: 96,453 Rows | 12 Features
6
- Key Features:
7
- Numeric: Wind Speed, Visibility, Temperature, Pressure, Humidity
8
- Categorical: Weather Summary, Date
9
- A new variable called Mission_Status was created:
10
- Operational → Safe conditions for flight
11
- Non-operational → Unsafe conditions for flight
12
- This variable is based on predefined thresholds:
13
- Low visibility
14
- High wind speed
15
- Operational: Visibility > 4km AND Wind Speed < 45km/h.
16
- Non-Operational: Any breach of the above safety thresholds.
17
- The dataset was cleaned using the following steps:
18
- Removed duplicate rows
19
- Handled missing values:
20
- Numeric columns → filled using median
21
- Categorical columns filled with "Missing"
22
- Identified and removed invalid values:
23
- Pressure values equal to zero were treated as sensor errors
24
- Standardized text fields for consistency
25
- Converted date column to datetime format
26
- Created new time-based features (e.g., month)
27
- Identified outliers and treated accordingly
28
- Exploratory Data Analysis (EDA)
29
- Q1: The Fog Trap (Humidity vs. Visibility)
30
- Research Question: To what extent does humidity serve as an indicator for non-operational mission status based on visibility?
31
- Finding: We identified a "Fog Trap" at 90% humidity. As humidity approaches 100%, visibility consistently crashes below our 4km safety threshold, making humidity a primary leading indicator of mission grounding.
32
- Q2: Atmospheric Pressure Stability
33
- Research Question: Does atmospheric pressure stability vary between operational and non-operational mission statuses?
34
- Finding: Non-operational missions are characterized by high pressure volatility and extreme anomalies. Operational flights, by contrast, occur within a significantly tighter and more stable pressure window.
35
- Q3: The Wind Speed Ceiling
36
- Research Question: To what extent can extreme wind speed variations be used to expect a transition from operational to non-operational mission status?
37
- Finding: There is a "Hard Ceiling" at 45 km/h. Beyond this point, the mission status is 100% Non-Operational. Interestingly, wind and visibility have a near-zero correlation, proving they are independent risk factors that must be monitored separately.
38
- Q4: Categorical Weather Hazards
39
- Research Question: To what extent does categorical weather data (Precipitation Type) serve as a reliable indicator for non-operational mission status?
40
- Finding: While Rain is the most frequent hazard, Snow carries a 40% higher proportional risk of grounding. This identifies Snow as a critical categorical predictor for fleet safety.
41
- Q5: Seasonal Risk Patterns
42
- Research Question: Does the risk of mission grounding follow a predictable seasonal pattern?
43
- Finding: The data reveals a dramatic U-shaped seasonal curve. Missions in December are 30 times more likely to be grounded than those in July, allowing for data-driven strategic fleet planning.
44
- Key Insights
45
- Wind speed and visibility are the most influential factors in mission feasibility
46
- Weather variables interact rather than acting independently
47
- Extreme conditions, although rare, are crucial for understanding operational limits
48
- Environmental conditions significantly impact aviation decision-making
49
- Limitations
50
- The target variable is rule-based, not naturally observed
51
- Results should not be interpreted as causal relationships
52
- Some variables may be indirectly related rather than directly influencing mission outcomes
53
- Conclusion
54
- This analysis demonstrates that aviation mission feasibility is strongly influenced by environmental conditions.
55
- By combining data cleaning, feature engineering, and exploratory analysis, meaningful insights can be derived from weather data to support operational decision-making.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ ![Distribution Shape Check](distribution_check.png)
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
+ ![Correlation Heatmap](correlation_heatmap.png)
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
+ ![Humidity vs Visibility](q1_humidity_visibility.png)
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
+ ![Pressure Stability](q2_pressure_stability.png)
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
+ ![Wind Speed Violin](q3_wind_violin.png) ![Wind Speed Histogram](q3_wind_histogram.png)
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
+ ![Precipitation Risk](q4_precipitation.png)
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
+ ![Seasonal Risk](q5_seasonal.png)
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*