Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Underwater sonar image detection: A combination of non-local spatial information and quantum-inspired shuffled frog leaping algorithm

  • Xingmei Wang ,

    Contributed equally to this work with: Xingmei Wang, Shu Liu

    wangxingmei@hrbeu.edu.cn

    Affiliation College of Computer Science and Technology, Harbin Engineering University, Harbin, Heilongjiang Province, P.R. China

  • Shu Liu ,

    Contributed equally to this work with: Xingmei Wang, Shu Liu

    Affiliation Brainnetome Center, Institute of Automation, Chinese Academy of Sciences, Beijing, PR China

  • Zhipeng Liu

    Affiliation Key Lab of Intelligent Information Processing of CAS, Institute of Computing Technology, Chinese Academy of Sciences, Beijing, PR China

Abstract

This paper proposes a combination of non-local spatial information and quantum-inspired shuffled frog leaping algorithm to detect underwater objects in sonar images. Specifically, for the first time, the problem of inappropriate filtering degree parameter which commonly occurs in non-local spatial information and seriously affects the denoising performance in sonar images, was solved with the method utilizing a novel filtering degree parameter. Then, a quantum-inspired shuffled frog leaping algorithm based on new search mechanism (QSFLA-NSM) is proposed to precisely and quickly detect sonar images. Each frog individual is directly encoded by real numbers, which can greatly simplify the evolution process of the quantum-inspired shuffled frog leaping algorithm (QSFLA). Meanwhile, a fitness function combining intra-class difference with inter-class difference is adopted to evaluate frog positions more accurately. On this basis, recurring to an analysis of the quantum-behaved particle swarm optimization (QPSO) and the shuffled frog leaping algorithm (SFLA), a new search mechanism is developed to improve the searching ability and detection accuracy. At the same time, the time complexity is further reduced. Finally, the results of comparative experiments using the original sonar images, the UCI data sets and the benchmark functions demonstrate the effectiveness and adaptability of the proposed method.

Introduction

Currently, underwater detection technology is used extensively for seabed surveys, salvage operations, pipe-line inspections, underwater positioning, and numerous other marine applications. Sonar is one of the most important detection equipment, which can analyze the underwater objects through acoustic intensity, frequency, and phase. Underwater sonar image contains three types of regions: object-highlight, shadow and background region. The object-highlight region originates from acoustic wave reflection from an object. The shadow region stems from a lack of acoustic backscatter behind the object. The remaining information consists of the so-called “background region” [1]. Due to the complexity of the underwater environment, sand, stones and animals in sea water can cause the gray values of the background region to be close to those of object-highlight region and the shadow region. Underwater sonar image contains a large amount of ambient noise and speckle noise from the surface or sea floor [2]. Therefore, removing these noises is an indispensable step in the process of underwater sonar image processing.

The spatial information include local spatial information and non-local spatial information, which are often used to remove image noise. Local spatial information uses only the neighborhood window of every pixel. Songcan Chen et al. [3] who define the mean spatial information and median spatial information by computing the mean value and median value in the neighborhood window of every pixel. Then, they were integrated into the objective function of the fuzzy C-means (FCM) clustering algorithm to eliminate the influence of noise in the image. L. Szilágyi et al. [4] presented the idea of linearly-weighted local spatial information. For each pixel, the spatial information was obtained from that pixel and its neighboring pixels. Subsequently, nonlinearly weighted local spatial information was proposed, which was determined not only from the original image and the gray values within the neighborhood window around each pixel but also from the spatial coordinates [5]. On this basis, Stelios Krinidis et al. [6] proposed a novel local spatial information called the local spatial fuzzy factor, which incorporated both local spatial distance and local gray information in a fuzzy way to balance noise and preserve the image detail. Hui Zhang et al. [7] incorporated local spatial information into the Gaussian Mixture Model, which greatly reduced the influence of noise during the process of image segmentation. Meanwhile, Long Thanh Ngo et al. [8] introduced an approach that exploits local spatial information between a pixel and its neighbors to remove noise from satellite images. However, there are many pixels that have similar neighborhood configuration with each pixel in an image [9]. Compared with using adjacent pixels, it is more reasonable to utilize pixels with a similar neighborhood configuration to obtain spatial information for a given pixel. This type of information is referred to as non-local spatial information. In the process of computing non-local spatial information, two windows must be defined: the search window and the neighborhood window. Using the neighborhood windows of two pixels, the weighted Euclidean distance between two pixels can be computed, which can describe the similarity between those two pixels. By computing the weighted Euclidean distance between every pixel and the center pixel in the search window, the weight of every pixel in the search window can be obtained. The greater the distance, the smaller the weight of this pixel. The weighted average value of all the pixels in the search window is defined as the non-local spatial information. Jie Feng et al. [10] proposed a method to remove noise in radar images using non-local spatial information. Feng Zhao et al. [11, 12] utilized non-local spatial information to reduce the noise in medical images.

Underwater sonar images have amounts of noise and relatively weak contrast. Although the non-local spatial information can solve the noise problem effectively, the selection of the filtering degree parameter greatly affects the denoising result when computing non-local spatial information. The mean value or median value of the weighted Euclidean distance between each pixel and its center pixel is generally used as the filtering degree parameter [9]. Through an analysis of comparative experiment results, when the filtering degree parameter is selected as the mean value or the median value, there are the filtering degree parameter values over a wide range. When the filtering degree parameter is relatively large, detail information is lost in the sonar image, especially boundary information. In contrast, when the filtering degree parameter is relatively small, the noise is not removed effectively in the sonar image. To solve this problem that non-local spatial information cannot remove noise effectively in sonar image because of inappropriate filtering degree parameter, a novel filtering degree parameter is proposed in this paper. Two threshold values are set to remove relatively large and small parameters according to characteristics of sonar image in experiment results. Through two threshold values, the denosing performance of non-local spatial information is improved to some extent. The proposed filtering degree parameter is conducive to the subsequent detection of underwater objects.

The purpose of object detection is to extract the object-highlight region and shadow region from the complex background region while preserving the original edge information of sonar image as much as possible [13]. At present, research on image detection technology is very extensive, but less work has been conducted in the field of object detection from underwater sonar images [14]. In particularly, the heuristic optimization algorithms are a new important research field in sonar image detection.

