An Intelligent CrackNet-Based Solar Panel Crack Detection System Using Non-Linear Edge Features and Probability Incorporated Morphological Segmentation Approach

An Intelligent CrackNet-Based Solar Panel Crack Detection System Using Non-Linear Edge Features and Probability Incorporated Morphological Segmentation Approach

T. Suganya Thevi* | C. Chitr

Electronics and Communication Engineering, PSNA College of Engineering and Technology, Dindigul 624622, India

Corresponding Author Email: 
suganyaathevi@gmail.com
Page: 
2539-2552
|
DOI: 
https://doi.org/10.18280/ts.430533
Received: 
4 July 2026
|
Revised: 
4 August 2026
|
Accepted: 
26 August 2026
|
Available online: 
31 October 2026
| Citation

© 2026 The authors. This article is published by IIETA and is licensed under the CC BY 4.0 license (http://creativecommons.org/licenses/by/4.0/).

OPEN ACCESS

Abstract: 

The detection of cracks in larger solar panel areas is identified as a critical task due to their complex patterns. The main objective of this research work is to identify the critical cracks in solar panel images to increase energy efficiency. In this research work, the Solar Panel Crack Detection (SPCD) system is proposed using edge pattern features and a deep learning model. It proposes an efficient approach for classifying the solar panel images into either Non-Cracked Region (NCR) panel image or Cracked Region (CR) panel image using the proposed CrackNet deep learning model. The Solar Panel (SP) image has been preprocessed by a data augmentation method, and then a Fuzzy-incorporated Edge Boundary Detection (FEBD) algorithm has been proposed to detect the edge boundaries in the preprocessed SP image. The Edge Features have been further computed from the edge boundary-detected image and these features are given into the proposed CrackNet deep learning model along with the Training Matrix (TM) which is obtained through the training process, to produce the classification outcomes as either an NCR image or CR image. This proposed CrackNet model differs from the traditional deep learning model based on the internal feature production layer configuration. This difference contributes to improved classification performance. Then, the Probability based Morphological Segmentation (PMS) Algorithm has been proposed to locate the crack pixels in the solar panel image. The entire proposed method has been tested and verified on two solar panel imaging datasets RoboFlow (RF) and SKP. The average Solar Panel Classification Index (SPCI) of the solar panel images in RoboFlow (RF) and Solar Panel Kaggle (SPK) dataset is about 99.1% and 99.05%, respectively. The performance of the proposed CrackNet+PMS method for the SPCD system has been analyzed with respect to the parameters Crack Segmentation Precision (CSP), Crack Segmentation Recall (CSR), Crack Segmentation Accuracy (CSA), Crack Segmentation Specificity (CSS), Jaccard Index Accuracy (JIA) and Matthews Correlation Coefficient (MCI). All the experimental results are compared with other similar recent methodologies to validate the effectiveness of the proposed SPCD system.

Keywords: 

solar panels, cracks, features, edges, classifications

1. Introduction

At present, all over the world, energy utilization and its demand are increasing day by day among large consumers. Energy generation is entirely dependent on coal, crude oil, and natural gas. This conventional production generates harmful emissions, and it threatens the environment and leads to global warming. The environmental changes are severely formed in all over the world due to this global warming effect. In order to overcome such limitations in conventional energy production methods, there is a need for renewable energy resources, and it is important to satisfy the energy requirements [1, 2]. The renewable energy sources are categorized into wind energy systems, solar energy systems, and geothermal energy systems. Among these renewable energy productions, the solar energy system plays an important and significant role in the production of large units of energy all over the world due to the availability of sunlight [3]. This renewable energy system also requires minimum functional and operating costs, and hence the solar energy system has been considered in this research work. The solar panels laid in a large open area receive direct sunlight and convert it into electrical energy [4]. Nowadays, most of the commercial buildings, along with residential apartments and agricultural platforms, use solar panels to obtain electrical energy. The energy production in solar panels is often affected by electrical damage, cracks, dust (which reduces light absorption), and thermal variations [5, 6]. The cracks in solar panels may lead to limit energy production and also lead to entire panel failure. Hence, it is important to pay attention to energy optimization.

One of the most important issues is cracks in solar panels, which directly affect power generation efficiency and in time can result in the failure of the panels. Any minor micro-cracks can interrupt the current flow and lead to localized heating, which will promote the degradation of the panels [7]. However, for large-scale solar plants, undetected cracks can lead to significant energy losses, maintenance expenses, and shortened Photovoltaic (PV) system lifespan. The traditional solar panel inspection methods are primarily based on manual monitoring and traditional image processing techniques. These methods are time-consuming, labor-intensive, labor intensive and require a high level of expertise [8]. Furthermore, conventional systems have low accuracy in detecting the target in different environments, including non-uniform illumination, dust, reflection, and shadow effects. In real-time applications, they also have a poor ability to detect fine micro-cracks and complex damage patterns [9]. Intelligent crack detection and decision-making methods play a vital role in making efficient energy management and sustainable use for long-term in modern solar power generation systems. Figure 1 shows the cracked solar panel image, which is obtained through the camera mounted on the drone.

Figure 1. Solar panel image showing the minor cracks which affect the energy production and lead to panel failure

In this research, the development progresses from traditional image processing methods for solar panel inspection to the proposed deep learning integrated vision models for identifying cracks on solar panel images. The traditional image processing methods are mainly based on morphological algorithms, handcrafted feature extraction procedures, and filtering approaches. These methods fail when the cracks on solar panel images have low contrast and irregular shapes, and the detection accuracy is also affected by environmental illumination conditions [10]. These limitations in the existing traditional solar panel crack detection methods have been overcome by involving the automated feature computation procedure with the deep learning model. These methods are most suitable for detecting cracks with different irregular shape and sizes under poor illumination conditions. Moreover, large-scale crack detection in solar panel images is time-consuming in traditional image processing methods. Such time-consuming procedures have been replaced by developing deep learning models to identify cracked solar panel images in large-scale environments. Recently, EfficientNet, Transformer models, and YOLO deep learning models were developed to increase crack detection accuracy with respect to various environmental illumination conditions. These developed models improved the solar panel crack detection efficiency using automated feature computation facilities.

The following points show the functional contributions of this research work.

•To implement data augmentation functions on the training solar panel images to avoid overfitting and class imbalance issues.

•To detect the edge boundaries using fuzzy based edge detection algorithm that detects both thick and thin types of edge pixels in the solar panel images.

•To compute the non-linear external edge features from the edge-detected solar panel images.

•To propose a novel CrackNet deep learning model to classify the solar panel image into either NCR or CR using the non-linear external edge features.

•To propose a novel Probability based Morphological Segmentation (PMS) algorithm for locating and segmenting the crack region of pixels in the classified CR panel images.

The novelties of this research work are also stated below.

The proposed research work is a novel framework for Crack detection using CrackNet deep learning model, which is specifically developed and designed to improve the accuracy and efficiency of crack region classification and computational complexity in renewable energy monitoring systems. The proposed CrackNet deep learning model includes modules of parallel internal processing, which allows for simultaneous operations of non-linear pattern feature extraction. This parallel architecture decreases the classification time and also enhances computing efficiency in comparison with traditional sequential deep learning architectural models. The proposed CrackNet model has the ability to enhance the classification performance by learning the crack-related features in an automated way by using deep learning techniques, which makes the NCR and CR classification more accurate.

This research paper has been multi-sectioned, whereas Section 2 deploys various traditional solar panel image classification methods and their crack region detection and segmentation results on various solar imaging datasets; Section 3 proposes a novel CrackNet deep learning model and PMS algorithm for classifying the solar panel images, Section 4 states and describes the experimental results along with its detailed analysis; and the conclusion and future directions are depicted in Section 5.

2. Literature Survey

This section elaborates on various conventional solar panel image classification methods and their crack region detection and segmentation results on various solar imaging datasets. The limitations and merits of each conventional method were analyzed and reported in this section.

Perarasi et al. [11] proposed a high-performance deep learning CNN model for identifying cracked solar panel images from healthy case solar panel images. The hyperparameter optimization in this model enhanced the classification accuracy of both cracked and healthy case solar panel images. The minor crack pixels were also identified and located in this work using the segmentation algorithm, and the segmented crack region of pixels was compared with manually annotated images. The authors attained 97.11% CSP, 97.03% CSR, 97.12% CSA, 97.14% CSS, 97.18% JIA, and 97.64% MCI for RoboFlow (RF) dataset. The authors attained 97.29% CSP, 97.17% CSR, 97.12% CSA, 97.23% CSS, 97.56% JIA, and 97.16% MCI for SPK dataset. Abdelsattar et al. [12] located minor crack regions of pixels in solar panel images using the conventional CNN model. The ResNet CNN model was used to find the cracked solar panel image, and then the region of minor cracked pixels was located using the morphology-based segmentation framework. The region of cracked pixels was optimized by varying the dilation and erosion parameters with a variable disk-shaped structuring element. The pre-processing method was applied to the input solar panel images to enhance the internal regions for accurately detecting the cracks and damages. The authors attained 97.08% CSP, 96.47% CSR, 96.29% CSA, 96.25% CSS, 96.76% JIA, and 96.16% MCI for RF dataset. The authors attained 96.76% CSP, 96.87% CSR, 96.45% CSA, 96.98% CSS, 97.13% JIA, and 96.82% MCI for the SPK dataset.

Karakan et al. [13] classified the solar panel images into three distinct classes as intact, damaged, and cracked for improving the performance efficiency of the renewable energy system. The proposed method was applied to two types of solar panel images with respect to Monocrystalline and polycrystalline to identify damage and cracks. The distance between the drone camera and the solar panels was varied and based on these distance variations, the performance efficiency of the proposed work was estimated and analyzed in this work. The authors attained 96.27% CSP, 96.10% CSR, 96.21% CSA, 96.11% CSS, 96.13% JIA, and 96.11% MCI for the RF dataset. The authors attained 96.15% CSP, 96.16% CSR, 96.12% CSA, 96.16% CSS, 96.87% JIA and 95.17% MCI for the SPK dataset.

Jia et al. [14] proposed a system for detecting defective solar panels in the captured videos using deep learning-based segmentation models. The proposed Convolutional Neural Networks (CNN) model incorporated standard and dilated convolutional layers to increase the generated feature maps for improving the classification accuracy of the developed solar panel image classification system. The heat maps were also generated for the segmented cracked regions and the resultant images were compared with the manually annotated cracked solar panel images in this work. The authors attained 96.05% CSP, 95.92% CSR, 95.29% CSA, 95.02% CSS, 95.76% JIA, and 95.27% MCI for the RF dataset. The authors attained 95.76% CSP, 95.92% CSR, 95.97% CSA, 95.87% CSS, 96.16% JIA, and 94.74% MCI for SPK dataset. Acikgoz et al. [15] constructed a novel CNN algorithm, the Residual-Inception Network (RIN), for differentiating non-cracked solar panel images and cracked solar panel images. The conventional max-pool algorithm in the RIN model was replaced by the novel pyramid pooling algorithm to reduce the solar panel classification time period. The authors attained 95.19% CSP, 95.47% CSR, 95.12% CSA, 95.27% CSS, 95.15% JIA, and 95.09% MCI for RF dataset. The authors attained 95.27% CSP, 95.12% CSR, 95.72% CSA, 95.12% CSS, 95.72% JIA and 93.28% MCI for SPK dataset. Al-Otum [16] classified the acquired solar panel images into multi-classes using ResNet CNN architectural framework. The class imbalance was reduced by applying the augmentation model to the training dataset solar panel images. The multi-class outputs were obtained, and their performance was improved using the hyper-parameters optimization method in this work. The authors attained 94.82% CSP, 94.12% CSR, 94.09% CSA, 94.65% CSS, 94.17% JIA, and 94.17% MCI for RF dataset. The authors attained 94.09% CSP, 94.92% CSR, 94.76% CSA, 95.10% CSS, 95.13% JIA, and 93.18% MCI for SPK dataset.

Table 1 shows the detailed conventional method analysis for the solar panel crack detection system.

Table 1. Detailed conventional method analysis for solar panel crack detection system

Authors

Input Characteristics

Network Structure

Datasets

Segmentation Capability

Computational Complexity

Perarasi et al. [11]

RGB images

Deep learning CNN model

RF and SPK

No

Moderate

Abdelsattar et al. [12]

RGB images

ResNet CNN model

RF and SPK

Limited

Moderate

Karakan et al. [13]

EL images

VisualNet CNN model

RF and SPK

Limited

Moderate

Jia et al. [14]

EL images

Deep learning CNN model

RF and SPK

Partial

High

Acikgoz et al. [15]

RGB images

Residual-Inception Network

RF and SPK

Limited

Moderate

Al-Otum [16]

RGB images

ResNet CNN model

RF and SPK

Limited

Moderate

Note: RGB = Red, Green, or Blue; CNN = Convolutional Neural Networks; RF = Robo Flow; SPK = Solar Panel Kaggle; EL = Electroluminescence.

The problem statement of this research work is stated below.

Traditional solar panel crack and damage detection systems mainly consist of manual visual inspection and conventional image processing technologies. However, they are limited in their detection accuracy, require high dependence on human expertise, are sensitive to illumination changes, and cannot effectively detect micro-level cracks. The traditional methods are based on handcrafted feature extraction and threshold-based methods of segmentation, which do not work well in complex defect patterns under real-world operating conditions. High false positive and false negative rates decrease the reliability of the defect identification systems. Moreover, the conventional methods are not intelligent, do not have auto-decision making ability and are not adaptable to new defect patterns.

3. Proposed Methodology

This research article proposes an efficient approach for classifying the solar panel images into either NCR panel images or CR panel images using the proposed CrackNet deep learning model. The SP image has been preprocessed using a data augmentation method, and then the FEBD algorithm has been proposed to detect the edge boundaries in the pre-processed SP image. The Edge Features have been further computed from the edge boundary detected image and these features are given into the proposed CrackNet deep learning model along with the TM, which is obtained through the training process, to produce the classification outcomes as either NCR image or CR image. Then, the PMS Algorithm has been proposed to locate the crack pixels in the solar panel image. Figure 2(a) shows the training modules for healthy and crack case solar panel images using the proposed CrackNet model to produce TM, and Figure2(b) shows the testing framework for performing the classification of the solar panel images into either crack or healthy case using the proposed CrackNet model and segmenting the crack pixels using the proposed PMS Algorithm.

Figure 2. Overall classification model, (a) training modules for healthy and crack case solar panel images using the proposed CrackNet model to produce the TM, (b) testing framework for performing the classification of the solar panel images into either crack or healthy case using the proposed CrackNet model and segmenting the crack pixels using the proposed Probability based PMS Algorithm
Note: TM = Training Matrix; PMS = Probability Segmentation Algorithm.

3.1 Pre-processing

All acquired solar panel images are converted into a fixed size 256 × 256 pixels, and then it is converted into grey scale image. In this work, data augmentation is used as the pre-processing technique which is used only in training of the entire proposed system. The data augmentation is not required in the testing methodology of the proposed system [17]. It is an augmentation technique in which modified versions of solar panel images (both NCR and CR case images) are synthetically created to increase the size and diversity of the training solar panel images. It has been widely adopted in the field of deep learning to enhance the proposed model's performance, robustness, and generalization ability. The class imbalance problem and overfitting issues have been overcome by using the data augmentation method. This method uses a data augmentation function, which is depicted in Table 2 for increasing the training solar panel images in both NCR and CR cases. Table 2 shows the augmentation types used to create more solar panel images to avoid class imbalance and overfitting.

Table 2. Augmentation types used to generate additional solar panel images to alleviate class imbalance and overfitting

Augmentation Type

Specific Value

Left shift

3 pixels

Right shift

5 pixels

Zoom in

0.2 scaling factor

Zoom out

0.1 scaling factor

Brightness

0.8

Shearing

0.2

Horizontal flip

True

Vertical flip

True

After data augmentation is performed on the training sample dataset, the new training dataset has been constructed. Each solar panel image is transformed into eight solar panel images, and all these images are stored in the newly created training dataset.

3.2 Fuzzy incorporated Edge Boundary Detection method

The edge detection process plays an important role in solar panel crack detection systems, where the edges of the cracks have to be identified. There are numerous edge boundary detection methods available, such as the Sobel edge detector, Prewitt edge detector, and thresholding method [18]. All these conventional methods detect only thick and visible edge pixels in the images. In the case of solar panel images, the cracked pixels have both thick and thin edges; hence, the conventional edge detection methods are not able to detect both cases of edges in the solar panel images, which reduces the crack detection accuracy. In this work, both cases of edge pixel boundaries are detected using Mamdani Fuzzy Logic (MFL). This MFL places a window on the pre-processed solar panel image and the pixels in this window are given in the below Eq. (1).

Pixels in window $=\left\{m_1, m_2\right\}$           (1)

where, m1, m2 are denoted as the pixels in the window.

Among these 2 pixels, the pixel m1 has to be checked for edge cases using the following Table 3.

After checking pixel m1 for edge among the two pixels m1 and m2, the window is horizontally moved by one pixel and the above fuzzy rules are checked for the pixel m2. The same procedure is applied to all the pixels in the pre-processed solar panel image. Figure 3(a) and (b) show the SP image and edge boundaries detected image.

Table 3. Fuzzy rules for the detection of edge pixels in a window

Pixels in Window

Detection Status for Edge

m1

m2

0

0

m1 is not edge pixel

0

1

m1 is edge pixel

1

0

m1 is edge pixel

1

1

m1 is not edge pixel

Figure 3. (a) SP image, (b) fuzzy based edge detection output
Note: SP = Solar Panel.

3.3 Edge Features Computation process

The computation of the edge features is important for differentiating the NCR panel image and CR panel image through the classification process. The cracks are identified by analyzing the edge features in the solar panel images and the following edge features are computed from the Edge detected solar panel images, as illustrated in Eqs. (2)-(6).

Edge Energy Features (EEF)$=\sum_{i=0}^{M-1} \sum_{i=0}^{N-1} E^2(i, j)$            (2)

where, $E(i, j)$ is the Edge detected solar panel image with M rows and N columns, respectively.

Edge Index Features (EIF) $=\sum_{i=0}^{M-1} \sum_{j=0}^{N-1} \frac{E(i, j)}{(i+1) \times(j+1)}$            (3)

Edge Correlation Features (ECF)$=\frac{\sum_{i=0}^{M-1} \sum_{j=0}^{N-1}(i \times j) \times E(i, j)-\mu_i \times \mu_j}{\sigma_i \times \sigma_j}$              (4)

Edge Differntiation Features (EDF) $=\sum_{i=0}^{M-1} \sum_{j=0}^{N-1}|i-j| \times E(i, j)$            (5)

Edge Metric Features (EMF)$=\sum_{i=0}^{M-1} \sum_{j=0}^{N-1}(i-j) \times E(i, j)$            (6)

All these computed edge solar panel features are combined into 2D-Edge Feature Matrix (EFM), and it is given to the following classification process.

3.4 NCR/CR image classifications

The vital part of the entire SPCD system is to identify the CR panel from the NCR panel image. This can be done by the classification process which performs the classification of the solar panel image into either NCR or CR panel image. The classification model can be categorized into two types as machine learning and deep learning. The machine learning-based classification model requires a larger number of solar panel images with respect to various categories and resolutions. Due to the over fitting issue, the solar panel detection accuracy was not optimum by the machine learning-based SPCD system, which is identified as the main limitation of this work. In order to improve the performance accuracy for solar panel crack detection systems, deep learning algorithms have been used in past decades. Though a lot of researchers in this field have used deep learning algorithms for solar panel image classification process, all these deep learning models are designed with a large number of internal layering modules that are connected in a sequential based format. Due to this, the classification time period increases, which is not suitable for live crack detection process in videos.

Therefore, it is necessary to develop a deep learning model with a minimum number of internal layering modules which are connected in a parallel-based format. In this research work, a novel and highly efficient deep learning model CrackNet is proposed to identify the CR panel image from the NCR panel image. The proposed CrackNet deep learning model has been optimized by hyper parameter optimization and the classification results are also cross-validated by the validation algorithm. The conventional deep learning based SPCD system receives the spatial solar panel image and produces multi-class results. The proposed CrackNet based SPCD system receives the EFM in 2D format and produces the multi class results. Due to this, the non-linear pattern features are generated by the internal layering modules of the proposed CrackNet model to increase the NCR and CR panel image classification rate. Figure 4 shows the proposed CrackNet Model for the classifications of NCR/CR solar panel images.

The proposed CrackNet deep learning model has been constructed by three Structural Modules (SM), and each SM in this design contains a number of Convolutional layers, pooling layers, and Rectification Linear Unit (ReLU) as illustrated in Figure 4. The main purpose of the SM is to generate more non-linear pattern features for the effective classification of the solar panel image into either NCR image or CR image. Each SM in this proposed CrackNet model generates the non-linear pattern features based on the number of layers, filter kernels and its stride.

Figure 4. Proposed CrackNet model for the classification of NCR/CR solar panel images
Note: NCR = Non-Cracked Region; CR = Cracked Region.

The main components of the CrackNet model are depicted in the following Eq. (7).

$CrackNet \geq\left\{\left(S M_1, S M_2, S M_3\right), F M A, F C N N \,layers,SoftMax\, layer\right.\}$            (7)

where, FMA is denoted as Feature Matrix Adder, Fully Connected Neural Network (FCNN) is denoted as Fully Connected Neural Networks.

The SM1 of the proposed CrackNet deep learning model contains two 2D-convolutional layers, two numbers of ReLU layers, and two numbers of Max-Pool (MP) layers, as illustrated in the following Eq. (8).

$Convolutional\, layers (SM1) \geq\{C o n v 2 D-11, Conv 2 D-12\}$              (8)

The non-linear pattern features belong to the edges features, texture features, different shape features along with the pattern features. The main purpose of using Conv2D layer is to generate the non-linear pattern features, which are used to identify the minor defects or cracks in the solar panel image. The $Conv2D - 11$ is designed by the 256 filter kernels and each kernel size is about 7 × 7. This layer receives EFM and produces the 2D non-linear edge feature matrix as depicted in the following Eq. (9).

$C_{{out }}\{{Conv} 2 D\}=\sum_{p=0}^{k_h-1} \sum_{q=0}^{k_w-1} E F M(p+i, q+j) \times F K\left(k_h, k_w\right)$             (9)

where, $E F M()$ denotes the input 2D edge feature matrix with $p$ rows and $q$ columns, $F K ()$ denotes the filter kernel with filter height $k_h$ and filter width $k_w$ respectively.

The Conv2D layer output matrix has the following dimensions with respect to stride width and stride height, respectively, as depicted in Eq. (10) and Eq. (11).

$C_h=\left(\frac{H_{E F M}-k_h+2 \times p_h}{s_h}\right)+1$              (10)

$C_w=\left(\frac{W_{E F M}-k_w+2 \times p_w}{s_w}\right)+1$            (11)

where, $p_h$ and $p_w$ denotes the padding height and width, respectively; $s_h$ and $s_w$ denotes the stride height and width, respectively; $k_h$ and $k_w$ denotes the filter stride height and width, respectively and $H_{E F M}$ and $Wdenote _{E F M}$ denotes the height and width of the input edge feature matrix, respectively.

The computational complexity of the Conv2D layer in this proposed CrackNet model is depicted in the following Eq. (12).

$Computational \,Complexity (C C)=C_h \times C_W \times k_h \times k_w \times N_{\text {in}} \times N_{\text {out}}$              (12)

where, $N_{\text {in}}$ and $N_{\text {out}}$ are the number of input and output channels.

The Conv2D-11 layer has been designed with the following Eq. (13) using its filter kernels and stride size.

$Conv 2 D-11 \geq\{256\, filter \,kernels \,and \,7 \times 7 \,stride \,value \}$             (13)

The Conv2D-11 layer output contains both negative and positive non-linear feature values. The negative values in the generated non-linear features by Conv2D layer reduces the final solar panel classification output efficiency due to the Vanishing Gradient (VG) problem. In order to improve the final solar panel image classification efficiency, the Activation function ReLU has been used in this design to mitigate the VG problem due to the negative feature values. Therefore, the ReLU layer has been placed at the output of each Conv2D layer to mitigate the VG problem and to increase the functional classification output efficiency. Hence, the Conv2D-11 output is passed through ReLU to eliminate VG problem on the generated non-linear pattern features. Then, this layer output is passed through the Max-Pool layer (MP11) to shrink the size of the generated non-linearfeatures by Conv2D-11.

The MP11 layer output is now passed through the Conv2D-12 layer and it has been designed with the following Eq. (14) by its filter kernels and stride size.

$Conv 2 D-12 \geq\{512\, filter \,kernels \,and \,7 \times 7 \,stride \,value \}$             (14)

The Conv2D-12 layer output contains both negative and positive non-linear feature values. The negative values in the generated non-linear features by Conv2D-12 layer reduces the final solar panel classification output efficiency due to the VG problem. Therefore, the ReLU layer has been placed at the output of each Conv2D-12 layer to mitigate the VG problem and to increase the functional classification output efficiency. Hence, the Conv2D-21 output is passed through ReLU to eliminate VG problem on the generated non-linear pattern features. Then, this layer output is passed through the Max-Pool layer (MP12) to shrink the size of the generated non-linear features by Conv2D-12.

Finally, the non-linear feature patterns generated by Conv2D-11 (after MP11 layer) and Conv2D-12 (after MP12 layer) are added using the Feature Matrix Adder (FMA) to enhance the generated non-linear feature patterns.

The SM3 of the proposed CrackNet deep learning model contains two 2D-convolutional layers, two numbers of ReLU layers and two numbers of MP layers, as illustrated in the following Eq. (15).

$Convolutional\, layers (SM3) \geq\{{Conv2D}-31, {Conv2D}-32\}$              (15)

The $Conv2D - 31$ is designed by the 512 filter kernels and each kernel size is about 5 × 5. This layer receives the 2D- EFM and produces the 2D non-linear edge feature matrix.

The Conv2D-31 layer has been designed with the following Eq. (16) by its filter kernels and stride size.

$Conv 2 D-31 \geq\{512\, filter \,kernels \,and \,5 \times 5 \,stride \,value \}$            (16)

The Conv2D-31 layer output contains both negative and positive non-linear feature values. The negative values in the generated non-linear features by Conv2D layer reduces the final solar panel classification output efficiency due to the VG problem. Therefore, the ReLU layer has been placed at the output of each Conv2D-31 layer to mitigate the VG problem and to increase the functional classification output efficiency. Hence, the Conv2D-31 output is passed through ReLU to eliminate VG problem on the generated non-linear pattern features. Then, this layer output is passed through the Max-Pool layer (MP31) to shrink the size of the generated non-linear features by Conv2D-31.

The MP31 layer output is now passed through the Conv2D-32 layer and ithas been designed with the following Eq. (17) by its filter kernels and stride size.

$Conv 2 D-32 \geq\{512\, filter \,kernels \,and \,7 \times 7 \,stride \,value \}$               (17)

The Conv2D-32 layer output contains both negative and positive non-linear feature values. The negative values in the generated non-linear features by Conv2D-32 layer reduces the final solar panel classification output efficiency due to the VG problem. Therefore, the ReLU layer has been placed at the output of each Conv2D-32 layer to mitigate the VG problem and to increase the functional classification output efficiency. Hence, the Conv2D-31 output is passed through ReLU to eliminate VG problem on the generated non-linear pattern features. Then, this layer output is passed through the Max-Pool layer (MP32) to shrink the size of the generated non-linear features by Conv2D-32.

Finally, the non-linear feature patterns generated by Conv2D-31 (after MP31 layer) and Conv2D-32 (after MP32 layer) are added using the FMA to enhance the generated non-linear feature patterns.

The SM2 of the proposed CrackNet deep learning model contains one 2D-convolutional layers, one ReLU layers and two numbers of MP layers as illustrated in the following Eq. (18).

$Convolutional\, layers (SM2) \geq\{{Conv2D}-21\}$            (18)

The Conv2D-11 layer and Conv2D-31 layer outputs are added using FMA to produce the enhanced non-linear feature patterns, and it is given to the Conv2D-21 layer which is designed with the following Eq. (19).

$Conv 2 D-21 \geq\{256\, filter \,kernels \,and \,5 \times 5 \,stride \,value \}$            (19)

Then, this layer output is passed through the Max-Pool layer (MP21) to shrink the size of the generated non-linear features by Conv2D-21. Now, the output from this layer along with the outputs from Conv2D-12 and Conv2D-32 are added by FMA. This output is passed through ReLU to eliminate VG problem in the generated non-linear pattern features. Then, this layer output is passed through the Max-Pool layer (MP22) to shrink the size of the generated non-linear features. The output of SM2 is given to FMA, which also adds the outputs of SM1 and SM3.

This output is passed through three FCNN layers, where each layer has been designated by biased neurons with internal functional weights. The number of biased neurons in each layer has been given in Table 1. Finally, the non-probabilistic output from FCNN layers has been converted into probabilistic output by passing it through Activation layer. The activation layer is designed with either Sigmoid or SoftMax function. In a classification system based on deep learning, the SoftMax function in this activation layer is very important, as it converts the output of the FCNN layer to a probability distribution. It helps to achieve accurate prediction of multiple classes and is frequently used for training and optimizing the proposed CrackNet model for solar panel image classification system. The stability of the probability output has been affected by the Sigmoid function and hence the SoftMax function has been used in this design for improving the stability of functional outputs.

The hyperparameters are the parameters that can be set to control the learning process and architecture of the proposed CrackNet deep learning model. The accuracy, convergence speed, and generalization ability of the proposed solar panel image classification model are significantly affected by the proper selection of hyperparameters in the proposed design. Table 4 shows the hyperparameter values of the proposed CrackNet model for obtaining the optimal experimental classification results.

Table 4. Hyperparameter values of the proposed CrackNet model for obtaining the optimal experimental classification results

HyperParameters

Significant Values

EFM input size

224 × 224 × 3

Epochs

120

Batchs

32

Learning rate

0.001

Kernel size

5 × 5 and 7 × 7

Loss function

Cross-entropy

Drop out

0.1

Activation function

ReLU and SoftMax

Stride size

1

Note: ReLU = Rectification Linear Unit.

The specific hyperparameters have been selected based on the validation and testing performances. These configuration settings are important for computational cost efficiency and reducing the overfitting problem. The training procedure is based on the computation of the error rate. The error rate has been determined using the loss function in this work. The entire training procedure was repeated with respect to epoch count, where convergence has been end with validation. The output configuration with trained patterns was selected for subsequent testing.

Figure 5. CR image classification results, (a) classified CR solar panel images (RF dataset), (b) classified CR solar panel images (SPK dataset)
Note: CR = Cracked Region; RF = RoboFlow; SPK = Solar Panel Kaggle.

Figure 6. NCR image classification results, (a) classified NCR solar panel images (RF dataset), (b) classified NCR solar panel images (SPK dataset)
Note: NCR = Non-Cracked Region; RF = Robo Flow; SPK = Solar Panel Kaggle.

Algorithm. Probability based Morphological Segmentation

Input: Classified CR image;

Output: Crack pixels detected image;

Start;

Step 1:

Find the Posterior Probability image $P P(i, j)$ of the given classified CR panel image which meets the following Eq. (20).

$0 \leq P P(i, j) \leq 1$

(20)

Step 2:

Find the Gaussian Probability image $G P(i, j)$ of the given classified CR panel image using the below Eq. (21).

$G P(i, j)=\frac{1}{\sqrt{2 \pi \sigma^2}} e^{-\frac{(I(i, j)-\mu)^2}{2 \sigma^2}}$

(21)

where, as $\mu$ and $\sigma$ are denoted as mean and standard deviation and $I(i, j)$ is the classified CR panel image.

Step 3:

Normalize the Posterior Probability image and the Gaussian Probability image using the following Eqs. (22)-(23).

$N 1(i, j)=\operatorname{norm}(P P(i, j))$

(22)

$N 2(i, j)=\operatorname{norm}(G P(i, j))$

(23)

Step 4:

Construct the Probability Opened image $P O(i, j)$ of the normalized Posterior Probability image using the following Eq. (24).

$P O(i, j)=\operatorname{dilate}\left(N 1(i, j), s,{ }^{\prime} \operatorname{disk} k^{\prime}\right)$

(24)

where as, s is the structuring element with disk shape and its value is set to 0.2mm.

Step 5:

Construct the Probability Closed image $C(i, j)$ of the normalized Gaussian Probability image using the following Eq. (25).

$P C(i, j)=\operatorname{erode}\left(N 2(i, j), s,{ }^{\prime} \operatorname{disk}^{\prime}\right)$

(25)

where, as s is the structuring element with disk shape and its value is set to 0.3 mm.

Step 6:

Subtract the Probability Closed image from the Probability Opened image to locate the cracked pixels using the below Eq. (26).

$CrackedPixelsCP (i, j)=|P O(i, j)-P C(i, j)|$

(26)

Step 7:

The false cracked pixels in $C P(i, j)$ has been detected and removed using connected component approach.

End;

Figure 7(a) shows the classified CR panel image and Figure 7(b) shows the cracks detected and segmented image by proposed CrackNet+PMS algorithm.

Figure 5(a) shows the classified CR solar panel images (RF dataset), and Figure 5(b) shows the classified CR solar panel images (SPK dataset).

Figure 6(a) shows the classified NCR solar panel images (RF dataset), and Figure 6(b) shows the classified NCR solar panel images (SPK dataset).

3.5 Probability based Morphological Segmentation algorithm for crack pixels segmentation

The cracked pixels in the classified CR panel image are detected and located using the segmentation algorithm. In this work, the PMS algorithm has been proposed to detect and locate the cracked pixels. The proposed PMS algorithm is an effective crack pixels segmentation method combining probabilistic model and morphological image processing operators, capable of accurately segmenting the cracked pixels. A posterior and Gaussian probability image is generated to estimate the probability of each pixel in the classified CR solar panel image. Morphological operations erosion and dilation are then used to detect the cracked edge pixels and the algorithm has been explained in the following steps.

Figure 7. Segmentation results (a) Classified CR panel image, (b) Cracks detected and segmented image
Note: CR = Cracked Region.
4. Results and Discussion

This research work uses two independent solar panel imaging datasets RF [19] and SPK [20] for evaluating the performances of the proposed CrackNet + PMS segmentation algorithm.

The RF dataset was created and maintained by the RoboFlow Universe organization on an open research platform. The solar panel images are available under crack, defect, and healthy categories in this dataset. Each crack and defect solar panel image is annotated. This dataset contains 1676 solar panel images, and all these solar panel images were captured M300 RTK high-resolution camera under clear-sky lighting conditions by a drone. The distance between the drone and the solar panels is about 7 feet and hence, all the solar panel images are produced in a higher-visibility format. The image size is approximately 1500 × 1500 pixels, and all the images in this dataset are split into training and testing cases. The total solar panel images are categorized into 758 NCR solar panel images and 918 CR solar panel images. The NCR images are split into 70% of training images (531 NCR images) and the remaining 30% of testing images (227 NCR images). The CR images are split into 70% training images (643 CR images) and the remaining 30% testing images (275 CR images).

The SPK dataset is constructed under open research platform. The solar panel images are available under crack, defect, and healthy categories in this dataset. Each crack and defect solar panel image is annotated. This dataset contains 2065 solar panel images, and all these solar panel images were captured M300 RTK high-resolution camera under clear-sky lighting conditions by VTOL-type drone equipment. The distance between the drone and the solar panels is about 5.5 feet; hence, all the solar panel images are produced in a higher-visibility format. The image size is approximately 1024 × 1024 pixels, and all the images in this dataset are split into training and testing cases. The total solar panel images are categorized into 815 NCR solar panel images and 1250 CR solar panel images. The NCR images are split into 70% of training images (570 NCR images) and the remaining 30% of testing images (245 NCR images). The CR images are split into 70% of training images (875CR images) and the remaining 30% of testing images (375 CR images).

The computational parameter ‘Solar Panel Classification Index (SPCI)’ has been used in this research work to evaluate the performance efficiency of the proposed CrackNet deep learning model. The SPCI is defined that the ratio between the correctly classified solar panel images and the total solar panel images in each category (NCR and CR cases), as depicted in the following Eq. (27).

SPCI $=\frac{\text { Correctly classified solar panel image count }}{\text { Total solar panel image count }} \times 100$         (27)

In case of RF dataset, the proposed CrackNet model correctly classifies 225 NCR images over 227 NCR images and obtains 99.1% SPCI. Moreover, the proposed CrackNet model correctly classifies 273 CR images over 275 CR images and obtains 99.2% SPCI. Therefore, the average SPCI of the solar panel images in this dataset is about 99.15%.

In case of SPK dataset, the proposed CrackNet model correctly classifies 242 NCR images over 245 NCR images and obtains 98.7% SPCI. Moreover, the proposed CrackNet model correctly classifies 373 CR images over 375 CR images and obtains 99.4% SPCI. Therefore, the average SPCI of the solar panel images in this dataset is about 99.05%.

In this research work, the datasets RF and SPK are split into different training and testing ratios for analyzing the performance efficiency of the proposed SPCD system. Table 5 shows the performance analysis of various training and testing ratios on RF and SPK datasets with respect to the average SPCI parameter.

Table 5. Performance analysis of various training and testing ratio on RF and SPK datasets with respect to average SPCI parameter

Training and Testing Ratio

Average SPCI (%) Computation

RF Dataset

SPK Dataset

70:30

99.15

99.05

60:40

98.35

98.12

50:50

96.12

96.05

Note: RF = RoboFlow; SPK = Solar Panel Kaggle; SPCI = Solar Panel Classification Index.

A Confusion Matrix (CM) is one of the vital assessment tool which is used in the proposed system for detecting cracks in solar panel images. It offers in-depth analysis of the effectiveness of classification, misclassification values, crack detection, and the overall reliability of the proposed system. Figure 8(a) shows the estimated CM for RF dataset and Figure 8(b) shows the estimated CM for SPK dataset.

Figure 8. CM performance analysis, (a) CM for RF dataset, (b) CM for SPK dataset
Note: CM = Confusion Matrix; RF = Robo Flow; CR = Cracked Region.

The proposed SPCD system has been evaluated for estimating their performance efficiency with respect to ‘TRUE’ and ‘FALSE’ cases using the below Eq. (28)-(33).

Crack Segmentation Precision (CSP) $=\frac{\mathrm{TP}}{\mathrm{TP}+\mathrm{FP}}$              (28)

Crack Segmentation Recall (CSR) $=\frac{\mathrm{TP}}{\mathrm{TP}+\mathrm{FN}}$               (29)

Crack Segmentation Accuracy (CSA) $= \frac{\mathrm{TP}+\mathrm{TN}}{\mathrm{TP}+\mathrm{TN}+\mathrm{FP}+\mathrm{FN}}$               (30)

Crack Segmentation Specificity (CSS) $= \frac{\mathrm{TN}}{\mathrm{TN}+\mathrm{FP}}$                (31)

Jaccard Index Accuracy (JIA) $=\frac{\mathrm{TP}}{\mathrm{TP}+\mathrm{FP}+\mathrm{FN}}$                (32)

Matthews Correlation Index (MCI) $=\frac{\mathrm{TP} \times \mathrm{TN}-\mathrm{FP} \times \mathrm{FN}}{\sqrt{(\mathrm{TP}+\mathrm{FP})(\mathrm{TP}+\mathrm{FN})(\mathrm{TN}+\mathrm{FP})(\mathrm{TN}+\mathrm{FN})}}$             (33)

where, the detected crack and non-crack pixels in the solar panel image with respect to ‘TRUE’ are denoted as TP and TN and the detected crack and non-crack pixels in the solar panel image with respect to ‘FALSE’ are denoted as FP and FN.

From RF dataset, 10 solar panel images under the case of crack are tested with the proposed CrackNet + PMS algorithm in this paper. Table 6 shows the observed experimental results of SPCD system using the proposed CrackNet+PMS method on CR panel images in RF Dataset. The proposed CrackNet+PMS method for SPCD system attains 98.96% CSP, 99.04% CSR, 98.99% CSA, 98.99% CSS, 99.04% JIA, and 99.15% MCI for the CR panel images of the RoboFlow dataset [19]. The same results are also obtained for all crack solar panel images in this RF dataset.

Table 6. Observed experimental results of SPCD system using the proposed CrackNet+PMS method on CR panel images in RF Dataset

CR Panel Image Samples

Observed Simulation Results in %

CSP

CSR

CSA

CSS

JIA

MCI

1

98.3

99.3

98.4

98.9

98.3

98.9

2

98.7

99.1

98.9

98.7

98.9

98.8

3

99.2

98.7

99.4

99.3

99.3

99.4

4

99.1

98.9

99.2

99.2

99.1

99.2

5

98.7

99.3

99.1

99.6

99.5

99.5

6

98.9

99.1

98.9

98.1

98.7

99.1

7

99.3

98.6

98.7

98.7

99.4

99.2

8

99.1

98.9

98.9

98.7

99.2

98.9

9

99.2

99.3

99.3

99.4

99.1

99.3

10

99.1

99.2

99.1

99.3

98.9

99.2

Mean value in %

98.96

99.04

98.99

98.99

99.04

99.15

Note: CSP = Crack Segmentation Precision; CSR = Crack Segmentation Recall; CSA = Crack Segmentation Accuracy; CSS = Crack Segmentation Specificity; JIA = Jaccard Index Accuracy; MCI = Matthews Correlation Index; RF = Robo Flow; CR = Cracked Region; PMS = Probability based Morphological Segmentation.

Table 7. Observed experimental results of SPCD system using the proposed CrackNet+PMS method on CR panel images in SPK Dataset

CR Panel Image Samples

Observed Simulation Results in %

CSP

CSR

CSA

CSS

JIA

MCI

1

99.3

99.5

99.4

99.3

99.4

99.3

2

99.1

99.2

99.1

99.1

99.2

99.1

3

99.2

99.1

98.9

99.2

98.9

99.5

4

99.5

98.9

98.6

98.8

99.4

99.2

5

98.6

99.4

99.3

98.9

99.2

98.7

6

99.4

99.1

99.1

99.3

99.5

99.3

7

99.2

99.5

99.6

99.1

99.2

99.1

8

99.1

99.2

99.3

99.2

99.1

99.2

9

98.9

98.9

98.7

99.5

98.8

98.9

10

99.4

99.5

98.9

99.2

98.9

99.4

Mean value in %

99.17

99.23

99.09

99.16

99.16

99.17

Note: CSP = Crack Segmentation Precision; CSR = Crack Segmentation Recall; CSA = Crack Segmentation Accuracy; CSS = Crack Segmentation Specificity; JIA = Jaccard Index Accuracy; MCI = Matthews Correlation Index; SPK = Solar Panel Kaggle; CR = Cracked Region; PMS = Probability based Morphological Segmentation.

From SPK dataset, 10 solar panel images under the case of crack are tested with the proposed CrackNet + PMS algorithm in this paper. Table 7 shows the observed experimental results of SPCD system using the proposed CrackNet+PMS method on CR panel images in SPK Dataset. The proposed CrackNet+PMS method for SPCD system attains 99.17% CSP, 99.23% CSR, 99.09% CSA, 99.16% CSS, 99.16% JIA, and 99.17% MCI for the CR panel images of the SPK dataset. The same results are also obtained for all crack solar panel images in this SPK dataset.

The comparative illustrations of the proposed CrackNet+PMS method with respect to the different solar panel imaging datasets are illustrated in Table 8. While comparing the performance efficiency of the proposed CrackNet+PMS method on two different solar panel imaging datasets, similar experimental values are obtained; hence, the proposed method is suitable for solar panel images in another dataset also.

Table 8. Comparative illustrations of the proposed CrackNet+PMS method with respect to different solar panel imaging datasets

Observed Experimentation Parameters

RF Dataset (%)

SPK Dataset (%)

CSP

98.96

99.17

CSR

99.04

99.23

CSA

98.99

99.09

CSS

98.99

99.16

JIA

99.04

99.16

MCI

99.15

99.17

Note: CSP = Crack Segmentation Precision; CSR = Crack Segmentation Recall; CSA = Crack Segmentation Accuracy; CSS = Crack Segmentation Specificity; JIA = Jaccard Index Accuracy; MCI = Matthews Correlation Index; RF = RoboFlow; SPK = Solar Panel Kaggle; PMS = Probability based Morphological Segmentation;

Table 9 shows the experimental comparisons of the proposed CrackNet+PMS method on SPCD system with other state-of-the-art works for the CR panel images in RF dataset under various computational parameters.

Table 10 shows the experimental comparisons of the proposed CrackNet+PMS method on SPCD system with other state-of-the-art works for the CR panel images in SPK dataset by various computational parameters.

Hyperparameters are key to deep learning models used for crack segmentation, and the learning rate is among the most significant of these. Crack segmentation systems based on deep learning have several hyperparameters, among which the learning rate is one of the most important, as it determines the amount of update to model weights during the training process. The learning rate has a direct impact on training and testing CSA, which involves the ability to converge quickly, the capability to learn from the features, and the stability of the model. Figure 9(a) shows the training and Testing CSA analysis with respect to learning rate on RF dataset and Figure 9(b) shows the training and Testing CSA analysis with respect to learning rate on SPK dataset.

Table 9. Experimental comparisons of the proposed CrackNet+PMS method on SPCD system with other state-of-the-art works for the CR panel images in RF dataset by various computational parameters

Methods

Observed Simulation Results in %

CSP

CSR

CSA

CSS

JIA

MCI

Proposed CrackNet+PMS

(in this work)

98.96

99.04

98.99

98.99

99.04

99.15

Perarasi et al. [11]

97.11

97.03

97.12

97.14

97.18

97.64

Abdelsattar et al. [12]

97.08

96.47

96.29

96.25

96.76

96.16

Karakan et al. [13]

96.27

96.10

96.21

96.11

96.13

96.11

Jia et al. [14]

96.05

95.92

95.29

95.02

95.76

95.27

Acikgoz et al. [15]

95.19

95.47

95.12

95.27

95.15

95.09

Al-Otum [16]

94.82

94.12

94.09

94.65

94.17

94.17

Note: CSP = Crack Segmentation Precision; CSR = Crack Segmentation Recall; CSA = Crack Segmentaton Accuracy; CSS = Crack Segmentation Specificity; JIA = Jaccard Index Accuracy; MCI = Matthews Correlation Index; PMS= Probability based Morphological Segmentation.

Table 10. Experimental comparisons of the proposed CrackNet+PMS method on SPCD system with other state-of-the-art works for the CR panel images in SPK dataset by various computational parameters

Methods

Observed Simulation Results in %

CSP

CSR

CSA

CSS

JIA

MCI

Proposed CrackNet+PMS(in this work)

99.17

99.23

99.09

99.16

99.16

99.17

Perarasi et al. [11]

97.29

97.17

97.12

97.23

97.56

97.16

Abdelsattar et al. [12]

96.76

96.87

96.45

96.98

97.13

96.82

Karakan et al. [13]

96.15

96.16

96.12

96.16

96.87

95.17

Jia et al. [14]

95.76

95.92

95.97

95.87

96.16

94.74

Acikgoz et al. [15]

95.27

95.12

95.72

95.12

95.72

93.28

Al-Otum [16]

94.09

94.92

94.76

95.10

95.13

93.18

Note: CSP = Crack Segmentation Precision; CSR = Crack Segmentation Recall; CSA = Crack Segmentation Accuracy; CSS = Crack Segmentation Specificity; JIA = Jaccard Index Accuracy; MCI = Matthews Correlation Index; SPCD = Solar Panel Crack Detection; CR = Cracked Region; PMS = Probability based Morphological Segmentation.

Table 11. Performance analysis of ablation study on RF dataset with respect to the proposed base model CrackNet with respect to various experimental parameters

Methods

Modules

Parameters (%)

PP

FEBD

EFC

CrackNet Model

PMS

CSP

CSR

CSA

CSS

JIA

MCI

CrackNet Model alone

×

×

×

√

×

92.17

92.76

92.69

92.45

92.86

92.47

CrackNet model + PP

√

×

×

√

×

93.29

93.87

93.27

93.76

93.02

93.65

CrackNet model + FEBD

×

√

×

√

×

95.29

95.10

95.09

95.15

95.76

95.48

CrackNet model + PP + FEBD + EFC

√

√

√

√

×

96.29

96.12

96.62

96.16

96.09

96.27

CrackNet model + PP + FEBD + EFC + PMS

√

√

√

√

√

98.96

99.04

98.99

98.99

99.04

99.15

Note: ×, Not Available; √, Available; PP = Pre-Processing; FEBD = Fuzzy incorporated Edge Boundary Detection; EFC = Edge Features Computations; RF = RoboFlow; CSP = Crack Segmentation Precision; CSR = Crack Segmentation Recall; CSA = Crack Segmentation Accuracy; CSS = Crack Segmentation Specificity; JIA = Jaccard Index Accuracy; MCI = Matthews Correlation Index.

Figure 9. Impact of learning rate analysis, (a) Training and Testing CSA analysis with respect to learning rate on RF dataset, (b) Training and Testing CSA analysis with respect to learning rate on SPK dataset
Note: CSA = Crack Segmentation Accuracy; RF = Robo Flow; SPK = Solar Panel Kaggle.

Figure 10. Impact of epochs analysis, (a) Training and Testing CSA analysis with respect to epochs count on RF dataset, (b) Training and Testing CSA analysis with respect to epochs count on SPK dataset
Note: CSA = Crack Segmentation Accuracy; RF = Robo Flow; SPK = Solar Panel Kaggle.

The low learning rate indicates a slow convergence learning process; a high learning rate indicates an unstable convergence learning process; and the optimal learning rate indicates a stable convergence learning process. In Figures7(a) and (b), the optimal CSA has been obtained at 0.001 learning rate of the proposed CrackNet deep learning model in this research work.

The epoch count is one of the key hyperparameters of the proposed CrackNet deep learning model, which is used to calculate the number of passes of the entire training dataset through the proposed model during training. This number of epochs directly affects the training accuracy and testing accuracy (CSA). More crack pixel patterns are trained with a higher number of epochs count. The more epochs the more the computational CSA will increase. A number of epochs will optimize training and testing accuracy (CSA), without underfitting or overfitting.

Figure 10(a) shows the training and Testing CSA analysis with respect to epochs count on RF dataset and Figure 10(b) shows the training and Testing CSA analysis with respect to epochs count on SPK dataset.

An ablation study was carried out to determine the effectiveness of each component in the proposed SPCD system. It also verifies that the proposed improvements are responsible for this performance increase when compared to the baseline deep learning methods (proposed CrackNet model). The outcomes of the experiments are consistent with the improvement in crack detection accuracy and robustness achieved by the combination of the various components: the Pre-processing (PP), the FEBD algorithm, the Edge Features Computations (EFC), the CrackNet deep learning model, and the PMS algorithm.

Table 11 shows the performance analysis of the ablation study on the RF dataset with respect to the proposed base model CrackNet with respect to various experimental parameters.

Table 12 shows the performance analysis of the ablation study on SPK dataset with respect to the proposed base model CrackNet with respect to various experimental parameters.

Even though the proposed CrackNet+ PMS method provides the optimum crack pixel segmentation accuracy on two independent solar panel imaging datasets, the measurement of the Computational Time Period (CTP) is important for large-area solar panel systems. The CTP is a parameter that is used to estimate the time period of the crack pixel segmentation process per solar panel image. This CTP parameter is measured in milliseconds (ms) on both dataset solar panel cracked images. For the effective comparison of CTP for all the methods (proposed work and the other state-of-the-art methods), the same hardware and software units have been used as illustrated in Table 13.

Table 12. Performance analysis of the ablation study on the SPK dataset for the proposed base model CrackNet with respect to various experimental parameters

Methods

Modules

Parameters (%)

PP

FEBD

EFC

CrackNet Model

PMS

CSP

CSR

CSA

CSS

JIA

MCI

CrackNet Model alone

×

×

×

√

×

93.29

93.87

93.28

93.87

93.27

93.86

CrackNet model + PP

√

×

×

√

×

95.30

95.18

95.87

95.28

95.98

95.28

CrackNet model + FEBD

×

√

×

√

×

96.29

96.98

96.48

96.87

96.84

96.17

CrackNet model + PP + FEBD + EFC

√

√

√

√

×

97.38

97.88

97.65

97.34

97.17

97.54

CrackNet model + PP + FEBD + EFC + PMS

√

√

√

√

√

99.17

99.23

99.09

99.16

99.16

99.17

Note: ×, Not Available; √, Available; PP = Pre-Processing; FEBD = Fuzzy incorporated Edge Boundary Detection; EFC = Edge Features Computations; SPK = Solar Panel Kaggle; CSP = Crack Segmentation Precision; CSR = Crack Segmentation Recall; CSA = Crack Segmentation Accuracy; CSS = Crack Segmentation Specificity; JIA = Jaccard Index Accuracy; MCI = Matthews Correlation Index.

Table 14 shows the Computational Time Period (CTP) comparative illustrations of the proposed CrackNet+PMS method on the SPCD system with other state-of-the-art works.

Table 13. Detailed specifications of the utilized hardware and software modules used in this research work

Category

Specifications

Details

Hardware

Processor

Intel Core i7

Processing Frequency

64-bit 5.3 GHz

RAM memory

64 GB

Storage memory

1 TB

GPU

NVIDIA 3060

Software

Simulation software name and version

MATLAB R2023 version 2.0

Deep learning framework

TensorFlow

Operating system

Windows 10

Epochs

120

Number of batches

30

Note: RAM = Random Access Memory; GPU = Graphical Processing Unit.

Table 14.CTP comparative illustrations of the proposed CrackNet+PMS method on the SPCD system with other state-of-the-art works

Methods

Measured CTP (ms)

RoboFlow Dataset Samples

SPK Dataset Samples

Proposed CrackNet+PMS

(in this work)

0.32

0.28

Perarasi et al. [11]

0.56

0.36

Abdelsattar et al. [12]

0.61

0.45

Karakan et al. [13]

0.78

0.53

Jia et al. [14]

0.83

0.61

Acikgoz et al. [15]

0.92

0.73

Al-Otum [16]

1.20

0.98

Note: PMS = Probability based Segmentation Algorithm; CTP = Computational Time Period.
5. Conclusions

This research article proposes a novel and efficient crack detection system in solar panel images using CrackNet deep learning model and PMS segmentation algorithm. The entire proposed method has been tested and verified on two solar panel imaging datasets RF and SKP. Though the proposed methods attained higher performance efficiency on both datasets, the following limitations of this research work are identified.

•The proposed method has been tested on standard datasets only, and they are not been tested on real time solar panel imaging datasets to validate the robustness of the developed methods.

•The environmental affecting factors are not considered in this research work which is also an important performance assessment method.

•The high-quality solar panel images in this work are only tested, and it does not check with low-quality solar panel images.

Future studies in SPCD and Energy Optimization will be directed towards an intelligent, Autonomous, scalable, and Real-Time Renewable Energy Management System. By incorporating the above technologies, PV system efficiency, reliability, sustainability, and energy production performance over time can be greatly improved. Moreover, the AI explainable Grad-CAM approach will be used for enhancing the real-time performance observations on the solar panel imaging datasets. The failure cases involving reflection and surface contamination will be analyzed in the future.

  References

[1] Ramdane, Wang, H., Jin, Y., Ke, H., Zhang, X. (2022). DDH-YOLOv5: Improved YOLOv5 based on double IoU-aware decoupled head for object detection. Journal of Real-Time Image Processing, 19: 1023-1033. https://doi.org/10.1007/s11554-022-01241-z

[2] Bakır, H., Kuzhippallil, F.A., Merabet, A. (2023). Automatic detection of deteriorated photovoltaic modules using IRT images and deep learning (CNN, LSTM) strategies. Engineering Failure Analysis, 146: 107132. https://doi.org/10.1016/j.engfailanal.2023.107132

[3] Cao, Y.K., Pang, D., Zhao, Q.C., et al. (2024). Improved YOLOv8-GD deep learning model for defect detection in electroluminescence images of solar photovoltaic modules. Engineering Applications of Artificial Intelligence, 131: 107866. https://doi.org/10.1016/j.engappai.2024.107866

[4] Mazen, F.M.A., Seoud, R.A.A., Shaker, Y.O. (2023). Deep learning for automatic defect detection in PV modules using electroluminescence images. IEEE Access, 11: 57783-57795. https://doi.org/10.1109/ACCESS.2023.3284043

[5] Jiang, Y., Zhao, C. (2022). Attention classification-and-segmentation network for micro-crack anomaly detection of photovoltaic module cells. Solar Energy, 238: 291-304. https://doi.org/10.1016/j.solener.2022.04.012

[6] Chen, A., Li, X., Jing, H., Hong, C., Li, M. (2023). Anomaly detection algorithm for photovoltaic cells based on lightweight multi-channel spatial attention mechanism. Energies, 16: 1619. https://doi.org/10.3390/en16041619

[7] Zhao, X., Song, C., Zhang, H., Sun, X., Zhao, J. (2023). HRNet-based automatic identification of photovoltaic module defects using electroluminescence images. Energy, 267: 126605. https://doi.org/10.1016/j.energy.2022.126605

[8] Akram, M.W., Li, G., Jin, Y., et al. (2019). CNN based automatic detection of photovoltaic cell defects in electroluminescence images. Energy, 189: 116319. https://doi.org/10.1016/j.energy.2019.116319

[9] Chen, X., Karin, T., Libby, C., et al. (2023). Automatic crack segmentation and feature extraction in electroluminescence images of solar modules. IEEE Journal of Photovoltaics, 13: 334-342. https://doi.org/10.1109/JPHOTOV.2023.3249970

[10] Ghahremani, A., Adams, S.D., Norton, M., Khoo, S.Y., Kouzani, A.Z. (2025). Advancements in AI-driven detection and localisation of solar panel defects. Advanced Engineering Informatics, 64: 103104. https://doi.org/10.1016/j.aei.2024.103104

[11] Perarasi, M., Hephzipah, J.J., Babu, M.D., Priya, K.K. (2026). An efficient solar panel crack detection system using a novel SolCNN model and crack segmentation algorithm. Results in Engineering, 29: 108995. https://doi.org/10.1016/j.rineng.2026.108995.

[12] Abdelsattar, M., AbdelMoety, A., Emad-Eldeen, A. (2025). ResNet-based image processing approach for precise detection of cracks in photovoltaic panels. Scientific Reports, 15: 24356. https://doi.org/10.1038/s41598-025-09101-z

[13] Karakan, A. (2025). Detection of defective solar panel cells in electroluminescence images with deep learning. Sustainability, 17(3): 1141. https://doi.org/10.3390/su17031141

[14] Jia, Y., Chen, G., Zhao, L. (2024). Defect detection of photovoltaic modules based on improved VarifocalNet. Scientific Reports, 14: 15170. https://doi.org/10.1038/s41598-024-66234-3

[15] Acikgoz, H., Korkmaz, D., Budak, U. (2023). Photovoltaic cell defect classification based on integration of residual-inception network and spatial pyramid pooling in electroluminescence images. Expert Systems with Applications, 229: 120546. https://doi.org/10.1016/j.eswa.2023.120546

[16] Al-Otum, H.M. (2023). Deep learning-based automated defect classification in Electroluminescence images of solar panels. Advanced Engineering Informatics, 58: 102147. https://doi.org/10.1016/j.aei.2023.102147

[17] Ebied, M.A., Munshi, A., Alhuzali, S.A., et al. (2025). Advanced deep learning modeling to enhance detection of defective photovoltaic cells in electroluminescence images. Scientific Reports, 15: 31640. https://doi.org/10.1038/s41598-025-14478-y

[18] Ling, H., Liu, M., Fang, Y. (2024). Deep edge-based fault detection for solar panels. Sensors, 24(16): 5348. https://doi.org/10.3390/s24165348.

[19] RoboFlow Dataset. (2023). FYP1: Cracked solar panels Computer Vision Dataset. Version 1.2, Access date: 10-1-2026. https://universe.roboflow.com/solar-panels-rgww4/fyp1-cracked-solar-panels. 

[20] SPK dataset. (2024). Solar Panel Crack dataset. Version 1. Access date: 2-2-2026. https://www.kaggle.com/datasets/ashutoshkumar7777/solar-panel-crack-dataset.