A method and system for extracting spectral lines in a time spectrum diagram using Hough transform

Extracting spectral lines in the time-frequency DEMON spectrum through Hough transformation solves the problem of difficulty in detecting ship radiation noise line spectra under low signal-to-noise ratio, achieves effective spectral line extraction and time information retention in low frequency bands, and improves efficiency Detection capabilities.

CN117951504BActive Publication Date: 2024-10-18INST OF ACOUSTICS CHINESE ACAD OF SCI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410063941.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-16
Publication Date
2024-10-18
Estimated Expiration
2044-01-16

AI Technical Summary

Technical Problem

In the case of low signal-to-noise ratio, it is difficult to detect and enhance the line spectrum signal of ship radiated noise. The existing technology has poor extraction performance in the low frequency band, and the multi-time period weighted fusion method is difficult to analyze the line spectrum changes in continuous time, often The fusion time period needs to be manually selected, which can easily introduce errors.

Method used

The Hough transform is used to extract the spectral lines in the time-frequency DEMON spectrogram, and the time-frequency DEMON spectrogram is generated by using the square detection method and the short-time Fourier transform after dividing the frame into windows, performing grayscale binarization, and then using the hough transform Enhancement is performed to extract the line spectrum features of the ship.

Benefits of technology

The time-frequency DEMON spectrum in the task of extracting the line spectrum of ship radiation noise is improved, retaining the time variation of the line spectrum. After the Hough transformation is enhanced, a better spectral line extraction effect is achieved, and the detection capability under low signal-to-noise ratio is improved. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117951504B_ABST
    Figure CN117951504B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of passive sonar ship radiation noise line spectrum detection and enhancement, and in particular to a method and system for extracting spectral lines in a time-frequency spectrum diagram using Hough transform. The method comprises: after framing and windowing the collected ship hydroacoustic signal, first demodulating it using a square detection method, then extracting a DEMON spectrum from the demodulation result of each time window using a short-time Fourier transform, arranging the DEMON spectra of each time period in time sequence, and generating a time-frequency DEMON spectrogram; performing grayscale binarization processing on the time-frequency DEMON spectrogram, and then using Hough transform to enhance the extracted grayscale binary spectrogram to obtain the line spectrum characteristics of the ship. The method of the present invention achieves a good spectral line extraction effect in both simulation data and measured data tests.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of passive sonar ship radiation noise line spectrum detection and enhancement, and in particular to a method and system for extracting spectrum lines in a time spectrum graph by using Hough transform. Background Art

[0002] Ships generate radiation noise during navigation, among which the line spectrum with higher energy is one of the important characteristic quantities of ship radiation noise, including the line spectrum components generated by propeller rotation and mechanical vibration. In actual application scenarios, factors such as weak targets, strong interference and complex channels make the signal-to-noise ratio of underwater acoustic target radiation noise very low, and complex phenomena such as discontinuous and curved spectrum lines will appear. As the ability of underwater targets to reduce vibration and noise continues to improve, the intensity of their radiation noise has been effectively controlled, which makes passive sonar detection of non-cooperative targets in the water more difficult. Therefore, improving the line spectrum signal enhancement and detection and tracking capabilities under low signal-to-noise ratio conditions has become an important hot spot and difficulty in current underwater acoustic signal processing technology.

[0003] The main frequency components of the radiated noise of underwater acoustic targets in the frequency band of 1 Hz to 100 Hz are the single-frequency components of the fundamental frequency and harmonics of the blade frequency, the low-intensity cavitation noise, the ocean background noise and the continuous spectrum signal generated by the bearing friction. For low-speed ships, the line spectrum intensity can be 10-25 decibels higher than the nearby continuous spectrum. In the frequency band of 100 Hz to 1000 Hz, the main components are the continuous spectrum generated by cavitation noise and random noise. The shape of the continuous spectrum is convex, the left side of the spectrum peak increases with the increase of frequency, and the right side of the spectrum peak attenuates with the increase of frequency. The position of the spectrum peak is related to the type of ship and the sailing speed. The faster the navigation, the lower the spectrum peak frequency; the shallower the depth, the higher the spectrum peak frequency. The main component of the 1000 Hz-8000 Hz frequency band is the modulation spectrum. The narrow-band line spectrum such as the shaft frequency and its multiples are modulated by other broadband noises. The low-frequency signal can be obtained by the envelope detection method.

