Bashifu commited on
Commit
d3d0a0f
·
verified ·
1 Parent(s): 575e348

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,125 +1,15 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: incident_id
5
- dtype: string
6
- - name: flight_id
7
- dtype: string
8
- - name: dataset_kind
9
- dtype: string
10
- - name: window_index
11
- dtype: int64
12
- - name: window_seconds
13
- dtype: int64
14
- - name: flight_phase
15
- dtype: string
16
- - name: fault_class
17
- dtype: string
18
- - name: flight_fault_class
19
- dtype: string
20
- - name: severity
21
- dtype: string
22
- - name: severity_ordinal
23
- dtype: int64
24
- - name: severity_score
25
- dtype: float64
26
- - name: active_mechanisms_json
27
- dtype: string
28
- - name: active_families_json
29
- dtype: string
30
- - name: scheduled_events_json
31
- dtype: string
32
- - name: fault_onset_window
33
- dtype: int64
34
- - name: is_compound
35
- dtype: bool
36
- - name: domain_shift
37
- dtype: bool
38
- - name: source_type
39
- dtype: string
40
- - name: approved_mitigation
41
- dtype: string
42
- - name: approved_inspection
43
- dtype: string
44
- - name: physics_validation_status
45
- dtype: string
46
- - name: action_training_eligible
47
- dtype: bool
48
- - name: consequence_control
49
- dtype: float64
50
- - name: consequence_power
51
- dtype: float64
52
- - name: consequence_navigation
53
- dtype: float64
54
- - name: consequence_altitude
55
- dtype: float64
56
- - name: altitude_mean_m
57
- dtype: float64
58
- - name: commanded_speed_mean_mps
59
- dtype: float64
60
- - name: voltage_mean_v
61
- dtype: float64
62
- - name: voltage_min_v
63
- dtype: float64
64
- - name: voltage_slope_v_s
65
- dtype: float64
66
- - name: current_mean_a
67
- dtype: float64
68
- - name: motor_output_mean
69
- dtype: float64
70
- - name: motor_output_std
71
- dtype: float64
72
- - name: motor_imbalance
73
- dtype: float64
74
- - name: accel_rms_g
75
- dtype: float64
76
- - name: gyro_rms_dps
77
- dtype: float64
78
- - name: attitude_error_mean_deg
79
- dtype: float64
80
- - name: vibration_rms_g
81
- dtype: float64
82
- - name: gps_satellites_mean
83
- dtype: int64
84
- - name: gps_hdop_mean
85
- dtype: float64
86
- - name: position_innovation_mean_m
87
- dtype: float64
88
- - name: baro_altitude_std_m
89
- dtype: float64
90
- - name: altitude_residual_mean_m
91
- dtype: float64
92
- - name: vertical_speed_error_mean_mps
93
- dtype: float64
94
- - name: wind_estimate_mean_mps
95
- dtype: float64
96
- - name: qwen_source_evidence_json
97
- dtype: string
98
- - name: evidence_hash
99
- dtype: string
100
- - name: symptom_report
101
- dtype: string
102
- - name: report_generation_method
103
- dtype: string
104
- - name: report_validator_pass
105
- dtype: bool
106
- - name: report_retry_count
107
- dtype: int64
108
- - name: report_model
109
- dtype: string
110
- - name: report_model_revision
111
- dtype: string
112
- - name: prompt_version
113
- dtype: string
114
- splits:
115
- - name: benchmark
116
- num_bytes: 13946536
117
- num_examples: 10500
118
- - name: challenge
119
- num_bytes: 4237903
120
- num_examples: 3500
121
- download_size: 5678523
122
- dataset_size: 18184439
123
  configs:
124
  - config_name: default
125
  data_files:
@@ -128,3 +18,155 @@ configs:
128
  - split: challenge
129
  path: data/challenge-*
130
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ pretty_name: UAV Fault Symptom Reports (synthetic)
5
+ size_categories:
6
+ - 10K<n<100K
7
+ task_categories:
8
+ - text-classification
9
+ tags:
10
+ - synthetic
11
+ - uav
12
+ - telemetry
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  configs:
14
  - config_name: default
15
  data_files:
 
18
  - split: challenge
19
  path: data/challenge-*
20
  ---