In recent years, heuristic optimization algorithms have gradually attracted more and more attention both domestically and abroad. Many researches have shown that these algorithms can solve numerous complicated computing problems. Among them, the genetic algorithm (GA) [15], the particle swarm optimization (PSO) [16] and the shuffled frog leaping algorithm (SFLA) [17] are the most commonly used. In 2003, Eusuff and Lansey proposed the SFLA, which combines the advantages of the Memetic Algorithm (MA) in terms of genetic evolution and the PSO algorithm in terms of social behavior [18, 19]. SFLA has a few parameters and good searching ability. Its structure is very simple and easy to implement. Moreover, its performance is better than GA and PSO. Therefore, SFLA has promising development and application prospects. Xiaodan Zhang et al. [20] developed power control algorithm in cognitive radio system based on a modified SFLA. Fan Tanghuai et al. [21] proposed a strategy to improve the learning process of frogs and extend the learning diversity of frog population. Subsequently, a fast SFLA was developed. The key idea was to improve computational speed [22]. Roy Priyanka et al. [23] presented a novel SFLA combined with the crossover of genetic algorithm to avoid falling into local optimum. To enhance the SFLA’s stability and the searching ability, Taher Niknam et al. [24] proposed a chaotic local search algorithm, while Anis Ladgham et al. [25] used an improved SFLA to complete fast MR image segmentation. S. Safaei Arshi et al. [26] proposed multi-objective SFLA for in-core fuel management optimization. Moreover, a multi-phase modified SFLA with external optimization is introduced to solve a multi-depot vehicle routing problem (MDVRP) more quickly [27]. Although their results were satisfactory, there are still many improvements in SFLA, such as dividing the frog population more legitimately, improving local search process, finding a method to update the local worst frog, exchanging global information better, and so forth. Currently, one of the most important improved methods is to combine the SFLA with quantum-inspired theory, which can increase the population diversity, enhance the searching ability, accelerate the convergence rate, and avoid premature. The key idea of the quantum-inspired algorithm is to improve SFLA by a model from quantum computing [28].

The frog population is encoded by the quantum bits in QSFLA. In the processes of local and global search, the frog population is updated by the rotation angle which changes according to local optimum and global optimum. However, there are few researches on QSFLA, and there is no application on sonar image detection according to the authors’ knowledge. Hongyuan Gao et al. [29] introduced a QSFLA and its application in cognitive radio. Later, Lianguo Wang et al. [30] proposed a quantum binary SFLA to solve the 0–1 knapsack problems successfully. The quantum rotation gate is replaced by the phase angle to update the frog individual, which is relatively simple and can avoid premature. To enhance the searching ability, Weiping Ding et al. [31, 32] proposed a minimum attribute self-adaptive cooperative co-evolutionary reduction algorithm based on quantum elitist frogs, in which all frog individuals in a sub-population participate in the local search. However, this algorithm has very high time complexity, and it is also difficult to determine the quantum rotation angle. Sonar images have amounts of noise and relatively weak contrast. Although some noise can be removed by the proposed denoising method in this paper, it is still difficult to obtain relatively accurate detection results by QSFLA [31, 32]. For solving the problem that the QSFLA cannot precisely and quickly detect underwater objects in sonar image because of search mechanism, QSFLA-NSM is given in this paper. Using the clustering centers to describe the frog population after the proposed denoising method in this paper, each frog individual can be directly encoded by real numbers to greatly simplify the evolution process of QSFLA. Meanwhile, to evaluate the frog positions more accurately, a fitness function combining intra-class difference with inter-class difference is adopted. In the process of search, a new search mechanism that combines the quantum search mechanism of QPSO with SFLA is proposed to improve the searching ability and detection accuracy. Simultaneously, the time complexity can also be further reduced. Specifically, the local attractor point is obtained by the local best frog in the sub-population and the global best frog in the whole population. Moreover, the new search mechanism does not need to calculate the average best position of the whole population to update the frog individual, on the contrary, it utilizes the local best frog to update the worst frog in the sub-population. If the worst frog in the sub-population is not improved, the local best frog is replaced by the global best frog in the whole population, and the worst frog in the sub-population is updated again. If the worst frog in the sub-population still is not improved, the new frog individual is randomly generated to replace the worst frog in the sub-population.

The proposed underwater sonar image detection method is applied to original sonar images, the simulation results show the good effectiveness and a powerful searching ability. Compared with the results of QSFLA, SFLA, QPSO, PSO, the quantum genetic algorithm (QGA) and GA, the better adaptability of the proposed method is further demonstrated by the UCI data sets and the benchmark functions. The proposed method has important theoretical and practical value.

Non-local spatial information denoising method with a novel filtering degree parameter

Non-local spatial information

The search window and the neighborhood window are defined in non-local spatial information. Suppose the search window radius is 2, and the neighborhood window radius is 1. The schematic diagram is shown in Fig 1.

thumbnail
Fig 1. Schematic diagram of search window and neighborhood window.

https://doi.org/10.1371/journal.pone.0177666.g001

As depicted in Fig 1, {f1,f2,⋯,f25} is a search window, and f13 is the center pixel of the search window. There is a neighborhood window for every pixel in the search window. For example, {f3,f4,f5,f8,f9,f10,f13,f14,f15} is the neighborhood window of f9.

A sonar image is defined as X = {x1,x2,⋯,xn}, which contains n pixels. xj is the j-th pixel in sonar image, and its non-local spatial information is expressed as follows [11]: (1) where is the search window, its center is the j-th pixel xj and the radius is r. The weight wjp represents the similarity of neighborhood configuration between the center pixel xj and the p-th pixel xp, 0≤wjp≤1, .

wjp is expressed as follows: (2) (3) where Nj represents the neighborhood window whose center is the j-th pixel xj and the radius is s. Similarly, Np represents the neighborhood window whose center is the p-th pixel xp and the radius is s. Then, x(Nj) is the vector that contains all the pixels in the neighborhood window Nj. Meanwhile, x(Np) is the vector that contains all the pixels in the neighborhood window Np. The filtering degree parameter h controls the decay of the exponential function, and is the weighted Euclidean distance.

is expressed as follows [10]: (4) where x(q)(Nj) is the pixel in the q-th dimension of the vector x(Nj).

ρ(q) is defined as (5) (6) Where yq = mod(q,(2s+1)), zq = floor(q,(2s + 1)) + 1. (yq,zq) is the coordinates of neighborhood window in the dimension q-th.

