Skip to main content

Integration of image segmentation and fuzzy theory to improve the accuracy of damage detection areas in traffic accidents


In the next decade, machine vision technology will have an enormous impact on industrial works because of the latest technological advances in this field. These advances are so significant that the use of this technology is now essential. Machine vision is the process of using a wide range of technologies and methods in providing automated inspections in an industrial setting based on imaging, process control, and robot guidance. One of the applications of machine vision is to diagnose traffic accidents. Moreover, car vision is utilized for detecting the amount of damage to vehicles during traffic accidents. In this article, using image processing and machine learning techniques, a new method is presented to improve the accuracy of detecting damaged areas in traffic accidents. Evaluating the proposed method and comparing it with previous works showed that the proposed method is more accurate in identifying damaged areas and it has a shorter execution time.


Over the past three decades, visual or computer technology has been widely used in the military space industry and to a limited extent in industry. The new technology, the lack of a cost-effective system in the market, and the lack of specialists in this field have made this technology not widely used. Until recently, used cameras and sensors were usually customs made to be used for a specific purpose. Also, the process of building very large integrated circuits was not advanced enough to make high-resolution solid-state sensors. The use of the mentioned sensors required the development of special software for it. This software’s usually also needed computers with high processing power. In addition to all this, engineers had to receive the necessary training after graduation. Because the visual machine course was not offered in the classical form at the level of conventional engineering education in universities [1, 2].

Visual machine techniques will have a significant impact on all industrial works in the next decade due to the latest technological advances in this, and these advances are such that the use of this technology is now vital. Machine vision involves the process of applying a wide range of technologies and methods in providing automated inspection based on imaging, process control, and robot guidance in industrial applications. While the scope of machine vision is wide and it is difficult to provide a comprehensive definition for it, here is a general definition accepted for machine vision: Machine vision involves the analysis of images in data mining. To control a process or activity [3, 4].

Machine vision is frequently used to detect traffic accident damage as well as diagnose the crash site's condition [5, 6]. This article proposes a new method for improving the accuracy of detecting damaged areas in traffic accidents using image processing and machine learning techniques. In this method, first, the image of the car is categorized using image segmentation and then the damaged areas will be identified using car vision techniques. By combining the particle optimization algorithm with a voting classifier, the proposed method is able to greatly improve the final accuracy of crash detection.

In the continuation of this article, in “Related works” section, a review of the research literature in the field of machine vision will be done. In “Proposed method” section, the proposed method will be stated. In “Experimental results” section, the proposed method will be evaluated, and the performance of the proposed method will be compared with previous methods. Finally, in “Conclusion” section, the final summary of this article will be made.

Related works

Computer vision is one of the most modern and diverse branches of artificial intelligence, which, by combining image processing methods and machine learning tools, enables computers to intelligently see objects, landscapes, and intelligently "understand" their various properties. Of all the branches of artificial intelligence, perhaps the most practical is computerization and mechanization of visual systems. The scope of application of this growing branch of technology is very wide and ranges from common applications such as production line quality control and video surveillance to new technologies such as driverless cars. The range of applications of this technology varies according to the techniques used in them [7].

The main tasks in computer vision include the following [8]:

Object detection: Detects the presence or state of an object in an image. For example, we can search for digital images based on their content (content-oriented retrieval of images), identify human faces and their position in photographs, and estimate the three-dimensional state of humans and their organs.

  • Tracking,

  • Scene interpretation,

  • Self-location,

  • Computer vision systems.

A system of computer vision can be divided into the following subsystems:

  1. A.

    Imaging: the image or sequence of images is taken with an imaging system (camera, radar, tomography system). Usually, the imaging system must be set up before use.

  2. B.

    Preprocessing: the purpose of this step is to reduce noise (noise reduction—to separate the signal from the noise) and to reduce the total amount of data. This is typically done using a variety of image processing (digital) methods. Such as image sampling, application of digital filters, image segmentation, estimation of heterogeneity in high-resolution images, and multi-precision analysis.

  3. C.

    Feature extraction: the purpose of feature extraction is to reduce most of the data to a feature set, which should be safe from disturbances such as lighting conditions, camera position, noise, and distortion.

  4. D.

    Recording: the purpose of the recording step is to establish a correspondence between the properties of the captured set and the properties of the known objects in a model database or the properties of the original image.

Machine vision technology and digital imaging include processes that require the application of various computer software engineering sciences. This process can be divided into several main categories:

  1. 1.

    Creating an image in a digital form,

  2. 2.

    Using computer techniques to process or modify image data,

  3. 3.

    Reviewing and using the processed results for purposes such as robot guidance or controlling automated equipment, quality control of a production process, or providing information for statistical analysis in a computer production system.