[0004] The features used in the classic underwater target recognition method are LOFAR (Low Frequency Analysis and Recording) spectrogram, DEMON (Detection of Envelope Modulation on Noise) spectrogram, etc. LOFAR analysis is one of the more representative passive sonar signal processing methods in recent decades. Due to the non-stationary nature of the noise signal received by the passive sonar, its frequency domain characteristics also change significantly over time. Therefore, the entire input audio cannot be directly Fourier transformed, but the LOFAR spectrogram is obtained by short-time Fourier transform. However, in the low-frequency band, the broadband noise has large energy, and the shaft frequency and its multiples are submerged in the low-frequency broadband noise and cannot be directly obtained. However, there is a modulation phenomenon in the high-frequency band of the ship broadband noise, and the shaft frequency and blade frequency can be demodulated from the high-frequency band. DEMON analysis demodulates the received broadband signal to obtain the low-frequency envelope spectrum, thereby obtaining the target shaft frequency, blade frequency and other features in the low-frequency band. LOFAR analysis obtains the time-frequency spectrum of the ship radiated noise, which can be considered as an image feature. By observing the LOFAR spectrogram, the sonar operator can extract spectral lines from the spectrogram under extremely low signal-to-noise ratio conditions. Some studies have imitated the process of sonar operators identifying spectral lines to perform image processing on the LOFAR spectrogram to enhance the line spectrum, such as using hough transform to detect spectral lines in the LOFAR spectrogram. However, due to the low signal-to-noise ratio in the low frequency band mentioned above, the spectral line extraction effect is not ideal. At present, more research is done on analyzing and processing the DEMON spectrum at a single moment to extract the shaft frequency and blade frequency of the ship, or weighting and fusing the DEMON spectra of multiple time periods to introduce information in a longer time period, but the DEMON spectrum will still lose most of the time information when time weighting is performed.

[0005] The line spectrum component of ship radiated noise is an important feature for subsequent tasks. In the process of line spectrum detection and enhancement, the time information and frequency information of the spectrum line need to be accurately extracted and retained, so the above method still needs to be improved.

[0006] The method of extracting spectral lines in LOFAR spectrogram using Hough transform introduces the change of signal spectrum over time by using STFT (Short Time Fourier Transform) in the process of generating the spectrogram. Hough transform is mainly used for fixed pattern feature extraction in image data. The characteristics of Hough transform are strong anti-interference ability and insensitive to the incomplete parts of straight lines, noise and other coexisting non-linear structures in the image. However, due to the presence of high-energy broadband continuous spectrum noise in the low-frequency band, the line spectrum features are masked, and the performance of this method for extracting spectral lines in the required low-frequency band is poor. The weighted fusion method of multi-time period DEMON spectrogram cannot analyze the change of line spectrum in continuous time. The selection of fusion time period is more difficult, and there are large differences under different data, which usually requires manual selection. The fusion process contains the assumption of signal spectrum stability, but in a longer time range, the ship radiation noise usually does not maintain relative stability in the frequency domain, so the DEMON spectrum after time fusion using this method will introduce large errors. Summary of the invention

[0007] The purpose of the present invention is to overcome the defects of the prior art and propose a method and system for extracting spectral lines in a time spectrum diagram using Hough transform.

[0008] In order to achieve the above object, the present invention proposes a method for extracting spectral lines in a time spectrum diagram using Hough transform, comprising:

[0009] After the collected ship underwater acoustic signals are framed and windowed, they are first demodulated using the square detection method, and then the demodulation results of each time window are extracted using short-time Fourier transform. The DEMON spectra of each time period are arranged in time sequence to generate a time-frequency DEMON spectrogram.