A novel filtering degree parameter

The filtering degree parameter h is a very important parameter. Its value can powerfully impact on the weight of neighborhood configuration in the Eqs (2) and (3). Therefore, the filtering degree parameter h is closely related to denoising result in non-local spatial information denoising method. Through an analysis of comparative experiment results, when the filtering degree parameter is selected as the mean value or median value, there are the filtering degree parameter values over a wide range. When the filtering degree parameter is relatively large, detail information is lost in the sonar image, especially boundary information. In contrast, when the filtering degree parameter is relatively small, the noise of sonar image cannot be removed effectively.

Fig 2 shows the denoising results of an original sonar image with floating objects when the selected filtering degree parameter is the mean value or the median value.

thumbnail
Fig 2. Denoising results of original sonar image using the mean value or the median value (image size: 153×158).

(a) original sonar image, (b) and (d) are the denoising result and filtering degree parameter respectively when h is the mean value (r = 5, s = 2), (c) and (e) are the denoising result and filtering degree parameter respectively when h is the median value (r = 5, s = 2).

https://doi.org/10.1371/journal.pone.0177666.g002

As can be seen from Fig 2(d) and 2(e), most of the filtering degree parameter values are less than 0.05. But there are still many abnormal parameter values, some of which are greater than 0.1 and some of which are significantly less than 0.01. The abnormally large parameter values lead to a loss of detail information in sonar image, especially boundary information. This result causes some noisy regions to be incorrectly detected as underwater objects. At the same time, to effectively remove the noise, the filtering degree parameter cannot be relatively too small.

FCM is a simple, fast and relatively effective algorithm [14]. Therefore, to verify the influence of different filtering degree parameter values on the detection results for sonar image, Fig 3 shows the detection results of FCM on the image shown in Fig 2(a).

thumbnail
Fig 3. Detection results of FCM: Different filtering degree parameter values.

https://doi.org/10.1371/journal.pone.0177666.g003

As depicted in Fig 3, the large white regions are the object-highlight regions, the large black regions are the shadow regions and the grey region is the background region. The remaining small regions are the isolated regions of detection result, which is caused by the noise. When h = 0.01, the detection result is not ideal, and when h>0.05, all detection results are getting worse. Therefore, the filtering degree parameter should be neither relatively large nor small. To effectively remove the noise, a novel filtering degree parameter is proposed in this paper. Two threshold values defined as hmax and hmin respectively are set to remove relatively large and small parameter values. This can improve the denoising performance of non-local spatial information to some extent and is also conducive to the subsequent detection of underwater objects.

For every pixel xj in sonar image, its filtering degree parameter h is defined as (7) (8) where hmax = 0.05 and hmin = 0.01 according to characteristics of sonar image.

Fig 4 shows the denoising results of non-local spatial information with this novel filtering degree parameter on the image shown in Fig 2(a).

thumbnail
Fig 4. Denoising results of original sonar image with a novel filtering degree parameter (image size: 153×158).

(a) denoising result of the proposed denoising method in this paper, (b) filtering degree parameter when h is selected according to Eq (8).

https://doi.org/10.1371/journal.pone.0177666.g004

As shown in comparative results, the proposed novel filtering degree parameter is relatively stable, and its values are mainly distributed in the interval [0.01, 0.05].

Effective evaluation of the proposed denoising method

The normalized mean squared error (NMSE) [33], the quality factor (QF) [34] and the mean structural similarity (MSSIM) [35] are used to objectively and quantitatively evaluate the denoising result of sonar image in this paper.

Table 1 shows the evaluation analysis results for Figs 2(b), 2(c) and 4(a).

As listed in Table 1, NMSE is the smallest, QF and MSSIM are the largest in Fig 4(a). Therefore, the proposed denoising method can obtain better denoising result of sonar image in this paper.

To verify the adaptability of the proposed denoising method, Fig 5 shows the denoising results of the original sonar image with underwater stones on the bottom, which has relatively weak contrast.

thumbnail
Fig 5. Denoising results of original sonar image (image size: 112×117).

(a) original sonar image, (b) denoising result when h is the mean value (r = 5, s = 2), (c) denoising result when h is the median value (r = 5, s = 2), (d) denoising result of the proposed denoising method in this paper.

https://doi.org/10.1371/journal.pone.0177666.g005

Table 2 shows the evaluation analysis results for Fig 5(b), 5(c) and 5(d).

Fig 6 shows the denoising results of structured seabed, which is an object in sand ripples.

thumbnail
Fig 6. Denoising results of original sonar image (image size: 259×368).

(a) original sonar image, (b) denoising result when h is the mean value (r = 5, s = 2), (c) denoising result when h is the median value (r = 5, s = 2), (d) denoising result of the proposed denoising method in this paper.

https://doi.org/10.1371/journal.pone.0177666.g006

Table 3 shows the evaluation analysis results for Fig 6(b), 6(c) and 6(d).

The following conclusions can be drawn by the preceding comparative experiments, NMSE is the smallest, QF and MSSIM are the largest in Figs 5(d) and 6(d). Therefore, the proposed denoising method can avoid the disadvantages of filtering degree parameter in non-local spatial information, which can effectively remove noise, and has a certain adaptability. Meanwhile, the object-highlight and shadow regions are more prominent compared with the background region, so these results are conducive to the subsequent detection of underwater objects.

QSFLA-NSM

In QSFLA, the frog population is usually encoded by the quantum bits and updated by quantum rotation gate. However, the time complexity of this search mechanism is very high, and it is also difficult to determine the quantum rotation angle. Compared with QSFLA, the search mechanism of QPSO needs fewer parameters [36], and each particle can be directly encoded by real numbers to greatly simplify the evolution process. Meanwhile, particles move in delta potential well of the search space [37]. The congregation of the particle swarm doesn’t lose the randomness and particles can appear on any position of the whole space which is searched in a certain probability. When one particle finds an optimal state, the others quickly converge to it [38, 39]. Therefore, QPSO has relatively good searching ability. But many studies showed that the algorithm structure of QPSO and PSO is not as good as that of QSFLA and SFLA. SFLA combines the advantages of Memetic Algorithm (MA) in terms of genetic evolution and PSO algorithm in terms of social behavior, which balances global exploration ability and local development ability [18, 19]. Therefore, a new search mechanism that combines the quantum search mechanism of QPSO with SFLA is proposed to precisely and quickly detect underwater objects in sonar images. Specifically, the local attractor point is obtained by the local best frog in the sub-population and the global best frog in the whole population. Moreover, the new search mechanism does not need to calculate the average best position of the whole population to update the frog individual, on the contrary, it utilizes the local best frog to update the worst frog in the sub-population. If the worst frog in the sub-population is not improved, the local best frog is replaced by the global best frog in the whole population, and the worst frog in the sub-population is updated again. If the worst frog in the sub-population still is not improved, the new frog individual is randomly generated to replace the worst frog in the sub-population.

