Position optimization method, device and system of detection equipment and electronic equipment
By obtaining the spectrum diagram of the drone detection device, using the target detection model to identify the background noise area and adjust the signal gain or position, the signal interference problem of the drone detection equipment in a complex electromagnetic environment is solved, the detection efficiency is improved and the trial and error cost is reduced.
Patent Information
- Application Number
- CN202510918053.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-03
- Publication Date
- 2025-09-23
AI Technical Summary
Drone detection equipment is susceptible to signal interference in complex electromagnetic environments, resulting in signal distortion or misjudgment, reducing detection efficiency, and repeatedly adjusting the setting position increases trial and error costs.
By obtaining the signal spectrum of the target frequency band, using the pre-trained target detection model to determine the noise floor area, and adjusting the signal gain or position based on the noise amplitude value, the detection equipment settings are optimized.
It improves the detection efficiency of drone detection equipment, reduces trial and error costs, ensures signal quality and provides position adjustment prompts.
Smart Images

Figure CN120686187A_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of electronic technology, and in particular to a method, apparatus, system, electronic device, and computer program product for optimizing the location of a detection device. Background Art
[0002] Drone detection equipment is a type of security device used to detect, identify, and track drones in flight. It can be used for real-time monitoring and early warning of drones. Drone detection equipment can effectively detect drones by accurately identifying and capturing their unique signature signals, but it is susceptible to interference from environmental signals. Currently, the placement of drone detection equipment does not fully consider the interference of the surrounding environment on the signal. For example, in a complex electromagnetic environment, when drone detection equipment is close to a strong signal source or is located in an area with a lot of electromagnetic noise, it will be severely interfered with, resulting in signal distortion or misjudgment. This interference not only affects signal clarity but can also prevent the device from accurately identifying the target signal, thereby reducing the detection efficiency of the detection equipment. Repeated adjustments to the placement of drone detection equipment also increase trial and error costs.
[0003] In view of this, some embodiments of this specification provide a method, apparatus, system, electronic device and computer program product for optimizing the position of a detection device, aiming to optimize the setting position of the detection device, improve the detection efficiency of the detection device and reduce the trial and error cost. Summary of the Invention
[0004] One or more embodiments of the present specification provide a method for optimizing the position of a detection device, the method comprising: obtaining a spectrum diagram of a signal in a target frequency band; determining a background noise area in the spectrum diagram; determining a noise amplitude value corresponding to the background noise area; and determining whether the position of the detection device needs to be adjusted based on the noise amplitude value.
[0005] According to the method provided in one or more embodiments of this specification, determining the background noise area in the spectrum graph includes: determining the background noise area in the spectrum graph based on a pre-trained target detection model, the target detection model is obtained by training based on a sample training set, and the sample training set includes a sample spectrum graph with the background noise area marked.
[0006] According to the method provided in one or more embodiments of this specification, determining the background noise area in the spectrum graph based on a pre-trained target detection model includes: inputting the spectrum graph of the signal in the target frequency band into the target detection model; and obtaining the spectrum graph output by the target detection model with the background noise area marked.
[0007] According to the method provided in one or more embodiments of the present specification, after obtaining the spectrum graph output by the target detection model with the background noise area marked, it also includes: when there are more than two background noise areas marked in the spectrum graph, deduplication processing is performed on each background noise area marked in the spectrum graph to obtain a spectrum graph marked with a single background noise area.
[0008] According to the method provided in one or more embodiments of this specification, deduplication processing is performed on each background noise area marked in the spectrum graph to obtain a spectrum graph marked with a single background noise area, including: merging the each background noise area marked in the spectrum graph to obtain a spectrum graph marked with a single background noise area; or determining the noise amplitude value of each background noise area, marking the background noise area corresponding to the maximum noise amplitude value as the single background noise area, and deleting the labels of other background noise areas; or filtering the marked background noise areas based on the confidence level corresponding to each background noise area to obtain a spectrum graph marked with a single background noise area.
[0009] According to the method provided by one or more embodiments of this specification, determining the noise amplitude value corresponding to the background noise area includes: determining the maximum amplitude value of the background noise area as the noise amplitude value; or determining the average amplitude value of the background noise area as the noise amplitude value.
[0010] According to the method provided in one or more embodiments of the present specification, determining whether the position of the detection device needs to be adjusted based on the noise amplitude value includes: when the noise amplitude value is greater than or equal to a preset threshold, adjusting the signal gain to reduce the noise amplitude value corresponding to the background noise area, and stopping adjusting the signal gain until the noise amplitude value after the signal gain adjustment is less than the preset threshold; when the signal gain is adjusted to the limit value and the noise amplitude value corresponding to the background noise area is still greater than or equal to the preset threshold, providing an alarm message indicating that the position of the detection device needs to be adjusted; when the noise amplitude value is less than the preset threshold, providing a prompt message indicating that the position of the detection device does not need to be adjusted.
[0011] According to the method provided in one or more embodiments of the present specification, obtaining a spectrum diagram of a signal in a target frequency band includes: scanning the signal within a preset spectrum range; determining the target frequency band and obtaining a time-frequency diagram of the signal in the target frequency band; and converting the time-frequency diagram of the signal in the target frequency band into a spectrum diagram.
[0012] The method provided in accordance with one or more embodiments of this specification further includes at least one of the following processes: displaying a spectrum diagram of a signal in a target frequency band; and providing indication information, the indication information being used to indicate whether the position of the detection device needs to be adjusted.
[0013] One or more embodiments of the present specification also provide a device for optimizing the position of a detection device, the device comprising: an acquisition module for acquiring a spectrum diagram of a signal in a target frequency band; a first determination module for determining a background noise area in the spectrum diagram; a second determination module for determining a noise amplitude value corresponding to the background noise area; and a judgment module for determining whether the position of the detection device needs to be adjusted based on the noise amplitude value.
[0014] One or more embodiments of the present specification also provide a system, comprising a position optimization device and a display device for a detection device; the position optimization device is used to obtain a spectrum diagram of a signal in a target frequency band, determine a background noise area in the spectrum diagram, determine a noise amplitude value corresponding to the background noise area, and determine whether the position of the detection device needs to be adjusted based on the noise amplitude value; the display device is used to display the spectrum diagram of the signal in the target frequency band and / or provide indication information, the indication information being used to indicate whether the position of the detection device needs to be adjusted.
[0015] One or more embodiments of this specification also provide an electronic device, which includes a memory, a processor, and a computer program stored in the memory and runnable on the processor. When the processor executes the computer program, it can implement the location optimization method of the detection device described in some embodiments of this specification.
[0016] One or more embodiments of this specification further provide a computer program product, including a computer program. When at least a portion of the computer program is executed by a processor, the method for optimizing the location of a detection device described in some embodiments of this specification can be implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] This specification will be further described in the form of exemplary embodiments, which will be described in detail with reference to the accompanying drawings. The same numbers in the drawings represent the same structures or steps.
[0018] Figure 1 This is an exemplary flow chart of a method for optimizing the location of a detection device according to some embodiments of this specification.
[0019] Figure 2 This is a schematic diagram of a spectrum diagram according to some embodiments of this specification.
[0020] Figure 3 is a schematic diagram of another spectrum diagram shown in some embodiments of this specification.
[0021] Figure 4 This is a spectrum diagram with a background noise area marked according to some embodiments of this specification.
[0022] Figure 5This is an exemplary flowchart of performing deduplication processing on a background noise area according to some embodiments of this specification.
[0023] Figure 6 is an exemplary block diagram of a location optimization apparatus for a detection device according to some embodiments of this specification.
[0024] Figure 7 This is a schematic diagram of a display device according to some embodiments of this specification.
[0025] Figure 8 2 is a schematic diagram of a location optimization system for a detection device according to some embodiments of this specification. DETAILED DESCRIPTION
[0026] To more clearly illustrate the technical solutions of the embodiments of this specification, the embodiments will be described in detail below with reference to the accompanying drawings. Obviously, the following descriptions are some examples or embodiments of this specification, and those skilled in the art can apply the technical solutions or methods disclosed in this specification to other scenarios based on these technical contents without inventive effort.
[0027] It should be understood that the terms "system," "device," "unit," and / or "module" used in this specification are a method for distinguishing different components, elements, parts, portions, or assemblies at different levels. However, if other terms can achieve the same purpose, the terms may be replaced by other expressions.
[0028] Unless otherwise specified, technical terms used in this specification to describe components, elements, and the like do not necessarily refer to the singular but may include the plural. Generally speaking, terms such as "include" and "comprising" only indicate the inclusion of the specifically identified steps, elements, or components, and these steps, elements, and components do not constitute an exclusive list. For example, the method or apparatus being described may also include other steps or components.
[0029] This specification uses flowcharts to illustrate the operational steps performed by the devices or systems of the relevant embodiments. However, unless otherwise specified, the order in which these steps are described should not be construed as limiting the order in which the steps are performed. A person of ordinary skill in the art may adjust the order in which these steps are performed based on the knowledge and information conveyed by the embodiments of this specification. Such adjustments include, but are not limited to, reversing the order of these steps, combining multiple steps, and splitting a step.
[0030] Drone detection equipment is a type of security device used to detect, identify, and track drones in flight. It can provide real-time monitoring and early warning of drones. While effective, it can accurately identify and capture drones' unique signature signals, but it's susceptible to interference from environmental signals.
[0031] In some related embodiments, the placement of drone detection equipment fails to fully consider the potential for interference from the surrounding environment. For example, in a complex electromagnetic environment, when a drone detection device is close to a strong signal source or located in an area with significant electromagnetic noise, it can be severely interfered with, leading to signal distortion or misjudgment. This interference not only affects signal clarity but can also prevent the device from accurately identifying the target signal, thereby reducing the detection efficiency of the detection device. Repeated adjustments to the drone detection device's placement also increase trial-and-error costs.
[0032] To this end, some embodiments of this specification provide a method, apparatus, system, electronic device, and computer program product for optimizing the location of a detection device. These methods obtain a spectrum of a signal in a target frequency band, determine the noise floor region within the spectrum, and then determine the noise amplitude corresponding to the noise floor region. Based on the noise amplitude, the method then determines whether the location of the detection device needs to be adjusted. This optimizes the location of the detection device, improves its detection efficiency, and reduces trial-and-error costs.
[0033] Figure 1 This is an exemplary flow chart of a method for optimizing the location of a detection device according to some embodiments of this specification. Figure 1 The process 100 shown can be executed by an electronic device, for example, a drone detection device, which can be a handheld device so that the location of the detection device can be adjusted at any time. In some embodiments, the process 100 can be implemented by a location optimization device 600 deployed on an electronic device. Figure 1 As shown, in some embodiments, process 100 may include the following steps.
[0034] Step 110 , obtaining a frequency spectrum of a signal in a target frequency band. In some embodiments, step 110 may be implemented by the obtaining module 610 .
[0035] In some embodiments, the target frequency band may be a spectrum range to be detected. For example, a consumer drone commonly uses a 2.4 GHz frequency band for transmitting control signals, and the target frequency band may be a spectrum range of 2400 MHz to 2490 MHz including 2.4 GHz.
[0036] In some embodiments, the detection device can scan for signals within a preset spectrum range. The preset spectrum range can include multiple preset frequency bands. For example, the preset spectrum range can include two preset frequency bands: 2400MHz to 2490MHz and 5725MHz to 5850MHz. The detection device can scan each preset frequency band individually or simultaneously.
[0037] In some embodiments, after scanning for signals within a preset frequency spectrum range, the detection device may determine each scanned preset frequency band as a target frequency band. For example, the preset frequency spectrum range scanned by the detection device may include two preset frequency bands: 2400MHz~2490MHz and 5725MHz~5850MHz. After scanning these two preset frequency bands, the detection device may first determine 2400MHz~2490MHz as the target frequency band, and then process according to the method of steps 110 to 140, and then determine 5725MHz~5850MHz as the target frequency band, and then process according to the method of steps 110 to 140.
[0038] In some embodiments, after determining the target frequency band, a time-frequency diagram of the signal in the target frequency band can be obtained. The time-frequency diagram is used to display the signal in two dimensions, time and frequency, to present the time-varying characteristics of the signal. For example, the horizontal axis of the time-frequency diagram can represent time, the vertical axis can represent the frequency of the signal, and the color or brightness in the time-frequency diagram can represent the amplitude or energy intensity of the signal at a specific time and frequency.
[0039] In some embodiments, the time-frequency graph can be further binarized to separate the signal and background in the time-frequency graph. For example, the time-frequency graph can be a grayscale graph, and a suitable threshold can be set based on the grayscale difference between the signal and background in the time-frequency graph. For example, the Otsu method can be used to automatically determine the optimal threshold, thereby separating the signal region from the background region in the time-frequency graph. After binarization, the signal region can be rendered white, and the background region can be rendered black, thereby highlighting the signal.
[0040] In some embodiments, after binarization of the time-frequency graph, morphological operations can be performed on the binarized time-frequency graph. Exemplarily, morphological operations can include dilation and / or erosion. Dilation can fill small holes within the signal region, enhancing signal connectivity; erosion can remove noise and glitches in the image, making signal boundaries clearer. Morphological operations can accurately represent signal features.
[0041] In some embodiments, background filtering can also be performed on the time-frequency graph after the morphological operation. Exemplarily, the time-frequency graph after the morphological operation can be smoothed by a filtering algorithm to effectively reduce the interference of background noise. The filter used in the filtering process may include a mean filter, a Gaussian filter, or a median filter. Among them, the mean filter can achieve smoothing by calculating the average value of pixels in the neighborhood; the Gaussian filter can achieve smoothing by using a Gaussian function to perform weighted averaging on pixels in the neighborhood; the median filter achieves smoothing by replacing the median value of pixels in the neighborhood to effectively remove isolated noise points.
[0042] In some embodiments, the time-frequency diagram of the signal in the target frequency band can also be converted into a spectrogram. For example, the time-frequency diagram obtained in step 110 or the time-frequency diagram after background filtering can be Fourier transformed to obtain a spectrogram of the signal in the target frequency band. The spectrogram is used to display the signal in two dimensions, frequency and amplitude, and present the frequency domain distribution characteristics of the signal. For example, the horizontal axis in the spectrogram can represent the frequency of the signal, and the vertical axis can represent the amplitude of the signal.
[0043] Figure 2 is a schematic diagram of a spectrum diagram according to some embodiments of this specification. Figure 2 As shown in the figure, the horizontal axis in the spectrum diagram represents the frequency of the signal, and the vertical axis represents the amplitude of the signal. Figure 2 The two peaks with higher amplitudes in the spectrum diagram shown represent drone signals, while the others with lower amplitudes and smaller fluctuations are noise signals, indicating that the detection device is in an area with less signal interference.
[0044] Figure 3 is a schematic diagram of another spectrum diagram according to some embodiments of this specification. Figure 3 As shown in the figure, the horizontal axis in the spectrum graph represents the frequency of the signal, and the vertical axis represents the amplitude of the signal. Figure 3 The spectrum shown has multiple peaks with high amplitudes, and the overall amplitude is high, indicating that the detection device is in an area with large signal interference.
[0045] Step 120 , determining the background noise area in the spectrum graph. In some embodiments, step 120 may be implemented by the first determination module 620 .
[0046] In some embodiments, the noise floor area (or background noise area) may be an area in the spectrum graph where the signal amplitude is low and there is no obvious signal peak, and may represent background noise or interference within a specific frequency range.
[0047] In some embodiments, the noise floor region in the spectrogram can be determined based on a pre-trained object detection model. The object detection model can be used to identify objects with specific features in an image (e.g., a spectrogram) and determine the locations of these objects in the image (e.g., a spectrogram), for example, by generating annotation boxes or bounding boxes for these objects. Exemplarily, the object detection model can be YOLOv5s.
[0048] In some embodiments, the target detection model can be trained based on a sample training set, which can include sample spectrograms with annotated noise floor areas. For example, spectrograms can be collected from a variety of spectrum analysis devices, covering different frequency bands and environments (e.g., laboratory, outdoor, and high electromagnetic interference environments), ensuring that the collected spectrograms contain noise floors with different characteristics, such as flat noise floors, fluctuating noise floors, and noise floors with pulsed interference. Furthermore, the collected spectrograms can also include various signal types (e.g., continuous wave, frequency hopping, and broadband signals) to increase the complexity of the sample training set.
[0049] In some embodiments, the collected spectrograms can be annotated. For example, a labeling box can be used to annotate the noise floor regions in each collected spectrogram, and the labeling box can include the noise floor regions. Furthermore, the annotated spectrograms are resized to the input size required by an object detection model (e.g., YOLOv5s), maintaining the aspect ratio. Missing portions after resizing can be filled with gray to avoid image distortion. In some embodiments, data augmentation can also be performed on the spectrograms. For example, this can be done using the YOLOv5s model's built-in Mosaic enhancement, as well as by adding Gaussian noise or random occlusion to simulate situations where the signal obscures the noise floor, improving the generalization capability of the object detection model and preventing overfitting. For the object detection model, model parameters can be configured. For example, the number of categories in the yolov5s.yaml file can be modified to 1 based on the number of categories to be detected, thereby only identifying the noise floor regions. The size of the anchor boxes (used to annotate the noise floor regions in the spectrograms) can also be adjusted. For example, the anchor box size can be recalculated using K-means clustering. In some embodiments, the number of cluster centers can also be specified based on the number of background noise areas marked in the spectrum graph output by the desired target detection model to obtain an adapted anchor frame. Furthermore, relevant training parameters (such as batch size, number of iterations, learning rate, etc.) can be set and pre-trained weights can be loaded to train the target detection model. During the training process, the target detection model can optimize the loss function through back propagation. Here, back propagation refers to calculating the gradient of each parameter through the loss function, and updating these parameters based on the gradient to reduce the value of the loss function. The loss function may include classification loss function, positioning loss function, and confidence loss function, etc. Next, the trained model can be evaluated using a validation set, where the validation set can come from the collected spectrum graph. Model evaluation indicators may include precision, recall, etc. Precision represents the proportion of samples predicted to be positive that are actually positive. The calculation formula for precision can be: The recall rate (Recall) represents the proportion of samples that are correctly predicted as positive by the target detection model among all samples that are actually positive. The calculation formula of the recall rate can be: TP represents the number of noise regions correctly identified by the target detection model; FP represents the number of noise regions incorrectly identified by the target detection model; and FN represents the number of true noise regions that the target detection model failed to identify. Based on the target detection model's performance on the validation set, further adjustments can be made to the data augmentation strategy, model structure, or training parameters.
[0050] In some embodiments, a trained target detection model can be used to input a spectrogram of a signal in the target frequency band into the target detection model. The target detection model then outputs a spectrogram with the noise floor region labeled. The detection device can then retrieve the spectrogram with the noise floor region labeled. For example, the noise floor region can be labeled with a box (e.g., a square box), and the specific location of the box can be represented by its coordinates in the spectrogram.
[0051] Figure 4 is a spectrum diagram with a background noise area marked according to some embodiments of this specification. Figure 2 The spectrum graph shown is input into the target detection model, and the target detection model outputs Figure 4 The spectrum diagram with the background noise area marked is shown in the figure. Figure 4 The area circled by the rectangular box at the bottom is the noise floor area. The noise floor area can cover the entire frequency range horizontally and the vertical range can be from the bottom of the spectrum to above the signal baseline. The signal baseline can be when there is no significant signal (for example Figure 4 The average signal amplitude obtained on the spectrogram when there are two higher amplitude peaks in the spectrum.
[0052] In some embodiments, the spectrogram output by the target detection model may also include two or more background noise regions. When the spectrogram includes two or more background noise regions, the detection device may further perform deduplication processing on each of the background noise regions annotated in the spectrogram to obtain a spectrogram annotated with a single background noise region. For an explanation of this aspect, please refer to the description of process 500 below.
[0053] Step 130 , determining the noise amplitude value corresponding to the background noise area. In some embodiments, step 130 may be implemented by the second determination module 630 .
[0054] In some embodiments, the noise amplitude value may be a representative signal amplitude value detected in the background noise area, which may reflect the intensity of the ambient noise. In some embodiments, the maximum amplitude value of the background noise area may be determined as the noise amplitude value. For example, Figure 4 As shown, the amplitude value corresponding to the boundary line above the rectangular marked box can be determined as the noise amplitude value. In other embodiments, the average amplitude of the background noise area can also be determined as the noise amplitude value. For example, the signal amplitude corresponding to each frequency point can be extracted from the background noise area, and the extracted amplitude values can be added and divided by the number of extracted sample frequency points to obtain the average amplitude of the background noise area, and the average amplitude value is determined as the noise amplitude value.
[0055] Step 140 , based on the noise amplitude value, determines whether the position of the detection device needs to be adjusted. In some embodiments, step 140 may be implemented by the determination module 640 .
[0056] In some embodiments, when the noise amplitude value is greater than or equal to a preset threshold, the signal gain can be adjusted to reduce the noise amplitude value corresponding to the noise floor area, until the noise amplitude value after signal gain adjustment is less than the preset threshold, and signal gain adjustment is stopped. In some embodiments, signal gain can refer to the ratio between the output signal and the input signal. When the output signal is stronger than the input signal, it is a positive gain, and when the output signal is weaker than the input signal, it is a negative gain. When a negative gain adjustment is performed, the signal attenuates. At this time, steps 110 to 130 can be performed again to obtain the noise amplitude value after signal gain adjustment, and determine whether the noise amplitude value after signal gain adjustment is less than the preset threshold. If the noise amplitude value after signal gain adjustment is greater than or equal to the preset threshold, negative gain adjustment is continued, and steps 110 to 130 are repeated to obtain the noise amplitude value after the latest signal gain adjustment. Until the noise amplitude value after signal gain adjustment is less than the preset threshold, signal gain adjustment is stopped. In this way, the noise amplitude in the noise floor area is reduced, noise is suppressed, and signal quality is improved.
[0057] In some embodiments, when the signal gain is adjusted to a limit value and the noise amplitude corresponding to the background noise area is still greater than or equal to a preset threshold, an alarm message indicating that the position of the detection device needs to be adjusted can be provided. In some embodiments, when the signal gain is adjusted to a limit value, the negative gain reaches a maximum value, at which point the signal attenuation reaches its maximum level. If the noise amplitude corresponding to the background noise area is still greater than or equal to the preset threshold at this time, it indicates that the noise source intensity in the environment where the detection device is located is too high and the current location of the detection device needs to be adjusted. In this case, an alarm message indicating that the location of the detection device needs to be adjusted can be provided.
[0058] In some embodiments, the alarm information can be provided to the user in visual, auditory, tactile, and other forms. For the alarm information provided to the user in a visual form, for example, the alarm information can be presented in the form of character information, such as displaying the text message "Warning: The environmental noise is too high! The gain has reached the limit, please adjust the device position"; the alarm information can also be presented in the form of a status indicator light, for example, the status indicator light changes from green to red and flashes; the alarm information can also be presented in the form of a specific icon, for example, a warning icon or an icon indicating that the detection device needs to be moved. For the alarm information provided to the user in an auditory form, for example, the alarm information can be a continuous or intermittent beep, alarm sound, etc.; the alarm information can also be a voice prompt message, for example, a voice prompt message of "Attention! The environmental noise is too high, the gain has reached the limit, please adjust the device position". For the alarm information provided to the user in a tactile form, for example, the detection device can emit continuous or intermittent vibrations to indicate that the current setting position of the detection device needs to be adjusted.
[0059] In some embodiments, when the noise amplitude value corresponding to the background noise area is less than a preset threshold, it indicates that the ambient noise of the current detection device is small and the setting position of the detection device is appropriate. The detection device can also provide prompt information that there is no need to adjust the position of the detection device.
[0060] In some embodiments, the prompt information can be provided to the user in visual, auditory, tactile, and other forms. For the prompt information provided to the user in a visual form, for example, the prompt information can be presented in the form of character information, such as displaying the text message "Tip: The environmental noise is low! The current device position is suitable and no adjustment is required"; the prompt information can also be presented in the form of a status indicator light, for example, the status indicator light is green; the prompt information can also be presented in the form of a specific icon, for example, a check mark "✓" icon or an icon indicating that the detection device does not need to be moved. For the prompt information provided to the user in an auditory form, for example, the prompt information can be a short, low-pitched prompt sound, such as a "beep" sound or a chord sound; the prompt information can also be a voice prompt information, for example, a voice prompt information of "The environmental noise is normal, no need to move the device". For the prompt information provided to the user in a tactile form, for example, the detection device can emit a short and slight vibration to indicate that the current setting position of the detection device does not need to be adjusted.
[0061] In some embodiments, indication information may be provided in the detection device, and the indication information may be used to indicate whether the position of the detection device needs to be adjusted. The indication information may include an alarm message indicating that the position of the detection device needs to be adjusted and / or a prompt message indicating that the position of the detection device does not need to be adjusted. For the explanation of the alarm information and prompt information, please refer to the above description and will not be repeated here. In some embodiments, the detection device may be configured with a display device (such as a display screen), a status indicator light, an audio amplifier module, a speaker, a buzzer or a vibration motor, etc., to support alarm information and prompt information in different presentation forms.
[0062] In other embodiments, indication information may be provided in the display device, and the indication information may be used to indicate whether the position of the detection device needs to be adjusted. Figure 7 or Figure 8. The display device 700 is shown in FIG. . The display device 700 can be connected to the position optimization device 600 of the detection device via a network. The network can be any form of wired or wireless network, or any combination thereof. For example, the display device 700 can be connected to the position optimization device 600 of the detection device via a data cable, the Internet, a local area network (LAN), Bluetooth, etc. The display device 700 can be a tablet computer, a laptop computer, a desktop computer, a smart phone, a server, or other devices with a display screen. In some embodiments, the indication information may include an alarm message indicating that the position of the detection device needs to be adjusted and / or a prompt message indicating that the position of the detection device does not need to be adjusted. In some embodiments, the detection device can send the judgment result of whether the position of the detection device needs to be adjusted to the display device via the network, and the display device can provide corresponding indication information based on the judgment result. For example, when the signal gain is adjusted to the limit value and the noise amplitude value corresponding to the background noise area is still greater than or equal to the preset threshold, the detection device determines that the position of the detection device needs to be adjusted, and sends the judgment result to the display device, and the display device provides corresponding alarm information based on the judgment result. For another example, when the noise amplitude corresponding to the background noise area is less than a preset threshold, the detection device determines that there is no need to adjust the detection device's position and sends this determination result to the display device, which then provides a corresponding prompt message based on the determination result. For explanations of the alarm and prompt messages, please refer to the above description and will not be repeated here.
[0063] In some embodiments, the spectrum of the signal in the target frequency band can also be displayed in the detection device or display device. The detection device or display device can be configured with a display screen. After obtaining the spectrum of the signal in the target frequency band, the spectrum can be directly displayed on the display screen of the detection device or display device, so that the user can directly judge whether the position of the detection device needs to be adjusted based on the spectrum. For example, the spectrum of the signal in the target frequency band can be as follows: Figure 2 As shown in the figure, there are only two peaks with higher amplitudes in the spectrum diagram, which are drone signals, and the other peaks with lower amplitudes and smaller fluctuations are noise signals. The user can judge from the spectrum diagram that the current detection device is in an area with less signal interference. The user can further make a comprehensive judgment based on the indication information provided by the detection device or the display device, so as to make a more accurate decision.
[0064] In some embodiments, to improve the accuracy of the target detection model output, the spectrogram output by the target detection model may also be labeled with two or more background noise regions. When the spectrogram has two or more background noise regions labeled, the detection device may also perform deduplication processing on each of the labeled background noise regions in the spectrogram to obtain a spectrogram labeled with a single background noise region. Figure 5 This is an exemplary flowchart of performing deduplication processing on a background noise area according to some embodiments of this specification. Figure 5 The process 500 shown may be implemented by a location optimization device 600. In some embodiments, the process 500 may include the following steps.
[0065] Step 510 : Obtain a frequency spectrum output by the target detection model and marked with background noise regions, wherein the frequency spectrum is marked with two or more background noise regions. In some embodiments, step 510 may be implemented by the first determination module 620 .
[0066] In some embodiments, a spectrogram of a signal in a target frequency band can be input into a target detection model. The target detection model can output a spectrogram labeled with two or more background noise regions, which can be acquired by a detection device. In some embodiments, the target detection model can be trained based on a sample training set, which can include sample spectrograms labeled with background noise regions. The trained target detection model can output a spectrogram labeled with two or more background noise regions.
[0067] In step 520 , the noise floor regions marked in the spectrum are merged to obtain a spectrum with a single noise floor region marked. In some embodiments, step 520 may be implemented by the deduplication module 650 .
[0068] In some embodiments, when there is no overlapping area between the background noise areas marked in the spectrum graph, the background noise areas can be added together, and a new marking box can be determined based on the added background noise areas. The new marking box can be the minimum marking box covering all the background noise areas, thereby obtaining a spectrum graph marked with a single background noise area.
[0069] Step 530 : Determine the noise amplitude value of each background noise area, mark the background noise area corresponding to the maximum noise amplitude value as a single background noise area, and delete the labels of other background noise areas. In some embodiments, step 530 can be implemented by the deduplication module 650 .
[0070] In some embodiments, when the background noise areas marked in the spectrum graph have overlapping areas, the noise amplitude values of each background noise area can be determined. For the specific instructions on determining the noise amplitude value corresponding to the background noise area, please refer to the description in step 130 above and will not be repeated here. In some embodiments, for the noise amplitude values obtained for each background noise area, the annotation box of the background noise area corresponding to the maximum noise amplitude value can be retained, and the annotation boxes of other background noise areas can be deleted, thereby obtaining a spectrum graph marked with a single background noise area.
[0071] In step 540 , the labeled background noise regions are filtered based on the confidence level corresponding to each background noise region to obtain a frequency spectrum with a single background noise region labeled. In some embodiments, step 540 may be implemented by the deduplication module 650 .
[0072] In some embodiments, when the target detection model outputs a spectrum graph marked with background noise areas, it can also output the confidence corresponding to each annotation box, which can represent the reliability of the target detection model for the currently marked background noise area. In some embodiments, the detection device can sort the confidence corresponding to each background noise area from high to low, and retain the annotation boxes of the background noise areas with the top N% confidence rankings. Subsequently, the marked background noise areas can be filtered according to the method of step 520 or step 530 to obtain a spectrum graph marked with a single background noise area. In other embodiments, the detection device can also retain the annotation of the background noise area with the highest confidence, and delete the annotations of other background noise areas, thereby obtaining a spectrum graph marked with a single background noise area.
[0073] The target detection model outputs a spectrum with two or more background noise areas marked. The detection device deduplicates the background noise areas marked in the spectrum to obtain a spectrum with a single background noise area marked, thereby improving the accuracy of the background noise area marking.
[0074] This specification also provides a device for optimizing the location of a detection device. Figure 6 6 is an exemplary block diagram of a location optimization device for a detection device according to some embodiments of this specification. In some embodiments, the location optimization device 600 for a detection device can be deployed in an electronic device. Figure 6 As shown, in some embodiments, the location optimization apparatus 600 for detecting a device may include an acquisition module 610 , a first determination module 620 , a second determination module 630 and a judgment module 640 .
[0075] The acquisition module 610 is configured to acquire a frequency spectrum of a signal in a target frequency band.
[0076] The first determining module 620 is configured to determine a background noise region in the spectrum graph.
[0077] The second determining module 630 is configured to determine a noise amplitude value corresponding to the background noise area.
[0078] The determination module 640 is configured to determine whether the position of the detection device needs to be adjusted based on the noise amplitude value.
[0079] In some optional embodiments, the first determination module 620 can also be used to determine the background noise area in the spectrogram based on a pre-trained target detection model, where the target detection model is obtained by training based on a sample training set, and the sample training set includes a sample spectrogram with a background noise area marked.
[0080] In some optional embodiments, the first determination module 620 may also be configured to input a frequency spectrum of a signal in a target frequency band into a target detection model; and obtain a frequency spectrum output by the target detection model that is marked with a background noise region.
[0081] In some optional embodiments, the position optimization device 600 of the detection device may further include a deduplication module 650, which is used to, after obtaining the spectrum graph output by the target detection model and marked with background noise areas, perform deduplication processing on each background noise area marked in the spectrum graph when there are more than two background noise areas marked in the spectrum graph, and obtain a spectrum graph marked with a single background noise area.
[0082] In some optional embodiments, the deduplication module 650 can also be used to merge the background noise areas marked in the spectrum graph to obtain a spectrum graph marked with a single background noise area; or determine the noise amplitude value of each background noise area, mark the background noise area corresponding to the maximum noise amplitude value as a single background noise area, and delete the markings of other background noise areas; or filter the marked background noise areas based on the confidence level corresponding to each background noise area to obtain a spectrum graph marked with a single background noise area.
[0083] In some optional embodiments, the second determining module 630 may also be configured to determine the maximum amplitude value of the background noise area as the noise amplitude value; or determine the average amplitude value of the background noise area as the noise amplitude value.
[0084] In some optional embodiments, the judgment module 640 can also be used to adjust the signal gain when the noise amplitude value is greater than or equal to a preset threshold value to reduce the noise amplitude value corresponding to the background noise area, and stop adjusting the signal gain until the noise amplitude value after signal gain adjustment is less than the preset threshold value; when the signal gain is adjusted to the limit value and the noise amplitude value corresponding to the background noise area is still greater than or equal to the preset threshold value, provide an alarm message indicating that the position of the detection device needs to be adjusted; when the noise amplitude value is less than the preset threshold value, provide a prompt message indicating that the position of the detection device does not need to be adjusted.
[0085] In some optional embodiments, the acquisition module 610 can also be used to scan signals within a preset spectrum range; determine a target frequency band and obtain a time-frequency diagram of the signal in the target frequency band; and convert the time-frequency diagram of the signal in the target frequency band into a spectrum diagram.
[0086] In some optional embodiments, the position optimization device 600 of the detection device may further include an information providing module 660 for performing at least one of the following processing: displaying a spectrum diagram of the signal in the target frequency band; providing indication information, the indication information being used to indicate whether the position of the detection device needs to be adjusted.
[0087] This specification also provides a display device. Figure 7 Schematic diagram of a display device according to some embodiments of this specification. Figure 7As shown, the display device 700 may be a tablet computer, a laptop computer, a desktop computer, a smart phone, a server, or other equipment with a display screen.
[0088] In some embodiments, an indication can be provided on the display device 700. The indication can be used to indicate whether the position of the detection device needs to be adjusted. The indication can include an alarm indicating that the position of the detection device needs to be adjusted and / or a prompt indicating that the position of the detection device does not need to be adjusted. In some embodiments, the position optimization device 600 can transmit the result of its determination of whether the position of the detection device needs to be adjusted to the display device 700 via a network. The display device 700 can then provide corresponding indication information based on the determination result. For example, when the signal gain is adjusted to a limit value and the noise amplitude corresponding to the noise floor area is still greater than or equal to a preset threshold, the position optimization device 600 determines that the position of the detection device needs to be adjusted and transmits the determination result to the display device 700. The display device 700 then provides a corresponding alarm based on the determination result. For another example, when the noise amplitude corresponding to the noise floor area is less than a preset threshold, the position optimization device 600 determines that the position of the detection device does not need to be adjusted and transmits the determination result to the display device 700. The display device 700 then provides a corresponding prompt based on the determination result. For a description of the alarm and prompt information, please refer to the above description and will not be repeated here.
[0089] In some embodiments, the spectrum of the signal in the target frequency band can also be displayed on the display device 700. The display device 700 can be configured with a display screen. After obtaining the spectrum of the signal in the target frequency band, the spectrum can be directly displayed on the display screen of the display device 700 so that the user can directly judge whether the position of the detection device needs to be adjusted based on the spectrum. For example, the spectrum of the signal in the target frequency band can be as follows: Figure 2 As shown, there are only two peaks with higher amplitudes in the spectrum diagram, which are drone signals, and the others with lower amplitudes and smaller fluctuations are noise signals. The user can judge from the spectrum diagram that the current detection device is in an area with less signal interference, and can further make a comprehensive judgment based on the indication information provided by the display device 700, so as to make a more accurate decision.
[0090] This specification also provides a location optimization system for a detection device. Figure 8 FIG. 1 is a schematic diagram of a location optimization system for a detection device according to some embodiments of this specification. Figure 8As shown, in some embodiments, the location optimization system 800 for a detection device may include a location optimization device 600 for a detection device and a display device 700. In some embodiments, the display device 700 may be connected to the location optimization device 600 for the detection device via a network. The network may be any form of wired or wireless network, or any combination thereof. For example, the display device 700 and the location optimization device 600 may be connected via a data cable, the Internet, a local area network (LAN), Bluetooth, or the like.
[0091] The position optimization device 600 is used to obtain a spectrum diagram of a signal in a target frequency band, determine a background noise area in the spectrum diagram, determine a noise amplitude value corresponding to the background noise area, and determine whether the position of the detection device needs to be adjusted based on the noise amplitude value.
[0092] The display device 700 is used to display a spectrum diagram of a signal in a target frequency band and / or provide indication information, where the indication information is used to indicate whether the position of the detection device needs to be adjusted.
[0093] For more information about each module, see Figures 1 to 5 The relevant description of will not be repeated here. It should be understood that Figures 6-8 The devices, equipment, systems, and their modules described herein can be implemented in various ways. For example, in some embodiments, the devices, equipment, systems, and their modules can be implemented using hardware, software, or a combination of software and hardware. The hardware portion can be implemented using dedicated logic, while the software portion can be stored in memory and executed by an appropriate instruction execution device, such as a microprocessor or specially designed hardware. Those skilled in the art will appreciate that the methods and devices described above can be implemented using computer-executable instructions and / or control code contained in a processor, such as provided on a carrier medium such as a disk, CD, or DVD-ROM, or in the memory of a programmable device. The devices and their modules described herein can be implemented not only using hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips or transistors, or programmable hardware devices such as field programmable gate arrays or programmable logic devices, but can also be implemented using software executed by various types of processors, or a combination of the aforementioned hardware circuits and software (e.g., firmware).
[0094] It should be noted that the above descriptions of the devices, equipment, systems, and their modules are for ease of description only and do not limit this specification to the embodiments described. It is understood that those skilled in the art, after understanding the principles of the device, may, without departing from these principles, arbitrarily combine the modules to form sub-devices connected to other modules. Alternatively, certain modules may be split to obtain more modules or multiple units within the module. Such variations are within the scope of this specification.
[0095] Some embodiments of this specification also provide an electronic device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor executes the computer program, the electronic device can implement the present specification. Figures 1 to 5 In some embodiments, the electronic device may be used to execute the location optimization method shown in process 100.
[0096] Some embodiments of this specification also provide a computer program product, including a computer program, which can implement the present specification when at least part of the computer program is executed by a processor. Figures 1 to 5 In some embodiments, the computer program product may simply be a computer program, which may be carried by a storage medium or a processing device. In other embodiments, the computer program product may also be a storage medium or a processing device containing the aforementioned computer program. The processing device may include one or more processors and a storage medium.
[0097] In some embodiments, the processor may be a combination of one or more of the following processors: a central processing unit (CPU), an application-specific integrated circuit (ASIC), an application-specific instruction set processor (ASIP), a graphics processing unit (GPU), a physical processing unit (PPU), a digital signal processor (DSP), a field-programmable gate array (FPGA), a programmable logic device (PLD), a programmable logic controller (PLC), a reduced instruction set computer (RISC), and a microprocessor.
[0098] In some embodiments, the storage medium may include one or more of the following: mass storage, removable storage, volatile read-write memory, and read-only memory (ROM). Exemplary mass storage may include magnetic disks, optical disks, solid-state drives, and the like. Exemplary removable storage may include flash drives, floppy disks, optical disks, memory cards, compact disks, magnetic tapes, and the like. Exemplary volatile read-write memory may include random access memory (RAM). Exemplary RAM may include dynamic random access memory (DRAM), double-data-rate synchronous dynamic random access memory (DDRSDRAM), static random access memory (SRAM), thyristor random access memory (T-RAM), and zero-capacitance random access memory (Z-RAM). Exemplary read-only memory may include masked read-only memory (MROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), and digital versatile disc read-only memory.
[0099] The beneficial effects that may be brought about by the embodiments of this specification include but are not limited to: (1) by obtaining the spectrum of the signal of the target frequency band, determining the background noise area in the spectrum, determining the noise amplitude value corresponding to the background noise area, and determining whether the position of the detection device needs to be adjusted based on the noise amplitude value. In this way, the setting position of the detection device is optimized, the detection efficiency of the detection device is improved, and the trial and error cost is reduced; (2) by outputting a spectrum with more than two background noise areas marked by the target detection model, and deduplicating each background noise area marked in the spectrum, obtaining a spectrum with a single background noise area marked, thereby improving the accuracy of the background noise area marking; (3) by displaying the spectrum of the signal of the target frequency band in the detection device or display device, the user can judge that the current detection device is in an area with less signal interference based on the spectrum, and can further make a comprehensive judgment based on the indication information provided by the detection device or display device, so as to make a more accurate decision. It should be noted that different embodiments may produce different beneficial effects. In different embodiments, the beneficial effects that may be produced may be any one or a combination of the above, or any other possible beneficial effects.
[0100] While the basic concepts have been described above, it will be apparent to those skilled in the art that the detailed disclosure is merely illustrative and does not limit this specification. Although not explicitly stated herein, various modifications, improvements, and revisions to this specification may be made by those skilled in the art. Such modifications, improvements, and revisions are taught in this specification and remain within the spirit and scope of the exemplary embodiments of this specification.
Claims
1. A method for optimizing the location of a detection device, characterized in that: The method comprises: Get the spectrum of the signal in the target frequency band; Determining a noise floor region in the spectrogram; Determine the noise amplitude value corresponding to the background noise area; Determining whether a position of the detection device needs to be adjusted is determined based on the noise amplitude value.
2. The method according to claim 1, characterized in that The determining of the background noise area in the spectrum graph includes: The background noise area in the spectrogram is determined based on a pre-trained target detection model, where the target detection model is trained based on a sample training set, and the sample training set includes sample spectrograms marked with background noise areas.
3. The method according to claim 2, characterized in that The determining of the background noise area in the spectrogram based on the pre-trained target detection model includes: Inputting the spectrum of the signal in the target frequency band into the target detection model; Obtain the frequency spectrum output by the target detection model, which is marked with the background noise area.
4. The method according to claim 3, characterized in that After obtaining the frequency spectrum with the background noise area marked output by the target detection model, the method further includes: When there are more than two background noise areas marked in the spectrum graph, deduplication processing is performed on each background noise area marked in the spectrum graph to obtain the spectrum graph marked with a single background noise area.
5. The method according to claim 4, characterized in that The performing deduplication processing on each background noise region marked in the spectrum graph to obtain the spectrum graph marked with a single background noise region includes: Merging the noise floor areas marked in the spectrum graph to obtain the spectrum graph marked with a single noise floor area; or Determine the noise amplitude value of each noise background area, mark the noise background area corresponding to the maximum noise amplitude value as the single noise background area, and delete the markings of other noise background areas; or The marked background noise regions are filtered based on the confidence levels corresponding to the background noise regions to obtain the frequency spectrum with the single background noise region marked thereon.
6. The method according to claim 1, characterized in that The determining of the noise amplitude value corresponding to the background noise area includes: Determine the maximum amplitude value of the background noise area as the noise amplitude value; or An average value of the amplitude of the background noise area is determined as the noise amplitude value.
7. The method according to claim 1, characterized in that The determining whether the position of the detection device needs to be adjusted based on the noise amplitude value includes: When the noise amplitude value is greater than or equal to a preset threshold, adjusting the signal gain to reduce the noise amplitude value corresponding to the background noise area, and stopping adjusting the signal gain until the noise amplitude value after signal gain adjustment is less than the preset threshold; When the signal gain is adjusted to a limit value and the noise amplitude value corresponding to the background noise area is still greater than or equal to the preset threshold, an alarm message is provided indicating that the position of the detection device needs to be adjusted; When the noise amplitude value is less than a preset threshold, a prompt message is provided indicating that there is no need to adjust the position of the detection device.
8. The method according to claim 1, characterized in that The obtaining of a spectrum diagram of a signal in a target frequency band includes: Scan the signal within the preset spectrum range; Determining the target frequency band and obtaining a time-frequency diagram of a signal in the target frequency band; The time-frequency diagram of the signal in the target frequency band is converted into the spectrum diagram.
9. The method according to claim 1, characterized in that Also includes at least one of the following processes: Display a spectrum diagram of the signal in the target frequency band; Providing indication information, wherein the indication information is used to indicate whether the position of the detection device needs to be adjusted.
10. A device for optimizing the position of a detection device, characterized in that: The device comprises: An acquisition module, used to obtain a spectrum diagram of a signal in a target frequency band; A first determining module, configured to determine a background noise area in the spectrum graph; A second determining module is used to determine the noise amplitude value corresponding to the background noise area; A judgment module is used to determine whether the position of the detection device needs to be adjusted based on the noise amplitude value.
11. A location optimization system for a detection device, characterized in that: The system includes a position optimization device and a display device for the detection device; The position optimization device is configured to obtain a frequency spectrum of a signal in a target frequency band, determine a noise floor area in the frequency spectrum, determine a noise amplitude value corresponding to the noise floor area, and determine whether the position of the detection device needs to be adjusted based on the noise amplitude value; The display device is used to display the spectrum diagram of the signal in the target frequency band and / or provide indication information, where the indication information is used to indicate whether the position of the detection device needs to be adjusted.
12. An electronic device, characterized in that: The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method according to any one of claims 1 to 9 can be implemented.
13. A computer program product, characterized in that The invention comprises a computer program, and when at least a part of the computer program is executed by a processor, the method according to any one of claims 1 to 9 can be implemented.