Image segmentation is used in areas such as image processing, machine vision, medical image processing, digital libraries, content-based data retrieval in images and videos, data transfer over the Internet, and image compression. One of the most important issues in image processing, identification, and separation of the image into its components is fragmentation, which determines the success or failure of image analysis methods. The first step in image analysis is segmentation. Fragmentation is a process that divides an image into its main parts. This means that the various objects in the image are separated according to the intended use to make the image analysis easier in the next steps. One of the applications of fragmentation is in image processing, which is considered in most branches of science and industry today, and in many of these branches, the identification of the main components of the image is very important [10, 11].

Reference [12] uses a combination of c-means fuzzy clustering algorithm and particle optimization algorithm for image segmentation. In the method proposed in this paper, instead of using the Euclidean distance criterion in fuzzy clustering, the Mahalabonis distance criterion [12] is used. The particle optimization algorithm has also been used to optimize clustering centers. The simulation results showed better performance of the method proposed in this paper than the previous methods.

In 2013, Xiang et al. [13] used a combination of c-means fuzzy clustering algorithm with area segmentation algorithms for the color image segmentation problem, which is one of the most important issues in machine vision and pattern recognition. In this method, the threshold of the histogram function is used to divide the image into several areas. Finally, these regions are used to initialize the c-means fuzzy clustering algorithm. The experimental results showed that the proposed method has good accuracy and speed in image segmentation.

Reference [14] presents an improved method for image segmentation using the c-means fuzzy clustering algorithm and the particle optimization algorithm. In the proposed method in this paper, three different techniques have been used to increase the performance of image segmentation: (1) Improving the initialization in the fuzzy clustering algorithm using the particle optimization algorithm. (2) Using the Mahalanobis distance criterion [12] to reduce the effect of the geometric shape of the colors. Correct the final clustering results for incorrectly clustered pixels. The simulation results showed the performance improvement of the proposed method compared to the previous works.

One of the most recent studies conducted in 2015 on the issue of image segmentation is the paper presented by Ayala et al. [15]. In this paper, the Differential Evolutionary Algorithm (BDE) is used to segment the images. In the method presented in this paper, the BDE algorithm is used to determine the n−1 threshold used in color image segmentation. The simulation results showed that the proposed algorithm has better performance than other evolutionary algorithms used for image segmentation.

Another study published in 2015 used Markov’s hidden model for color images [16]. In the segmentation method presented in this paper, expectation–maximization, parameter estimation and Bayesian multiscale have been used. In the experiments, the proposed method was compared with the latest image segmentation methods and the results showed better performance of the proposed method in this paper.

Numerous methods also use image processing and machine learning techniques to classify images. In most early studies of image classification, of the many visual features of each image, only one has been used. As a result, it can be expected that the accuracy of these systems is not very good because in general, an image has several visual characteristics. Recently, effective research has been conducted on image retrieval using a combination of color and texture properties. In [17], two-dimensional or one-dimensional histograms of color coordinates are used as color features, and differences extracted by analyzing discrete causal frameworks are used as texture features. Lane et al. [18] suggest three-image properties for use in image retrieval. The characteristic of the first image is based on the color distribution and is called the adaptive color histogram. The properties of the second and third images are called the simultaneous matrix and the gradient histogram, respectively, and are based on the properties of color and texture. Also in [19] the combination of genetic algorithm and feature selection has been used to retrieve and categorize images. In the method presented by them, in the first step, the initial features of the image are extracted, and then, based on a feature selection method based on a genetic algorithm, the final features of the image are selected for the image classification operation.

In [20] Hee et al. Proposed a new method in which texture image properties are extracted using inseparable filter wavelets to retrieve the tissue image. This new method provides more information about the edge and direction of texture images compared to previous tensor product wavelets (such as db wavelets). Tagarakis et al. [21] proposed a method for non-rotational tissue retrieval that uses the non-Gaussian behavior of sub band coefficient distributions and shows tissue information with a guided pyramid. Hahn et al. [22] proposed immutable Gabor representations in which each representation requires only a few summaries of Gabor filter impact responses; Texture properties are extracted from these new representations to retrieve the unchanged texture image.

In the field of image retrieval, Nastagal [23] has introduced a method for calculating the fuzzy similarity criterion that uses the fuzzy part of the HSI color space. In this method, if there is no color in one image to calculate the degree of similarity of the ratio of that color between two images, by increasing the color ratio in the other image, the similarity criterion remains constant at zero; Although this method makes perfect sense, it does not make sense. Besides, the color spectrum feature includes 360 elements that are divided into 8 sections. The number of these sections is not enough, and very large errors appear in the calculation of the complex image similarity criterion.

In the field of image classification, Liu Pengio et al. [24] have proposed a modified fuzzy c-means algorithm to solve the problem of large-scale image retrieval and classification, in which the initial condition of time-saving is considered. In this method, some images are always considered as just one large cluster, and therefore the classification result did not work well.

Proposed method