Population initialization

In QSFLA-NSM, each frog individual is directly encoded by real numbers, which greatly simplifies the evolution process. Meanwhile, the proposed algorithm is based on a clustering model in this paper, the object-highlight region, shadow region and background region in sonar image are detected by clustering centers. Therefore, the frog population is described by the clustering centers. Assuming that the number of clusters is k, the population size is N, the whole population can be expressed as follows: (9) where cij(1≤iN,1≤jk) is the j-th clustering center of the i-th frog individual.

Fitness function

The fitness function is mainly used to evaluate the frog positions. The frog population is described by the clustering centers which divide the pixels into different classes in sonar image. The pixels with similar characteristics are divided into the same class, while the pixels with different characteristics are divided into different classes. Generally, when the intra-class difference is minimum and the inter-class difference is maximum simultaneously, the clustering method is ideal. Therefore, a fitness function combining intra-class difference with inter-class difference is used in this paper to evaluate the frog positions more accurately [40].

Assuming that C = (c1,c2,⋯,ck) represents clustering centers and the pixels in sonar image are expressed as v, the intra-class difference Ui is given by (10)

The inter-class difference between the i-th and j-th clustering center is given by (11) where Gi is the set of pixels belonging to the i-th clustering center, i = 1,2,⋯,k, Ni represents the cardinality of the set.

According to the Eqs (10) and (11), the maximum ratio of the intra-class difference and inter-class difference is expressed as follows: (12)

The average value of Fi(i = 1,2,⋯,k) is given by (13) where less EV value indicates the better clustering effect.

The fitness function is expressed as follows: (14)

New search mechanism

The initial frog population is generated randomly from the solution space in QSFLA-NSM. Then, the whole population is sorted and divided into several sub-populations. A local search is carried out in every sub-population. Then, global information exchange is completed by mixing all the frog individuals again.

Assuming that the whole population contains N frog individuals, the frog population is defined as M = [M1,M2,⋯,MN], where the i-th frog individual is M = [Mi1,Mi2,⋯,MiD] and D is the dimension of a frog individual. According to the fitness function values, the frog population is sorted in descending order. Then, the frog population is divided into a sub-populations, in which every sub-population contains b frog individuals (N = a×b). The first frog is assigned to the first sub-population, the second frog is assigned to the second sub-population, …, the a-th frog is assigned to the a-th sub-population, the (a+1)-th frog is assigned to the first sub-population, and so on. This process continues until all the frogs have been assigned to the sub-populations.

The local worst frog is updated, which is called the local search in every sub-population. In the searching process, a new search mechanism that combines the quantum search mechanism of QPSO with SFLA is proposed to improve the searching ability and detection accuracy. Meanwhile, the time complexity can also be further reduced.

The local attractor point is obtained by the local best frog in the sub-population and the global best frog in the whole population. For every sub-population, the local worst frog is defined as Mw, and the local best frog is defined as Mb. The global best frog of whole population is defined as Mg. The local attractor point of the sub-population can be expressed as follows: (15) where randu1 and randu2 are two random numbers of uniform distribution in the interval [0, 1].

When the local worst frog evolves towards the local best frog in sub-population, a new frog individual is generated, which is defined as newMw. The specific updating formulas are as follows: (16) (17) where randu3 and randu4 are two random numbers of uniform distribution in the interval [0, 1]. β is the contraction–expansion coefficient, which can control the convergence speed of the algorithm and linearly decreases with the iterative times. The specific expression is (18) where t is the current iterative times. tmax is local maximum number of iterations. Mmax and Mmin are the upper bound and lower bound of β respectively.

The fitness function value of newMw is computed and compared with the local worst frog Mw. If the fitness function value is larger than Mw, newMw will replace Mw. Otherwise, the local best frog individual Mb in Eqs (16) and (17) is replaced by the global best frog Mg, and the local worst frog individual Mw is updated again. If there is still no improvement, a new frog individual is randomly generated within the feasible solution space to replace Mw. This updating process of local search continues until the local maximum number of iterations is reached.

After the local search, all the frog individuals in the whole population are mixed and sorted again, which is called the global information exchange. Then, the frog population is divided into sub-populations again and the local search in every sub-population is carried out. This cycle continues until the global maximum number of iterations is reached.

Experimental results and analysis

This section shows numerical examples to validate the generality and effectiveness of the proposed models for sonar image detection. These results were obtained using Matlab 2011B with a 2.5 GHz Pentium processor and 4 GB of RAM. The relevant parameters are as follows: the number of clustering centers is 3, the global maximum number of iterations is 10, the local maximum number of iterations is 5, the population size is 12, and the number of sub-populations is 6.

An example of the detection results is shown in Fig 7.

thumbnail
Fig 7. Detection results of original sonar image (image size: 153×158).

(a) detection result of QSFLA-NSM on the image shown in Fig 4(a), and (b) detection result of QSFLA-NSM on the image shown in Fig 2(a).

https://doi.org/10.1371/journal.pone.0177666.g007

As depicted in Fig 7, the non-local spatial information denoising method with a novel filtering degree parameter demonstrates that it can remove noise effectively in this paper, and the result is conducive to the subsequent detection of underwater objects.

In order to compare QSFLA-NSM with other intelligent optimization algorithms, Fig 8 shows the comparative results on the denoised image shown in Fig 4(a), which includes QSFLA [31, 32], SFLA [17], QPSO [36], PSO [36], QGA [41], and GA [42].

thumbnail
Fig 8. Detection results of original sonar image with other intelligent optimization algorithms (image size: 153×158).

(a) detection result of QSFLA, (b) detection result of SFLA, (c) detection result of QPSO, (d) detection result of PSO, (e) detection result of QGA, and (f) detection result of GA.