21
+
22
+ # UAV Fault Symptom Reports
23
+
24
+ A synthetic dataset of UAV flight telemetry paired with operator-style symptom reports written by a
25
+ language model. Each row is one five-second window of a flight: 20 telemetry channels, the fault
26
+ class, a severity derived from simulated consequences, and a one-sentence report.
27
+
28
+ | split | rows | flights | model-written reports | unique reports |
29
+ | --- | --- | --- | --- | --- |
30
+ | benchmark | 10,500 | 2,100 | 91.5% | 82.6% |
31
+ | challenge | 3,500 | 700 | 94.7% | 91.9% |
32
+
33
+ **benchmark** is balanced across seven classes (six fault families plus normal).
34
+ **challenge** is harder: mostly normal flights, random fault onset, and some flights with two faults.
35
+
36
+ ## How it was generated
37
+
38
+ 1. A mechanistic simulator produces telemetry from sampled aircraft, battery, sensor and
39
+ environment state. Fault events change those latent parameters, never the telemetry directly.
40
+ 2. Labels are read from the event log afterwards, so the fault class never builds the telemetry.
41
+ 3. Facts are derived from the telemetry against fixed thresholds.
42
+ 4. `Qwen/Qwen2.5-0.5B-Instruct` rewrites those facts as an operator report, using a
43
+ system prompt, few-shot examples, a JSON output format and explicit constraints.
44
+ 5. Every report is validated: length, no numbers, no diagnosis, no actions, no inferred causes, no
45
+ signals the model was not given, no chat-style text. Failures are retried twice, then replaced
46
+ by a templated sentence built from the same facts.
47
+
48
+ The model never sees the fault class, the severity or the recommended action.
49
+
50
+ ## Exploratory data analysis
51
+
52
+ ### Instruction-following failures
53
+
54
+ 91.5% of reports were written by the model and accepted. The rest failed
55
+ validation three times. Rejection reasons across all attempts:
56
+
57
+ | reason | rejections | share_of_attempts |
58
+ |:------------------------------------|-------------:|--------------------:|
59
+ | Too short / too long | 2642 | 0.192 |
60
+ | Inferred a cause | 1208 | 0.088 |
61
+ | Other | 271 | 0.02 |
62
+ | Mentioned a signal it was not given | 216 | 0.016 |
63
+ | Ignored the given signals | 147 | 0.011 |
64
+ | Invented a number | 61 | 0.004 |
65
+ | Named a diagnosis | 1 | 0 |
66
+
67
+ ![Why model outputs were rejected](figures/e2_rejection_reasons.png)
68
+
69
+ *Why model outputs were rejected*
70
+
71
+ ![Model-written share per fault class](figures/e1_model_share_by_class.png)
72
+
73
+ *Model-written share per fault class*
74
+
75
+
76
+ ### Hallucination
77
+
78
+ Accepted reports naming a signal they were not given: **0**. The validator blocks these.
79
+ 31.6% of accepted reports add no content word beyond their facts.
80
+
81
+ ### Inconsistency between text and label
82
+
83
+ Each report describes one five-second window, and never sees the label. **36.4%** of fault
84
+ windows show no threshold crossing and are described as steady; **15.8%** of normal
85
+ windows cross one during ordinary manoeuvres and are described as irregular. These rows are where
86
+ the text alone cannot identify the fault.
87
+
88
+ ![How each class is described by its text](figures/e4_text_vs_label.png)
89
+
90
+ *How each class is described by its text*
91
+
92
+ ![Reports in TF-IDF space, coloured by class](figures/e8_tfidf_pca.png)
93
+
94
+ *Reports in TF-IDF space, coloured by class*
95
+
96
+
97
+ ### Duplication, and how the EDA changed the generation
98
+
99
+ The first full run had **42.8%** duplicate reports. The cause was the input:
100
+ the evidence builder drew from a small fixed pool of facts, which capped how many different reports
101
+ were possible. Widening the evidence phrasings brought duplicates down to
102
+ **17.4%**. Counting reports that differ only in word order or function
103
+ words as the same, the near-duplicate rate is
104
+ **25.9%**.
105
+
106
+ ![First run vs. final run](figures/f_first_vs_final_run.png)
107
+
108
+ *First run vs. final run*
109
+
110
+
111
+ ### Text statistics
112
+
113
+ ![Words per report](figures/e6_report_length.png)
114
+
115
+ *Words per report*
116
+
117
+ ![Top content words and Zipf plot](figures/e7_word_frequency.png)
118
+
119
+ *Top content words and Zipf plot*
120
+
121
+ ![Word cloud](figures/e7_wordcloud.png)
122
+
123
+ *Word cloud*
124
+
125
+ ![Signal families mentioned together](figures/e7_cooccurrence.png)
126
+
127
+ *Signal families mentioned together*
128
+
129
+
130
+ ### Telemetry
131
+
132
+ Severity is scored per window, so it can escalate within a flight:
133
+ **43.6%** of flights change severity across their five windows, and
134
+ 92.5% of those only escalate.
135
+
136
+ ![Telemetry correlations](figures/correlation_heatmap_readable.png)
137
+
138
+ *Telemetry correlations*
139
+
140
+ ![Similarity between fault signatures](figures/rq2_ranked_fault_signature_similarity.png)
141
+
142
+ *Similarity between fault signatures*
143
+
144
+ ![Persistence of fault evidence across windows](figures/rq6_persistence_by_fault_and_severity.png)
145
+
146
+ *Persistence of fault evidence across windows*
147
+
148
+
149
+ ### Flagged issues
150
+
151
+ | issue | type | rows affected | share of rows | handling |
152
+ |:--------------------------------------------------------------------------|:-------------------------------|----------------:|----------------:|:----------------------------------------------------------------------------------------|
153
+ | Model failed its instructions and fell back to a template | instruction following | 896 | 0.085 | Kept, labelled canonical_grounded_fallback; the sentence states the same facts |
154
+ | Accepted report names a signal it was not given | hallucination | 0 | 0 | Blocked by the validator before acceptance |
155
+ | Fault window described as steady operation | inconsistency (text vs. label) | 2785 | 0.265 | Intended: the fault was not visible in that window. Flagged for the recommendation step |
156
+ | Normal window described as irregular | inconsistency (text vs. label) | 201 | 0.019 | Intended: ordinary manoeuvres cross thresholds. Flagged for the recommendation step |
157
+ | Exact duplicate report text | duplication | 1823 | 0.174 | Reduced from the first run by widening the evidence (Part F) |
158
+ | Near-duplicate report text (differs only in word order or function words) | duplication | 2719 | 0.259 | Flagged; each row still carries its own telemetry, but the text adds little on its own |
159
+ | Chat residue in a report | instruction following | 0 | 0 | Blocked by the validator |
160
+
161
+ ## Limitations
162
+
163
+ - The simulator is a transparent mechanistic prototype, not a validated flight-dynamics model.
164
+ - Severity is a declared academic rubric, not a certified safety scale.
165
+ - `approved_mitigation` and `approved_inspection` are fixed academic placeholders, one per fault
166
+ family; they are not maintenance procedures.
167
+
168
+ ## Files
169
+
170
+ - `01_synthetic_data_generation.ipynb` - the generator
171
+ - `02_dataset_and_eda.ipynb` - this analysis
172
+ - `manifest.json` - seed, model revision, row counts and SHA-256 of each file
figures/correlation_heatmap_readable.png ADDED