One of the applications of machine vision is in crash detection. In fact, due to the high number of accidents in Iran and the need for the timely presence of relief and law enforcement centers, the existence of an intelligent system that can detect the accident and inform the relevant centers can be very useful in speeding up the accident detection. In this study, an attempt is made to present a new method for crash detection as well as diagnosis of damaged parts of the car. The Fig. 1 shows the general flowchart of the proposed method.

Fig. 1

Overall flowchart of the proposed method

Initial car image segmentation

To identify different areas of the machine, it is necessary to perform the image segmentation step beforehand. In fact, by dividing the image and splitting the image into different parts. Then a label can be assigned to each of these parts in the next step, and the image classification step can be performed. The main innovation of this section is to provide a method to improve the segmentation of color images of accidents. The research tries to study the previous methods for color segmentation of color images to consider the strengths and weaknesses of each and to present a new method for color segmentation.

Previous segmentation-based methods in crash prediction have the following four major weaknesses:

  • Inefficiency for large images

  • Inability to process blurry images

  • Weakness to segment images in different lighting modes

  • Noise sensitivity

This article tries to provide solutions to all these problems.

In the first stage of image segmentation, the step of reducing the initial noise of the image is performed. In this article, Gaussian filler is used to reduce image noise. Gaussian filter is one of the conventional filters in reducing digital image noise that by adjusting the dimensions and variance of this filter, the effect of noise reduction and smoothing can be controlled. Since the noise added by the scanners is generally Gaussian, the use of this filter as a preprocessing step in image processing is quite common, which has also been used in the proposed algorithm. In the proposed method, using a Gaussian filter with a size of \(9\times 9\), the noise caused by imaging and digitizing it is reduced and its image information is extracted for the next parts.

After reducing the image noise, the image histogram is used to optimize the cluster centers in the image segmentation. A graph that shows the number of repetitions of different levels of gray in an image is called a histogram. In this diagram, the x-axis represents each of the gray planes and the y-axis represents the number of pixels corresponding to the different gray levels. To get the image histogram, it is enough to calculate the number of pixels of each brightness level by traversing the total pixels of the image.

The image histogram pan has peaks that can be considered as the center of the parts. Therefore, if the location of the separation of these peaks is detected, any part in the image can be identified. The histogram of each image is different and the location of the histogram peaks is not necessarily a specific region, and in some cases, the graph of each histogram increases with a slight decrease towards the other peak. So we need to use an algorithm to find the pixels around a peak to distinguish it from the existing peaks.

To calculate the competency function, we used a combination of two goals: the sum of the differences between the clustering centers and the pixels belonging to that class, as well as the distance between the centers. The smaller the difference between the clustering centers and the pixels belonging to that class and the greater the distance between the clustering centers, the higher the fit function. The objective function of the optimization algorithm is the sum of two different functions, one of which must be minimized and the other on should be maximized.

The sum function of the difference between the clustering centers, and the pixels belonging to the same class is shown below.

$$\sum_{i=1}^{c}\sum_{k=0}^{255}D({V}_{i},{X}_{k})\times h(k)$$

where, \(k\) is The range of intensity values from 0 (black) to 255 (white), and \(c\) is the number of clusters, \(D({V}_{i},{X}_{k})\) represents the distance of \(Pixe{l}_{k}\) from the \(Cente{r}_{i}\). Also, h (k) represents the normalized histogram of \(Light\_Intensit{y}_{k}\). As can be seen in the above relation, in this relation the smaller the total distance of different pixels from the center of their respective clusters, the smaller the objective function will be. In this regard, the histogram value of each pixel also affects the value of the objective function. The larger the histogram of a pixel, the greater the effect on the value of the objective function. In the proposed method in this study, it is preferred to select the centers of each piece close to the peaks of the histogram to reduce the segmentation error. Combining this goal, which is the error of clustering different parts to distance the centers of the clusters from each other, can provide a suitable objective function in segmenting images. In this paper, the particle swarm optimization (PSO) algorithm will be used to optimize the specified fit function. In fact, in this paper, the PSO is used to optimize the peaks as well as the image segmentation. PSO is a universal method of minimization that can be used to deal with problems whose answer is a point or surface in n-dimensional space. In such a space, an initial velocity is assigned to them, and communication channels between the particles are considered. These particles then move in the response space, and the results are calculated based on a “competency criterion” after each time interval. Over time, particles accelerate toward particles that have a higher competency standard and are in the same communication group. Although each method works well in a range of problems, the particle optimization algorithm of the method has shown great success in solving continuous optimization problems.

At each step of the PSO algorithm, the position and velocity of each particle are updated. Two criteria are used to do this. The first is the best position the particle has ever reached, known as the pbest, and the second is the best position ever obtained by the particle population. This position is displayed with gbest. In the particle optimization algorithm, each particle is displayed in the search space with the \({x}_{i}\) vector. It also has a velocity of \(v\), which is indicated by the vector \({v}_{i}\). In each repeated iteration, the velocity and location of each particle are measured using the following equations.