https://doi.org/10.1371/journal.pone.0177666.g008

As shown by the comparison of experimental results, Fig 7(a) contains relatively less noise than Fig 8. Although Fig 8(e) also has less noise, the integrity of the underwater object is seriously weak. Meanwhile, comparing the time complexity of QSFLA-NSM in Fig 7(a) with QSFLA in Fig 8(a), the running time of QSFLA-NSM is 3.71 seconds, while the running time of QSFLA is 6.24 seconds after the same 10 iterations. Therefore, the proposed QSFLA-NSM in this paper also improves on QSFLA with respected to the time complexity.

To demonstrate the advantages of QSFLA-NSM more clearly, Table 4 shows the variation of best fitness function values after 10 iterations in Figs 7(a) and 8. To obtain a clearer and more intuitive comparison, Fig 9 shows the graph corresponding to the values listed in Table 4.

thumbnail
Table 4. Variation of best fitness function values in Figs 7(a) and 8.

https://doi.org/10.1371/journal.pone.0177666.t004

It can be seen from Table 4 and Fig 9 that the best fitness value of QSFLA-NSM is the largest after 10 iterations, which demonstrates the detection result of QSFLA-NSM is closer to the global optimal solution in this paper.

Figs 10 and 11 show the detection results on the image shown in Figs 5 and 6 respectively, which further verifies the effectiveness of the proposed models for sonar image detection.

thumbnail
Fig 10. Detection results of original sonar image (image size: 112×117).

(a) detection result of QSFLA-NSM on the image shown in Fig 5(d), (b) detection result of QSFLA-NSM on the image shown in Fig 5(a).

https://doi.org/10.1371/journal.pone.0177666.g010

thumbnail
Fig 11. Detection results of original sonar image (image size: 259×368).

(a) detection result of QSFLA-NSM on the image shown in Fig 6(d), (b) detection result of QSFLA-NSM on the image shown in Fig 6(a).

https://doi.org/10.1371/journal.pone.0177666.g011

As can be seen from Figs 10 and 11, the comparative experiments further demonstrate that the non-local spatial information denoising method with a novel filtering degree parameter is necessary and plays a vital role in whole detection process.

Similarly, in order to compare QSFLA-NSM with other intelligent optimization algorithms, Figs 12 and 13 show the comparative results on the denoised image shown in Figs 5(d) and 6(d) respectively, which includes QSFLA [31, 32], SFLA [17], QPSO [36], PSO [36], QGA [41], and GA [42].

thumbnail
Fig 12. Detection results of original sonar image with other intelligent optimization algorithms (image size: 112×117).

(a) detection result of QSFLA, (b) detection result of SFLA, (c) detection result of QPSO, (d) detection result of PSO, (e) detection result of QGA, and (f) detection result of GA.

https://doi.org/10.1371/journal.pone.0177666.g012

thumbnail
Fig 13. Detection results of original sonar image with other intelligent optimization algorithms (image size: 259×368).

(a) detection result of QSFLA, (b) detection result of SFLA, (c) detection result of QPSO, (d) detection result of PSO, (e) detection result of QGA, and (f) detection result of GA.

https://doi.org/10.1371/journal.pone.0177666.g013

In contrast to the detection results of other intelligent optimization algorithms, only the proposed QSFLA-NSM can detect the object high-light region and the shadow region better and basically eliminate the influence of noise. Meanwhile, comparing the time complexity of QSFLA-NSM in Figs 10(a) and 11(a) with that of QSFLA in Figs 12(a) and 13(a) respectively, the running time of QSFLA-NSM is 2.07 and 14.949 seconds respectively, while the running time of QSFLA is 3.39 and 23.715 seconds after the same 10 iterations. Therefore, the proposed QSFLA-NSM has lower time complexity in this paper.

To demonstrate the advantages of QSFLA-NSM more clearly again, Tables 5 and 6 show the variation of best fitness function values after 10 iterations for QSFLA-NSM and other intelligent optimization algorithms. To obtain a clearer and more intuitive comparison, Fig 14 shows the graph of the values listed in Table 5, and Fig 15 shows the graph of the values listed in Table 6.

thumbnail
Table 5. Variation of best fitness function value in Figs 10(a) and 12.

https://doi.org/10.1371/journal.pone.0177666.t005

thumbnail
Table 6. Variation of best fitness function value in Figs 11(a) and 13.

https://doi.org/10.1371/journal.pone.0177666.t006

As can be seen from Tables 5 and 6, Figs 14 and 15, the best fitness value of QSFLA-NSM is also the largest after 10 iterations. Therefore, the proposed QSFLA-NSM has a certain effectiveness and adaptability.

To further verify the adaptability of the proposed denoising method and QSFLA-NSM in this paper, Fig 16 shows the detection results of an original sonar image with underwater tire on the bottom. Fig 17 shows the detection results of larboard original sonar image including rocks, which are buried partly in the sand. Fig 18 shows the detection results of another original sonar image with floating objects.

thumbnail
Fig 16. Detection results of original sonar image (image size: 197×211).

(a) original sonar image, (b) denoising result of the proposed denoising method in this paper, and (c) detection result of QSFLA-NSM in this paper.

https://doi.org/10.1371/journal.pone.0177666.g016

thumbnail
Fig 17. Detection results of original sonar image (image size: 173×167).

(a) original sonar image, (b) denoising result of the proposed denoising method in this paper, and (c) detection result of QSFLA-NSM in this paper.

https://doi.org/10.1371/journal.pone.0177666.g017

thumbnail
Fig 18. Detection results of original sonar image (image size: 239×205).

(a) original sonar image, (b) denoising result of the proposed denoising method in this paper, and (c) detection result of QSFLA-NSM in this paper.

https://doi.org/10.1371/journal.pone.0177666.g018

From the results shown in Figs 16(b), 17(b) and 18(b), the non-local spatial information denoising method with a novel filtering degree parameter can remove noise effectively. It is adaptable for complex underwater sonar images to some extent. The proposed QSFLA-NSM in this paper can detect underwater objects with more accuracy in Figs 16(c), 17(c) and 18(c), and the object-highlight and shadow boundary contours are successfully extracted and detected. The proposed model has a certain effectiveness and adaptability, which can detect original sonar image with floating objects, partly buried objects and objects on the bottom as shown in Figs 1618. Moreover, it provides better preconditions for the subsequent feature extraction and underwater object recognition.

