File size: 6,517 Bytes
f33a158 44c4357 f33a158 44c4357 39d46ee | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | # Classification — Leaned vs Straight vs Rejected
- This dataset contains real-world images of electric utility poles labeled into three classes: **"Leaned"**, **"Straight"**, and **"Rejected"**. It is designed for **image-level classification tasks**.
- The dataset complements a previously released object detection dataset focused on bounding-box annotations.
- This module fine-tunes a DINOv2 ViT-B/14 model for **image-level classification** of poles.
- GitHub repo link: [Here](https://github.com/EPDCL/Electrical-Lines-Defect-Detection/tree/main/Pole_LeanedStraight_Defect/Classification)
---
## Dataset Details
### Dataset Description
- **Task:** Image classification (multi-class)
- **Classes:** `Leaned`, `Straight`, `Rejected`
- **Image format:** `.jpg`
- **Label format:** Folder-based (one folder per class)
The images were collected by field linemen across three districts in Andhra Pradesh: **Visakhapatnam**, **Eluru**, and **Kakinada**. Each image was labeled by three annotators, with the final label selected via **majority vote**.
- **Curated by:** Sampath Balaji & team, at APEPDCL
- **Funded by:** Eastern Power Distribution Company of Andhra Pradesh Limited (APEPDCL)
- **License:** CC BY 4.0
- **Language(s):** Not applicable
## Uses
### Direct Use
This dataset is intended for training and evaluating machine learning models that classify pole alignment from real-world utility inspection photos.
### Out-of-Scope Use
- Surveillance, identity detection, or person-tracking
- Facial recognition or biometrics
- Applications requiring highly controlled camera perspectives
## Dataset Structure
The dataset is organized into pre-split folders:
```
Poles_LeanedStraight/Classification/
├── train/
│ ├── Leaned/
│ ├── Straight/
│ └── Rejected/
├── val/
│ ├── Leaned/
│ ├── Straight/
│ └── Rejected/
├── test/
│ ├── Leaned/
│ ├── Straight/
│ └── Rejected/
```
- `Rejected` indicates poles/images that were ambiguous or pole bottom or top was not visible or unusable for downstream tasks but still part of this classification problem.
- No augmentations were applied.
- Each split is approximately: **Train 75%**, **Val 15%**, **Test 10%**
## Dataset Creation
### Curation Rationale
This dataset was created to build an ML pipeline for real-time defect detection in utility poles, starting with identifying leaned poles as a foundational task. The aim is to build an electrical line quality monitoring system to revolutionize maintenance workflows.
### Source Data
#### Data Collection and Processing
Images were collected using mobile cameras by field linemen in Andhra Pradesh.
#### Image Capture Protocol
The images were captured on the ground by APEPDCL linemen following a field protocol designed to reduce bias and ensure consistency:
- Linemen were instructed to **hold the phone upright and parallel to the pole** to avoid tilt or skew that could distort the pole's perceived angle.
- Images were to include both the **top and bottom of the pole**, as full visibility is essential for lean classification.
- **No filters or enhancements** were applied during capture.
Despite this protocol, many images were captured with a **tilted horizon**, making it difficult to determine if a pole was leaned or not. Tools like **Google Photos** and **Adobe Lightroom** were used to **manually correct tilt** by straightening the horizon.
To prevent this in future data, the team identified an open-source camera app, **[Open Camera](https://opencamera.org.uk/)**, which uses the phone’s **gyroscope sensor to auto-straighten images**. This app is now recommended for field use to ensure more consistent alignment.
#### Observations and Future Protocol Improvements
During annotation, a key insight emerged:
- When images were taken **too close to the pole**, **perspective distortion** made it harder to determine pole alignment.
- Going forward, linemen will be instructed to **stand approximately one pole height away** to reduce distortion and improve labeling accuracy.
#### Who are the source data producers?
Electric linemen from APEPDCL working in Visakhapatnam, Eluru, and Kakinada districts of Andhra Pradesh, India.
### Annotations
#### Labeling Process
Images were individually labeled by 3 human labelers and saved in folder-based structure. **Majority vote** was used to determine the final class label. The team worked to maintain consistency, though **some labeling errors may persist due to the manual nature** of the task.
#### Who are the annotators?
The annotation team consisted of project members:
- Srija Vanapalli
- Krishna Sumwith
- Jyotsna Adari
Under the direction of the team lead.
#### Personal and Sensitive Information
No personal or sensitive data was intentionally included. However, some images may contain **people or faces captured incidentally** in public areas, as the data was collected in outdoor settings.
## Bias, Risks, and Limitations
- **Geographic bias:** All data comes from Andhra Pradesh, India — results may not generalize to other regions or environments.
- **Scene/perspective bias:** Variation in camera angles and distances may affect model training.
- **Privacy risk:** Images taken in public areas may contain identifiable people.
### Recommendations
- Apply **image normalization or augmentation** techniques to improve generalization.
- Account for **perspective and camera angle** effects during training and evaluation.
- Use ethically and responsibly, especially in systems that affect public infrastructure.
## Validation Accuracy
- Best Val Acc: 84.14%
- Hardware used: RTX 4070 Ti SUPER on [JOHNAIC](https://von-neumann.ai)
## Sample Visualizations
<p align="center"> <img src="https://raw.githubusercontent.com/sampath-balaji/Electrical-Lines-Defect-Detection/refs/heads/main/Pole_LeanedStraight_Defect/Classification/assets/val_viz_ep40.png" width="600"/> </p>
## More Information
Follow-up datasets in this series will include other electrical line and pole defects as part of APEPDCL's Line Quality monitoring project.
## Dataset Card Authors
- [Sampath Balaji](https://github.com/sampath-balaji)
## 📄 License
- [Code](https://github.com/sampath-balaji/EPDCL/tree/main/Pole_LeanedStraight_Defect/ObjectDetection): MIT License
- [Dataset](https://huggingface.co/datasets/EPDCL/Electrical-Lines-Defect-Detection/tree/main/Poles_LeanedStraight/Classification): CC BY 4.0 |