$$v=v\times \omega +{C}_{1}\times {r}_{1}\times \left(pbest-x\right)+ {C}_{2}\times {r}_{2}\times (gbest-x)$$

Here, \(x\) is the position of particle, \(v\) is velocity of particles, \(\omega\) is an input weight that determines the effect of velocity on the previous repetition on current velocity. Also, \({C}_{1}\) and \({C}_{2}\) are two random values between zero and one. Also in Eq. (3) the \(\times\) operator indicates a Vector Product between to matrix. In this equation, the position of the particles is updated. The parameter w is a constant weight of inertia, and for the classic version of PSO, this value is a constant positive value. In the classic version of PSO, the value of the parameter w is positive. This parameter is important for balancing global search, which is also called exploration (when higher values are set) and local search (when lower values are set). One of the most important differences between the classical PSO algorithm and other versions derived from this algorithm is the w parameter. The velocity that updates the first expression in the equation is the internal multiplication of the parameter w and the anterior velocity of the particle. Therefore the previous motion of the particle is displayed to the current motion. Hence, for example, if w = 1, the motion of the particle is completely affected by its previous motion; Therefore, the particle may continue to move in the same direction.

The pseudocode of PSO algorithm for this work is shown in Algorithm 1.


Classification of different areas of the car

After the segmentation stage, it is the turn of the image classification stage. The main purpose of many image processing algorithms is to extract specific features of the image, so that based on these properties, interpretations of the image appear or decisions are made. Such operations are frequently used, especially in the field of machine vision.

In image processing, image classification and retrieval are two very important operations. Image recovery methods are usually based on the color, texture, shape, and meaning of the image. Today, the key parts of image classification and retrieval are based on three aspects. (1) Different methods of calculating the degree of similarity, which include extracting the color feature and combining several features, (2) Reciprocal retrieval figures using the feedback grid, and (3) Image classification using the fuzzy clustering method. Recently, accuracy and recall rates have been used to evaluate the performance of image retrieval results.

In recent years, due to the growing need for optimal image classification in large databases, extensive research has been conducted in the field of image classification. The first ideas were put forward in the early 1990s, in which images were categorized without regard to their visual features and based solely on text annotations; In such a way that the concepts in the image were recognized by the operator and stored in the database as the keywords of the image. In this way, users had access to the relevant images using their desired keywords. This method is called text-based image classification [25].

In the field of image classification, various methods have been introduced to calculate the fuzzy similarity criterion, which uses the fuzzy part of the HSI color space. In this method, if there is no color in one image to calculate the degree of similarity of that color ratio between two images, by increasing the color ratio in the other image, the similarity criterion remains constant at zero; Although this method is generally logical, its implementation does not seem reasonable [26]. In addition, the color spectrum feature includes 360 elements that are divided into 8 sections. The number of these sections is not enough, and very large errors appear in the calculation of the complex image similarity criterion. Various things have been done in the field of image classification. In some previous work, to solve the problem of retrieving and classifying large-scale images, a fuzzy c-means algorithm has been proposed in which the initial condition of saving time is considered, but in this method, some images Are always considered as a single large cluster and therefore, the result of classification has not been very efficient [27, 28].

The HSI color model (hue, saturation, color intensity) is closely related to human interpretation of color. The HSI model also has the advantage of separating color and gray information in an image.

HSI color space is introduced when the user wants to specify color properties. This model needs a strong cluster of skin colors for better performance. Users can specify color properties by specifying this color model. For this model to perform better, a cluster of skin colors is necessary.

The HSI color model in a color image separates the light intensity components from the color carrier information (shade and saturation). As a result, this color space will be suitable for color-based image processing algorithms. Important components of the HSI color space are the axis of vertical light intensity, the length of the vector from the origin to the color point, and the angle that this vector has with the red axis.

In this paper, a method of classifying and retrieving different parts of an image using clustering and fuzzy similarity criteria is introduced. In this method, the criterion of similarity of two images, even when there is no color in one of the two images, seems reasonable. On the other hand, choosing a clustering center would be much more logical than the method mentioned in the previous methods, and thus, the classification result would be more efficient.

In most of the fuzzy clustering methods previously proposed for image retrieval, some images are always considered as just one large cluster, and therefore the classification result does not work well. In this paper, a method for classifying and retrieving a color image using clustering and fuzzy similarity criteria is introduced. In this method, the criterion of similarity of two images, even when there is no color in one of the two images, seems reasonable. On the other hand, choosing a clustering center would be much more logical than the method mentioned above, and thus the classification result would be more efficient.

In this paper, a method is proposed in which the similarity between two images is measured by considering the color characteristics of an image such as the color spectrum. The F-test criterion has also been used in this study; The criterion that finds the best threshold for finding fuzzy segmentation [29]. In this paper, a framework is introduced in which the images can be compared with each other concerning the fuzzy similarity criterion, which is calculated based on the color spectrum feature vector, and thus, the image can be retrieved. Image classification is also done using fuzzy clustering.