The proposed QSFLA-NSM is based on clustering model, and therefore the clustering experiments of UCI data sets are carried out to verify the adaptability of QSFLA-NSM, including Iris, Heart, Glass, Breast and Sonar [43]. The dimension, quantity of data and number of classification are shown in Table 7.

Clustering correct rate is generally used to measure the clustering result. It is the ratio of the number of correctly-clustered samples to the total number. Table 8 shows the clustering correct rates of the proposed QSFLA-NSM and other intelligent optimization algorithms including QSFLA, SFLA, QPSO, PSO, QGA, and GA.

As shown in Table 8, the clustering correct rates of QSFLA-NSM are higher than those of the other intelligent optimization algorithms in the experiments of Iris, Heart, Glass and Sonar. For Breast, the clustering correct rate of QSFLA-NSM is slightly lower than that of QSFLA, but obviously higher than the other five intelligent optimization algorithms.

Table 9 shows the time complexity (s) of different intelligent optimization algorithms.

thumbnail
Table 9. Time complexity of different intelligent optimization algorithms (s).

https://doi.org/10.1371/journal.pone.0177666.t009

As can be seen from Table 9, the time complexity of QSFLA is obviously the highest among all the algorithms. The proposed QSFLA-NSM in this paper can reduce the time complexity to some extent.

Similarly, to further verify the searching ability of QSFLA-NSM, four benchmark functions are used to test its searching ability. Griewank, Rastrigrin and Ackley are multimodal and contain many local optima, but only one global optimum. Rosenbrock is unimodal and contains only one global optimum. The function name, search space, optimum value and modality of the selected benchmark functions are listed in Table 10.

The Griewank function has many local minima that are regularly distributed. It is a continuous, multimodal, scalable, convex, and quadratic test function [44] and can be represented by (19) where xi∈[–600,600], and D represents the dimension of the independent variable x. The schematic diagram is shown in Fig 19 when D = 2.

Obviously, the Griewank function is multimodal, and the optimum value 0 can be obtained when (x1,x2,⋯,xD) = (0,0,⋯,0).

The Rastrigrin function is a fairly difficult problem due to the large search space and large number of local optima. The function is multimodal and nonlinear, therefore the locations of the optima are regularly distributed [44]. It is given by (20) where xi∈[−5.12,5.12], and D represents the dimension of the independent variable x. The schematic diagram is shown in Fig 20 when D = 2.

thumbnail
Fig 20. The schematic diagram of the Rastrigrin function.

https://doi.org/10.1371/journal.pone.0177666.g020

As depicted in Fig 20, the Rastrigrin function is multimodal, and the optimum value 0 can be obtained when (x1,x2,⋯,xD) = (0,0,⋯,0).

The Ackley function is a continuous function that combines exponential function with moderately enlarged cosine function. The hook face is rolling and has a series of peaks and troughs [45]. It can be defined as (21) where xi∈[−32.768,32.768], and D represents the dimension of the independent variable x. The schematic diagram is shown in Fig 21 when D = 2.

As shown in Fig 21, the Ackley function is multimodal, and the optimum value 0 can be obtained when (x1,x2,⋯,xD) = (0,0,⋯,0).

The Rosenbrock function has significant interactions between variables. The global minimum is inside a long, narrow, parabolic-shaped flat valley. Although the valley does not have local minima, it is still difficult to find the global optimum. Hence, this function has been repeatedly used to assess the performance of optimization algorithms [44]. It is represented by (22) where xi∈[−2.048,2.048], and D represents the dimension of the independent variable x. The schematic diagram is shown in Fig 22 when D = 2.

thumbnail
Fig 22. The schematic diagram of the Rosenbrock function.

https://doi.org/10.1371/journal.pone.0177666.g022

From Fig 22, the Rosenbrock function is unimodal, and the optimum value 0 can be obtained when (x1,x2,⋯,xD) = (0,0,⋯,0).

Table 11 shows the test results of the benchmark functions including the average convergence values of 10 experiments in different population sizes. The relevant parameters are as follows: the global maximum number of iterations is 200, the local maximum number of iterations is 20, the number of sub-populations is 5, and the dimension is 10.

thumbnail
Table 11. Average convergence values of benchmark functions.

https://doi.org/10.1371/journal.pone.0177666.t011

As shown in Table 11, the average convergence values of the proposed QSFLA-NSM are closer to the optimum value 0. Therefore, the searching ability of the proposed QSFLA-NSM is better than the other intelligent optimization algorithms.

Table 12 shows the average time complexity (s) for the 10 experiments on the benchmark functions.

As depicted in Table 12, the average time complexity of QSFLA is the highest in among all the algorithms. However, the proposed QSFLA-NSM takes much less time to obtain accurate convergence values.

In fact, the frog population is encoded by quantum bits in QSFLA, which needs to be transformed into binary sequences by a decoding process. Then, the fitness function value of each frog individual is computed by the resulting decimal numbers. When the dimension of the solution space is higher, the encoding length of each frog individual is longer. Correspondingly, the time complexity is higher. However, each frog individual is directly encoded by real numbers in the proposed QSFLA-NSM, so the time complexity is significantly reduced. Meanwhile, because all the frog individuals in each sub-population participate in the local search to enhance the searching ability in QSFLA, the running time increases exponentially. But the proposed QSFLA-NSM needs to update only the worst frog in the sub-population, so the time complexity is further reduced to some extent in this paper.

For underwater sonar image detection, the number of clustering centers is 3, which represents the object-highlight region, the shadow region and the background region. Meanwhile, each clustering center contains only one property, namely the gray value. Therefore, the dimension of the solution space is 3. In addition, the population size is 12, and the number of sub-populations is 6, so there are only two frog individuals in every sub-population. Although the time complexity becomes higher, the magnitude of increase is not too large. For the experiments on the UCI data sets and the benchmark functions, the dimensions of solution spaces are both high, which makes the encoding length of QSFLA become very long. Additionally, there are more frog individuals in every sub-population. Therefore, the time complexity of QSFLA becomes very high.