[0010] The time-frequency DEMON spectrogram is processed into grayscale binary, and then the extracted grayscale binary spectrogram is enhanced using Hough transform to obtain the line spectrum characteristics of the ship.

[0011] Preferably, the step of performing frame-by-frame windowing on the collected ship hydroacoustic signal comprises:

[0012] The collected ship hydroacoustic signal y(n)=[y1,y2,...,y n ], n=1,2,...,M, M is the signal length, n represents the nth point of the signal digital sampling;

[0013] The frame length is set to N, and the frame shift is set to The signal y of the kth frame k (n) is:

[0014] is the maximum number of frames.

[0015] Preferably, the demodulation using a square detection method comprises:

[0016] The cutoff frequency of the bandpass filter is set according to the modulation frequency band of the ship type. The output y of the k-th frame signal input bandpass filter kbandpass (n) is: y kbandpass (n) = y k (n)*h b (n), where * is the convolution symbol; h b (n) is the unit impulse response of the bandpass filter;

[0017] After square detection, it passes through a low-pass filter and outputs y klowpass is: y klowpass =|y kbandpass | 2 *h l (n), where h l (n) is the unit impulse response of the low-pass filter, and the cutoff frequency of the low-pass filter is set according to the distribution range of the line spectrum.

[0018] Preferably, the demodulation result of each time window is extracted from the short-time Fourier transform using a DEMON spectrum, and the DEMON spectrum of each time period is arranged in time sequence to generate a time-frequency DEMON spectrogram, including:

[0019] Calculate the N-point fast Fourier transform for each frame signal, and the fast Fourier transform result Y of the k-th frame k For: Y k =FFT(y klowpass (n),N),

[0020] Calculate the energy spectrum of each frame signal m represents the mth point, m=0,1,...,N-1;

[0021] The energy spectrum of each frame signal Stack them in time sequence to get the matrix, that is, the time-frequency DEMON spectrum D is: Where T stands for transpose.

[0022] Preferably, the grayscale binarization processing of the time-frequency DEMON spectrogram includes:

[0023] Normalize each element in the matrix D.

[0024] Set the binarization threshold TH gb , elements above the threshold are set to 1, otherwise they are set to 0, and a grayscale binary spectrum is obtained:

[0025]

[0026] in, is the element in row i and column j, j=0,2,...,N-1.

[0027] Preferably, the method of using Hough transform to enhance the extracted grayscale binary spectrum to obtain the line spectrum characteristics of the ship includes:

[0028] Traverse all elements in the grayscale binary spectrum, transform the points in the rectangular coordinate system into the curve of the Hough space through polar coordinate transformation;

[0029] Establish a Hough voting box and filter out the maximum value points in the voting box;

[0030] Filter out the spectral lines outside the length threshold and the spectral lines outside the angle threshold respectively, and output the spectral lines.

[0031] Preferably, the step of establishing a Hough voting box and screening the maximum value points in the voting box comprises:

[0032] Create a Hough voting box V based on the image pixel matrix size in the rectangular coordinate system h , The horizontal axis represents the angle information The angular resolution is 1°, and the vertical axis represents the distance information ρ∈[-d,d], where represents rounding down, d represents the diagonal pixel length of the image, and each time an element in the voting box is passed by the curve, the vote counts as one vote;

[0033] Set Hough ballot box threshold TH v , leaving only the votes in the Hough space greater than TH v The extreme point of the ballot box, or the maximum vote value v max , leaving the voting value in the ballot box greater than qv max The extreme point of , where q is the voting coefficient, q∈[0,1].

[0034] Preferably, filtering out spectral lines outside a length threshold comprises:

[0035] According to the Hough space points selected by voting, if a certain point is passed several times, check the parameters of all curves passing through the point, record the Euclidean distance of the parameters of the two curves, and find the maximum value d of the Euclidean distance among the parameters of all curves passing through the point max , set the length threshold TH of the spectrum line l , if d max >TH l, then keep the point and record the two curve parameters as the endpoint coordinates of the Cartesian coordinate system line corresponding to the point; otherwise, discard the point.