Git LFS Details

  • SHA256: 914331c5f053a6437f380bae6ed350d4c406eed105ab26da88c070d91ada2799
  • Pointer size: 131 Bytes
  • Size of remote file: 167 kB
figures/e1_model_share_by_class.png ADDED

Git LFS Details

  • SHA256: 2e16033ff175a3c7fe27fe4423bc930e9372802f011c6d1e75d51d8c8db98681
  • Pointer size: 130 Bytes
  • Size of remote file: 53.5 kB
figures/e2_rejection_reasons.png ADDED

Git LFS Details

  • SHA256: 03a4e8a5ddca5a86d1e8d7404376be754193c1e2f27ae96fa4581bfabaafb043
  • Pointer size: 130 Bytes
  • Size of remote file: 54.7 kB
figures/e4_text_vs_label.png ADDED

Git LFS Details

  • SHA256: b53c3157fbf84dab474bc2ca26149a9b0ef75cfb3045f5404ba83d0ca427f17b
  • Pointer size: 130 Bytes
  • Size of remote file: 65.9 kB
figures/e6_report_length.png ADDED

Git LFS Details

  • SHA256: 4db548a61544468a7f5a53763aee17587b5fea6bbea09232ac41cba6120cefd5
  • Pointer size: 130 Bytes
  • Size of remote file: 88.3 kB
figures/e7_cooccurrence.png ADDED

Git LFS Details

  • SHA256: 226d079e8edc2a16a797c689e9f96534698ad7008e4b99b0922bbb1caf3ed9b2
  • Pointer size: 131 Bytes
  • Size of remote file: 105 kB
figures/e7_word_frequency.png ADDED

Git LFS Details

  • SHA256: 27715fe5dc1c1741fae272a9df2cd59113a145738f6fcb576fac3b9558ab074f
  • Pointer size: 131 Bytes
  • Size of remote file: 101 kB
figures/e7_wordcloud.png ADDED

Git LFS Details

  • SHA256: 3746572fd8f6e4891087ef7c103495372d69e6c472e929787639e42055b42882
  • Pointer size: 131 Bytes
  • Size of remote file: 931 kB
figures/e8_tfidf_pca.png ADDED

Git LFS Details

  • SHA256: 220ce1bd15eb6b32ed4db74a51d7bd43901161f2c1f0572f45d655a4c95ed9e5
  • Pointer size: 131 Bytes
  • Size of remote file: 395 kB
figures/f_first_vs_final_run.png ADDED

Git LFS Details

  • SHA256: 4b29a630683e29162fec1b47f4eb1c3898487acb2d0a29933deeba1021266410
  • Pointer size: 130 Bytes
  • Size of remote file: 36.3 kB
figures/rq2_ranked_fault_signature_similarity.png ADDED

Git LFS Details

  • SHA256: cbd66a7a57deec5f2ea36e0147111f4e39d7a1d7621d0ca0b40908bfd8d666ba
  • Pointer size: 131 Bytes
  • Size of remote file: 115 kB
figures/rq6_persistence_by_fault_and_severity.png ADDED

Git LFS Details

  • SHA256: e5657ca0b0a32cf30f9ebfafd8b0b743724f17f9d6ce5f5587a61a923db2ede6
  • Pointer size: 130 Bytes
  • Size of remote file: 84.7 kB