From the all comparative experiments above, the proposed novel denoising method avoids the disadvantages of the filtering degree parameter in non-local spatial information. It can effectively remove noise and is conducive to the subsequent detection of underwater objects as shown in Figs 4(a), 5(d), 6(d), 16(b), 17(b) and 18(b). In QSFLA-NSM, each frog individual is directly encoded by real numbers to greatly simplify the evolution process. Moreover, a new search mechanism is developed in this paper to improve the searching ability and detection accuracy of sonar image as shown in Figs 7(a), 10(a), 11(a), 16(c), 17(c), and 18(c). The proposed QSFLA-NSM reduces time complexity and achieves a relatively higher detection accuracy than other intelligent optimization algorithms as shown in Figs 713. Meanwhile, the detection results of QSFLA-NSM are also closer to the global optimal solution as shown in Tables 46, Figs 9, 14 and 15. Furthermore, the results on the UCI data sets and the benchmark functions further demonstrate that the proposed method is more adaptable in Tables 8, 9, 11 and 12. Therefore, the proposed model has a certain effectiveness and adaptability that can detect original sonar images with floating objects, partly buried objects and objects on the bottom. The proposed method can also provide better preconditions for the further feature extraction and underwater object recognition.

Conclusions

Detection accuracy and time complexity are both important factors for measuring the quality of object detection in underwater sonar images. QSFLA is a promising method, but because serious noise exists in the sonar image, the model performance is significantly reduced and cannot meet the accuracy requirements in the evolution process. In contrast, a novel denoising method is proposed to effectively remove noise, which greatly improves the detection performance. Then, to greatly simplify the evolution process, each frog individual is directly encoded by real numbers in the proposed QSFLA-NSM, and a fitness function combining intra-class difference with inter-class difference is adopted to evaluate the frog positions more accurately. Finally, a new search mechanism is developed in this paper to improve the searching ability and detection accuracy of sonar image. Meanwhile, the QSFLA-NSM also further reduces the time complexity to obtain accurate detection results more quickly.

We applied the proposed method to the original sonar images, the UCI data sets and the benchmark functions, and results show that the proposed method has better effectiveness and adaptability.

Acknowledgments

The authors are grateful to the guest editors and anonymous reviewers for their constructive comments based on which the presentation of this paper has been greatly improved.

The authors thank LAUREL TECNOLOGIES in Beijing for providing numerous real sonar pictures. Sonar images in Figs 6 and 17 are derived from the Internet, and the IP address is http://www.marinesonic.us/archives.php. The authors thank the providers for these images.

The first author was supported by China Scholarship Council (CSC) (No.201506685079).

Author Contributions

  1. Conceptualization: XMW SL.
  2. Formal analysis: XMW SL ZPL.
  3. Funding acquisition: XMW.
  4. Investigation: XMW SL ZPL.
  5. Methodology: SL.
  6. Resources: XMW.
  7. Supervision: XMW.
  8. Writing – original draft: XMW SL.
  9. Writing – review & editing: XMW SL.