Final areas damage detection

At this stage of the proposed method, the final diagnosis should be made based on the training phase. The image pattern of the crash car, as well as the damaged parts of the car, should be identified. An important issue concerning data mining applications such as pattern recognition is the problem of large data sets in which the number of attributes is much larger than the number of patterns. For example, in recognizing control chart patterns that include very large datasets, the classifier parameters also increase. As a result, the performance of the classifier decreases dramatically. High-dimensional datasets reduce the performance of the classifier in two ways. On the one hand, with increasing the size of the data, the computational volume increases, and on the other hand, the model based on high-dimensional data has low generalizability, and the probability of over-fitting increases [30,31,32]. As a result, reducing the size of the problem can both reduce computational complexity and improve the performance of classification algorithms. It can be said that due to the special characteristics of the data that the data are independent and all-distributed, abnormal, autocorrelated, and multivariate, the traditional methods of detecting the control chart pattern for this data will not be very efficient. As a result, it is necessary to first reduce the data dimensions using a dimensional reduction method and then use an efficient classification algorithm for the final diagnosis.

In this paper, a new graph-based technique will be used for the feature extraction step. To do this, first, the initial features of the image are represented as a graph, and then based on the represented features and using the graph fitting technique, the final features are selected for the pattern prediction step.

Many existing methods use a single classification to identify the pattern of the accident [33,34,35]. Since each classification has its own characteristics, individual classifications have less combinability than a combination of multiple classifiers. In other words, multiple classifications are usually more accurate because of the variety of constructor classifiers and their function [36,37,38,39]. In this paper, an attempt is made to use a strategy based on the classifier combination using the majority voting mechanism to effectively combine the predictions from different classification algorithms [40,41,42]. For this purpose, in this paper, we used five classifiers: Support Vector Machine (SVM), decision tree (DT), nearest neighbor (KNN), simple Bayesian (NB) and Neural Network (NN). The subset of the feature selected in the previous input step constitutes the control pattern recognition model. Given that the final prediction of the crash pattern from the prediction combination of each of these classifiers is done using a learning mechanism, the final prediction model of the classifier is based on the majority vote. In this research, for the first time, a classifier combination based on majority voting and the graph fitting reduction technique [43] is used to improve the accuracy of accident detection and the detection of damaged areas.

Experimental results

In this section, the performance of the proposed methods for the problem of detecting damaged areas in traffic accidents is evaluated. For this purpose, the proposed method of one of the new methods in this field is compared.

MATLAB programming language is used in this article to implement feature selection methods. Also, all the tests in this article were performed on a system with a 2.3 GHz Corei3 processor and 2 GB of internal memory (RAM). In the rest of this section, the data sets used to identify accident-affected areas, as well as practical results, are described, respectively.

In this work, a set of crash images collected from YouTube and used in the base article was selected to evaluate the proposed method. This data set includes 300 surveillance videos at a speed of 30 frames per second (FPS) from which various images of accidents were extracted. All data samples tested by this model are CCTV footage recorded at road junctions around the world. This dataset includes accidents in various environmental conditions such as strong sunlight, daylight hours, snow, and night hours.

Figure 2 shows an example of the images in this dataset.

Fig. 2

An example of the used images data

The proposed methods include various parameters that must be quantified before the classifier design process. It should be noted that some of these parameters are not limited to these proposed methods, and in many classification design methods based on evolutionary algorithms, these parameters must also be set. The appropriate values for some of these parameters have been selected by trial and error after several initial runs, so they do not mean the best value for these parameters. The number of iterations (I) parameter indicates the number of iterations of the particle swarm optimization algorithm. In most cases, the proposed method with less than 100 iterations will be able to search for the optimal subset. The higher this parameter is set to a larger number, the higher the execution time of the algorithm and the higher the chance of achieving the global optimal. Of course, it should be noted that in many evolutionary algorithms, after a certain number of iterations, the algorithm converges, and then there is no change in the population. The population size parameter (A) is a parameter affecting the performance of the particle optimization algorithm that must be properly quantified. This parameter specifies the number of particles in the algorithm. In the proposed methods, the value of this parameter is set to 50. It is clear that the larger the value of this parameter, the more particles there are in the population and the higher the probability of searching the entire problem space. On the other hand, too much value for this parameter may prevent the convergence of the particle optimization algorithm. Therefore, the correct value of this parameter so that it is neither too big nor too small has a huge impact on the convergence of the algorithm. The other two parameters in the particle optimization algorithm are \({\mathrm{C}}_{1}\) and \({C}_{2}\), which determines the importance of the individual and social position of each particle. In the proposed method, these two parameters are set to 1.5. Table 1 shows the values and specifications of these parameters.

