Skip to content

Pratyush-IITBHU/Automatic-Faults-Detection-of-Photovoltaic-Farms-using-Thermal-Images

Repository files navigation

Dronetech logo technex logo



Automatic Faults Detection of Photovoltaic Farms using Thermal Images


Drone Drone Drone

EXPLORATORY PROJECT

UNDER THE GUIDANCE OF PROFESSOR R.K. PANDEY
TEAM MEMBERS:
  • PRATYUSH SINGH
  • CHAHAK JETHANI
  • OM PRAKASH
Drone

Table of contents

  1. Abstract
  2. Introduction
  3. Model and Algorithm
  4. Types of Faults
  5. Results and Prediction scores

Abstract

  • Because of increasing demand of renewable energy, proper management of photovoltaic hubs is important. But fault detections in them is still a challenge. The main temperature consequenced faults can be detected using Thermal analysis of PV modules. In this paper we used YOLOv5 (YOU LOOK ONLY ONCE version 5) for detections, which is a novel state of art convolutional neural network (CNN) that detects objects in real-time with great accuracy. This approach uses a single neural network to process the entire picture, then separates it into parts and predicts bounding boxes and probabilities for each component. Using YOLOv5 we detected:

- **Photovoltaic array module** - **Single PV module** - **Faulted PV module (on the basis of temperature variation)**






.....................

  • This model will be used in UAV quadcopter for detections of faults in our campus. It will be uploaded using Ardu-mission planner in the Pixhawk and jetson-nano will be used as companion computer.

Introduction

Today renewable energy sources are revolutionising the sector energy generation and represents the only alternative to limit fossil fuel usage. Because of its increasing needs, this sector of renewables energy generation is to be managed in the way so as to fulfil the ever-increasing requirements and demands. The most common and widely used renewable source is photovoltaic (PV) power plants. Which is one of the main systems adopted to produce clean energy. Monitoring the state of health of its system machines and ensuring their proper working is essential for keeping maximum efficiency. However, due to tremendously large area of solar farms, present techniques are time demanding, cause stops to the energy generation, and often require laboratory instrumentation, thus being not cost-effective for frequent inspections. Moreover, PV plants are often located in inaccessible places, making any intervention dangerous.

So automated fault and error detections in solar plants is today among the most active subjects of research. In this paper, we have used YOLOv5 deep learning network for detections of solar panels and faults in thermal images of solar farm.

Since it is known that photovoltaic modules consist of PV cell circuits sealed in an environmentally protective laminate and are the fundamental building blocks of PV systems. Photovoltaic panels include one or more PV modules assembled as a pre-wired, field-installable unit. A photovoltaic array is the complete power-generating unit, consisting of any number of PV modules and panels. Irradiance and temperature are some of the factors that decide the efficiency of PV modules and hence can be used as parameters for fault detection in PV arrays. Irradiance is defined as the measure of the power density of sunlight received and is measured in watt per metre square. With the increasing solar irradiance both the open-circuit voltage and the short circuit current increase and hence the maximum power point varies. Temperature plays another major factor. As the temperature increases, the rate of photon generation increases thus reverse saturation current increases rapidly and this reduces the band gap. Hence this leads to marginal changes in current but major changes in voltage. Temperature acts like a negative factor affecting solar cell performance. Hence Temperature difference is used by us as main parameter for detection of faults, because defects and faults in PV modules and arrays almost always generate some temperature difference on the laminated semiconductor panel screen.

Equivalent circuit of a PV cell

Parameters of circuit

This temperature variation when taken as RGB 3-dim arrayed image matrix through thermal camera mounted on the UAV is used the feeding data for training of our YOLO model.

MODEL AND ALGORITHM

YOLOv5

YOLO an acronym for 'You only look once', is an object detection algorithm that divides images into a grid system. Each cell in the grid is responsible for detecting objects within itself. Today YOLO is one of the most famous object detection algorithms due to its speed and accuracy.

It uses a single neural network to process the entire picture, then separates it into parts and predicts bounding boxes and probabilities for each component. These bounding boxes are weighted by the expected probability. The method “just looks once” at the image in the sense that it makes predictions after only one forward propagation run through the neural network. It then delivers detected items after non-max suppression (which ensures that the object detection algorithm only identifies each object once).

Its architecture mainly consisted of three parts, namely:

  1. Backbone: Model Backbone is mostly used to extract key features from an input image. CSP(Cross Stage Partial Networks) are used as a backbone in YOLO v5 to extract rich in useful characteristics from an input image.

  2. Neck: The Model Neck is mostly used to create feature pyramids. Feature pyramids aid models in generalizing successfully when it comes to object scaling. It aids in the identification of the same object in various sizes and scales. Feature pyramids are quite beneficial in assisting models to perform effectively on previously unseen data. Other models, such as FPN, BiFPN, and PANet, use various sorts of feature pyramid approaches. PANet is used as a neck in YOLO v5 to get feature pyramids.

  3. Head: The model Head is mostly responsible for the final detection step. It uses anchor boxes to construct final output vectors with class probabilities, objectness scores, and bounding boxes.