References

  1. 1. Ye XF, Zhang ZH, Liu PX, Guan HL. Sonar image segmentation based on GMRF and level-set models. Ocean Engineering. 2010; 37(10):891–901.
  2. 2. Wu JP, Guo HT. A Method for Sonar Image Segmentation Based on Combination of MRF and Region Growing. In: Proc. CSNT. Gwalior, MP, India; 2015. p. 457–460. 10.1109/CSNT.2015.224
  3. 3. Chen SC, Zhang DQ. Robust image segmentation using FCM with spatial constraints based on new kernel-induced distance measure. IEEE Transactions on Systems. 2004; 34(4):1907–1916. pmid:15462455
  4. 4. Szilágyi L, Benyó Z, Szilágyi SM, Adam HS. MR brain image segmentation using an enhanced fuzzy c-means algorithm. In: Proc. EMBS. Cancun, Mexico; 2003. p. 724–726. 10.1109/IEMBS.2003.1279866
  5. 5. Cai WL, Chen SC, Zhang DQ. Fast and robust fuzzy c-means clustering algorithms incorporating local information for image segmentation. Pattern Recognition. 2007; 40(3):825–838.
  6. 6. Krinidis S, Chatzis V. A robust fuzzy local information c-means clustering algorithm. IEEE Transactions on Image Processing. 2010; 19(5):1328–1337. pmid:20089475
  7. 7. Zhang H, Wen T, Zheng YH, Xu DH, Wang DC, Nguyen TM, et al. Two Fast and Robust Modified Gaussian Mixture Models Incorporating Local Spatial Information for Image Segmentation. Journal of Signal Processing Systems. 2015; 81(1):45–58.
  8. 8. Long TN, 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. Computers and Geosciences. 2015; 83:1–16.
  9. 9. Buades A, Coll B, Morel JM. Nonlocal image and movie denoising. International Journal of Computer Vision. 2008; 76(2):123–139.
  10. 10. Feng J, Jiao LC, Zhang XR, Gong M, Sun T. Robust non-local fuzzy c-means algorithm with edge preservation for SAR image segmentation. Signal Processing. 2013; 93(2):487–499.
  11. 11. Zhao F, Fan JL, Liu HQ. Optimal-selection-based suppressed fuzzy c-means clustering algorithm with self-tuning non local spatial information for image segmentation. Expert Systems with Applications. 2014; 41(9):4083–4093.
  12. 12. Zhao F, Liu HQ, Fan JL. A multiobjective spatial fuzzy clustering algorithm for image segmentation. Applied Soft Computing Journal. 2015; 30:48–57.
  13. 13. Wang XM, Yin GS, Liu GY, Liu ZP. Shadow regions detection algorithm by adaptive narrowband two-phase Chan-Vese model. ACTA ACUSTICA. 2015; 40(6):816–826.
  14. 14. Wang L, Ye XF, Wang T. Segmentation algorithm of fuzzy clustering on sidescan sonar image. Journal of Huazhong University of Science and Technology (Natural Science Edition). 2012; 40(9):25–29.
  15. 15. Sheikh RH, Raghuwanshi MM, Jaiswal AN. Genetic Algorithm Based Clustering: A Survey. In: Proc. ICETET. Nagpur, Maharashtra, India; 2008. p. 314–319. 10.1109/ICETET.2008.48
  16. 16. Zhang YD, Wang SH, Ji GL. A Comprehensive Survey on Particle Swarm Optimization Algorithm and Its Applications. Mathematical Problems in Engineering. 2015; 2015(1):1–38.
  17. 17. Eusuff MM, Lansey KE. Optimization of water distribution network design using the shuffled frog leaping algorithm. Journal of Water Resources Planning and Management. 2003; 129(3): 210–225.
  18. 18. Lei DM, Guo XP. A shuffled frog-leaping algorithm for hybrid flow shop scheduling with two agents. Expert Systems with Applications. 2015; 42(23):9333–9339.
  19. 19. Kumar JV, Kumar DMV. Generation bidding strategy in a pool based electricity market using Shuffled Frog Leaping Algorithm. Applied Soft Computing Journal. 2014; 21(5):407–414.
  20. 20. Zhang XD, Zhang YF, Shi YH, Zhao L, Zou CR. Power control algorithm in cognitive radio system based on modified Shuffled Frog Leaping Algorithm. AEU-International Journal of Electronics and Communications. 2012; 66(6):448–454.
  21. 21. Fan TH, Lv L, Zhao J. Improved shuffled frog leaping algorithm and its application in node localization of wireless sensor network. Intelligent Automation and Soft Computing. 2012; 78(1): 70–84.
  22. 22. Wang LG, Gong YX. A Fast Shuffled Frog Leaping Algorithm. In: Proc. ICNC. Shenyang, China; 2013. p. 369–373. 10.1109/IMCCC.2013.366
  23. 23. Roy P, Roy P, Chakrabarti A. Modified shuffled frog leaping algorithm with genetic algorithm crossover for solving economic load dispatch problem with valve-point effect. Applied Soft Computing Journal. 2013; 13(11):4244–4252.
  24. 24. Niknam T, Firouzi BB, Mojarrad HD. A new evolutionary algorithm for non-linear economic dispatch. Expert Systems with Applications. 2011; 38(10): 13301–13309.
  25. 25. Ladgham A, Hamdaoui F, Sakly A, Mtibaa A. Fast MR brain image segmentation based on modifie Shuffled Frog Leaping Algorithm. Signal Image and Video Processing. 2015; 9(5):1113–1120.
  26. 26. Arshi SS, Zolfaghari A, Mirvakili SM. A multi-objective shuffled frog leaping algorithm for in-core fuel management optimization. Computer Physics Communications. 2014; 185(10):2622–2628.
  27. 27. Luo JP, Chen MR. Multi-phase modified shuffled frog leaping algorithm with external optimization for the MDVRP and the MDVRPTW. Computers and Industrial Engineering. 2014; 72(1):84–97.
  28. 28. Zhang Y, Lu K, Gao YH. Quantum Algorithms and Quantum-Inspired Algorithms. CHINESE JOURNAL OF COMPUTERS. 2013; 36(9):1835–1842.
  29. 29. Gao HY, Cui W, Jiang YL. A Quantum-inspired Shuffled Frog Leaping Algorithm and its Application in Cognitive Radio. International Journal of Digital Content Technology and Its Applications. 2012; 6(20):32–42.
  30. 30. Wang LG, Gong YX. Quantum Binary Shuffled Frog Leaping Algorithm. In: Proc. IMCCC. Shenyang, China; 2013. p. 1655–1659. 10.1109/IMCCC.2013.366
  31. 31. Ding WP, Wang JD, Guan ZJ, Shi Q. Enhanced minimum attribute reduction based on quantum-inspired shuffled frog leaping algorithm. Journal of Systems Engineering and Electronics. 2013; 24 (3): 426–434.
  32. 32. Ding WP, Wang JD, Guan ZJ. An Minimum Attribute Self-adaptive Cooperative Co-evolutionary Reduction Algorithm Based on Quantum Elitist Frogs. Journal of Computer Research and Development. 2014; 51(4): 743–753.
  33. 33. Li CF, Wang YN, Xiao CY, Xiao LU. A New Speckle Reducing Anisotropic Diffusion for Ultrasonic Speckle. Acta Automatica Sinica. 2012; 38(3):412–419.
  34. 34. Wang Z, Bovik AC. A Universal Image Quality Index. IEEE Signal Processing Letters. 2002; 9(3):81–84.
  35. 35. Wang Z, Bovik AC, Sheikh HR, Simoncelli EP. Image Quality Assessment: From Error Visibility to Structural Similarity. IEEE Transactions on Image Processing. 2004; 13(4):600–612. pmid:15376593
  36. 36. Zhang B, Qi H, Sun SC, Ruan LM, Tan HP. Solving inverse problems of radiative heat transfer and phase change in semitransparent medium by using Improved Quantum Particle Swarm Optimization. International Journal of Heat and Mass Transfer. 2015; 85(1):300–310.
  37. 37. Zhang YD, Ji GL, Yang JQ, Wang SH, Dong ZC, Phillips P, et al. Preliminary research on abnormal brain detection by wavelet-energy and quantum-behaved PSO. Technology & Health Care. 2016; 24(2):641–649. pmid:27163327
  38. 38. Jau YM, Su KL, Wu CJ, Jeng JT. Modified quantum-behaved particle swarm optimization for parameters estimation of generalized nonlinear multi-regressions model based on Choquet integral with outliers. Applied Mathematics & Computation. 2013; 221(9):282–295.
  39. 39. Mariani VC, Duck ARK, Guerra FA, Coelho LDS, Rao RV. A chaotic quantum-behaved particle swarm approach applied to optimization of heat exchangers. Applied Thermal Engineering. 2012; 42(4):119–128.
  40. 40. Xiao J, Yan YP, Zhang J, Zhang Y. A quantum-inspired genetic algorithm for k-means clustering. Expert Systems with Applications. 2010; 37(7): 4966–4973.
  41. 41. Wang XM, Liu S, Sun JC, Wang XY. A Novel Quantum Genetic Algorithm for Detection Sonar Image. In: Proc. CCDC. Yinchuan, China; 2016. p. 2020–2025. 10.1109/CCDC.2016.7531310
  42. 42. Holland JH. Genetic algorithms. Scientific American. 1992; 267(1):66–72.
  43. 43. Bache K, Lichman M. UCI machine learning Repository; 2013. Database: [Internet]. Accessed: http://archive.ics.uci.edu/ml.
  44. 44. Alireza ALFI. PSO with Adaptive Mutation and Inertia Weight and Its Application in Parameter Estimation of Dynamic Systems. Acta Automatica Sinica. 2011; 37(5):541–549.
  45. 45. Shen YX, Wang GY, Zeng CH. Correlative particle swarm optimization model. Journal of Software. 2011; 22(4):695–706.