[0036] On the other hand, the present invention provides a system for extracting spectral lines in a time spectrum diagram using Hough transform, characterized in that the system comprises:

[0037] The feature extraction module is used to divide the collected ship underwater acoustic signal into frames and add windows, first use the square detection method to demodulate, then use the short-time Fourier transform to extract the DEMON spectrum of the demodulation result of each time window, arrange the DEMON spectrum of each time period in time sequence, and generate a time-frequency DEMON spectrogram; and

[0038] The image enhancement module is used to perform grayscale binarization processing on the time-frequency DEMON spectrum, and then use Hough transform to enhance the extracted grayscale binary spectrum to obtain the line spectrum characteristics of the ship.

[0039] Compared with the prior art, the advantages of the present invention are:

[0040] The present invention improves the DEMON spectrum commonly used in the task of extracting the line spectrum of ship radiation noise. The modified time-frequency DEMON spectrum contains the change of the line spectrum over time. Then, the Hough transform in image processing is introduced into the spectrum line detection, and constraints are added to the Hough transform according to the characteristics of the spectrum line. The proposed method achieves a good spectrum line extraction effect in both simulation data and measured data tests. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 is the ship radiated noise model;

[0042] Figure 2 It is the DEMON spectrum processing flow;

[0043] Figure 3 is the extracted DEMON spectrum;

[0044] Figure 4 It is an improved time-frequency DEMON spectrum extraction process;

[0045] Figure 5 is the extracted time-frequency DEMON spectrogram;

[0046] Figure 6 It is the overall process of the method of the present invention;

[0047] Figure 7 is the extraction result of simulation data line spectrum;

[0048] Figure 8 It is the hough space representation of simulation data;

[0049] Fig. 9 is the result of line spectrum extraction from measured data;

[0050] Fig.10 It is the hough space representation of the measured data. DETAILED DESCRIPTION

[0051] Based on the above problems, the present invention proposes a method for extracting spectral lines from a continuous DEMON spectrogram using Hough transform. In the feature extraction stage, the existing DEMON spectrogram extraction method is improved. After the signal is framed and windowed, it is first demodulated using the square detection method, and then the STFT is used to extract the DEMON spectrum from the demodulation result of each time window, and the DEMON spectrum of each time period is arranged in time sequence to generate a time-frequency DEMON spectrogram. In the feature enhancement stage, the spectrogram is gray-scaled and binary-processed. Finally, the extracted gray-scale binary spectrogram is enhanced using Hough transform to obtain the line spectrum characteristics of the ship.

[0052] Principle explanation:

[0053] The present invention is applied to the line spectrum detection and enhancement of ship radiated noise. In the passive hydroacoustic signal line spectrum enhancement, the data is usually collected by a single hydrophone. The sources of ship radiated noise can be divided into three categories: mechanical noise, propeller noise, and hydrodynamic noise. When the critical speed of cavitation is exceeded, propeller noise is the main noise source. Propeller noise contains broadband continuous spectrum, narrowband line spectrum and amplitude modulation components generated by cavitation. The ship radiated noise model can be expressed as Figure 1 Model shown.

[0054] The mathematical formula can be expressed as:

[0055] y(t)=l(t)+{1+m(t)m H (f)}x(t)+n(t) (1)

[0056] l(t) represents the line spectrum generated by the low-frequency mechanical vibration of the ship; x(t) represents the random process of the steady Gaussian states, which characterizes the continuous spectrum noise of the ship and serves as the carrier signal in the modulation; m(t)≤1 represents the line spectrum signal generated by the periodic rotation of the ship's propeller, which is usually composed of the shaft frequency and its multiples, and its frequency is much lower than the center frequency of the continuous spectrum noise x(t), and serves as the modulation signal in the modulation; m H (f) is called the modulation depth spectrum, which reflects the distribution of the propeller periodic modulation on the frequency spectrum; n(t) is the measurement noise.

[0057] 1. Time-frequency DEMON spectrogram

[0058] If you want to obtain the shaft frequency and frequency multiples of the ship from the original signal y(t), you need to perform demodulation processing, and the power spectrum obtained is the DEMON spectrum. Common envelope detection methods include absolute value detection and square detection. The processing flow of extracting shaft frequency and blade frequency from the DEMON spectrum using the square detection method can be expressed as Figure 2 .

[0059] The input is the radiation noise of the selected time period. The demodulation frequency band needs to be selected for bandpass filtering, and the selected frequency band signal is square demodulated. If the modulation signal is a single-frequency known cosine signal, let m(t) = A m cos(Ωt), the carrier is a single-frequency cosine signal x(t)=cos(ωt), and the modulation depth is m H (t) = 1, ignoring mechanical vibration and measurement noise, then y(t) = [1 + A m cos(Ωt)]cos(ωt), square operation yields:

[0060]

[0061] in,

[0062]

[0063] Knowing that ω>>Ω, when the low-pass filter selects the cutoff frequency 2Ωt<f c When <2(ω-Ω)t, the output is:

[0064]

[0065] It can be seen from formula (4) that the fundamental frequency and second harmonic components of the modulation frequency can be obtained through low-pass processing. At this time, the spectrum obtained by performing FFT on s(t) does not contain time information. The extracted DEMON energy spectrum is as follows: Figure 3 .

[0066] When performing FFT on a signal, the signal spectrum changes over time and is blurred. Inspired by the LOFAR spectrogram, we can use STFT to analyze the signal here, that is, calculate FFT on the framed and windowed signal. The resulting time-frequency spectrum is called the time-frequency DEMON spectrogram. The acquisition process is as follows: Figure 4 shown.

[0067] By dividing the signal into short frames, a time-spectrogram with higher time domain resolution can be obtained, such as Figure 5 As shown in the figure. The horizontal axis represents the frequency axis and the vertical axis represents the time axis. STFT obeys the uncertainty principle, that is, the high resolution in the time domain and the high resolution in the frequency domain are contradictory. The window length should be adjusted reasonably to obtain a better representation of the time-frequency spectrum.

[0068] 2.Hough transform

[0069] Through the above method, the variation of ship radiation noise in the frequency domain over time has been obtained. Next, the Hough transform is used to extract the spectral lines in the time-frequency DEMON spectrogram. Hough transform is mainly used for image feature detection and can extract shapes such as straight lines, curves and circles in the image.

[0070] First, we need to introduce the relationship between the Cartesian coordinate system and the Hough space. A straight line in the Cartesian coordinate system can be represented by two points A(x1, y1) and B(x2, y2). When the slope k and intercept q of the straight line are obtained, the straight line can be expressed in the Cartesian coordinate system as formula (5)

[0071] y=kx+q (5)

[0072] It can also be written as an expression about (k,q) in Hough space, as shown in formula (6)

[0073]

[0074] When there are two points A and B in the Cartesian coordinate system, there is a straight line y=kx+q passing through the two points, and there should be two straight lines in the corresponding Hough space, and the two straight lines pass through the point (k, q) at the same time. That is, a straight line in the Cartesian coordinate system corresponds to a point in the Hough space, and vice versa: a straight line in the Hough space corresponds to a point in the Cartesian coordinate system. Collinear lines in the Cartesian coordinate system correspond to common points in the Hough space. To find a straight line in rectangular coordinates is to find a point that passes through the Hough space multiple times. Since it is difficult to express the slope and intercept in the Cartesian coordinate system when the straight line is perpendicular to the x-axis, the rectangular coordinates are first converted to polar coordinates. Just substitute into formula (7)

[0075]

[0076] Then transformed into Hough space, the point (x1, y1) in the Cartesian coordinate system is expressed in Hough space as formula (8)

[0077] ρ=x1cosθ+y1sinθ (8)

[0078] At this point, finding a straight line in the image is equivalent to finding the intersection of each curve in the Hough space.

[0079] The technical solution of the present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0080] Example 1

[0081] The overall process of the present invention is as follows Figure 6 As shown, it consists of two parts: feature extraction and image enhancement, which correspond to the aforementioned improved time-frequency DEMON spectrogram and hough transform extracted spectrum lines respectively.

[0082] Assume that the input signal can be expressed as y(n) = [y1, y2, ..., y n ], n=1,2,...,M, M is the signal length.

[0083] 1. Obtain the time-frequency DEMON spectrogram

[0084] 1.1. Frame splitting and windowing

[0085] The frame length is set to N, and the frame shift is set to That is, there is half overlap between frames, so the signal of the kth frame can be expressed as is the maximum number of frames, and then each frame signal is demodulated and spectrum analyzed.

[0086] 1.2. Square detection method

[0087] The cutoff frequency of the bandpass filter is set according to the modulation frequency band of the ship type. Assume that the unit impulse response of the bandpass filter is h b (n), then the output of the k-th frame signal input bandpass filter is:

[0088] y kbandpass (n) = y k (n)*h b (n), where * is the convolution symbol. After square detection and low-pass filtering, it can be expressed as y klowpass =|y kbandpass | 2 *h l (n), where h l (n) is the unit impulse response of the low-pass filter. The cutoff frequency of the low-pass filter should be set according to the distribution range of the line spectrum.

[0089] Fast Fourier Transform

[0090] Calculate N-point FFT for each frame signal, expressed as Y k (m) = FFT(y klowpass (n), N), m = 0, 1, ..., N-1. Calculate the energy spectrum of each frame signal m=0,1,...,N-1, here you can choose to convert it into logarithmic form.

[0091] 1.4. Time frame stacking

[0092] The energy spectrum of each frame signal Stacking in time sequence, the resulting matrix can be expressed as: This matrix is ​​the time-frequency DEMON spectrum.

[0093] 2. Image Preprocessing

[0094] 2.1. Convert to grayscale

[0095] The time-frequency DEMON spectrum can be processed as an image. The conversion to grayscale here is equivalent to normalizing each element in the matrix D. The normalization operation can be expressed as

[0096]

[0097] Where D max is the maximum element value in matrix D.

[0098] Grayscale Figure 2 Value

[0099] Set the binarization threshold, and set the elements above the threshold to 1, otherwise set to 0. It can be expressed as

[0100]

[0101] where TH gb is the grayscale binarization threshold.

[0102] 3. Hough transform to extract line spectrum

[0103] 3.1. Hough space transformation

[0104] After preprocessing, the image pixels in the rectangular coordinate system can be written as the following matrix representation

[0105]

[0106] At this time, all elements in the matrix are traversed j=0,1,...,N-1, for each element The conversion to Hough space can be expressed as ρ=mcosθ+nsinθ, that is, the point in the rectangular coordinate system corresponds to the linear combination of the sine curve and the cosine curve in the Hough space after the polar coordinate transformation.

[0107] 3.2. Build the Hoff voting box

[0108] Create a Hough voting box V based on the image pixel matrix size in rectangular coordinates h , the horizontal axis represents the angle information The angular resolution is 1°, and the vertical axis represents the distance information ρ∈[-d,d], where represents rounding down, and d represents the diagonal pixel length of the image. Each time an element in the ballot box is passed by the curve in 3.1, the vote counts as one.

[0109] 3.3. Voting results selection

[0110] Filter the maximum value points in the voting box. Set the Hough voting box threshold TH v , leaving only the votes in the Hough space greater than TH v This can also be set according to the proportion, such as the maximum vote value in the ballot box is v max , leaving the voting value in the ballot box greater than qv max The extreme point of , where q is the voting coefficient, q∈[0,1].

[0111] 3.4. Filter out spectral lines outside the length threshold

[0112] According to the Hough space points selected by voting, if a point is passed p times, check the parameters (x i ,y i ), i = 1, 2, ..., p, the Euclidean distance of the parameters of the two curves is:

[0113] Find the maximum value d of the Euclidean distance among the parameters of all curves passing through the point max . Set the length threshold of the spectrum line TH l , if d max >TH l , then keep the point, and record the two curve parameters as the endpoint coordinates of the Cartesian coordinate system line corresponding to the point. If the Euclidean distance is less than TH1, discard the point.

[0114] 3.5. Filter out spectral lines outside the angle threshold

[0115] Since the spectral line characteristics are approximately parallel to the time axis, the straight line angle threshold TH can be set angle When the straight line is parallel to the time axis in the Cartesian coordinate system, the corresponding point in the Hough space is θ=0. Considering that the ship radiated noise may shift with the working conditions, we keep |θ|<TH angle After removing the straight lines that do not conform to the angle characteristics, the remaining straight lines are the spectral lines.

[0116] Example 2

[0117] Embodiment 2 of the present invention proposes a system for extracting spectral lines in a time spectrum graph using Hough transform, which is implemented based on the method of embodiment 1. The system includes:

[0118] The feature extraction module is used to divide the collected ship underwater acoustic signals into frames and add windows, first use the square detection method to demodulate, then use the short-time Fourier transform to extract the DEMON spectrum of the demodulation results of each time window, arrange the DEMON spectra of each time period in time sequence, and generate a time-frequency DEMON spectrogram;

[0119] The image enhancement module is used to perform grayscale binarization processing on the time-frequency DEMON spectrogram, and then use the Hough transform to enhance the extracted grayscale binary spectrogram to obtain the line spectrum characteristics of the ship.

[0120] Experimental analysis:

[0121] 1. Simulation data

[0122] The simulation data adopts the ship radiation noise signal model in the principle analysis. The sampling frequency is 2000Hz, the signal length is 300000, the four line spectra are set to 5Hz, 10Hz, 15Hz and 20Hz respectively, the carrier signal is set to a random continuous spectrum signal with a frequency band of [500,1000], the random noise is set to additive white noise, and the signal-to-noise ratio is -10dB. The bandpass filter band is set to [500,800], the window length is 2s, and the overlap rate is 0.5. The following results can be obtained by analyzing the signal and extracting the line spectrum. Figure 7 The time-frequency DEMON spectrogram extracted from the simulation data and the enhanced line spectrum results. From the figure below, it can be seen that the proposed method accurately extracts four spectral lines at a low signal-to-noise ratio. Figure 8 The data is converted to Hough space representation, and the voting results are concentrated around θ = 0 due to the added angle constraints.

[0123] 2. Measured data

[0124] The measured data is used for performance analysis, the bandpass filter is set to [500,800], the window length is 2s, and the overlap rate is 0.5. The following results can be obtained by analyzing the signal and extracting the line spectrum. Fig. 9 The extracted time-frequency DEMON spectrogram and line spectrum, the extracted spectral lines are 1.1Hz, 3.3Hz, 5.5Hz and 7.7Hz, which is consistent with the relationship between the fundamental frequency and the harmonics. This method can not only obtain the frequency domain position of the spectral line, but also the appearance time of the spectral line, the bending situation over time, etc. Fig.10 is the Hough space representation of the data.

[0125] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention is described in detail with reference to the embodiments, it should be understood by those skilled in the art that any modification or equivalent replacement of the technical solutions of the present invention does not depart from the spirit and scope of the technical solutions of the present invention and should be included in the scope of the claims of the present invention.

Claims

1. A method for extracting spectral lines in a time spectrum diagram using Hough transform, comprising: After the collected ship underwater acoustic signals are framed and windowed, they are first demodulated using the square detection method, and then the demodulation results of each time window are extracted using short-time Fourier transform. The DEMON spectra of each time period are arranged in time sequence to generate a time-frequency DEMON spectrogram. The time-frequency DEMON spectrogram is processed into grayscale binary, and then the extracted grayscale binary spectrogram is enhanced using Hough transform to obtain the line spectrum characteristics of the ship; The step of dividing the collected ship hydroacoustic signals into frames and adding windows comprises: The collected ship hydroacoustic signal y(n)=[y1,y2,...,y n ], n=1,2,...,M, M is the signal length, n represents the nth point of the signal digital sampling; The frame length is set to N, and the frame shift is set to The signal y of the kth frame k (n) is: is the maximum number of frames; The demodulation using the square detection method comprises: The cutoff frequency of the bandpass filter is set according to the modulation frequency band of the ship type. The output y of the k-th frame signal input bandpass filter kbandpass (n) is: y kbandpass (n) = y k (n)*h b (n), where * is the convolution symbol; h b (n) is the unit impulse response of the bandpass filter; After square detection, it passes through a low-pass filter and outputs y klowpass is: y klowpass =|y kbandpass | 2 *h l (n), where h l (n) is the unit impulse response of the low-pass filter, and the cut-off frequency of the low-pass filter is set according to the distribution range of the line spectrum; The demodulation result of each time window is extracted from the DEMON spectrum using the short-time Fourier transform, and the DEMON spectrum of each time period is arranged in time sequence to generate a time-frequency DEMON spectrogram, including: Calculate the N-point fast Fourier transform for each frame signal, and the fast Fourier transform result Y of the k-th frame k For: Y k =FFT(y klowpass (n),N), Calculate the energy spectrum of each frame signal m represents the mth point, m=0,1,...,N-1; The energy spectrum of each frame signal Stack them in time sequence to get the matrix, that is, the time-frequency DEMON spectrum D is: Where T represents transpose; The grayscale binarization processing of the time-frequency DEMON spectrogram includes: Normalize each element in the matrix D and set the binarization threshold TH gb , elements above the threshold are set to 1, otherwise they are set to 0, and a grayscale binary spectrum is obtained: in, is the element in row i and column j, 2. The method for extracting spectral lines in a time spectrum using hough transform according to claim 1, characterized in that: The method of using Hough transform to enhance the extracted grayscale binary spectrum to obtain the line spectrum characteristics of the ship includes: Traverse all elements in the grayscale binary spectrum, transform the points in the rectangular coordinate system into the curve of the Hough space through polar coordinate transformation; Establish a Hough voting box and filter out the maximum value points in the voting box; Filter out the spectral lines outside the length threshold and the spectral lines outside the angle threshold respectively, and output the spectral lines.

3. The method for extracting spectral lines in a time spectrum using hough transform according to claim 2, characterized in that: The Hough voting box is established to screen the maximum value points in the voting box; including: Create a Hough voting box V based on the image pixel matrix size in the rectangular coordinate system h , The horizontal axis represents the angle information The angular resolution is 1°, and the vertical axis represents the distance information ρ∈[-d,d], where represents rounding down, d represents the diagonal pixel length of the image, and each time an element in the voting box is passed by the curve, the vote counts as one vote; Set Hough ballot box threshold TH v , leaving only the votes in the Hough space greater than TH v The extreme point of the ballot box, or the maximum vote value v max , leaving the voting value in the ballot box greater than qv max The extreme point of , where q is the voting coefficient, q∈[0,1].

4. The method for extracting spectral lines in a time spectrum using hough transform according to claim 3, characterized in that: The filtering out of the spectral lines outside the length threshold includes: According to the Hough space points selected by voting, if a certain point is passed several times, check the parameters of all curves passing through the point, record the Euclidean distance of the parameters of the two curves, and find the maximum value d of the Euclidean distance among the parameters of all curves passing through the point max , set the length threshold of the spectrum line TH l , if d max >TH l , then keep the point and record the two curve parameters as the endpoint coordinates of the Cartesian coordinate system line corresponding to the point; otherwise, discard the point.

5. A system based on the method of extracting spectral lines in a time spectrum graph using hough transform according to claim 1, characterized in that: The system comprises: The feature extraction module is used to divide the collected ship underwater acoustic signal into frames and add windows, first use the square detection method to demodulate, then use the short-time Fourier transform to extract the DEMON spectrum of the demodulation result of each time window, arrange the DEMON spectrum of each time period in time sequence, and generate a time-frequency DEMON spectrogram; and The image enhancement module is used to perform grayscale binarization processing on the time-frequency DEMON spectrum, and then use Hough transform to enhance the extracted grayscale binary spectrum to obtain the line spectrum characteristics of the ship.

Citation Information

Patent Citations

  • Ship radiation noise demodulation spectrum phase difference feature extraction method and system

    CN117388833A