You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/electrical_fault/readme.md
+21-6Lines changed: 21 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,10 @@ The Electrical Fault Dataset is a multivariate time series dataset. It is obtain
8
8
9
9
The fault can be Line-to-line, Line-to-ground, Line-to-line-to-ground and more. Line-to-line (LL) fault is a fault between two phase conductors (e.g., A-B). This typically appears as a short-duration high-energy event affecting particular frequency bins. Line-to-ground (LG) fault: a fault between a phase conductor and ground. Pattern differs from LL faults and can be identified using combinations of voltage and current measurements. LLG / LLLG: multi-conductor faults involving two or three lines and possibly ground. These create distinct signatures across voltage and current channels.
10
10
11
+
Users can choose between two dataset options, each processed by a different script to produce a distinct output file:
12
+
-**2-class dataset** (`detect_dataset.xlsx`): Processed by `electrical_fault.py` to create `electrical_fault_dataset.zip` for fault detection (binary classification - fault vs no fault)
13
+
-**6-class dataset** (`classData.csv`): Processed by `electrical_fault_6class.py` to create `electrical_fault_6class_dataset.zip` for fault type classification (6 fault types based on G,C,B,A combinations)
@@ -21,26 +25,37 @@ There are two dataset files present in the compressed zip: [electrical_fault_raw
21
25
- There are 4 target variables i.e G (Ground), C (Node C), B (Node B), A (NodeA). The value of each target is either 0 or 1.
22
26
- Examples [G, C, B, A]:
23
27
-[0, 0, 0, 0] means No Fault
28
+
-[0, 1, 1, 0] means LL Fault btw Node B and Node C
29
+
-[0, 1, 1, 1] means LLL Fault btw all Nodes
24
30
-[1, 0, 0, 1] means LG Fault btw Ground and Node A
25
-
-[0, 0, 1, 1] means LL Fault btw Node A and Node B
26
31
-[1, 0, 1, 1] means LLG Fault btw Node A, Node B and Ground
27
-
-[0, 1, 1, 1] means LLL Fault btw all Nodes
28
32
-[1, 1, 1, 1] means LLLG Fault btw all Nodes and Ground
29
33
30
-
For this example we will be using `detect_dataset.xlsx` to detect whether there is electrical fault or not.
34
+
Depending on the dataset chosen, users can either detect whether there is an electrical fault (binary classification) or classify the type of fault (6-class classification).
31
35
32
36
## Downloading dataset
33
37
34
-
Prepare the zipped dataset by running the electrical_fault python file. The script will create zipped dataset as `electrical_fault_dataset.zip`.
38
+
Users can prepare the zipped dataset using either of two python scripts, depending on which dataset they want to use:
39
+
40
+
**For 2-class dataset (fault detection):**
35
41
```bash
36
42
cd examples/electrical_fault
37
43
python electrical_fault.py
38
44
```
39
-
The path of this zipped dataset file is already mentioned in [configuration](config.yaml) yaml, make sure it is same.
45
+
This creates `electrical_fault_dataset.zip`
46
+
47
+
**For 6-class dataset (fault type classification):**
48
+
```bash
49
+
cd examples/electrical_fault
50
+
python electrical_fault_6class.py
51
+
```
52
+
This creates `electrical_fault_6class_dataset.zip`
53
+
54
+
The path to the appropriate zipped dataset file should be mentioned in [configuration](config.yaml) yaml under `dataset.input_data_path`, make sure it matches the script you ran.
0 commit comments