Sender signal detection method and device, medium and program product
By performing signal sampling and frequency energy calculation on voice signals, and multi-dimensional judgments combined with historical data, the problem of insufficient detection speed and accuracy of the transmitter signal in the prior art is solved, and a fast and accurate detection effect is achieved.
Patent Information
- Application Number
- CN202410995322.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-11-15
AI Technical Summary
The existing transmitter signal detection methods have insufficient speed and accuracy. Analog signal detection is susceptible to aging of circuit devices, while digital signal detection is difficult to achieve rapid detection due to delay problems.
By sampling the voice signal, combining the current and historical sampling signals, the signal to be detected is obtained, and the frequency energy of the candidate single tone frequency is calculated according to the signaling standard. The signal is determined as a transmitter signal through the judgment of multiple preset detection dimensions. .
It realizes rapid detection of the transmitter signal, improves detection speed and accuracy, and avoids delay problems caused by digital filters and fast Fourier transforms.
Smart Images

Figure CN118969020A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of aviation communication technology, and in particular to a method, device, medium and program product for detecting a sender signal. Background Art
[0002] All aviation communication dialogues require signaling to achieve control. The sender signal is sent out after modulating the signal through the voice channel. This is one of the ways to implement the signaling signal. When controlling the signaling signal, Party A sends the forward sender signal, and Party B detects the forward sender signal and feeds back the backward sender signal. Party A stops sending the forward sender signal after detecting the backward sender signal, and Party B also stops sending the backward sender signal after detecting that the forward sender signal stops. The above process is called the four-beat mutual control of the sender. In this process, the speed of starting and stopping the detection of the sender signal determines the duration of the four-beat mutual control of the sender. Therefore, the rapid detection of the sender signal can reduce the time to establish the entire call process, so that the call can be established faster.
[0003] At present, the existing detection methods of the sender signal mainly include analog signal detection and digital signal detection. Among them, for the analog signal detection method, when using the analog circuit for detection, the circuit is prone to fluctuations in accuracy due to the aging of the circuit components, resulting in low accuracy. For the digital signal detection method, it can be implemented by using digital filters or fast Fourier transforms. Among them, if the digital filter wants to produce a steeper stop band, it needs to use a higher order to achieve it, which will cause a larger delay; and for the fast Fourier transform method, if you want to ensure a higher accuracy, you need to use more sampling points, which will cause a larger delay, so it is difficult to achieve fast detection of the sender signal. Summary of the invention
[0004] The present invention provides a method, device, medium and program product for detecting a sender signal, which can realize rapid detection of the sender signal and improve the speed and accuracy of the sender signal detection.
[0005] According to one aspect of the present invention, a method for detecting a sender signal is provided, comprising:
[0006] Sampling the speech signal to obtain a current sampling signal, and obtaining a signal to be detected based on the current sampling signal and the historical sampling signal;
[0007] According to the current signaling standard, a plurality of candidate single-tone frequencies are obtained, and according to the signal to be detected, the frequency energy corresponding to each of the candidate single-tone frequencies is calculated;
[0008] According to the frequency energy corresponding to each of the candidate single tone frequencies, if the judgment of multiple preset detection dimensions is successfully passed, it is determined that the voice signal is a sender signal.
[0009] According to another aspect of the present invention, there is provided a detection device for a sender signal, comprising:
[0010] The signal sampling module is used to sample the speech signal to obtain the current sampling signal, and obtain the signal to be detected based on the current sampling signal and the historical sampling signal;
[0011] A frequency energy calculation module, used to obtain multiple candidate single-tone frequencies according to the current signaling standard, and calculate the frequency energy corresponding to each of the candidate single-tone frequencies according to the signal to be detected;
[0012] The sender signal judgment module is used to determine that the voice signal is a sender signal if it successfully passes the judgment of multiple preset detection dimensions based on the frequency energy corresponding to each candidate single tone frequency.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the method for detecting a sender signal according to any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, wherein the computer program is used to enable a processor to implement the method for detecting a sender signal according to any embodiment of the present invention when the computer program is executed.
[0018] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the method for detecting a sender signal according to any embodiment of the present invention is implemented.
[0019] The technical solution of the embodiment of the present invention samples the voice signal to obtain the current sampling signal, and obtains the signal to be detected based on the current sampling signal and the historical sampling signal; obtains multiple candidate single-tone frequencies according to the current signaling standard, and calculates the frequency energy corresponding to each candidate single-tone frequency according to the signal to be detected; according to the frequency energy corresponding to each candidate single-tone frequency, if it successfully passes the judgment of multiple preset detection dimensions, it is determined that the voice signal is a sender signal; by combining the current sampling signal and the historical sampling signal to jointly detect the sender signal, and making judgments in multiple detection dimensions based on the frequency energy of multiple candidate single-tone frequencies, rapid detection of the sender signal can be achieved, and the speed and accuracy of the sender signal detection can be improved.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flow chart of a method for detecting a sender signal according to Embodiment 1 of the present invention;
[0023] Figure 2 is an overall flow chart of a sender signal detection provided according to the first embodiment of the present invention;
[0024] Figure 3 is a flow chart of another method for detecting a register signal provided according to the first embodiment of the present invention;
[0025] Figure 4 is a structural schematic diagram of a detection device for a sender signal provided according to Embodiment 2 of the present invention;
[0026] Figure 5 It is a structural schematic diagram of an electronic device for implementing the method for detecting a sender signal according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", "target", etc. in the specification and claims of the present invention 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 interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes 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.
[0029] Embodiment 1
[0030] Figure 1 A flowchart of a method for detecting a sender signal is provided for the first embodiment of the present invention. This embodiment is applicable to the case where any party in aviation communication quickly detects the start and stop of a sender signal. The method can be executed by a sender signal detection device, which can be implemented in the form of hardware and / or software. Typically, the sender signal detection device can be configured in an electronic device, such as a computer device or a server. Figure 1 As shown, the method includes:
[0031] S110: Sampling the speech signal to obtain a current sampling signal, and obtaining a signal to be detected according to the current sampling signal and historical sampling signals.
[0032] The voice signal may be an aviation communication signal. In this embodiment, the communication device may perform periodic signal sampling on the voice signal based on a preset sampling frequency to obtain a sampled signal of each period. For example, the sampling frequency is 8000 Hz, the period is 5 milliseconds, and the number of sampling points of each period is 40.
[0033] In a specific example, a newly received speech signal is sampled based on 8000 Hz to obtain 40 sampling points of the current cycle as the current sampling signal. Then, a certain number of recent historical sampling points can be read from the storage as the historical sampling signal. For example, 120 sampling points of the first three cycles adjacent to the current cycle can be read as the historical sampling signal. Finally, the current sampling signal and the historical sampling signal can be combined to form a signal to be detected, that is, 160 sampling points.
[0034] In an optional implementation of this embodiment, obtaining the signal to be detected according to the current sampling signal and the historical sampling signal may include:
[0035] Obtain the signal recording status. If the signal recording status is that there is no register signal, obtain the signal to be detected based on the current sampling signal and the historical sampling signal; if the signal recording status is that there is a register signal, calculate the decibel value corresponding to the current sampling signal, and obtain the decibel value corresponding to the adjacent register signal; if the difference between the decibel value corresponding to the adjacent register signal and the decibel value corresponding to the current sampling signal is less than or equal to the preset decibel threshold, obtain the signal to be detected based on the current sampling signal and the historical sampling signal.
[0036] In a specific example, taking the signaling standard ATS-R2 as an example, the overall process of the sender signal detection can be as follows: Figure 2 As shown, the signal recording state is used to mark the state of the register signal of each cycle, and the register signal state includes the presence of the register signal and the absence of the register signal. Specifically, the initial state of the signal recording state is the absence of the register signal, and then the 40 new sampling point signals of the current cycle and the 120 historical sampling point signals are used to form 160 sampling point signals, and the register signal detection of the current cycle is started based on the 160 sampling point signals. If the register signal is detected in the current cycle, the signal recording state is set to the presence of the register signal, and the number of signal stop times is cleared to 0, and the register signal detection of the next cycle is continued.
[0037] Secondly, in the signaling standard ATS-R2, if the jitter interruption of the sender signal is less than 10 milliseconds, it should be regarded as the sender signal continuing and should not be regarded as a stopped state. Therefore, when the sender signal is not detected in the current cycle, the number of signal stops is increased by 1, and when it is determined that the number of signal stops is less than 3 (15 milliseconds), the signal recording state is set to no sender signal, and the sender signal detection of the next cycle is continued. When it is detected that the number of signal stops is greater than or equal to 3, the signal stop can be reported, and the signal recording state is directly updated to stop.
[0038] In this embodiment, before performing the register signal detection of the current cycle, the signal recording status can be first obtained. If the signal recording status is no register signal, it means that the register signal was not detected in the previous cycle. At this time, the signal to be detected can be directly composed based on the current sampling signal and the historical sampling signal, and the register signal detection of the current cycle can be performed.
[0039] If the signal recording state is that there is a sender signal, it means that the sender signal was successfully detected in the previous cycle. At this time, in order to exclude the possibility of falling edge or continuous silence data, the decibel value of the current sampled signal can be numerically compared with the decibel value of the adjacent sender signal (i.e., the voice signal of the previous cycle). If the difference between the decibel value of the adjacent sender signal and the decibel value of the current sampled signal is less than or equal to the preset decibel threshold, such as 10 decibels, the possibility of falling edge or continuous silence data can be excluded, and the signal to be detected can be composed according to the current sampled signal and the historical sampled signal, and the sender signal detection of the current cycle can be performed. If the difference is greater than the preset decibel threshold, it can be determined that the current sampled signal is a falling edge or continuous silence data, and it can be directly determined that there is no sender signal in the current cycle.
[0040] It should be noted that, taking the ATS-R2 signaling standard as an example, the lowest single-tone frequency in the backward sender signal has reached 660 Hz, which means that a single-tone cycle requires at least 1000 / 660, which is approximately equal to 1.52 milliseconds. In order to resist the interference of signal noise, the length of each detection signal should contain as many complete single-tone cycles as possible; at the same time, in order to quickly detect the signal, the length of the input original data needs to be shortened as much as possible. In order to resolve this contradiction, the present embodiment uses a method of mixing new data and historical data to detect the signal, that is, each detection inputs s new sampling points, and superimposes (ws) recent historical sampling points before the new sampling points, thereby taking into account the speed and accuracy of signal detection.
[0041] S120: Acquire multiple candidate single-tone frequencies according to the current signaling standard, and calculate frequency energy corresponding to each of the candidate single-tone frequencies according to the signal to be detected.
[0042] It should be noted that for communication equipment, either the forward sender signal or the backward sender signal needs to be detected. Which signal to detect is a priori knowledge for the equipment and can be preset. The only difference is that the single-tone frequencies that make up the sender signal are different. Among them, the signaling standard can include the ATS-R2 signaling standard, the No. 1 signaling standard, the MFC-R2 signaling standard, etc. Taking the ATS-R2 signaling standard as an example, the signal is divided into two groups: the forward signal and the backward signal. Each group of signals contains 5 single-tone frequencies, corresponding to different weights. The single-tone combination method of the sender signal can be shown in Table 1.
[0043] Table 1 Single tone combination of ATS-R2 signaling standard sender signal
[0044] Forward signal Forward 1380 1500 1620 1740 1860 Backward signal Backward 1140 1020 900 780 660 Weight 0 1 2 4 7 No. calculate 1 0+1 x x 2 0+2 x x 3 1+2 x x 4 0+4 x x 5 1+4 x x 6 2+4 x x 7 0+7 x x 8 1+7 x x 9 2+7 x x 0 4+7 x x
[0045] As shown above, the ATS-R2 signaling standard includes 10 types of sender signals from 0 to 9, which carry various business information in signaling communication. These 10 sender signals are composed of 5 single tones with different weights. ATS-R2 stipulates the combination of sender signals. After each detection, the sender signal corresponding to the combination of two single tones can be known by looking up the table. The single tone frequencies with weights of 0, 1, 2, 4 and 7 are divided into two groups according to the forward signal and the backward signal. The frequencies corresponding to the forward signal are 1380hz (hertz), 1500hz, 1620hz, 1740hz and 1860hz, respectively, and the frequencies corresponding to the backward signal are 1140hz, 1020hz, 900hz, 780hz and 660hz, respectively. In the process of a signaling interaction, the initiator generally selects the forward signal and the feedback party selects the backward signal. The program can know in advance whether to select the forward signal or the backward signal for detection.
[0046] Specifically, the communication device can determine multiple candidate single-tone frequencies according to the current signaling standard and the current signal type. For example, if the signaling standard is ATS-R2 and the signal type is a forward signal, the candidate single-tone frequencies are 1380 Hz, 1500 Hz, 1620 Hz, 1740 Hz and 1860 Hz. Then, the Goertzel algorithm can be used to calculate the signal to be detected to obtain the frequency energy (frequency domain amplitude) corresponding to each candidate single-tone frequency.
[0047] Optionally, calculating the frequency energy corresponding to each of the candidate single tone frequencies according to the signal to be detected may include:
[0048] Using the Goetzer algorithm to calculate the initial energy corresponding to each of the candidate single-tone frequencies according to the signal to be detected, and obtaining the number of sampling points corresponding to the signal to be detected;
[0049] The frequency energy corresponding to each of the candidate single tone frequencies is calculated according to the initial energy corresponding to each of the candidate single tone frequencies and the number of sampling points.
[0050] In a specific example, when calculating the frequency energy, the Goertzel algorithm is first used to calculate the energy of the signal to be detected at 1380 Hz, 1500 Hz, 1620 Hz, 1740 Hz and 1860 Hz to obtain the initial energy corresponding to each candidate single tone frequency; then, the product of the square of the number of sampling points of the signal to be detected and 0.5 can be calculated, and the quotient of each initial energy divided by the product can be calculated to obtain the frequency energy corresponding to each candidate single tone frequency.
[0051] The advantage of the above setting is that it can avoid the delay problem caused by the digital filter and the fast Fourier change algorithm, and can improve the detection speed of the sender signal.
[0052] S130. According to the frequency energy corresponding to each of the candidate single tone frequencies, if the judgment of multiple preset detection dimensions is successfully passed, it is determined that the voice signal is a sender signal.
[0053] In this embodiment, multiple decision devices may be used to determine the frequency energy corresponding to each candidate tone frequency from different preset detection dimensions to determine whether the necessary conditions for a sender signal are met. When all decision devices are met, it is considered to be a sender signal; and when any of the decision devices is not met, it is considered not to be a sender signal, and subsequent detection is terminated.
[0054] The preset detection dimensions may include static sensitivity dimension, full-band noise false detection dimension, single-tone false detection dimension, signal-to-noise ratio dimension, frequency deviation dimension, etc. In this embodiment, the decision order and decision combination of each preset detection dimension may be adaptively adjusted.
[0055] The technical solution of the embodiment of the present invention samples the voice signal to obtain the current sampling signal, and obtains the signal to be detected based on the current sampling signal and the historical sampling signal; obtains multiple candidate single-tone frequencies according to the current signaling standard, and calculates the frequency energy corresponding to each candidate single-tone frequency according to the signal to be detected; according to the frequency energy corresponding to each candidate single-tone frequency, if it successfully passes the judgment of multiple preset detection dimensions, it is determined that the voice signal is a sender signal; by combining the current sampling signal and the historical sampling signal to jointly detect the sender signal, and making judgments in multiple detection dimensions based on the frequency energy of multiple candidate single-tone frequencies, rapid detection of the sender signal can be achieved, and the speed and accuracy of the sender signal detection can be improved.
[0056] In another optional implementation of this embodiment, according to the frequency energy corresponding to each of the candidate single tone frequencies, if the judgment of multiple preset detection dimensions is successfully passed, determining that the voice signal is a sender signal may include:
[0057] According to the frequency energies corresponding to the candidate tone frequencies, in descending order of frequency energies, a first target tone frequency, a second target tone frequency, and a third target tone frequency are screened from the candidate tone frequencies;
[0058] According to the frequency energy corresponding to each target single tone frequency, if the judgment of multiple preset detection dimensions is successfully passed, it is determined that the voice signal is a sender signal.
[0059] Specifically, in order of frequency energy from large to small, the first target single-tone frequency with the largest frequency energy, the second target single-tone frequency with the second largest frequency energy, and the third target single-tone frequency with the third largest frequency energy are screened in sequence. If there is a single-tone frequency constituting a sender signal, it should be among these three target single-tone frequencies. Then, multiple decision devices are used to determine the frequency energy corresponding to these three target single-tone frequencies from multiple preset detection dimensions. If the determination of all preset detection dimensions is successfully passed, it is determined to be a sender signal.
[0060] In this embodiment, when determining that the voice signal is a sender signal, the tone combination mode of the sender signal of the current signaling standard can be searched according to the first target tone frequency and the second target tone frequency, for example, Table 1, to determine the specific sender signal.
[0061] Optionally, if the judgment of multiple preset detection dimensions is successfully passed according to the frequency energy corresponding to each target single tone frequency, determining that the voice signal is a sender signal may include:
[0062] If the frequency energy corresponding to the second target single tone frequency is greater than a preset energy threshold, it is determined that the static sensitivity dimension has been successfully passed;
[0063] And, a first quotient of the frequency energy corresponding to the second target single tone frequency divided by the frequency energy corresponding to the third target single tone frequency is calculated. If the first quotient is greater than a first preset quotient threshold, it is determined that the judgment of the full-band noise false detection dimension has been successfully passed.
[0064] The preset energy threshold may be a pre-set static energy value. Specifically, when making a decision in the static sensitivity dimension, the frequency energy corresponding to the second target single tone frequency may be compared with the preset energy threshold; if it is less than or equal to the preset energy threshold, it is considered that the signal energy is too low, which may be noise interference, or the signal strength is lower than the minimum value of the specified standard, and there is no transmitter signal, so the decision of the current dimension cannot be passed; and if it is greater than the preset energy threshold, it is determined that the decision of the current dimension can be passed.
[0065] In a specific example, in order to avoid false detection caused by full-band noise, the quotient of the frequency energy corresponding to the second target single-tone frequency divided by the frequency energy corresponding to the third target single-tone frequency can be calculated based on the full-band noise false detection dimension. If the quotient is less than or equal to 10, it is considered that it may be full-band noise and cannot pass the judgment of the current dimension; if it is greater than 10, it is determined that it can pass the judgment of the full-band noise false detection dimension.
[0066] Optionally, if the judgment of multiple preset detection dimensions is successfully passed according to the frequency energy corresponding to each target single tone frequency, determining that the voice signal is a sender signal may include:
[0067] Calculate a second quotient of the frequency energy corresponding to the first target single tone frequency divided by the frequency energy corresponding to the second target single tone frequency, and if the second quotient is less than a second preset quotient threshold, determine that the judgment of the single tone false detection dimension is successfully passed;
[0068] And, calculating the mean square power value of the signal to be detected, and calculating the sum of the frequency energy corresponding to the first target single tone frequency and the frequency energy corresponding to the second target single tone frequency;
[0069] A third quotient of the sum divided by the power mean square value is calculated, and if the third quotient is greater than a third preset quotient threshold, it is determined that the decision on the signal-to-noise ratio dimension is successfully passed.
[0070] In this embodiment, in order to prevent a signal containing only a single tone from being misdetected as a transmitter signal, a judgment of a single tone misdetection dimension may be performed. In a specific example, a quotient of the frequency energy corresponding to the first target single tone frequency divided by the frequency energy corresponding to the second target single tone frequency is calculated, and if the quotient is greater than or equal to 5, it can be determined that the judgment of the single tone misdetection dimension has not been passed, and if the quotient is less than 5, it is determined that the judgment of the single tone misdetection dimension has been successfully passed.
[0071] Secondly, in order to detect whether the transmitter signal meets the minimum signal-to-noise ratio requirement, a judgment in the signal-to-noise ratio dimension can also be made. In a specific example, the power mean square value of 160 sampling points of the signal to be detected and the sum of the frequency energies corresponding to the first target single-tone frequency and the second target single-tone frequency are first calculated, and then the quotient of the sum divided by the power mean square value is calculated. If the quotient is less than or equal to 0.3, it is considered that the signal-to-noise ratio is insufficient and the judgment in the signal-to-noise ratio dimension is not passed; if the quotient is greater than 0.3, it can be determined that the judgment in the signal-to-noise ratio dimension is successfully passed.
[0072] Optionally, if the judgment of multiple preset detection dimensions is successfully passed according to the frequency energy corresponding to each target single tone frequency, determining that the voice signal is a sender signal may include:
[0073] According to a preset interval frequency, two first adjacent frequencies of the first target single tone frequency are obtained, and the frequency energy corresponding to each first adjacent frequency is calculated;
[0074] If the frequency energy corresponding to the first target single tone frequency is greater than the frequency energy corresponding to each first adjacent frequency, two second adjacent frequencies of the second target single tone frequency are obtained according to the preset interval frequency, and the frequency energy corresponding to each second adjacent frequency is calculated;
[0075] If the frequency energy corresponding to the second target single tone frequency is greater than the frequency energy corresponding to each second adjacent frequency, it is determined that the decision of the frequency offset dimension is successfully passed.
[0076] In this embodiment, in order to detect whether the signal to be detected meets the frequency deviation requirement, a frequency deviation dimension may be determined. Typically, the preset interval frequency may be 25 Hz.
[0077] In a specific example, taking the forward signal "8" of the ATS-R2 signaling standard as an example, referring to the above Table 1, it corresponds to a 1500 Hz tone with a weight of 1, and a 1860 Hz tone with a weight of 7. Assume that of the two tone signals of the sender signal "8", 1500 Hz is the first target tone frequency, and 1860 Hz is the second target tone frequency.
[0078] Specifically, first add or subtract 25 Hz from 1500 Hz to obtain two first adjacent frequencies, namely (1500-25)=1475 Hz, and (1500+25)=1525 Hz; then, the Goertzel algorithm is used to calculate the frequency energies corresponding to 1475 Hz and 1525 Hz; if the frequency energy of 1500 Hz is not the maximum value among the frequency energies corresponding to the three frequencies of 1475 Hz, 1500 Hz and 1525 Hz, it is considered that the frequency deviation requirement is not met and the judgment of the frequency deviation dimension is not passed. If the frequency energy of 1500 Hz is the maximum value among the three frequency energies, the frequency deviation judgment of the second target single tone frequency can be further performed.
[0079] Similarly, 1860 Hz is added or subtracted by 25 Hz to obtain two second adjacent frequencies, namely (1860-25) = 1835 Hz, and (1860+25) = 1885 Hz; if the frequency energy of 1860 Hz is not the maximum value among the frequency energies corresponding to the three frequencies, it is considered that the frequency deviation requirement is not met and the judgment of the frequency deviation dimension is not passed. If the frequency energy of 1860 Hz is the maximum value among the three frequency energies, it can be determined that the judgment of the frequency deviation dimension is successfully passed. It can be understood that the frequency deviation judgment of the second target single tone frequency can be performed first, and then the frequency deviation judgment of the first target single tone frequency can be performed. As long as one target single tone frequency fails to pass the judgment, it is considered that the judgment of the frequency deviation dimension has not passed.
[0080] After all the preset detection dimensions are judged, the table of 1500 Hz and 1860 Hz is looked up, and it can be known that the sender signal of this detection is "8". Then, the decibel value of the sender signal of this time can be calculated for the sender signal detection of the next cycle.
[0081] In a specific implementation of this embodiment, the detection process of the sender signal can be as follows: Figure 3 Specifically, taking the ATS-R2 signaling standard as an example, if the sender signal was detected last time, the new 40 sampling points are subjected to falling edge and silence detection, and the decibel values of the new 40 sampling points are calculated; then, the new 40 sampling points are compared with the decibel value of the last sender signal. If the decrease is less than 10 decibels, 160 sampling points consisting of the new 40 sampling points and 120 historical sampling points are used to perform Goertzel algorithm detection on 5 frequencies, and the calculation results are sorted in descending order, and the first target single-tone frequency, the second target single-tone frequency and the third target single-tone frequency, as well as the frequency energy corresponding to each target single-tone frequency are recorded. Then, according to the above recorded values, the static sensitivity dimension, full-band noise false detection dimension, single-tone false detection dimension, signal-to-noise ratio dimension and frequency deviation dimension are judged in turn. If all of them pass, the specific values of the sender signal are obtained by looking up the table for the first target single-tone frequency w1 and the second target single-tone frequency w2, and the decibel value of the sender signal is calculated for the next detection of the falling edge and silent data.
[0082] In this embodiment, the Goertzel algorithm is used to insert a signal that is unrelated to a single tone into the data, which only affects the amplitude of the output single tone point, but does not affect the detection of the single tone point. The new sampling point data input each time is assembled with the most recent historical sampling data and then the Goertzel algorithm is used for detection, which speeds up the detection speed of the signal start. The fewer the number of sampling points input to the Goertzel algorithm, the lower the frequency resolution. The method of the present invention makes up for the disadvantage of the low frequency resolution of the Goertzel algorithm when there are fewer new sampling point data.
[0083] Secondly, for the single tone points detected by Goertzel, a combination of multiple decision devices such as static threshold, dynamic threshold, and adaptive signal-to-noise ratio detection is used to solve the problem of false detection of sender signals induced by noise in low signal-to-noise ratio scenarios. For the two single tones that constitute the sender signal detected, the frequency points on both sides of the single tone frequency are detected to ensure that the frequency energy peak is concentrated at the center frequency, further reducing the probability of false detection caused by insufficient frequency resolution of the Goertzel algorithm.
[0084] Furthermore, in order to avoid the problem of a lower Goertzel algorithm detection threshold and the mixing of new sampling point data with old sampling point data, which slows down the detection of the sender stop event, the decibel value of the signal is calculated and recorded each time the sender signal is detected, and compared with the decibel value of the new input data at the next signal detection. If the difference between the decibel value of the new data and the decibel value calculated by the sender signal is greater than the threshold, the signal is considered to have stopped, which speeds up the detection of the signal stop.
[0085] The technical solution of this embodiment can effectively shorten the detection speed of the start time of the sender signal and the detection speed of the end time of the sender signal, thereby greatly accelerating the transmission speed of signaling data in the field of aviation communications. Secondly, by adopting a digital signal processing method and a combination of multiple decision devices, the accuracy of the sender signal detection can be ensured, and the detection reliability can be improved.
[0086] Embodiment 2
[0087] Figure 4 This is a schematic diagram of the structure of a detection device for a sender signal provided in Embodiment 2 of the present invention. Figure 4 As shown, the device includes: a signal sampling module 210, a frequency energy calculation module 220 and a transmitter signal determination module 230; wherein,
[0088] The signal sampling module 210 is used to sample the speech signal to obtain a current sampled signal, and obtain a signal to be detected based on the current sampled signal and the historical sampled signal;
[0089] The frequency energy calculation module 220 is used to obtain multiple candidate single-tone frequencies according to the current signaling standard, and calculate the frequency energy corresponding to each of the candidate single-tone frequencies according to the signal to be detected;
[0090] The sender signal determination module 230 is used to determine that the voice signal is a sender signal if it successfully passes the determination of multiple preset detection dimensions based on the frequency energy corresponding to each of the candidate single tone frequencies.
[0091] The technical solution of the embodiment of the present invention samples the voice signal to obtain the current sampling signal, and obtains the signal to be detected based on the current sampling signal and the historical sampling signal; obtains multiple candidate single-tone frequencies according to the current signaling standard, and calculates the frequency energy corresponding to each candidate single-tone frequency according to the signal to be detected; according to the frequency energy corresponding to each candidate single-tone frequency, if it successfully passes the judgment of multiple preset detection dimensions, it is determined that the voice signal is a sender signal; by combining the current sampling signal and the historical sampling signal to jointly detect the sender signal, and making judgments in multiple detection dimensions based on the frequency energy of multiple candidate single-tone frequencies, rapid detection of the sender signal can be achieved, and the speed and accuracy of the sender signal detection can be improved.
[0092] Optionally, the signal sampling module 210 is specifically used to obtain a signal recording state, and if the signal recording state is that there is no sender signal, obtain a signal to be detected according to a current sampling signal and a historical sampling signal;
[0093] If the signal recording state is that there is a sender signal, then calculating the decibel value corresponding to the current sampling signal, and obtaining the decibel value corresponding to the adjacent sender signal;
[0094] If the difference between the decibel value corresponding to the adjacent register signal and the decibel value corresponding to the current sampling signal is less than or equal to the preset decibel threshold, the signal to be detected is acquired according to the current sampling signal and the historical sampling signal.
[0095] Optionally, the frequency energy calculation module 220 is specifically used to calculate the initial energy corresponding to each of the candidate single-tone frequencies according to the signal to be detected by using the Goetzer algorithm, and obtain the number of sampling points corresponding to the signal to be detected;
[0096] The frequency energy corresponding to each of the candidate single tone frequencies is calculated according to the initial energy corresponding to each of the candidate single tone frequencies and the number of sampling points.
[0097] Optionally, the transmitter signal determination module 230 is specifically configured to select, according to the frequency energy corresponding to each of the candidate single tone frequencies, a first target single tone frequency, a second target single tone frequency, and a third target single tone frequency from each of the candidate single tone frequencies in descending order of frequency energy;
[0098] According to the frequency energy corresponding to each target single tone frequency, if the judgment of multiple preset detection dimensions is successfully passed, it is determined that the voice signal is a sender signal.
[0099] Optionally, the transmitter signal determination module 230 is specifically configured to determine that the determination of the static sensitivity dimension is successfully passed if the frequency energy corresponding to the second target single tone frequency is greater than a preset energy threshold;
[0100] And, a first quotient of the frequency energy corresponding to the second target single tone frequency divided by the frequency energy corresponding to the third target single tone frequency is calculated. If the first quotient is greater than a first preset quotient threshold, it is determined that the judgment of the full-band noise false detection dimension has been successfully passed.
[0101] Optionally, the sender signal decision module 230 is specifically used to calculate a second quotient of the frequency energy corresponding to the first target single tone frequency divided by the frequency energy corresponding to the second target single tone frequency, and if the second quotient is less than a second preset quotient threshold, it is determined that the decision of the single tone false detection dimension is successfully passed;
[0102] And, calculating the mean square power value of the signal to be detected, and calculating the sum of the frequency energy corresponding to the first target single tone frequency and the frequency energy corresponding to the second target single tone frequency;
[0103] A third quotient of the sum divided by the power mean square value is calculated, and if the third quotient is greater than a third preset quotient threshold, it is determined that the decision on the signal-to-noise ratio dimension is successfully passed.
[0104] Optionally, the sender signal determination module 230 is specifically configured to obtain two first adjacent frequencies of the first target single tone frequency according to a preset interval frequency, and calculate the frequency energy corresponding to each first adjacent frequency;
[0105] If the frequency energy corresponding to the first target single tone frequency is greater than the frequency energy corresponding to each first adjacent frequency, two second adjacent frequencies of the second target single tone frequency are obtained according to the preset interval frequency, and the frequency energy corresponding to each second adjacent frequency is calculated;
[0106] If the frequency energy corresponding to the second target single tone frequency is greater than the frequency energy corresponding to each second adjacent frequency, it is determined that the decision of the frequency offset dimension is successfully passed.
[0107] The apparatus for detecting a sender signal provided in the embodiment of the present invention can execute the method for detecting a sender signal provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0108] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0109] Embodiment 3
[0110] Figure 5A schematic diagram of the structure of an electronic device 30 that can be used to implement an embodiment of the present invention is shown. The electronic device 30 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0111] like Figure 5 As shown, the electronic device 30 includes at least one processor 31, and a memory connected to the at least one processor 31, such as a read-only memory (ROM) 32, a random access memory (RAM) 33, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 31 can perform various appropriate actions and processes according to the computer program stored in the read-only memory 32 or the computer program loaded from the storage unit 38 to the random access memory 33. In the RAM 33, various programs and data required for the operation of the electronic device 30 can also be stored. The processor 31, the ROM 32 and the RAM 33 are connected to each other through a bus 34. The input / output (I / O) interface 35 is also connected to the bus 34.
[0112] A number of components in the electronic device 30 are connected to the I / O interface 35, including: an input unit 36, such as a keyboard, a mouse, etc.; an output unit 37, such as various types of displays, speakers, etc.; a storage unit 38, such as a disk, an optical disk, etc.; and a communication unit 39, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 39 allows the electronic device 30 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0113] The processor 31 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 31 include, but are not limited to, a central processing unit, a graphics processing unit, various special artificial intelligence computing chips, various processors running machine learning model algorithms, digital signal processors, and any appropriate processors, controllers, microcontrollers, etc. The processor 31 performs the various methods and processes described above, such as the detection method of the sender signal.
[0114] In some embodiments, the method for detecting a sender signal may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 38. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 30 via the ROM 32 and / or the communication unit 39. When the computer program is loaded into the RAM 33 and executed by the processor 31, one or more steps of the method for detecting a sender signal described above may be performed. Alternatively, in other embodiments, the processor 31 may be configured to perform the method for detecting a sender signal in any other appropriate manner (e.g., by means of firmware).
[0115] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays, application specific integrated circuits, application specific standard products, systems on a chip, load programmable logic devices, computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0116] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0117] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical fiber, a portable compact disk read-only memory, an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0118] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device 30 having: a display device (e.g., a cathode ray tube or a liquid crystal display) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which the user can provide input to the electronic device 30. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0119] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local area networks, wide area networks, blockchain networks, and the Internet.
[0120] This embodiment may also include a computer program product, which includes a computer program. When the computer program is executed by a processor, the method for detecting a sender signal provided by any embodiment of the present invention is implemented.
[0121] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0122] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for detecting a sender signal, characterized in that: include: Sampling the speech signal to obtain a current sampling signal, and obtaining a signal to be detected based on the current sampling signal and the historical sampling signal; According to the current signaling standard, a plurality of candidate single-tone frequencies are obtained, and according to the signal to be detected, the frequency energy corresponding to each of the candidate single-tone frequencies is calculated; According to the frequency energy corresponding to each of the candidate single tone frequencies, if the judgment of multiple preset detection dimensions is successfully passed, it is determined that the voice signal is a sender signal.
2. The method according to claim 1, characterized in that According to the current sampling signal and the historical sampling signal, the signal to be detected is obtained, including: Acquire a signal recording state, and if the signal recording state indicates that there is no sender signal, acquire a signal to be detected according to a current sampling signal and a historical sampling signal; If the signal recording state is that there is a sender signal, then calculating the decibel value corresponding to the current sampling signal, and obtaining the decibel value corresponding to the adjacent sender signal; If the difference between the decibel value corresponding to the adjacent register signal and the decibel value corresponding to the current sampling signal is less than or equal to the preset decibel threshold, the signal to be detected is acquired according to the current sampling signal and the historical sampling signal.
3. The method according to claim 1, characterized in that Calculating the frequency energy corresponding to each of the candidate single tone frequencies according to the signal to be detected includes: Using the Goetzer algorithm to calculate the initial energy corresponding to each of the candidate single-tone frequencies according to the signal to be detected, and obtaining the number of sampling points corresponding to the signal to be detected; The frequency energy corresponding to each of the candidate single tone frequencies is calculated according to the initial energy corresponding to each of the candidate single tone frequencies and the number of sampling points.
4. The method according to claim 1, characterized in that: According to the frequency energy corresponding to each of the candidate single tone frequencies, if the judgment of multiple preset detection dimensions is successfully passed, determining that the voice signal is a sender signal includes: According to the frequency energies corresponding to the candidate tone frequencies, in descending order of frequency energies, a first target tone frequency, a second target tone frequency, and a third target tone frequency are screened from the candidate tone frequencies; According to the frequency energy corresponding to each target single tone frequency, if the judgment of multiple preset detection dimensions is successfully passed, it is determined that the voice signal is a sender signal.
5. The method according to claim 4, characterized in that According to the frequency energy corresponding to each target single tone frequency, if the judgment of multiple preset detection dimensions is successfully passed, determining that the voice signal is a sender signal includes: If the frequency energy corresponding to the second target single tone frequency is greater than a preset energy threshold, it is determined that the static sensitivity dimension has been successfully passed; And, a first quotient of the frequency energy corresponding to the second target single tone frequency divided by the frequency energy corresponding to the third target single tone frequency is calculated. If the first quotient is greater than a first preset quotient threshold, it is determined that the judgment of the full-band noise false detection dimension has been successfully passed.
6. The method according to claim 4, characterized in that According to the frequency energy corresponding to each target single tone frequency, if the judgment of multiple preset detection dimensions is successfully passed, determining that the voice signal is a sender signal includes: Calculate a second quotient of the frequency energy corresponding to the first target single tone frequency divided by the frequency energy corresponding to the second target single tone frequency, and if the second quotient is less than a second preset quotient threshold, determine that the judgment of the single tone false detection dimension is successfully passed; And, calculating the mean square power value of the signal to be detected, and calculating the sum of the frequency energy corresponding to the first target single tone frequency and the frequency energy corresponding to the second target single tone frequency; A third quotient of the sum divided by the power mean square value is calculated, and if the third quotient is greater than a third preset quotient threshold, it is determined that the decision on the signal-to-noise ratio dimension is successfully passed.
7. The method according to claim 4, characterized in that According to the frequency energy corresponding to each target single tone frequency, if the judgment of multiple preset detection dimensions is successfully passed, determining that the voice signal is a sender signal includes: According to a preset interval frequency, two first adjacent frequencies of the first target single tone frequency are obtained, and the frequency energy corresponding to each first adjacent frequency is calculated; If the frequency energy corresponding to the first target single tone frequency is greater than the frequency energy corresponding to each first adjacent frequency, two second adjacent frequencies of the second target single tone frequency are obtained according to the preset interval frequency, and the frequency energy corresponding to each second adjacent frequency is calculated; If the frequency energy corresponding to the second target single tone frequency is greater than the frequency energy corresponding to each second adjacent frequency, it is determined that the decision of the frequency offset dimension is successfully passed.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor, and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can perform the method for detecting a sender signal according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is used to enable a processor to implement the method for detecting a sender signal according to any one of claims 1 to 7 when the computer program is executed.
10. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the method for detecting a sender signal according to any one of claims 1 to 7.