YOLO ARCHITECTURE

  • YOLOv5 is specifically prefered above other YOLO version because YOLOv5 is about 88% smaller than YOLOv4 (27 MB vs 244 MB), It is about 180% faster than YOLOv4 (140 FPS vs 50 FPS) and is roughly as accurate as YOLOv4 on the same task (0.895 mAP vs 0.892 mAP).

  • It was released shortly after the release of YOLOv4 by Glenn Jocher using the Pytorch framework on 18 May 2020

  • Also YOLOv5 is also preferred over other detection models like R-CNN,Fast-RCNN and Faster-RCNN even though YOLO and Faster RCNN both share many similarities. They both uses a anchor box based network structure, both uses bounding both regression. Things that differs YOLO from Faster RCNN is that it makes classification and bounding box regression at the same time. Judging from the year they were published, it make sense that YOLO wanted a more elegant way to do regression and classification. YOLO however does have it’s drawback in object detection. YOLO has difficulty detecting objects that are small and close to each other due to only two anchor boxes in a grid predicting only one class of object. It doesn’t generalize well when objects in the image show rare aspects of ratio. Faster RCNN on the other hand, do detect small objects well since it has nine anchors in a single grid, however it fails to do real-time detection with its two step architecture.

Bounding boxes around detected objects

Dataset Preparations

The basic data used for this project is Photovoltaic thermal image dataset which was given to us by Robotics and Artificial Intelligence Department of Information Engineering Università Politecnica Delle Marche. For its collection, a thermographic inspection of a ground-based PV system was carried out on a PV plant with a power of approximately 66 MW in Tombourke, South Africa. The thermographic acquisitions were made over seven working days, from 21 to 27 January 2019 with the sky predominantly clear and with maximum irradiation. This situation is optimal to enhance any abnormal behaviour(faults) of entire panels or any specific portion .

Dataset contains 3 folders each containing 1009 images. 1st folder stores pre-processed thermal images taken by UAV copter, the 2nd folder contains the equivalent grayscale images of the same thermal image taken through copter, while 3rd folder contains masked image showing the separated single defected cells or contiguous sequence of faulty cells (string). Each folder contains images of size 512 X 640 pixels.

Drone Drone Drone


Drone Drone Drone


This data is modified in three different forms so as to obtain three different detection models for PV array, module and fault respectively. For YOLO to work we need bounding boxes around the object of consideration. YOLO need image along with the text file containing the coordinates of the bounding rectangle around the object of consideration. We made bounding boxes around the faulty cells and strings using the masked images provided to us. But for PV array and single cell detection we made bounding boxes using app.roboflow.com .
Drone

For PV array we made on an average 4 bounding boxes per image for about 200 images. And on an average 30 bounding boxes per image for 72 images for single PV cell detection.

  1. In depth specifications of the drone are here.
  2. To know more about the sensors used in the drone, click here

Predictions Made

Predictions are reasonably acceptable. Detections do not have any false positives in them.

       PV array detection

  • PV array detection has given the best results among all 3 detections during validations and testing. The model has almost perfect weights for PV array detection with an accuracy of.

Drone

       Single PV modeule detection

  • Single PV cell detection model predictions are also fairly accurate. However, sometimes it considers 2-3 PV modules as a single separated cell. And also sometimes leaves some boundary cells by not considering them as PV cells. Has accuracy of

Drone

       PV module with fault

  • Faulty cell detections are also accurate for single defected cells and contiguous sequences of defective cells (string). The model has accuracy of

Drone

Model Setup Requirements

Requirements Link(s)
Drone
python3
Drone
torch-python
Drone
pakages
Drone
Bounding box maker
Drone
Exploratory Repository

Initialisation

  1. Gitclone the repsitory in your system.

  2. Open command prompt or terminal with your your specific python environment and type pip install requirement.txt.

  3. Now place the test thermal image to the false colour folder.

  4. Open the detect_teen.py file and run it with your python interpretor.

  5. Results will be displayed on a scree and will be stored inside the runs folder.

Types of Faults

  • Physical Faults:

    • Soiling Fault:
      • Detection of Fault due to dirt(because of various reasons) could be done easily as it will be warmer as compared to its surrounding.
      • Could be detect if a local temperture variation is encountered while scanning.
    Drone

    • Diode Fault:
      • High Resistance or other defects at specific parts of Diode screen of the panel(ex: bending etc)
      • Can be detected if different spots of temperature variation are encountered within a single module

    Drone

  • Electrical Faults:

    Drone


    Drone



Drone

  • These above electrical faults moslty effect the whole PV array/string, hence the faults cooming in whole PV array can be considered as any of the electrical fault
  • These errors can be confirmend from the parameters we can obtain throgh the inverter like string currents,Rate of change of string current, Dimensionally reducted data(PCA) of various parameters etc.
  • Hence our further future works will based on the electrical fault detection using inverter parameters and ML models classifiers like SVM, k-nearest neigbour, random forest etc. And model with highest accuracy will be finalised.

Autonomous Drone Navigation

  • For making UAV quadcopter fully autonomous and capable of taking images on its own, we have simulated scripts in ROS(noetic and ubuntu 20.0) and Gazebo(version-10).

  • Drone URDF and plugins were made to test drone on simulation.


Drone

  • Navigation packages from ROS Navigation stack are added to Drone controller.Also Fine tuning mapping and navigating parameters is done for best results.

  • Obstacle avoidance and path planning packages are also added to drone.

Drone Drone Drone

  • However due to lack of thermal camera plugin in gazebo, complete testing on simulation of drone was done.

    Drone

Conclusion

In this paper, YOLOv5, a novel deep learning model is used for detecting faults in large-scale PV farms and plants. To achieve great results, improved Photovoltaic thermal image dataset was used along with proper hypertuned model. Proper detections are shown while code runs and results are properly saved.

Proposed model(in future) is to be deployed in jetson which will be used as a companion computer in our UAV Copter. Copter design is almost complete in simuation(except thermal camera).

Demo video can be seen from HERE

References

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages