Sound source distance judgment method based on optical fiber and external force damage alarm method and device
Through the sound source distance judgment method based on fiber, fiber sensing technology and frequency domain signal processing are used to solve the problem of optical fiber ranging technology being easily disturbed, achieving higher measurement accuracy and accuracy.
Patent Information
- Application Number
- CN202411683697.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-22
- Publication Date
- 2025-03-04
AI Technical Summary
Existing fiber ranging technology is susceptible to propagation media and environmental noise, resulting in inaccurate measurement results.
Using the sound source distance judgment method based on optical fiber, the relationship parameters between the distance data and the test signal power density data are obtained in advance, the optical signal acting on the optical fiber is obtained, and the audio signal in the frequency domain is converted into an audio signal, and the signal power density data is processed, and the vertical distance between the sound source and the optical fiber is calculated.
It improves the accuracy of measurement, reduces interference from propagation media and ambient noise, and enhances the accuracy of sound source distance judgment.
Smart Images

Figure CN119556271A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical fiber sensing technology, and more specifically, to an optical fiber-based sound source distance judgment method, an external force damage alarm method and a device. Background Art
[0002] Optical fibers are often used in the field of ranging and positioning, and are usually installed underground. Existing technologies usually locate and measure the vibration source based on the propagation characteristics of the vibration source. Since the propagation medium will affect the vibration propagation speed and the noise in the external environment will also cause certain interference, affecting the accuracy of the measurement results, there is an urgent need for an accurate anti-interference ranging method. Summary of the invention
[0003] In order to solve at least one of the above-mentioned defects, the present invention application proposes a sound source distance judgment method based on optical fiber, an external force damage alarm method and device, which are used to solve the problem that the prior art is easily affected by the propagation medium and environmental noise, and improve the measurement accuracy.
[0004] According to a first aspect of the present application, a method for determining a sound source distance based on optical fiber is provided, comprising:
[0005] Pre-acquire the relationship parameters between the distance data and the test signal power density data;
[0006] Acquire a first optical signal applied by a sound source to an optical fiber, and process the first optical signal to obtain a first electrical signal;
[0007] Converting the first electrical signal into a first audio signal in the frequency domain, and processing the first audio signal to obtain corresponding first signal power density data;
[0008] Obtaining a vertical distance from the sound source to the optical fiber based on the relationship parameter and the first signal power density data;
[0009] Among them, the distance data is the vertical distance from the audio generating device to the test optical fiber, and the test signal power density data is obtained by processing the test optical signal, and the test optical signal is the optical signal generated by the audio emitted by the audio generating device acting on the test optical fiber.
[0010] Preferably, the pre-acquisition of the relationship parameters between the distance data and the test signal power density data specifically includes:
[0011] Acquire multiple test optical signals and corresponding distance data generated by the audio acting on the test optical fiber;
[0012] Converting the plurality of test optical signals into a plurality of corresponding test electrical signals respectively;
[0013] converting the plurality of corresponding test electrical signals into a plurality of test audio signals in the frequency domain;
[0014] Respectively processing the multiple test audio signals in the frequency domain to obtain corresponding multiple test signal power density data;
[0015] The relationship parameters are obtained by fitting based on the multiple test signal power density data and the corresponding distance data.
[0016] Optionally, the obtaining of a plurality of test optical signals and corresponding distance data generated by the audio acting on the test optical fiber specifically includes:
[0017] Acquire multiple test optical signals corresponding to multiple audio frequencies emitted by the audio generating device at different working powers acting on the test optical fiber, and acquire a vertical distance from the audio generating device to the test optical fiber, wherein the vertical distance remains unchanged;
[0018] and / or,
[0019] It is obtained that at different vertical distances of the test optical fiber, the audio emitted by the audio generating device at the same working frequency acts on the corresponding multiple test optical signals and corresponding distance data in the test optical fiber.
[0020] Preferably, the relationship parameter is obtained by fitting the vertical distance from the audio generating device to the test optical fiber and the multiple test signal power density data, specifically including:
[0021] Using the formula P sum =aD+b The vertical distance and the power density data of the multiple test signals are fitted to obtain the relationship parameter, wherein P sum represents the test signal power density data, D represents the vertical distance from the audio generating device to the test optical fiber, and is the relationship parameter, represents the positive correlation coefficient, represents the offset, P sum Represents the test signal power density data.
[0022] Preferably, obtaining the vertical distance from the sound source to the optical fiber based on the relationship parameter and the first signal power density data comprises:
[0023] The vertical distance from the sound source to the optical fiber is calculated using the formula S=(Pb) / a and the first signal power density data, where S represents the vertical distance from the sound source to the optical fiber, and P represents the first signal power density data.
[0024] Preferably, the processing of the first audio signal to obtain corresponding first signal power density data specifically includes:
[0025] Performing power density calculation on the first audio signal to obtain a corresponding power spectrum;
[0026] Filtering the corresponding power spectrum to obtain a filtered power spectrum, wherein the filtered power spectrum includes power of multiple frequency components;
[0027] The power of each frequency component in the filtered power spectrum is superimposed to obtain corresponding first signal power density data.
[0028] Preferably, the power density calculation is expressed as:
[0029]
[0030] Among them, P(f k ) represents the power density of the kth frequency component, k represents the number of frequency components, L represents the length of the audio signal, X(f k ) represents the spectrum of the kth frequency component.
[0031] According to a second aspect of the present application, there is provided a sound source distance determination device based on optical fiber, comprising:
[0032] A preprocessing module, used to pre-acquire relationship parameters between distance data and test signal power density data, wherein the distance data is a vertical distance from an audio generating device to a test optical fiber, and the test signal power density data is obtained by processing a test optical signal, wherein the test optical signal is a test optical signal generated by the audio emitted by the audio generating device acting on the optical fiber;
[0033] A photoelectric conversion module, used for acquiring a first optical signal applied by a sound source to an optical fiber, and processing the first optical signal to obtain a first electrical signal;
[0034] a power acquisition module, configured to convert the first electrical signal into a first audio signal in the frequency domain, and process the first audio signal to obtain corresponding first signal power density data;
[0035] A distance measurement module is used to obtain a vertical distance from the sound source to the optical fiber based on the relationship parameter and the first signal power density data.
[0036] According to a third aspect of the present application, there is provided an optical fiber-based external force damage alarm method, characterized in that it includes:
[0037] Pre-acquire the relationship parameters between the distance data and the test signal power density data;
[0038] Acquire a second optical signal generated by an external force damaging sound source acting on the optical fiber, and process the second optical signal to obtain a second electrical signal;
[0039] converting the second electrical signal into a second audio signal in the frequency domain, and processing the second audio signal in the frequency domain to obtain corresponding second signal power density data;
[0040] Obtaining a vertical distance from the external force damage sound source to the optical fiber based on the relationship parameter and the second signal power density data, and issuing an alarm based on the vertical distance;
[0041] Among them, the distance data is the vertical distance from the audio generating device to the test optical fiber, and the test signal power density data is obtained by processing the test optical signal, and the test optical signal is the optical signal generated by the audio emitted by the audio generating device acting on the test optical fiber.
[0042] According to a fourth aspect of the present application, there is provided an optical fiber-based external force damage alarm device, comprising:
[0043] A pre-processing module is used to pre-acquire relationship parameters between distance data and test signal power density data; wherein the distance data is the vertical distance from the audio generating device to the test optical fiber, and the test signal power density data is obtained by processing the test optical signal, and the test optical signal is the test optical signal generated by the audio emitted by the audio generating device acting on the test optical fiber.
[0044] An acquisition module, used for acquiring a second optical signal generated by an external force damaging sound source acting on the optical fiber, and processing the second optical signal to obtain a second electrical signal;
[0045] a processing module, configured to convert the second electrical signal into a second audio signal in the frequency domain, and process the second audio signal in the frequency domain to obtain corresponding second signal power density data;
[0046] A distance measurement alarm module is used to obtain the vertical distance from the external force damage sound source to the optical fiber based on the relationship parameter and the second signal power density data, and to issue an alarm based on the vertical distance.
[0047] According to a fifth aspect of the present application, there is provided an electronic device, including:
[0048] a memory for storing one or more computer programs;
[0049] The processor, when the one or more computer programs are executed by the processor, implements the above-mentioned first aspect of a sound source distance judgment method based on optical fiber or implements the third aspect of an external force damage alarm method based on optical fiber.
[0050] According to the sixth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the above-mentioned optical fiber-based sound source distance judgment method of the first aspect, or the optical fiber-based external force damage alarm method of the third aspect when executed.
[0051] Based on any of the above aspects, the embodiment of the present application provides a method for judging the distance of a sound source based on an optical fiber, which uses an audio generating device to transmit an audio signal to act on a test optical fiber, causing a change in the propagation characteristics of the optical signal in the optical fiber, collecting the test optical signal, converting the test optical signal into a test audio signal in the frequency domain, and then obtaining the test signal power density data, and fitting the vertical distance from the audio generating device to the test optical fiber and the test signal power density data to obtain the relationship parameter between the distance and the power, which can be used to judge the distance of any sound source acting on the optical fiber. In the specific implementation, the power of the sound source received by the optical fiber is collected and analyzed, and the vertical distance from the sound source to the optical fiber can be obtained according to the relationship parameter. The present application uses an audio signal in the frequency domain to replace an audio signal in the time domain, realizes distance judgment based on the frequency attenuation effect, and avoids interference from the propagation medium. Further, in the process of converting the signal in the time domain into an audio signal in the frequency domain, the power density can be divided into multiple frequency components, eliminating the noise interference of the external environment, further reducing the measurement error, and improving the accuracy of the sound source distance judgment. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0053] Figure 1 A schematic application scenario diagram of an optical fiber-based sound source distance judgment method or an optical fiber-based external force damage alarm method provided in this embodiment.
[0054] Figure 2 A flowchart of a method for determining the distance of a sound source based on optical fiber provided in this embodiment.
[0055] Figure 3 A schematic diagram of a module of a sound source distance determination device based on optical fiber provided in this embodiment.
[0056] Figure 4 This is a schematic diagram of the structure of an electronic device provided in this embodiment.
[0057] Figure 5A schematic diagram of a module of an optical fiber-based external force damage alarm device provided in this embodiment.
[0058] Figure 6 The present invention provides a method for determining the distance of a sound source based on optical fiber.
[0059] Figure 7 This is a flow chart of an optical fiber-based external force damage alarm method provided in this embodiment.
[0060] Figure 8 The test signal power density data is obtained in the optical fiber-based sound source distance judgment method provided in this embodiment.
[0061] Icons: 100, server; 200, terminal; 301, pre-processing module; 302, photoelectric conversion module; 303, power acquisition module; 304, distance measurement module; 410, electronic device; 411, memory; 412, processor; 413, communication module; 414, input / output interface; 415, bus; 501, pre-processing module; 502, acquisition module; 503, processing module; 504, ranging alarm module. DETAILED DESCRIPTION
[0062] The drawings of this application are only used for illustrative purposes and should not be construed as limiting the present application. In order to better illustrate the following embodiments, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product; it is understandable to those skilled in the art that some well-known structures and their descriptions in the drawings may be omitted.
[0063] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0064] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0065] At present, optical fiber positioning and ranging technology is easily affected by external environment and causes misjudgment, which affects the position positioning.
[0066] For example, a schematic diagram of an application scenario of a sound source distance determination method based on optical fiber or an external force damage alarm method based on optical fiber provided in an embodiment of the present application. Figure 1 As shown, the application scenario includes at least a server 100 and a terminal 200 that can communicate with the server 100. The server 100 has functions such as data reception and data processing; the terminal device 200 has functions such as data reception and data processing, and also supports receiving data information from the server 100, and can also have functions such as data display.
[0067] It is understandable that the server 100 can be an independent electronic device or a cluster of multiple electronic devices; the terminal 200 can be a smart phone terminal, a personal computer, a tablet computer, a car terminal, etc., but is not limited thereto.
[0068] In an operative manner, the server 100 and the terminal 200 may respectively execute a sound source distance determination method based on optical fiber provided in an embodiment of the present application, or, optionally, a sound source distance determination method based on optical fiber or a external force damage alarm method based on optical fiber provided in an embodiment of the present application may be partially executed in the server 100 and partially executed in the terminal 200.
[0069] On the one hand, the embodiment of the present application provides a method for determining the distance of a sound source based on optical fiber, such as Figure 2 As shown, the method at least includes:
[0070] S1. Pre-acquire the relationship parameters between the distance data and the test signal power density data;
[0071] Wherein, the distance data is the vertical distance from the audio generating device to the test optical fiber, and the test signal power density data is obtained by processing the test optical signal, and the test optical signal is the test optical signal generated by the audio emitted by the audio generating device acting on the test optical fiber;
[0072] S2, obtaining a first optical signal applied by a sound source to an optical fiber, and processing the first optical signal to obtain a first electrical signal;
[0073] S3, converting the first electrical signal into a first audio signal in the frequency domain, and processing the first audio signal to obtain corresponding first signal power density data;
[0074] S4. Obtain a vertical distance from the sound source to the optical fiber based on the relationship parameter and the first signal power density data.
[0075] In this embodiment, by pre-acquiring the relationship parameters between the distance data and the test signal power density data, the distance of the sound source acting on the optical fiber can be judged based on the relationship parameters. In specific implementation, the first optical signal acting on the optical fiber by the sound source is obtained, the first optical signal is processed to obtain a first electrical signal, the first electrical signal is converted into a first audio signal in the frequency domain, the first audio signal is processed to obtain the corresponding first signal power density data, and the vertical distance from the sound source to the optical fiber is obtained based on the relationship parameters and the first signal power density data. The present application uses an audio signal in the frequency domain instead of an audio signal in the time domain, realizes distance judgment based on the frequency attenuation effect, avoids interference from the propagation medium, and improves the accuracy of the sound source distance judgment.
[0076] In the specific implementation process, combined with Figure 6 , step S1 of this embodiment is specifically described, and the specific steps of step S1 may include:
[0077] Z1. Acquire multiple test optical signals and corresponding distance data generated by the audio acting on the test optical fiber;
[0078] Z2. Convert the multiple test optical signals into multiple corresponding test electrical signals respectively;
[0079] Z3. converting the plurality of corresponding test electrical signals into a plurality of test audio signals in the frequency domain;
[0080] Z4. Process the multiple test audio signals in the frequency domain respectively to obtain corresponding multiple test signal power density data;
[0081] Z5. Based on the multiple test signal power density data and the corresponding distance data, the relationship parameters are obtained by fitting.
[0082] In an optional implementation, the test optical fiber may be a distributed optical fiber. In this embodiment, the audio generating device uses an audio transmitter with adjustable power and audio frequency to emit audio with different powers and frequencies. The audio, as a vibration wave, propagates to the test optical fiber, causing a change in the refractive index of the medium inside the test optical fiber, thereby causing a change in the propagation characteristics of the optical signal in the test optical fiber. The optical signal collected in the test optical fiber can be used to analyze the correlation between the audio generating device and the test optical fiber at different distances and different power audios, thereby obtaining relationship parameters based on distance and test signal power density data.
[0083] In an optional embodiment, the specific steps of obtaining multiple test optical signals corresponding to the audio acting on the test optical fiber and the corresponding distance data in step Z1 may include: obtaining multiple test optical signals generated by the multiple audio signals emitted by the audio generating device at different working powers acting on the test optical fiber, and obtaining the vertical distance from the audio generating device to the test optical fiber, wherein the vertical distance remains unchanged.
[0084] In a specific implementation, when the distance between the audio generating device and the test optical fiber remains unchanged, the working power of the audio generating device can be changed, and multiple audios with different powers emitted by the audio generating device act on the test optical fiber, thereby obtaining multiple test optical signals generated in the test optical fiber;
[0085] In another optional embodiment, the specific step of obtaining the multiple test optical signals generated by the audio acting on the test optical fiber in step Z1 may include: obtaining the multiple test optical signals and corresponding distance data generated by the audio emitted by the audio generating device at the same working power acting on the test optical fiber at different vertical distances from the test optical fiber.
[0086] In a specific implementation, when the working power of the audio generating device remains unchanged, the vertical distance from the audio generating device to the test optical fiber can be changed, and the audio emitted by the audio generating device acts on the test optical fiber, thereby obtaining multiple test optical signals generated in the test optical fiber.
[0087] The present application can achieve a flexible testing method by changing the vertical distance or changing the working power of the audio generating device, and obtaining multiple sets of data for fitting can reduce the error of the fitting result.
[0088] In this embodiment, step Z1 can use a sensor to obtain multiple test optical signals generated by the audio acting on the test optical fiber. The sensor uses a photoelectric sensor to receive the multiple test optical signals in the test optical fiber and convert them into multiple continuous analog electrical signals respectively.
[0089] Furthermore, in step Z2, a sampler may be used to sample the multiple continuous analog electrical signals to obtain multiple discrete digital electrical signals. In a preferred embodiment, the sampler may be a FPGA sampling device based on a crystal resonator, whose crystal oscillation frequency may be 250 MHz, 300 MHz or other frequency values, or a digital-to-analog conversion device based on a crystal oscillator of other specifications may be used, and an appropriate crystal oscillation frequency may be selected to separate different frequency components in the collected audio signal in the frequency domain.
[0090] In a preferred embodiment, in step Z3, the multiple digital electrical signals are subjected to Fourier transform, and the audio signals in the time domain are converted to the frequency domain to obtain multiple test audio signals in the frequency domain. The test audio signals are respectively divided into multiple frequency components in the frequency domain, and the frequency difference between two adjacent frequency components is the same as the oscillation frequency of the crystal oscillator. This embodiment converts the electrical signal corresponding to the optical signal to the frequency domain, realizes distance judgment based on the frequency attenuation effect, and avoids interference from the propagation medium.
[0091] In step Z4, the processing of the multiple test audio signals in the frequency domain to obtain the corresponding multiple test signal power density data includes calculating the power spectrum density of each test audio signal, which is expressed as:
[0092]
[0093] Among them, P(f k ) represents the power density of the kth frequency component, k represents the number of frequency components, L represents the length of the test audio signal, X(f k ) represents the spectrum of the kth frequency component.
[0094] For example, Figure 8 As shown, a sampler based on a crystal oscillator with a frequency value of 250 MHz is used to process and obtain the power spectrum of the audio signal in the frequency domain.
[0095] In this embodiment, the power of each frequency component in each filtered power spectrum is superimposed to obtain the corresponding test signal power density data, and the superposition process is expressed as:
[0096]
[0097] Among them, P sum Represents the test signal power density data.
[0098] In the process of converting the audio signal to the frequency domain, the audio signal is first divided into multiple frequency components, the power density of each frequency component is calculated respectively, and then the power density of each frequency component is superimposed to obtain the corresponding test signal power density data, so that the result obtained is more accurate. Furthermore, after converting the audio signal to the frequency domain, a filter such as a bandpass filter, a low-pass filter, and a band-stop filter can be used to filter the low-frequency environmental noise and eliminate the interference of the environmental noise.
[0099] In a preferred embodiment, the relationship parameter is obtained based on the vertical distance from the audio generating device to the optical fiber and the test signal power density data fitting, specifically by fitting using the following formula:
[0100] P sum =D+
[0101] Among them, P sum represents the test signal power density data, D represents the vertical distance from the audio generating device to the test optical fiber, and are the relationship parameters, represent the positive correlation coefficient, and represent the offset.
[0102] In a preferred optional implementation, step S2 may use the same sensor and sampler as steps Z1 and Z2 to acquire a first optical signal from a sound source acting on an optical fiber, and process the first optical signal to obtain a first electrical signal.
[0103] In a preferred embodiment, a first electrical signal in the time domain is converted into a first audio signal in the frequency domain, and the first audio signal is processed to obtain corresponding first signal power density data. In a specific implementation, power density calculations are performed on the first audio signal to obtain a corresponding power spectrum, and the corresponding power spectrum is filtered to obtain a filtered power spectrum, wherein the filtered power spectrum includes power densities of multiple frequency components, and the power density of each frequency component in the filtered power spectrum is superimposed to obtain the corresponding first signal power density data.
[0104] In step S4, based on the relationship parameters obtained in step S1 and the first signal power density data, the vertical distance from the sound source to the optical fiber is obtained by using the formula S=(Pb) / a, where S represents the vertical distance from the sound source to the optical fiber, P represents the first signal power density data, and a and b are the relationship parameters.
[0105] In this embodiment, the relationship parameters obtained by pre-fitting can be used to determine the distance of the sound source based on the vertical distance between the sound source and the test optical fiber and the optical signal formed by the disturbance caused by the sound emitted by the sound source acting on the optical fiber. Although different media will also affect the frequency attenuation of sound waves, compared with using the speed of sound to determine the distance of the sound source, the present application determines the distance of the sound source based on the frequency attenuation effect of sound waves, and the error is relatively smaller. In engineering, the error can be reduced to the meter range.
[0106] Second, as Figure 3 This embodiment provides a sound source distance determination device based on optical fiber, including a preprocessing module 301, a photoelectric conversion module 302, a power acquisition module 303, and a distance measurement module 304.
[0107] A preprocessing module 301 is used to pre-acquire a parameter of a relationship between distance data and test signal power density data, wherein the distance data is a vertical distance from an audio generating device to an optical fiber, and the test signal power density data is obtained by processing a test optical signal, wherein the test optical signal is a test optical signal generated when the audio emitted by the audio generating device acts on the optical fiber;
[0108] In this embodiment, the preprocessing module 301 may be used to execute step S1 described in the first aspect of the embodiment. For a detailed description of the preprocessing module 301 , reference may be made to the description of step S1 .
[0109] The photoelectric conversion module 302 is used to obtain a first optical signal applied by a sound source to an optical fiber, and process the first optical signal to obtain a first electrical signal;
[0110] In this embodiment, the photoelectric conversion module 302 includes at least a sensor and a sampler. The sensor is used to obtain the first optical signal that changes in the optical fiber due to the propagation of the sound source, and the first optical signal is converted into a continuous analog first electrical signal. The sampler is used to convert the continuous analog electrical signal into a discrete digital first electrical signal.
[0111] In this embodiment, the photoelectric conversion module 302 may be used to execute step S2 described in the first aspect of the embodiment. For a detailed description of the photoelectric conversion module 302 , reference may be made to the description of step S2 .
[0112] A power acquisition module 303, configured to convert the first electrical signal into a first audio signal in the frequency domain, and process the first audio signal to obtain corresponding first signal power density data;
[0113] In this embodiment, the power acquisition module 303 is used to convert the first electrical digital in the time domain into a first audio signal in the frequency domain, perform power density calculation on the first audio signal, and obtain a power spectrum including multiple frequency components and ambient noise. After the power acquisition module 303 filters the ambient noise, the power spectra of the multiple frequency components are superimposed to obtain corresponding first signal power density data.
[0114] In this embodiment, the power acquisition module 303 can be used to execute step S3 of the first aspect of the embodiment. For a specific description of the power acquisition module 303, reference can be made to the description of step S3. A distance measurement module 304 is used to obtain a vertical distance from the sound source to the optical fiber based on the relationship parameter and the first signal power density data;
[0115] In this embodiment, the distance measurement module 304 obtains the relationship parameter obtained by the preprocessing module 301 and the first signal power density data of the sound source obtained by the power acquisition module 303, and processes them to obtain the vertical distance between the sound source and the optical fiber.
[0116] In this embodiment, the distance measurement module 304 may be used to execute step S4 described in the first aspect of the embodiment. For a detailed description of the distance measurement module 304 , reference may be made to the description of step S4 .
[0117] Thirdly, Figure 7 This embodiment provides an external force damage alarm method based on optical fiber, the method at least comprising:
[0118] B1. Pre-acquire the relationship parameters between the distance data and the test signal power density data;
[0119] B2. Acquire a second optical signal caused by an external force damaging sound source acting on the optical fiber, and process the second optical signal to obtain a second electrical signal;
[0120] B3. converting the second electrical signal into a second audio signal in the frequency domain, and processing the second audio signal to obtain corresponding second signal power density data;
[0121] B4. Obtaining the vertical distance from the external force damage sound source to the optical fiber based on the relationship parameter and the second signal power density data, and issuing an alarm based on the vertical distance.
[0122] In this embodiment, by pre-acquiring the relationship parameters between the distance data and the test signal power density data, the distance judgment of the external force damage sound source acting on the optical fiber can be performed based on the relationship parameters. In specific implementation, the second optical signal of the external force damage sound source acting on the optical fiber is obtained, the second optical signal is processed to obtain a second electrical signal, the second electrical signal is converted into a second audio signal in the frequency domain, the second audio signal is processed to obtain the corresponding second signal power density data, the vertical distance from the external force damage sound source to the optical fiber is obtained based on the relationship parameters and the second signal power density data, and an alarm operation is performed based on the vertical distance from the external force damage sound source to the optical fiber. The present application uses the second audio signal in the frequency domain to replace the audio signal in the time domain, realizes distance judgment based on the frequency attenuation effect, avoids interference from the propagation medium, and improves the accuracy of the distance judgment of the external force damage sound source.
[0123] In the specific implementation process, combined with Figure 6 , step B1 of this embodiment is specifically described, and the specific steps of step B1 may include:
[0124] Z1. Acquire multiple test optical signals and corresponding distance data generated by the audio acting on the test optical fiber;
[0125] Z2. Convert the multiple test optical signals into multiple corresponding test electrical signals respectively;
[0126] Z3. converting the plurality of corresponding electrical signals into a plurality of test audio signals in the frequency domain;
[0127] Z4. Process the multiple test audio signals in the frequency domain respectively to obtain corresponding multiple test signal power density data;
[0128] Z5. Obtain the relationship parameter based on the multiple test signal power density data and the corresponding distance data.
[0129] In this embodiment, the audio generating device uses an audio transmitter with adjustable power and audio frequency, which is used to emit audio with different powers and frequencies. The audio, as a vibration wave, propagates to the test optical fiber, causing a change in the refractive index of the medium inside the test optical fiber, thereby causing a change in the propagation characteristics of the optical signal in the test optical fiber. The optical signal collected in the optical fiber can be used to analyze the correlation between the audio generating device and the test optical fiber at different distances and different audio powers, thereby obtaining relationship parameters based on distance data and test signal power density data.
[0130] In an optional embodiment, the vertical distance between the audio generating device and the test optical fiber can be fixed, and the test signal power density data can be changed by changing the operating power of the audio generating device to obtain multiple test signal power density data at the same vertical distance; in another optional embodiment, the operating power of the audio generating device can also be fixed, and the vertical distance between the audio generating device and the test optical fiber can be adjusted to obtain multiple test signal power density data at different vertical distances.
[0131] The present application can achieve a flexible testing method by changing the vertical distance or changing the working power of the audio generating device, and obtaining multiple sets of data for fitting can reduce the error of the fitting result.
[0132] In this embodiment, step Z1 can use a sensor to obtain multiple test optical signals corresponding to the audio acting on the test optical fiber. The sensor uses a photoelectric sensor to receive multiple test optical signals in the test optical fiber and convert them into multiple continuous analog electrical signals respectively.
[0133] Furthermore, in step Z2, a sampler may be used to sample the multiple continuous analog electrical signals to obtain multiple discrete digital electrical signals. In a preferred embodiment, the sampler may be a FPGA sampling device based on a crystal resonator, whose crystal oscillation frequency may be 250 MHz, 300 MHz or other frequency values, or a digital-to-analog conversion device based on a crystal oscillator of other specifications may be used, and an appropriate crystal oscillation frequency may be selected to separate different frequency components in the collected audio signal in the frequency domain.
[0134] In a preferred embodiment, in step Z3, the multiple digital electrical signals are subjected to Fourier transform, and the audio signal in the time domain is converted to the frequency domain to obtain multiple test audio signals in the frequency domain. The audio signal is divided into multiple frequency components in the frequency domain, and the frequency difference between two adjacent frequency components is the same as the oscillation frequency of the crystal oscillator. This embodiment converts the electrical signal corresponding to the optical signal to the frequency domain, realizes distance judgment based on the frequency attenuation effect, and avoids interference from the propagation medium.
[0135] In step Z4, the processing of the multiple test audio signals in the frequency domain to obtain the corresponding multiple test signal power density data includes calculating the power spectrum density of each test audio signal, which is expressed as:
[0136]
[0137] Among them, P(f k ) represents the power of the kth frequency component, k represents the number of frequency components, K represents the length of the test audio signal, X(f k) represents the spectrum of the kth frequency component.
[0138] For example, Figure 8 As shown, a sampler based on a crystal oscillator with a frequency value of 250 MHz is used to process and obtain the power spectrum of the audio signal in the frequency domain.
[0139] In this embodiment, the power of each frequency component in each filtered power spectrum is superimposed to obtain the corresponding test signal power density data, and the superposition process is expressed as:
[0140]
[0141] Among them, P sum Represents the test signal power density data.
[0142] In the process of converting the audio signal to the frequency domain, the audio signal is first divided into multiple frequency components, the power density of each frequency component is calculated respectively, and then the power density of each frequency component is superimposed to obtain the corresponding test signal power density data, so that the result obtained is more accurate. Furthermore, after converting the audio signal to the frequency domain, a filter such as a bandpass filter, a low-pass filter, and a band-stop filter can be used to filter the low-frequency environmental noise and eliminate the interference of the environmental noise.
[0143] In a preferred embodiment, the relationship parameter is obtained based on the vertical distance from the audio generating device to the test optical fiber and the test signal power density data fitting, specifically by fitting using the following formula:
[0144] P sum =D+
[0145] Among them, P sum represents the test signal power density data, D represents the vertical distance from the audio generating device to the test optical fiber, and are the relationship parameters, represent the positive correlation coefficient, and represent the offset.
[0146] In a preferred optional implementation, step B2 may use the same sensor and sampler as steps Z1 and Z2 to obtain a second optical signal caused by an external force damaging sound source acting on the optical fiber, and process the second optical signal to obtain a second electrical signal.
[0147] The specific description of step B3 can refer to steps Z3 and Z4. The change in the propagation characteristics of the second optical signal is caused by external force destroying the sound source; similarly, the second electrical signal is converted into a second audio signal in the frequency domain, and the corresponding second signal power density data is obtained by processing.
[0148] In step B4, based on the relationship parameter obtained in step B1 and the second signal power density data, the vertical distance from the external force damage sound source to the optical fiber is processed and an alarm is issued based on the vertical distance.
[0149] In specific implementation, the formula S'=(P'-b) / a) is used to obtain the vertical distance from the external force damage sound source to the optical fiber, where S' represents the vertical distance from the external force damage sound source to the optical fiber, P' represents the second signal power density data, and a and b are the relationship parameters.
[0150] In a specific implementation, an alarm can be issued through an electronic device, which can be various forms of digital computers, such as desktop computers, servers, workstations, mainframe computers or other types of computers; it can also be various forms of mobile terminals, such as smart phones, tablet computers and other similar mobile terminals.
[0151] In this embodiment, through the relationship parameters obtained by pre-fitting, the distance judgment and alarm of the external force damage sound source can be realized based on the vertical distance between the external force damage sound source and the test optical fiber and the test optical signal formed by the disturbance generated by the sound wave emitted by the external force damage sound source acting on the optical fiber. Although different media will also affect the frequency attenuation of sound waves, compared with the distance judgment of the external force damage sound source based on the sound speed, the error of this application is relatively smaller in judging the distance of the external force damage sound source based on the frequency attenuation effect of sound waves. In engineering, the error can be reduced to the meter range.
[0152] Fourthly, Figure 5 This embodiment provides an optical fiber-based external force damage alarm device, including a pre-processing module 501, a photoelectric conversion module 502, a power acquisition module 503, and a distance measurement module 504.
[0153] A pre-processing module 501 is used to pre-acquire a parameter of a relationship between distance data and test signal power density data, wherein the distance data is a vertical distance from an audio generating device to a test optical fiber, and the test signal power density data is obtained by processing a test optical signal, wherein the test optical signal is a test optical signal corresponding to the audio emitted by the audio generating device acting on the test optical fiber;
[0154] In this embodiment, the preprocessing module 501 may be used to execute step B1 described in the third aspect of the embodiment. For a detailed description of the preprocessing module 501 , reference may be made to the description of step B1 .
[0155] An acquisition module 502 is used to acquire a second optical signal applied by a sound source to the test optical fiber, and process the second optical signal to obtain a second electrical signal;
[0156] In this embodiment, the acquisition module 502 includes at least a sensor and a sampler. The sensor is used to acquire the second optical signal that changes in the optical fiber due to the external force destroying the propagation of the sound source, and the second optical signal is converted into a continuous analog first electrical signal. The sampler is used to convert the continuous analog electrical signal into a discrete digital first electrical signal.
[0157] In this embodiment, the acquisition module 502 may be used to execute step B2 of the third aspect of the embodiment. For a detailed description of the acquisition module 502, reference may be made to the description of step B2.
[0158] A processing module 503, configured to convert the second electrical signal into a second audio signal in the frequency domain, and process the second audio signal to obtain corresponding second signal power density data;
[0159] In this embodiment, the processing module 503 is used to convert the second electrical signal in the time domain into a second audio signal in the frequency domain, perform power density calculation on the second audio signal, and obtain a power spectrum including multiple frequency components and ambient noise. After filtering the ambient noise, the processing module 503 superimposes the power spectra of the multiple frequency components to obtain corresponding second signal power density data.
[0160] In this embodiment, the processing module 503 may be used to execute step B3 of the third aspect of the embodiment. For a detailed description of the processing module 503, reference may be made to the description of step B3.
[0161] A distance measurement alarm module 504, configured to obtain a vertical distance from the external force damage sound source to the optical fiber based on the relationship parameter and the second signal power density data;
[0162] In this embodiment, the distance measurement alarm module 504 obtains the relationship parameter obtained by the pre-processing module 501 and the second signal power density data of the sound source obtained by the processing module 503, and processes them to obtain the vertical distance between the external force damage sound source and the optical fiber.
[0163] In this embodiment, the distance measurement module 504 may be used to execute step B4 described in the third aspect of the embodiment. For a detailed description of the distance measurement module 504 , reference may be made to the description of step B4.
[0164] In a preferred embodiment, the above-mentioned sound source distance determination method based on optical fiber or external force damage alarm method based on optical fiber can be implemented based on distributed optical fiber acoustic sensing (DAS).
[0165] It can be understood that the above-mentioned device embodiments and the above-mentioned method embodiments can correspond to each other, and similar descriptions of the device embodiments can refer to the method embodiments. The optical fiber-based external force damage alarm device provided in the embodiment of the present application can execute the optical fiber-based external force damage alarm method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. The optical fiber-based external force damage alarm method can be implemented in the form of hardware, can be implemented by instructions in the form of software, and can also be implemented by a combination of hardware and software modules.
[0166] Optionally, the software module may be located in a random access memory, a read-only memory, a programmable read-only memory, a flash memory, an electrically erasable programmable memory, a register, or other storage media. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps in the above method embodiment in combination with its hardware.
[0167] The present application embodiment provides an electronic device 410, whose structure is as follows: Figure 4 The electronic device 410 may be Figure 1 The server 100 or the terminal 200 is shown.
[0168] like Figure 4 As shown, the electronic device 410 includes a memory 411, a processor 412, a communication module 413 and an input / output interface 414, etc. Optionally, the memory 411, the processor 412, the communication module 413 and the input / output interface 414 can be connected and communicated through a bus 415.
[0169] The memory 411 is used to store one or more computer programs and transmit the code of the computer program to the processor 412; when the one or more computer programs are executed by the processor 411, an optical fiber-based sound source distance judgment method or an optical fiber-based external force damage alarm method in an embodiment of the present application is implemented.
[0170] Optionally, the electronic device 410 can be connected to a network via a communication module 413 to communicate with other devices, such as a terminal or a server, through the network to achieve data interaction. The electronic device 410 can be various forms of digital computers, such as desktop computers, servers, workstations, mainframe computers or other types of computers. The electronic device 410 can also be various forms of mobile terminals, such as smart phones, tablet computers, wearable devices (such as helmets, glasses, watches, etc.) and other similar mobile terminals.
[0171] Optionally, the electronic device 410 can be connected to a required input / output device, such as a keyboard, a display device, etc., through the input / output interface 414. The electronic device 410 itself can have a display device, and can also be connected to other external display devices through the input / output interface 414. Optionally, a storage device, such as a hard disk, can be connected through the input / output interface 414, so that data in the electronic device 410 can be stored in the storage device, or data in the storage device can be read, and data in the storage device can also be stored in the memory 411.
[0172] It is understandable that the input / output interface 414 may be a wired interface or a wireless interface. Depending on the actual application scenario, the device connected to the input / output interface 414 may be a component of the electronic device 410 or an external device connected to the electronic device 410 when needed.
[0173] Optionally, the memory 411 may be a volatile memory and / or a non-volatile memory, the volatile memory may be a random access memory, etc., and the non-volatile memory may be a read-only memory, a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory or a flash memory, etc.
[0174] Optionally, the computer program stored in the processor 411 may be divided into one or more modules, which are stored in the memory 411 and executed by the processor 412 to complete the method provided in the embodiment. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the computer program instruction segments are used to describe the execution process of the computer program in the electronic device 410.
[0175] Optionally, the processor 412 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 412 include, but are not limited to, a central processing unit, a graphics processing unit, a digital signal processor, various special artificial intelligence computing chips, various processors running machine learning model algorithms, and may also be any appropriate controller, microcontroller, processor, etc. The processor 412 executes the various methods and processes of this embodiment, illustratively, such as a sound source distance judgment method based on optical fiber or an external force damage alarm method based on optical fiber in an embodiment of the present application.
[0176] Optionally, the bus 415 may include a path for transmitting information. The bus 415 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. According to different functions, the bus 415 may be divided into an address bus, a data bus, a control bus, etc.
[0177] In an optional implementation, the embodiment of the present application further provides a computer storage medium on which a computer program is stored, and when the computer program is executed by a computer, the computer can execute the method of the above method embodiment. Part or all of the computer program can be loaded and / or installed on the memory 411 of the electronic device 410. When the computer program is executed by the processor 412, one or more steps of a sound source distance judgment method based on optical fiber or one or more steps of an external force damage alarm method based on optical fiber in the embodiment of the present application can be executed.
[0178] Optionally, the computer-readable storage medium may be a random access memory, a read-only memory, a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory, or the like.
[0179] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the technical solution of the present invention, and are not intended to limit the specific implementation methods of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the claims of the present invention shall be included in the protection scope of the claims of the present invention.
Claims
1. A method for determining the distance of a sound source based on optical fiber, characterized in that: include, Pre-acquire the relationship parameters between the distance data and the test signal power density data; Acquire a first optical signal applied by a sound source to an optical fiber, and process the first optical signal to obtain a first electrical signal; Converting the first electrical signal into a first audio signal in the frequency domain, and processing the first audio signal to obtain corresponding first signal power density data; Obtaining a vertical distance from the sound source to the optical fiber based on the relationship parameter and the first signal power density data; Among them, the distance data is the vertical distance from the audio generating device to the test optical fiber, and the test signal power density data is obtained by processing the test optical signal, and the test optical signal is the optical signal generated by the audio emitted by the audio generating device acting on the test optical fiber.
2. The method for determining the distance of a sound source based on optical fiber according to claim 1, characterized in that: The pre-acquisition of the relationship parameters between the distance data and the test signal power density data specifically includes: Acquire multiple test optical signals and corresponding distance data generated by the audio acting on the test optical fiber; Converting the plurality of test optical signals into a plurality of corresponding test electrical signals respectively; converting the plurality of corresponding test electrical signals into a plurality of test audio signals in the frequency domain; Respectively processing the multiple test audio signals in the frequency domain to obtain corresponding multiple test signal power density data; The relationship parameters are obtained by fitting based on the multiple test signal power density data and the corresponding distance data.
3. The method for determining the distance of a sound source based on optical fiber according to claim 2, characterized in that: The obtaining of the multiple test optical signals and corresponding distance data generated by the audio acting on the test optical fiber specifically includes: Acquire multiple test optical signals corresponding to multiple audio frequencies emitted by the audio generating device at different working powers acting on the test optical fiber, and acquire a vertical distance from the audio generating device to the test optical fiber, wherein the vertical distance remains unchanged; and / or, It is obtained that at different vertical distances of the test optical fiber, the audio emitted by the audio generating device at the same working frequency acts on the corresponding multiple test optical signals and corresponding distance data in the test optical fiber.
4. The method for determining the distance of a sound source based on optical fiber according to claim 2, characterized in that: The relationship parameter is obtained by fitting the vertical distance from the audio generating device to the test optical fiber and the multiple test signal power density data, specifically including: Using the formula P sum =aD+b The vertical distance and the multiple test signal power density data are fitted to obtain the relationship parameter, wherein D represents the vertical distance from the audio generating device to the test optical fiber, and is the relationship parameter, represents the positive correlation coefficient, represents the offset, and P sum Represents the test signal power density data.
5. The method for determining the distance of a sound source based on optical fiber according to claim 4, characterized in that: The obtaining the vertical distance from the sound source to the optical fiber based on the relationship parameter and the first signal power density data comprises: The vertical distance from the sound source to the optical fiber is calculated using the formula S=(Pb) / a and the first signal power density data, where S represents the vertical distance from the sound source to the optical fiber, and P represents the first signal power density data.
6. The method for determining the distance of a sound source based on optical fiber according to any one of claims 1 to 5, characterized in that: The step of processing the first audio signal to obtain corresponding first signal power density data includes: Performing power density calculation on the first audio signal to obtain a corresponding power spectrum; Filtering the corresponding power spectrum to obtain a filtered power spectrum, wherein the filtered power spectrum includes power of multiple frequency components; The power of each frequency component in the filtered power spectrum is superimposed to obtain corresponding first signal power density data.
7. The method for determining the distance of a sound source based on optical fiber according to claim 6, characterized in that: The power density calculation is expressed as: Among them, P(f k ) represents the power density of the kth frequency component, k represents the number of frequency components, L represents the length of the audio signal, X(f k ) represents the spectrum of the kth frequency component.
8. A sound source distance judgment device based on optical fiber, characterized in that: include: A preprocessing module, used to pre-acquire relationship parameters between distance data and test signal power density data, wherein the distance data is a vertical distance from an audio generating device to a test optical fiber, and the test signal power density data is obtained by processing a test optical signal, wherein the test optical signal is a test optical signal generated by the audio emitted by the audio generating device acting on the optical fiber; A photoelectric conversion module, used for acquiring a first optical signal applied by a sound source to an optical fiber, and processing the first optical signal to obtain a first electrical signal; a power acquisition module, configured to convert the first electrical signal into a first audio signal in the frequency domain, and process the first audio signal to obtain corresponding first signal power density data; A distance measurement module is used to obtain a vertical distance from the sound source to the optical fiber based on the relationship parameter and the first signal power density data.
9. An external force damage alarm method based on optical fiber, characterized in that: include: Pre-acquire the relationship parameters between the distance data and the test signal power density data; Acquire a second optical signal caused by an external force damaging sound source acting on the optical fiber, and process the second optical signal to obtain a second electrical signal; converting the second electrical signal into a second audio signal in the frequency domain, and processing the second audio signal in the frequency domain to obtain corresponding second signal power density data; Obtaining a vertical distance from the external force damage sound source to the optical fiber based on the relationship parameter and the second signal power density data, and issuing an alarm based on the vertical distance; Among them, the distance data is the vertical distance from the audio generating device to the test optical fiber, and the test signal power density data is obtained by processing the test optical signal, and the test optical signal is the corresponding optical signal in the test optical fiber when the audio emitted by the audio generating device acts on the test optical fiber.
10. An electronic device comprising: a memory for storing one or more computer programs; A processor, when the one or more computer programs are executed by the processor, implements an optical fiber-based sound source distance judgment method according to any one of claims 1 to 7 or implements an optical fiber-based external force damage alarm method according to claim 9.