Table 1 The parameters of the proposed method

In this section, we introduce the classification evaluation criteria that we use to evaluate the performance of the proposed systems.

The three criteria that are mainly used to evaluate the quality of performance of algorithms for detecting damaged areas are Sensitivity, Specificity, and Classification Rate, which are introduced in the following terms, respectively.

$$Sensitivity = \frac{TP}{TP+FN} ,$$
$$Classification\,Rate=\frac{TP+TN}{TP+FP+TN+FN} ,$$

where TP, TN, FP, and FN represent True Positive, True Negative, False Positive, and False Negative, respectively.

Another criterion used in this article to compare different methods is execution time. In fact, using this criterion, the computational complexity of different methods is examined. Clearly, the less time a classifier is able to identify damaged areas, the more efficient it is and the less computationally complex it is.

In experiments on the proposed method, the data set is randomly divided into training data, experimental data. For this purpose, 70% of the data set is considered educational data, and the remaining 30% is experimental data. Also, in all experiments, after identifying the educational and experimental sets, each classification method is performed ten times, and an average of ten different implementations is used to compare different methods.

Figures 3 and 4 show an example of the area detected in the image and area detection using the proposed method.

Fig. 3

First example of areas damage detection

Fig. 4

First example of areas damage detection

In Table 2, the proposed method, which uses segmentation based on the particle optimization algorithm in the standard mode, is compared with Two-stream Convolutional Networks method [5]. In this table, Sensitivity, Specificity, and Classification rates are evaluated in the proposed method and the base paper method.

Table 2 Comparison of the proposed method with Two-stream Convolutional Networks method

Table 3 also compares the performance of the proposed method when using a hybrid classifier compared to a single classifier mode. The results of this table show to what extent the hybrid classifier-based method has improved performance. As each classification has its own characteristics, single classifications are less effective than hybrid classifiers. Due to the variety of constructor classifiers and their functions, multiple classifications are usually more accurate.

Table 3 Comparison of the single classifier with the embedded classifier

Table 4 also shows the execution time for the proposed method and Two-stream Convolutional Networks method, respectively. As the results of this experiment show, the proposed method has a shorter execution time. Due to the fact that the deep learning method requires more training and its convergence time is longer, the proposed method has less implementation time.

Table 4 Comparison of expectation time in proposed method and Two-stream Convolutional Networks method

Figure 5 also analyzes the sensitivity of the proposed method to the particle number parameter in the PSO algorithm. As can be seen in this figure, when the number of particles is considered equal to 100 particles, the proposed method has the highest accuracy.

Fig. 5

Sensitivity of the proposed method

Also, in the last experiment, the proposed method was compared with iterated algorithms for optimization, such as Newton and the Steepest Gradient. The result of this experiment is shown in Fig. 6. As seen in the reported result of the Fig. 6, the proposed method is much better than the Newton and the Steepest Gradient algorithm.

Fig. 6

Comparison of different methods


Crash detection is one of the applications of machine vision. In fact, it will be very useful to have an integrated system capable of detecting accidents and informing the appropriate agencies as soon as an accident occurs due to the large number of accidents in the world and the necessity that relief and law enforcement agencies respond immediately to accidents. This study proposes a novel method to diagnose the accident and to identify the damaged parts of the car. A car image is classified using image segmentation, followed by car vision methods to identify the damaged areas of the image. In comparison to previous works, the proposed method is more accurate in identifying damaged areas and takes less time to execute. Like most car vision-based crash detection methods, the proposed method in this research required a lot of training data. As a result, future work should focus on methods that require less training data.

Availability of data and materials

The dataset used in this study can be obtained from the corresponding author on reasonable request.



Differentially expressed genes


Ordinary differential equation


Partial differential equation


Support vector machines


Principal components analysis


Machine learning


Non-small cell lung cancer


Fisher score


Leave one out


  1. 1.

    Xiao H, Hu Z, Yue T. Blind IR spectral deconvolution for image feature extraction via sparse representation regularization. Infrared Phys Technol. 2019.

    Article  Google Scholar 

  2. 2.

    Ahmadvand H, Goudarzi M, Foroutan F. Gapprox: using gallup approach for approximation in big data processing. J Big Data. 2019.

    Article  Google Scholar 

  3. 3.

    Frustaci F, Perri S, Cocorullo G, Corsonello P. An embedded machine vision system for an in-line quality check of assembly processes. Procedia Manuf. 2020.

    Article  Google Scholar 

  4. 4.

    Shu Y, Xiong C, Fan S. Interactive design of intelligent machine vision based on human-computer interaction mode. Microprocess Microsyst. 2020.

    Article  Google Scholar 

  5. 5.

    Huang X, He P, Rangarajan A, Ranka S. Intelligent intersection: two-stream convolutional networks for real-time near-accident detection in traffic video. ACM Trans Spat Algorithms Syst. 2020;6(2):1–28.

    Article  Google Scholar 

  6. 6.

    Parsa AB, Movahedi A, Taghipour H, Derrible S, Mohammadian A. Toward safer highways, application of XGBoost and SHAP for real-time accident detection and feature analysis. Accid Anal Prev. 2020;136: 105405.

    Article  Google Scholar 

  7. 7.

    Impana H, Hamsaveni M, Chethana H. A review on smart helmet for accident detection using IOT. EAI Endorsed Trans Internet Things. 2020.

    Article  Google Scholar 

  8. 8.

    Gliński J, Horabik J, Lipiec J. Machine Vision in Agriculture. Encyclopedia of agrophysics. Dordrecht: Springer; 2011. p. 433–436.

    Book  Google Scholar 

  9. 9.

    Gao J, Wang B, Wang Z, Wang Y, Kong F. A wavelet transform-based image segmentation method. Optik. 2020;208: 164123.

    Article  Google Scholar 

  10. 10.

    Long X, Sun J. Image segmentation based on the minimum spanning tree with a novel weight. Optik. 2020;221: 165308.

    Article  Google Scholar 

  11. 11.

    Pham TX, Siarry P, Oulhadj H. Integrating fuzzy entropy clustering with an improved PSO for MRI brain image segmentation. Appl Soft Comput. 2018;65:230–42.

    Article  Google Scholar 

  12. 12.

    Zhang Y, Huang D, Ji M, Xie F. Image segmentation using PSO and PCM with Mahalanobis distance. Expert Syst Appl. 2011;38(7):9036–40.

    Article  Google Scholar 

  13. 13.

    Tan KS, Mat Isa NA, Lim WH. Color image segmentation using adaptive unsupervised clustering approach. Appl Soft Comput. 2013;13(4):2017–36.

    Article  Google Scholar 

  14. 14.

    Benaichouche AN, Oulhadj H, Siarry P. Improved spatial fuzzy c-means clustering for image segmentation using PSO initialization, Mahalanobis distance and post-segmentation correction. Digit Signal Process. 2013;23(5):1390–400.

    MathSciNet  Article  Google Scholar 

  15. 15.

    Ayala HVH, Santos FMD, Mariani VC, Coelho L. Image thresholding segmentation based on a novel beta differential evolution approach. Expert Syst Appl. 2015;42(4):2136–42.

    Article  Google Scholar 

  16. 16.

    Wang XY, Sun WW, Wu ZF, Yang HY, Wang QY. Color image segmentation using PDTDFB domain hidden Markov tree model. Appl Soft Comput. 2015;29:138–52.

    Article  Google Scholar 

  17. 17.

    Liapis S, Tziritas G. Color and texture image retrieval using chromaticity histograms and wavelet frames. IEEE Trans Multimedia. 2004;6(5):676–86.

    Article  Google Scholar 

  18. 18.

    ChuenHorng L, Wei CL. Image retrieval system based on adaptive color histogram and texture features. Comput J. 2011;54(7):1136–47.

    Article  Google Scholar 

  19. 19.

    Lin CH, Chen HY, Wua YS. Study of image retrieval and classification based on adaptive features using genetic algorithm feature selection. Expert Syst Appl. 2014;41(15):6611–21.

    Article  Google Scholar 

  20. 20.

    Zhenyu H, Xinge Y, Yuan Y. Texture image retrieval based on non-tensor product wavelet filter banks. Signal Process. 2009;89(8):1501–10.

    Article  Google Scholar 

  21. 21.

    Tzagkarakis G, Lozano BB, Tsakalides P. Rotation-invariant texture retrieval via signature alignment based on Steerable sub-Gaussian modeling. IEEE Trans Image Process. 2008;17(7):1212–25.

    MathSciNet  Article  Google Scholar 

  22. 22.

    Ju H, Kuang MK. Rotation-invariant and scale-invariant Gabor features for texture image retrieval. Image Vis Comput. 2007;25(9):1474–81.

    Article  Google Scholar 

  23. 23.

    Nachtegael M, Weken DVD, Witte VD, Schulte S, Melange T, Kerre EE. Color image retrieval using fuzzy similarity measures and fuzzy partitions. Image Process. 2007;6:VI-13-VI–16.

    Google Scholar 

  24. 24.

    Pengyu L, Kebin J, Peizhen Z. An effective method of IMAHE retrieval based on modified fuzzy c-means clustering scheme. Signal Process. 2006. 3.

  25. 25

    Xu Y, Zhang B, Zhong Z. Multiple representations and sparse representation for image classification. Pattern Recogniti Lett. 2015;68:9–14.

    Article  Google Scholar 

  26. 26

    Vipparthi SK, Murala S, Nagar SK, Gonde AB. Local Gabor maximum edge position octal patterns for image retrieval. Neurocomputing. 2015;167:336–45.

    Article  Google Scholar 

  27. 27.

    Ngo LT, Mai DS, Pedrycz W. Semi-supervising Interval Type-2 Fuzzy C-Means clustering with spatial information for multi-spectral satellite image classification and change detection. Comput Geosci. 2015;83:1–16.

    Article  Google Scholar 

  28. 28.

    Mukhopadhyay S, Dash JK, Gupta RD. Content-based texture image retrieval using fuzzy class membership. Pattern Recognit Lett. 2013;34(6):646–54.

    Article  Google Scholar 

  29. 29

    Sureiman O, Mangera CM. F-test of overall significance in regression analysis simplified. J Pract Cardiovasc Sci. 2020;6:116–22.

    Article  Google Scholar 

  30. 30.

    Cadenas JM, Garrido MC, Martínez R. Feature subset selection Filter-Wrapper based on low quality data. Expert Syst Appl. 2013;40(16):6241–52.

    Article  Google Scholar 

  31. 31.

    Liu Y, Zheng YF. FS_SFS: A novel feature selection method for support vector machines. Pattern Recognit. 2006;39(7):1333–45.

    Article  Google Scholar 

  32. 32.

    Sun X, Liu Y, Li J, Zhu J, Liu X, Chen H. Using cooperative game theory to optimize the feature selection problem. Neurocomputing. 2012;97:86–93.

    Article  Google Scholar 

  33. 33.

    Lin SY, Guh RS, Shiue YR. Effective recognition of control chart patterns in autocorrelated data using a support vector machine based approach. Comput Ind Eng. 2011;61(4):1123–34.

    Article  Google Scholar 

  34. 34

    Rostami M, Berahmand K, Nasiri E, Forouzande S. Review of swarm intelligence-based feature selection methods. Eng Appl Artif Intell. 2021;100: 104210.

    Article  Google Scholar 

  35. 35.

    Rostami M, Berahmand K, Forouzandeh S. A novel method of constrained feature selection by the measurement of pairwise constraints uncertainty. J Big Data. 2020;7(1):1–21.

    Article  Google Scholar 

  36. 36.

    Rostami M, Berahmand K, Forouzandeh S. A novel community detection based genetic algorithm for feature selection. J Big Data. 2021;8(1):1–27.

    Article  Google Scholar 

  37. 37

    Forouzandeh S, Rostami M, Berahmand K. Presentation a Trust Walker for rating prediction in recommender system with Biased Random Walk: effects of H-index centrality, similarity in items and friends. Eng Appl Artif Intell. 2021;104: 104325.

    Article  Google Scholar 

  38. 38

    Valizadeh A, Ghoushchi SJ, Ranjbarzadeh R, Pourasad Y. Presentation of a segmentation method for a diabetic retinopathy patient’s fundus region detection using a convolutional neural network. Comput Intell Neurosci. 2021.

    Article  Google Scholar 

  39. 39.

    Forouzandeh S, Berahmand K, Nasiri E, Rostami M. A hotel recommender system for tourists using the Artificial Bee Colony Algorithm and Fuzzy TOPSIS Model: a case study of tripadvisor. Int J Inf Technol Decis Mak. 2021;20(01):399–429.

    Article  Google Scholar 

  40. 40.

    Qazani MRC, Asadi H, Rostami M, Mohamed S, Lim CP, Nahavandi S. Adaptive motion cueing algorithm based on fuzzy logic using online dexterity and direction monitoring. IEEE Syst J. 2021.

    Article  Google Scholar 

  41. 41

    Berahmand K, Nasiri E, Rostami M, Forouzandeh S. A modified DeepWalk method for link prediction in attributed social network. Computing. 2021.

    MathSciNet  Article  Google Scholar 

  42. 42.

    Forouzandeh S, Berahmand K, Rostami M. Presentation of a recommender system with ensemble learning and graph embedding: a case on MovieLens. Multimed Tools Appl. 2021;80(5):7805–32.

    Article  Google Scholar 

  43. 43

    Goval P, Ferrara E. Graph embedding techniques, applications, and performance: a survey. Knowl Based Syst. 2018;151:78–94.

    Article  Google Scholar 

Download references





Author information




The specific contributions made by each author is as follows: MA: Conceptualization, methodology, implementation, writing—original draft, writing—review and editing. MP: conceptualization, methodology, implementation, writing—original draft, writing—review and editing. All authors have read and approved the final manuscript.

Corresponding author

Correspondence to Mahboub Parhizkar.

Ethics declarations

Ethics approval and consent to participate

Not applicable.

Consent for publication

Not applicable.

Competing interests

The authors declare that they have no competing interests.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

Amirfakhrian, M., Parhizkar, M. Integration of image segmentation and fuzzy theory to improve the accuracy of damage detection areas in traffic accidents. J Big Data 8, 147 (2021).

Download citation


  • Machine vision
  • Image processing
  • Image segmentation
  • Dimensional reduction
  • Crash damage detection