CN110097011A - A kind of signal recognition method and device - Google Patents

A kind of signal recognition method and device Download PDF

Info

Publication number
CN110097011A
CN110097011A CN201910371624.7A CN201910371624A CN110097011A CN 110097011 A CN110097011 A CN 110097011A CN 201910371624 A CN201910371624 A CN 201910371624A CN 110097011 A CN110097011 A CN 110097011A
Authority
CN
China
Prior art keywords
signal
sample
frequency image
preset
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910371624.7A
Other languages
Chinese (zh)
Inventor
邓中亮
綦航
胡恩文
朱棣
唐诗浩
刘延旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Priority to CN201910371624.7A priority Critical patent/CN110097011A/en
Publication of CN110097011A publication Critical patent/CN110097011A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • G06F18/232Non-hierarchical techniques
    • G06F18/2321Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions
    • G06F18/23213Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions with fixed number of clusters, e.g. K-means clustering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2218/00Aspects of pattern recognition specially adapted for signal processing
    • G06F2218/08Feature extraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2218/00Aspects of pattern recognition specially adapted for signal processing
    • G06F2218/12Classification; Matching

Landscapes

  • Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Image Analysis (AREA)

Abstract

本发明实施例提供了一种信号识别方法及装置。方案如下:可以获取预设频段内的待识别信号,确定待识别信号的目标时频图像,提取目标时频图像的目标特征数据,将目标特征数据输入预先训练好的信号识别模型,确定待识别信号的类型,信号识别模型是通过预设训练集训练得到的模型,预设训练集包括预设频段内多个样本信号对应的样本时频图像的样本特征数据,以及每一样本信号的样本类型。通过本发明实施例提供的技术方案,根据不同信号对应的时频图像中的特征数据的不同,利用训练好的信号识别模型,确定信号的类型,实现利用一台设备识别出不同类型的信号,不再需要为每一类型的信号单独配备对应的模块,降低了设备的成本,提高了信号识别效率。

Embodiments of the present invention provide a signal identification method and device. The scheme is as follows: the signal to be identified in the preset frequency band can be obtained, the target time-frequency image of the signal to be identified can be determined, the target feature data of the target time-frequency image can be extracted, and the target feature data can be input into the pre-trained signal recognition model to determine the signal to be identified The type of signal, the signal recognition model is a model obtained by training the preset training set, which includes the sample feature data of the sample time-frequency image corresponding to multiple sample signals in the preset frequency band, and the sample type of each sample signal . Through the technical solution provided by the embodiment of the present invention, according to the difference in characteristic data in the time-frequency images corresponding to different signals, the trained signal recognition model is used to determine the type of the signal, so that different types of signals can be identified by using one device, It is no longer necessary to separately equip corresponding modules for each type of signal, which reduces the cost of equipment and improves the efficiency of signal identification.

Description

一种信号识别方法及装置A signal identification method and device

技术领域technical field

本发明涉及信号探测技术领域,特别是涉及一种信号识别方法及装置。The invention relates to the technical field of signal detection, in particular to a signal identification method and device.

背景技术Background technique

在传统导航定位过程中,往往通过识别全球导航卫星系统(Global NavigationSatellite System,GNSS)信号进行定位。随着技术的不断发展,出现了更多的定位方法,如全源导航、机会信号导航、多源融合定位等。采用这些定位方式,往往是通过识别空域内所有可用于定位的射频信号进行定位。该射频信号可以包括各种非导航专用信号,如数字音频广播、数字电视广播信号,调幅和调频广播信号,蜂窝基站信号,蓝牙(Bluetooth)信号,紫蜂(ZigBee)信号,无线网络(Wi-Fi)信号等。与GNSS信号不同的是,这些射频信号分布在较宽的频段内,并且每一种信号所采用的调制方式是不同的,这为信号识别过程带来较大的难度。In the traditional navigation and positioning process, the positioning is often performed by identifying a Global Navigation Satellite System (Global Navigation Satellite System, GNSS) signal. With the continuous development of technology, more positioning methods have emerged, such as all-source navigation, signal-of-opportunity navigation, and multi-source fusion positioning. Using these positioning methods, positioning is often performed by identifying all radio frequency signals that can be used for positioning in the airspace. The radio frequency signal can include various non-navigation dedicated signals, such as digital audio broadcasting, digital TV broadcasting signal, AM and FM broadcasting signal, cellular base station signal, Bluetooth (Bluetooth) signal, ZigBee (ZigBee) signal, wireless network (Wi- Fi) signal, etc. Different from GNSS signals, these radio frequency signals are distributed in a wide frequency band, and the modulation methods adopted by each signal are different, which brings greater difficulty to the signal identification process.

目前,在对上述射频信号进行识别时,通过不同的通信模块来识别每一通信模块对应的射频信号,这使得设备成本较高,信号识别效率较低。At present, when identifying the above radio frequency signals, different communication modules are used to identify the radio frequency signals corresponding to each communication module, which leads to high equipment cost and low signal identification efficiency.

发明内容Contents of the invention

本发明实施例的目的在于提供一种信号识别方法及装置,以降低设备的成本,提高信号识别效率。具体技术方案如下:The purpose of the embodiments of the present invention is to provide a signal recognition method and device, so as to reduce equipment cost and improve signal recognition efficiency. The specific technical scheme is as follows:

本发明实施例提供了一种信号识别方法,包括:An embodiment of the present invention provides a signal identification method, including:

获取预设频段内的待识别信号;Obtain the signal to be identified within the preset frequency band;

确定所述待识别信号的目标时频图像;determining a target time-frequency image of the signal to be identified;

提取所述目标时频图像的目标特征数据;Extracting target feature data of the target time-frequency image;

将所述目标特征数据输入预先训练好的信号识别模型,确定所述待识别信号的类型,其中,所述信号识别模型是通过预设训练集训练得到的模型,所述预设训练集包括所述预设频段内多个样本信号对应的样本时频图像的样本特征数据,以及每一样本信号的样本类型。Inputting the target feature data into a pre-trained signal recognition model to determine the type of the signal to be recognized, wherein the signal recognition model is a model obtained by training a preset training set, and the preset training set includes the The sample characteristic data of the sample time-frequency images corresponding to the multiple sample signals in the preset frequency band, and the sample type of each sample signal.

可选的,所述确定所述待识别信号的目标时频图像的步骤,包括:Optionally, the step of determining the target time-frequency image of the signal to be identified includes:

利用以下短时傅里叶变换公式,得到所述待识别信号的目标时频图像:Using the following short-time Fourier transform formula, the target time-frequency image of the signal to be identified is obtained:

Gf(w,u)=∫f(t)g(t-u)e-jwtdtG f (w,u)=∫f(t)g(tu)e -jwt dt

其中,w为所述待识别信号的角频率,f为频率,t为时间t,u为预设时间窗口长度u,函数Gf(w,u)的值为频率分量的幅值,∫·dt为对t的积分操作,函数f(t)为所述待识别信号,函数g(t-u)为预设窗口函数,函数e-jwt为复变函数,e为自然常数,j为虚数单位。Wherein, w is the angular frequency of the signal to be identified, f is the frequency, t is the time t, u is the preset time window length u, the value of the function G f (w, u) is the amplitude of the frequency component, ∫. dt is an integral operation on t, the function f(t) is the signal to be identified, the function g(tu) is a preset window function, the function e -jwt is a complex variable function, e is a natural constant, and j is an imaginary number unit.

可选的,所述提取所述目标时频图像中的目标特征数据的步骤,包括:Optionally, the step of extracting the target feature data in the target time-frequency image includes:

对所述目标时频图像进行特征提取,得到所述目标时频图像的多个特征点;performing feature extraction on the target time-frequency image to obtain a plurality of feature points of the target time-frequency image;

采用K均值聚类(K-means)算法,对所述多个特征点进行聚类处理,得到K个类;Using the K-means clustering (K-means) algorithm, the plurality of feature points are clustered to obtain K classes;

确定K个类中每个类包括的特征点的数量;Determine the number of feature points included in each of the K classes;

根据每个类包括的特征点的数量,确定所述目标时频图像中的目标特征数据。According to the number of feature points included in each class, target feature data in the target time-frequency image is determined.

可选的,所述对所述目标时频图像进行特征提取,得到所述目标时频图像的多个特征点的步骤,包括:Optionally, the step of performing feature extraction on the target time-frequency image to obtain a plurality of feature points of the target time-frequency image includes:

利用加速稳健特征(Speeded-Up Robust Features,SURF)算法,提取所述目标时频图像中的多个特征描述符,得到所述目标时频图像的多个特征点。A Speeded-Up Robust Features (SURF) algorithm is used to extract multiple feature descriptors in the target time-frequency image to obtain multiple feature points of the target time-frequency image.

可选的,所述根据每个类包括的特征点的数量,确定所述目标时频图像中的目标特征数据的步骤,包括:Optionally, the step of determining the target feature data in the target time-frequency image according to the number of feature points included in each class includes:

根据每个类包括的特征点的数量,构建所述目标时频图像的第一特征点分布图;将所述第一特征点分布图确定为所述目标时频图像中的目标特征数据;或,Constructing a first feature point distribution map of the target time-frequency image according to the number of feature points included in each class; determining the first feature point distribution map as target feature data in the target time-frequency image; or ,

根据每个类包括的特征点的数量,统计每个类包括的特征点在所述目标时频图像中出现的概率,并根据每个类对应的概率,构建所述目标时频图像的第二特征点分布图;将所述第二特征点分布图确定为所述目标时频图像中的目标特征数据。According to the number of feature points included in each class, the probability of the feature points included in each class appearing in the target time-frequency image is counted, and according to the probability corresponding to each class, the second part of the target time-frequency image is constructed. A feature point distribution map: determining the second feature point distribution map as target feature data in the target time-frequency image.

可选的,所述信号识别模型采用如下步骤训练得到,包括:Optionally, the signal recognition model is trained through the following steps, including:

获取所述预设训练集;Obtain the preset training set;

将多个样本特征数据分别输入预设的机器学习模型,确定每一样本信号的类型;Input multiple sample feature data into the preset machine learning model to determine the type of each sample signal;

根据确定的每一样本信号的类型和每一样本信号的样本类型,计算损失值;calculating a loss value according to the determined type of each sample signal and the sample type of each sample signal;

判断损失值是否小于预设阈值;Determine whether the loss value is less than a preset threshold;

若否,则调整预设的机器学习模型的参数,返回执行所述将多个样本特征数据分别输入预设的机器学习模型,确定每一样本信号的类型的步骤;If not, then adjust the parameters of the preset machine learning model, return to perform the step of inputting a plurality of sample characteristic data into the preset machine learning model respectively, and determine the type of each sample signal;

若是,则将预设的机器学习模型确定为信号识别模型。If yes, the preset machine learning model is determined as the signal recognition model.

本发明实施例还提供了一种信号识别装置,包括:The embodiment of the present invention also provides a signal identification device, including:

第一获取模块,用于获取预设频段内的待识别信号;The first acquisition module is used to acquire the signal to be identified in the preset frequency band;

第一确定模块,用于确定所述待识别信号的目标时频图像;A first determination module, configured to determine the target time-frequency image of the signal to be identified;

提取模块,用于提取所述目标时频图像的目标特征数据;An extraction module, configured to extract target feature data of the target time-frequency image;

第二确定模块,用于将所述目标特征数据输入预先训练好的信号识别模型,确定所述待识别信号的类型,其中,所述信号识别模型是通过预设训练集训练得到的模型,所述预设训练集包括所述预设频段内多个样本信号对应的样本时频图像的样本特征数据,以及每一样本信号的样本类型。The second determination module is configured to input the target feature data into a pre-trained signal recognition model to determine the type of the signal to be recognized, wherein the signal recognition model is a model obtained by training a preset training set, so The preset training set includes sample feature data of sample time-frequency images corresponding to a plurality of sample signals in the preset frequency band, and a sample type of each sample signal.

可选的,所述第一确定模块,具体用于利用以下短时傅里叶变换公式,得到所述待识别信号的目标时频图像:Optionally, the first determining module is specifically configured to use the following short-time Fourier transform formula to obtain the target time-frequency image of the signal to be identified:

Gf(w,u)=∫f(t)g(t-u)e-jwtdtG f (w,u)=∫f(t)g(tu)e -jwt dt

其中,w为所述待识别信号的角频率,f为频率,t为时间t,u为预设时间窗口长度u,函数Gf(w,u)的值为频率分量的幅值,∫·dt为对t的积分操作,函数f(t)为所述待识别信号,函数g(t-u)为预设窗口函数,函数e-jwt为复变函数,e为自然常数,j为虚数单位。Wherein, w is the angular frequency of the signal to be identified, f is the frequency, t is the time t, u is the preset time window length u, the value of the function G f (w, u) is the amplitude of the frequency component, ∫. dt is an integral operation on t, the function f(t) is the signal to be identified, the function g(tu) is a preset window function, the function e -jwt is a complex variable function, e is a natural constant, and j is an imaginary number unit.

可选的,所述提取模块,包括:Optionally, the extraction module includes:

提取子模块,用于对所述目标时频图像进行特征提取,得到所述目标时频图像的多个特征点;The extraction submodule is used to perform feature extraction on the target time-frequency image to obtain a plurality of feature points of the target time-frequency image;

聚类子模块,用于采用K-means聚类算法,对所述多个特征点进行聚类处理,得到K个类;The clustering submodule is used to adopt the K-means clustering algorithm to perform clustering processing on the plurality of feature points to obtain K classes;

第一确定子模块,用于确定K个类中每个类包括的特征点的数量;The first determination submodule is used to determine the quantity of feature points included in each class in the K classes;

第二确定子模块,用于根据每个类包括的特征点的数量,确定所述目标时频图像中的目标特征数据。The second determination submodule is configured to determine the target feature data in the target time-frequency image according to the number of feature points included in each class.

可选的,所述提取子模块,具体用于利用SURF算法,提取所述目标时频图像中的多个特征描述符,得到所述目标时频图像的多个特征点。Optionally, the extracting submodule is specifically configured to extract multiple feature descriptors in the target time-frequency image by using the SURF algorithm to obtain multiple feature points of the target time-frequency image.

可选的,所述第二确定子模块,具体用于根据每个类包括的特征点的数量,构建所述目标时频图像的第一特征点分布图;将所述第一特征点分布图确定为所述目标时频图像中的目标特征数据;或根据每个类包括的特征点的数量,统计每个类包括的特征点在所述目标时频图像中出现的概率,并根据每个类对应的概率,构建所述目标时频图像的第二特征点分布图;将所述第二特征点分布图确定为所述目标时频图像中的目标特征数据。Optionally, the second determining submodule is specifically configured to construct a first feature point distribution map of the target time-frequency image according to the number of feature points included in each class; Determined as the target feature data in the target time-frequency image; or according to the number of feature points included in each class, count the probability of the feature points included in each class appearing in the target time-frequency image, and according to each Construct a second feature point distribution map of the target time-frequency image according to the probability corresponding to the class; determine the second feature point distribution map as the target feature data in the target time-frequency image.

可选的,所述装置还包括:Optionally, the device also includes:

第二获取模块,用于获取所述预设训练集;A second acquisition module, configured to acquire the preset training set;

第三确定模块,用于将多个样本特征数据分别输入预设的机器学习模型,确定每一样本信号的类型;The third determining module is used to respectively input a plurality of sample feature data into a preset machine learning model to determine the type of each sample signal;

计算模块,用于根据确定的每一样本信号的类型和每一样本信号的样本类型,计算损失值;A calculation module, configured to calculate a loss value according to the determined type of each sample signal and the sample type of each sample signal;

判断模块,用于判断损失值是否小于预设阈值;A judging module, configured to judge whether the loss value is less than a preset threshold;

调整模块,用于在所述判断模块的判断结果为否时,调整预设的机器学习模型的参数,返回执行所述将多个样本特征数据分别输入预设的机器学习模型,确定每一样本信号的类型的步骤;The adjustment module is used to adjust the parameters of the preset machine learning model when the judgment result of the judgment module is No, return to execute the input of multiple sample feature data into the preset machine learning model, and determine each sample the step of the type of signal;

第四确定模块,用于在所述判断模块的判断为结果为是时,将预设的机器学习模型确定为信号识别模型。The fourth determination module is configured to determine the preset machine learning model as the signal recognition model when the judgment result of the judgment module is yes.

本发明实施例还提供了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;The embodiment of the present invention also provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus;

存储器,用于存放计算机程序;memory for storing computer programs;

处理器,用于执行存储器上所存放的程序时,实现上述任一所述的信号识别方法步骤。The processor is used to implement the steps of any one of the signal recognition methods described above when executing the program stored in the memory.

本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一所述的信号识别方法步骤。An embodiment of the present invention also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of any one of the signal identification methods described above are implemented.

本发明实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述任一所述的信号识别方法。An embodiment of the present invention also provides a computer program product containing instructions, which when run on a computer, causes the computer to execute any one of the signal recognition methods described above.

本发明实施例提供的一种信号识别方法及装置,可以获取预设频段内的待识别信号,确定待识别信号的目标时频图像,提取目标时频图像的目标特征数据,将目标特征数据输入预先训练好的信号识别模型,确定待识别信号的类型,其中,信号识别模型是通过预设训练集训练得到的模型,预设训练集包括预设频段内多个样本信号对应的样本时频图像的样本特征数据,以及每一样本信号的样本类型。通过本发明实施例提供的技术方案,根据不同信号对应的时频图像中的特征数据的不同,利用训练好的信号识别模型,确定信号的类型,实现利用一台设备识别出不同类型的信号,不再需要为每一类型的信号单独配备对应的模块,降低了设备的成本,提高了信号识别效率。A signal identification method and device provided by an embodiment of the present invention can obtain a signal to be identified in a preset frequency band, determine a target time-frequency image of the signal to be identified, extract target feature data of the target time-frequency image, and input the target feature data The pre-trained signal recognition model determines the type of the signal to be recognized, wherein the signal recognition model is a model obtained by training a preset training set, and the preset training set includes sample time-frequency images corresponding to multiple sample signals in a preset frequency band The sample characteristic data of , and the sample type of each sample signal. Through the technical solution provided by the embodiment of the present invention, according to the difference in characteristic data in the time-frequency images corresponding to different signals, the trained signal recognition model is used to determine the type of the signal, so that different types of signals can be identified by using one device, It is no longer necessary to separately equip corresponding modules for each type of signal, which reduces the cost of equipment and improves the efficiency of signal recognition.

当然,实施本发明的任一产品或方法并不一定需要同时达到以上所述的所有优点。Of course, implementing any product or method of the present invention does not necessarily need to achieve all the above-mentioned advantages at the same time.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本发明实施例提供的信号识别方法的一种流程示意图;FIG. 1 is a schematic flow chart of a signal identification method provided by an embodiment of the present invention;

图2-a为本发明实施例提供的对Wi-Fi信号进行短时傅里叶变换后的一种时频图像;Figure 2-a is a time-frequency image after short-time Fourier transform of a Wi-Fi signal provided by an embodiment of the present invention;

图2-b为本发明实施例提供的对蓝牙信号进行短时傅里叶变换后的一种时频图像;Fig. 2-b is a time-frequency image after short-time Fourier transform of the Bluetooth signal provided by the embodiment of the present invention;

图2-c为本发明实施例提供的对ZigBee信号进行短时傅里叶变换后的一种时频图像;Fig. 2-c is a kind of time-frequency image after carrying out short-time Fourier transform to ZigBee signal provided by the embodiment of the present invention;

图3-a为本发明实施例提供的目标时频图像的尺度空间的一种示意图;Fig. 3-a is a schematic diagram of the scale space of the target time-frequency image provided by the embodiment of the present invention;

图3-b为本发明实施例提供的特征点的主方向确定的一种示意图;Fig. 3-b is a schematic diagram of determining the main direction of the feature points provided by the embodiment of the present invention;

图4为本发明实施例提供的信号识别模型的训练方法的一种流程示意图;FIG. 4 is a schematic flowchart of a training method for a signal recognition model provided by an embodiment of the present invention;

图5-a为本发明实施例提供的样本信号为蓝牙信号对应的样本时频图像之一;Figure 5-a shows that the sample signal provided by the embodiment of the present invention is one of the sample time-frequency images corresponding to the Bluetooth signal;

图5-b为本发明实施例提供的样本信号为蓝牙信号对应的样本时频图像之一;Figure 5-b shows that the sample signal provided by the embodiment of the present invention is one of the sample time-frequency images corresponding to the Bluetooth signal;

图5-c为本发明实施例提供的样本信号为蓝牙信号对应的样本时频图像之一;Figure 5-c shows that the sample signal provided by the embodiment of the present invention is one of the sample time-frequency images corresponding to the Bluetooth signal;

图6为本发明实施例提供的信号识别装置的一种结构示意图;FIG. 6 is a schematic structural diagram of a signal identification device provided by an embodiment of the present invention;

图7为本发明实施例提供的电子设备的一种结构示意图。FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

目前,在对射频信号进行识别时,根据不同类型的射频信号所采用的通信协议的不同,利用不同的通信模块识别对应类型的射频信号。由于不同的通信模型相互独立,不利于设备的集成和深度融合,使得识别信号类型的设备的成本较高。另外,每一通信模块仅能识别该通信模块对应类型的信号,导致信号识别效率较低。At present, when identifying radio frequency signals, different communication modules are used to identify corresponding types of radio frequency signals according to different communication protocols adopted by different types of radio frequency signals. Since different communication models are independent of each other, it is not conducive to the integration and deep integration of devices, which makes the cost of devices that identify signal types relatively high. In addition, each communication module can only identify signals of the type corresponding to the communication module, resulting in low signal identification efficiency.

为了解决上述设备成本较高,以及信号识别效率较低的问题,本发明实施例提供了一种信号识别方法。该方法应用于任一包括导航系统或定位系统的电子设备。在本发明实施例提供的方法中,可以获取预设频段内的待识别信号,确定待识别信号的目标时频图像,提取目标时频图像的目标特征数据,将目标特征数据输入预先训练好的信号识别模型,确定待识别信号的类型,其中,信号识别模型是通过预设训练集训练得到的模型,预设训练集包括预设频段内多个样本信号对应的样本时频图像的样本特征数据,以及每一样本信号的样本类型。In order to solve the above-mentioned problems of high equipment cost and low signal recognition efficiency, an embodiment of the present invention provides a signal recognition method. The method applies to any electronic device including a navigation system or a positioning system. In the method provided by the embodiment of the present invention, the signal to be identified in the preset frequency band can be obtained, the target time-frequency image of the signal to be identified can be determined, the target feature data of the target time-frequency image can be extracted, and the target feature data can be input into the pre-trained The signal recognition model determines the type of the signal to be recognized, wherein the signal recognition model is a model obtained by training a preset training set, and the preset training set includes sample feature data of sample time-frequency images corresponding to multiple sample signals in a preset frequency band , and the sample type of each sample signal.

通过本发明实施例提供的技术方案,根据不同信号对应的时频图像中的特征数据的不同,利用训练好的信号识别模型,确定信号的类型,实现利用一台设备识别出不同类型的信号,不再需要为每一类型的信号单独配备对应的模块,降低了设备的成本,提高了信号识别效率。Through the technical solution provided by the embodiment of the present invention, according to the difference in characteristic data in the time-frequency images corresponding to different signals, the trained signal recognition model is used to determine the type of the signal, so that different types of signals can be identified by using one device, It is no longer necessary to separately equip corresponding modules for each type of signal, which reduces the cost of equipment and improves the efficiency of signal identification.

下面通过具体的实施例,对本发明实施例进行说明。The embodiments of the present invention will be described below through specific embodiments.

如图1所示,图1为本发明实施例提供的信号识别方法的一种流程示意图。该方法包括以下步骤。As shown in FIG. 1 , FIG. 1 is a schematic flowchart of a signal identification method provided by an embodiment of the present invention. The method includes the following steps.

步骤S101,获取预设频段内的待识别信号。Step S101, acquiring signals to be identified within a preset frequency band.

在本步骤中,电子设备获取预设频段内的射频信号,作为待识别信号。In this step, the electronic device acquires a radio frequency signal within a preset frequency band as the signal to be identified.

上述射频信号可以包括蓝牙信号、Wi-Fi信号和ZigBee信号等,上述预设频段可以为2.4千兆赫兹(GHz)工业科学医疗(Industrial Scientific Medical,ISM)频段,也可以为5.0GHz频段。例如,预设频段可以为2.4GHz频段。某一时刻,电子设备可以获取2.4GHz频段内的射频信号,作为待识别信号。The above-mentioned radio frequency signal may include a Bluetooth signal, a Wi-Fi signal, and a ZigBee signal, etc., and the above-mentioned preset frequency band may be a 2.4 gigahertz (GHz) Industrial Scientific Medical (ISM) frequency band, or a 5.0 GHz frequency band. For example, the preset frequency band may be a 2.4GHz frequency band. At a certain moment, the electronic device can obtain a radio frequency signal in the 2.4GHz frequency band as a signal to be identified.

上述预设频段可以根据实际应用场景以及用户的需求等进行设定。例如,采用广播信号进行导航或定位时,广播信号可以包括数字音频广播信号、数字电视广播信号、调频广播信号以及调幅广播信号等,这些广播信号分布在不同的频段中,则上述预设频段可以为每一广播信号所对应的频段。在本发明实施例中,对上述预设频段以及预设频段的数量不作具体限定。The aforementioned preset frequency bands may be set according to actual application scenarios and user requirements. For example, when broadcasting signals are used for navigation or positioning, the broadcasting signals may include digital audio broadcasting signals, digital television broadcasting signals, FM broadcasting signals, and AM broadcasting signals, etc., and these broadcasting signals are distributed in different frequency bands, then the above preset frequency bands can be is the frequency band corresponding to each broadcast signal. In the embodiment of the present invention, there is no specific limitation on the aforementioned preset frequency bands and the number of preset frequency bands.

步骤S102,确定待识别信号的目标时频图像。Step S102, determining the target time-frequency image of the signal to be identified.

在本步骤中,上述步骤S101所获取到的待识别信号为时域信号,电子设备可以对待识别信号进行一定的变换处理,也就是将时域信号转换为频域信号,从而得到待识别信号的时频图像,作为目标识别图像。In this step, the signal to be identified obtained in the above step S101 is a time domain signal, and the electronic device can perform a certain conversion process on the signal to be identified, that is, convert the time domain signal into a frequency domain signal, thereby obtaining the signal to be identified The time-frequency image is used as the target recognition image.

一个可选的实施例中,上述确定待识别信号的目标时频图像的步骤,可以表示为:In an optional embodiment, the above-mentioned step of determining the target time-frequency image of the signal to be identified can be expressed as:

利用以下短时傅里叶变换公式,得到待识别信号的目标时频图像,也就是利用以下公式,对待识别信号进行短时傅里叶变换,得到待识别信号的目标时频图像。其中,短时傅里叶公式可以表示为:Use the following short-time Fourier transform formula to obtain the target time-frequency image of the signal to be identified, that is, use the following formula to perform short-time Fourier transform on the signal to be identified to obtain the target time-frequency image of the signal to be identified. Among them, the short-time Fourier formula can be expressed as:

Gf(w,u)=∫f(t)g(t-u)e-jwtdtG f (w,u)=∫f(t)g(tu)e -jwt dt

w为待识别信号的角频率,f为频率,t为时间t,u为预设时间窗口长度u,函数Gf(w,u)的值为频率分量的幅值,∫·dt为对t的积分操作,函数f(t)为待识别信号,函数g(t-u)为预设窗口函数,函数e-jwt为复变函数,e为自然常数,j为虚数单位。w is the angular frequency of the signal to be identified, f is the frequency, t is the time t, u is the preset time window length u, the value of the function G f (w, u) is the amplitude of the frequency component, ∫ dt is the The integral operation of , the function f(t) is the signal to be identified, the function g(tu) is the preset window function, the function e -jwt is a complex variable function, e is a natural constant, and j is an imaginary number unit.

在本发明实施例中,由于上述待识别信号往往是非平稳随机信号,若直接对待识别信号进行傅里叶变换,其傅里叶变换后的结果将存在一定的误差。为了提高上述目标时频图像的准确性,利用预设窗口函数对待识别信号进行短时傅里叶变换。也就是在将待识别信号由时域信号转换为频域信号时,通过较小的时间窗口,在待识别信号中截取时间窗口内的信号,并对截取到的信号进傅里叶变换。由于预设时间窗口的长度较小,使得该时间窗口内截取到的信号可以被认为是平稳随机信号,在待识别信号上移动该时间窗口,完成对待识别信号的短时傅里叶变换过程,进而可以得到目标时频图像。In the embodiment of the present invention, since the signal to be identified is often a non-stationary random signal, if the signal to be identified is directly subjected to Fourier transform, the result after Fourier transform will have certain errors. In order to improve the accuracy of the target time-frequency image above, short-time Fourier transform is performed on the signal to be identified by using a preset window function. That is, when the signal to be identified is converted from a time domain signal to a frequency domain signal, the signal within the time window is intercepted from the signal to be identified through a smaller time window, and the intercepted signal is Fourier transformed. Since the length of the preset time window is small, the signal intercepted in this time window can be considered as a stationary random signal, and the time window is moved on the signal to be identified to complete the short-time Fourier transform process of the signal to be identified. Then the target time-frequency image can be obtained.

以Wi-Fi信号、蓝牙信号以及ZigBee信号为例。在对Wi-Fi信号、蓝牙信号以及ZigBee信号进行短时傅里叶变换后,可以得到如图2所示的时频图像。其中,图2-a为本发明实施例提供的对Wi-Fi信号进行短时傅里叶变换后的一种时频图像。图2-b为本发明实施例提供的对蓝牙信号进行短时傅里叶变换后的一种时频图像。图2-c为本发明实施例提供的对ZigBee信号进行短时傅里叶变换后的一种时频图像。在图2-a、图2-b和图2-c中,水平方向表示信号的频率,竖直方向表示时间,时频图像中的黑色区域为多个采样点构成,每一采样点表示为对应采样点处频率分量的幅值。Take Wi-Fi signal, Bluetooth signal and ZigBee signal as examples. After performing short-time Fourier transform on the Wi-Fi signal, Bluetooth signal and ZigBee signal, the time-frequency image shown in Figure 2 can be obtained. Among them, FIG. 2-a is a time-frequency image after short-time Fourier transform of a Wi-Fi signal provided by an embodiment of the present invention. Fig. 2-b is a time-frequency image after short-time Fourier transform of the Bluetooth signal provided by the embodiment of the present invention. Fig. 2-c is a time-frequency image after short-time Fourier transform of the ZigBee signal provided by the embodiment of the present invention. In Figure 2-a, Figure 2-b, and Figure 2-c, the horizontal direction represents the frequency of the signal, and the vertical direction represents time. The black area in the time-frequency image is composed of multiple sampling points, and each sampling point is expressed as The magnitude of the frequency component at the corresponding sampling point.

一个可选的实施例中,上述预设窗口函数可以根据实际情况以及用户需求等选择不同的窗函数,如汉宁窗(Hanning)、汉明窗(Hamming)、布莱克曼窗(Blackman)等。In an optional embodiment, the above-mentioned preset window function may select different window functions according to actual conditions and user requirements, such as Hanning window, Hamming window, Blackman window and so on.

一个可选的实施例中,上述预设窗口函数的预设时间窗口长度可以根据时频图中的时间分辨率和频率分辨率确定。例如,当预设时间窗口长度越长时,预设时间窗口内所截取到的待识别信号也就越长,短时傅里叶变换后的频率分辨率越高,时间分辨率越低。当预设时间窗口长度越短时,预设时间窗口内所截取到的待识别信号也就越短,短时傅里叶变换后的频率分辨率越低,时间分辨率越高。In an optional embodiment, the preset time window length of the preset window function may be determined according to the time resolution and frequency resolution in the time-frequency diagram. For example, when the length of the preset time window is longer, the intercepted signal to be identified within the preset time window is longer, and the frequency resolution after the short-time Fourier transform is higher and the time resolution is lower. When the length of the preset time window is shorter, the intercepted signal to be identified within the preset time window is also shorter, and the frequency resolution after the short-time Fourier transform is lower and the time resolution is higher.

在本发明实施例中,对上述预设窗口函数以及预设时间窗口不作具体限定。In the embodiment of the present invention, no specific limitation is set on the above-mentioned preset window function and preset time window.

一个可选的实施例中,在确定上述待识别信号的目标时频图像之前,也就是对待识别信号进行短时傅里叶变换之前,电子设备可以对待识别信号进行一定的预处理。例如,对待识别信号进行滤波处理,滤除待识别信号中的噪声信号等。在本发明实施例中,对预处理过程以及方式不作具体限定。In an optional embodiment, before determining the target time-frequency image of the signal to be identified, that is, before performing short-time Fourier transform on the signal to be identified, the electronic device may perform certain preprocessing on the signal to be identified. For example, filter processing is performed on the signal to be identified, and noise signals in the signal to be identified are filtered out. In the embodiment of the present invention, the preprocessing process and manner are not specifically limited.

步骤S103,提取目标时频图像的目标特征数据。Step S103, extracting target feature data of the target time-frequency image.

在本步骤中,电子设备可以对上述待识别信号的目标时频图像进行特征提取,得到目标特征数据。In this step, the electronic device may perform feature extraction on the target time-frequency image of the signal to be identified to obtain target feature data.

一个可选的实施例中,可以利用预设算法或者预设网络模型对上述待识别信号进行特征提取,得到目标时频图像的目标特征数据。在此,对预设算法以及预设网络模型不作具体说明。In an optional embodiment, a preset algorithm or a preset network model may be used to perform feature extraction on the signal to be identified to obtain target feature data of the target time-frequency image. Here, the preset algorithm and the preset network model are not described in detail.

步骤S104,将目标特征数据输入预先训练好的信号识别模型,确定待识别信号的类型。Step S104, inputting target feature data into a pre-trained signal recognition model to determine the type of signal to be recognized.

在本步骤中,将提取到的目标时频图像的目标特征数据输入预先训练好的信号识别模型中。根据该目标特征数据,以及该信号识别模型的结构及参数,可以得到待识别信号的类型。其中,信号识别模型是通过预设训练集训练得到的模型。预设训练集可以包括预设频段内多个样本信号对应的样本时频图像的样本特征数据,以及每一样本信号的样本类型。In this step, the extracted target feature data of the target time-frequency image is input into a pre-trained signal recognition model. According to the target characteristic data, and the structure and parameters of the signal recognition model, the type of the signal to be recognized can be obtained. Wherein, the signal recognition model is a model trained through a preset training set. The preset training set may include sample feature data of sample time-frequency images corresponding to a plurality of sample signals in a preset frequency band, and a sample type of each sample signal.

一个实施例中,上述信号识别模型在确定待识别信号的类型时,可以根据提取到的待识别信号的目标特征数据,以及预设训练集中样本信号的样本特征数据,确定目标特征数据与不同样本信号的样本特征数据之间的符合度的大小。根据确定的符合度,将与目标特征数据符合度最大的样本特征数据对应的样本信号的样本类别确定为待识别信号的类型。其中,符合度可以用马氏距离、欧式距离等表示,以欧式距离为例,若欧式距离越小,则上述符合度越大。若欧式距离越大,则上述符合度越小。In one embodiment, when the above-mentioned signal recognition model determines the type of the signal to be recognized, it can determine the difference between the target characteristic data and different samples according to the extracted target characteristic data of the signal to be recognized and the sample characteristic data of the sample signal in the preset training set. The degree of coincidence between the sample feature data of the signal. According to the determined coincidence degree, the sample category of the sample signal corresponding to the sample feature data with the highest coincidence degree with the target feature data is determined as the type of the signal to be identified. Wherein, the coincidence degree can be represented by Mahalanobis distance, Euclidean distance, etc., taking Euclidean distance as an example, if the Euclidean distance is smaller, the above coincidence degree is greater. The greater the Euclidean distance, the smaller the degree of coincidence.

仍以上述Wi-Fi信号、蓝牙信号和ZigBee信号为例进行说明。若上述信号识别模型为针对这三种信号的识别模型,则上述样本信号为Wi-Fi信号、蓝牙信号和ZigBee信号,上述样本特征数据为Wi-Fi信号、蓝牙信号和ZigBee信号所对应的样本时频图像中的特征数据。The above-mentioned Wi-Fi signal, Bluetooth signal and ZigBee signal are still taken as examples for illustration. If the above-mentioned signal recognition model is a recognition model for these three signals, then the above-mentioned sample signals are Wi-Fi signals, Bluetooth signals and ZigBee signals, and the above-mentioned sample characteristic data are samples corresponding to Wi-Fi signals, Bluetooth signals and ZigBee signals Feature data in time-frequency images.

一个可选的实施例中,对于上述步骤S103,提取目标时频图像的目标特征数据,具体可以包括以下步骤。In an optional embodiment, for the above step S103, extracting the target feature data of the target time-frequency image may specifically include the following steps.

步骤S1031,对目标时频图像进行特征提取,得到目标时频图像的多个特征点。Step S1031, performing feature extraction on the target time-frequency image to obtain multiple feature points of the target time-frequency image.

在本步骤中,电子设备可以利用上述预设算法或预设网络模型提取待识别信号的目标时频图像中的多个特征点,得到目标时频图像的多个特征点。In this step, the electronic device may use the aforementioned preset algorithm or preset network model to extract multiple feature points in the target time-frequency image of the signal to be identified, and obtain multiple feature points in the target time-frequency image.

步骤S1032,采用K-means算法,对多个特征点进行聚类处理,得到K个类。In step S1032, the K-means algorithm is used to perform clustering processing on multiple feature points to obtain K clusters.

在本步骤中,电子设备可以利用K-means算法对提取到的目标时频图像的多个特征点进行聚类处理,得到K个类。In this step, the electronic device may use the K-means algorithm to cluster the extracted multiple feature points of the target time-frequency image to obtain K classes.

步骤S1033,确定K个类中每个类包括的特征点的数量。Step S1033, determining the number of feature points included in each of the K classes.

在本步骤中,针对上述K个类中的每一个类,可以统计该类中包含的特征点的数量,从而确定K个类中每个类中包括的特征点的数量。In this step, for each of the above K classes, the number of feature points included in the class may be counted, so as to determine the number of feature points included in each of the K classes.

步骤S1034,根据每个类包括的特征点的数量,确定目标时频图像中的目标特征数据。Step S1034, according to the number of feature points included in each class, determine the target feature data in the target time-frequency image.

一个可选的实施例中,根据每个类包括的特征点的数量,构建目标时频图像的第一特征点分布图;将第一特征点分布图确定为目标时频图像中的目标特征数据。In an optional embodiment, according to the number of feature points included in each class, the first feature point distribution map of the target time-frequency image is constructed; the first feature point distribution map is determined as the target feature data in the target time-frequency image .

具体的,电子设备可以根据每个类中包括的特征点的数量,以及每一特征点在上述目标时频图像中的位置,构建特征点的分布图,作为目标时频图像的第一特征点分布图。根据第一特征点分布图,电子设备可以确定上述目标时频图像的目标特征数据,如目标时频图像中特征点的分布情况,每一个类的分布情况以及每个类中包含的特征点的数量。Specifically, the electronic device can construct a distribution map of feature points as the first feature point of the target time-frequency image according to the number of feature points included in each class and the position of each feature point in the above-mentioned target time-frequency image Distribution. According to the first feature point distribution map, the electronic device can determine the target feature data of the target time-frequency image, such as the distribution of feature points in the target time-frequency image, the distribution of each class, and the number of feature points contained in each class. quantity.

另一个可选的实施例中,根据每个类包括的特征点的数量,统计每个类包括的特征点在目标时频图像中出现的概率,并根据每个类对应的概率,构建目标时频图像的第二特征点分布图;将第二特征点分布图确定为目标时频图像中的目标特征数据。In another optional embodiment, according to the number of feature points included in each class, the probability of the feature points included in each class appearing in the target time-frequency image is counted, and according to the probability corresponding to each class, the target time-frequency The second feature point distribution map of the frequency image; the second feature point distribution map is determined as the target feature data in the target time-frequency image.

具体的,电子设备可以根据每个类中包括的特征点的数量,统计每个类中包含特征点在目标时频图像中出现的概率,并根据每个类对应的概率,构建特征点分布图,作为目标时频图像的第二特征点分布图。电子设备可以确定上述目标时频图像的目标特征数据,如目标时频图像中特征点的分布情况,每一个类的分布情况以及每个类中包含的特征点的数量,每个类包含的特征点出现的概率等。Specifically, the electronic device can count the probability of feature points included in each class appearing in the target time-frequency image according to the number of feature points included in each class, and construct a feature point distribution map according to the probability corresponding to each class , as the second feature point distribution map of the target time-frequency image. The electronic device can determine the target feature data of the target time-frequency image, such as the distribution of feature points in the target time-frequency image, the distribution of each class and the number of feature points contained in each class, and the feature points contained in each class. The probability of the point appearing, etc.

通过对目标时频图像进行特征提取,并对提取到的多个特征点进行聚类处理,得到目标特征数据,提高了目标特征数据的准确性,从而提高了信号识别模型确定待识别信号的类别的准确性,提高了信号识别效率。By extracting the features of the target time-frequency image and clustering the extracted multiple feature points, the target feature data is obtained, which improves the accuracy of the target feature data, thereby improving the signal recognition model to determine the category of the signal to be recognized The accuracy improves the signal recognition efficiency.

一个可选的实施例中,在上述步骤S1031,对目标时频图像进行特征提取,得到目标时频图像的多个特征点的过程中,电子设备可以利用SURF算法,提取目标时频图像中的多个特征描述符,得到目标时频图像的多个特征点。具体可以包括以下步骤:In an optional embodiment, in the above step S1031, in the process of performing feature extraction on the target time-frequency image to obtain multiple feature points of the target time-frequency image, the electronic device can use the SURF algorithm to extract the target time-frequency image. Multiple feature descriptors to obtain multiple feature points of the target time-frequency image. Specifically, the following steps may be included:

步骤S1031A,确定目标时频图像对应的积分图像。Step S1031A, determining the integral image corresponding to the target time-frequency image.

在本步骤中,电子设备可以对上述目标时频图像进行积分处理,得到目标时频图像对应的积分图像。In this step, the electronic device may perform integral processing on the target time-frequency image to obtain an integral image corresponding to the target time-frequency image.

在该积分图像中,若以该积分图像的左上角处的像素点为坐标原点,水平向右方向为X轴方向,竖直向下方向为Y轴方向,则坐标值为(x,y)处像素点的积分像素值为该像素点到该积分图像左上角的矩形区域中所有像素点的像素值的和,也就是该像素点与坐标原点构成矩形区域中所有像素点的像素值的和。具体可以表示为:In the integral image, if the pixel point at the upper left corner of the integral image is taken as the coordinate origin, the horizontal direction to the right is the X-axis direction, and the vertical downward direction is the Y-axis direction, then the coordinate value is (x, y) The integral pixel value of the pixel at the point is the sum of the pixel values of all the pixel points in the rectangular area from the pixel point to the upper left corner of the integral image, that is, the sum of the pixel values of all the pixel points in the rectangular area formed by the pixel point and the coordinate origin . Specifically, it can be expressed as:

其中,I(x,y)为像素点(x,y)的积分像素值,I(xi,yj)为像素点(xi,yj)的像素值。Wherein, I(x,y) is the integral pixel value of the pixel point (x,y), and I( xi ,y j ) is the pixel value of the pixel point ( xi ,y j ).

步骤S1031B,对积分图像进行卷积处理,得到目标时频图像对应的尺度空间。其中,尺度空间为在图像在不同解析度下的表现形式。Step S1031B, performing convolution processing on the integral image to obtain the scale space corresponding to the target time-frequency image. Among them, the scale space is the representation form of the image at different resolutions.

一个可选的实施例中,电子设备可以利用箱式滤波器处理上述积分图像,也就是不断改变箱式滤波器的大小,并将改变后的箱式滤波器与积分图像进行卷积,得到目标时频图像的高斯金字塔尺度空间,作为上述目标时频图像的尺度空间。In an optional embodiment, the electronic device can use the box filter to process the above integral image, that is, the size of the box filter is constantly changed, and the changed box filter is convolved with the integral image to obtain the target The Gaussian pyramid scale space of the time-frequency image is used as the scale space of the above target time-frequency image.

在构建上述高斯金字塔尺度空间时,也就是构建目标时频图像的尺度空间时,SURF算法采用黑塞(Hessian)矩阵行列式近似值图像,则像素点(x,y)的积分像素值的Hessian矩阵H(I(x,y))可以表示为:When constructing the above-mentioned Gaussian pyramid scale space, that is, when constructing the scale space of the target time-frequency image, the SURF algorithm uses the Hessian matrix determinant to approximate the image, then the Hessian matrix of the integral pixel value of the pixel point (x, y) H(I(x,y)) can be expressed as:

其中,为积分像素值I在像素点(x,y)处的二阶偏导的结果,I为像素点(x,y)处的积分像素值。in, and is the result of the second-order partial derivative of the integrated pixel value I at the pixel point (x, y), where I is the integrated pixel value at the pixel point (x, y).

SURF算法利用二阶标准高斯函数g(x,y,σ)对上述Hessian矩阵行列式近似值图像进行卷积处理,构建高斯金字塔尺度空间,也就是构建目标时频图像的尺度空间。此时,对于上述像素点(x,y),在尺度为σ的情况下,上述Hessian矩阵可以表示为:The SURF algorithm uses the second-order standard Gaussian function g(x, y, σ) to convolve the above-mentioned Hessian matrix determinant approximation image to construct a Gaussian pyramid scale space, that is, to construct the scale space of the target time-frequency image. At this time, for the above-mentioned pixel point (x, y), in the case of a scale of σ, the above-mentioned Hessian matrix can be expressed as:

其中,Lxx(x,y,σ)、Lxy(x,y,σ)、Lyy(x,y,σ)为在尺度为σ的情况下,二阶标准函数g(x,y,σ)的二阶偏导在像素点(x,y)处卷积的结果。Among them, L xx (x,y,σ), L xy (x,y,σ), L yy (x,y,σ) are the second-order standard function g(x,y, σ) is the result of convolution of the second-order partial derivative at the pixel point (x, y).

步骤S1031C,确定尺度空间中的多个特征点的位置,得到多个特征点。Step S1031C, determining the positions of multiple feature points in the scale space to obtain multiple feature points.

在本步骤中,在尺度空间中选取上述H(x,y,σ)的局部最大值对应像素点的的位置,作为特征点的位置,得到多个特征点。In this step, the position of the pixel corresponding to the local maximum value of the above H(x, y, σ) is selected in the scale space as the position of the feature point to obtain multiple feature points.

以图3-a为例进行说明,图3-a为本发明实施例提供的目标时频图像的尺度空间的一种示意图。其中,图像301为尺度为σi时目标时频图像与上述二阶标准高斯函数卷积后的图像,像素点302为图像301中的一像素点。在图像301的上方以及下方分别存在尺度为σi+1和σi-1对应的目标时频图像与二阶标准高斯函数卷积后的图像(图3-a中并未示出)。在确定图像302中的特征点时,如确定像素点302是否为特征点时,需要确定像素点302处的H(x,y,σ)是否为其相邻的26个像素点(图像301中与像素点302相邻的至多8个像素点,与图像301相邻的图像中与像素点302相邻的至多18个像素点)中最大的。若像素点302的H(x,y,σ)的值是最大的,则可以确定像素点302为特征点。若像素点H(x,y,σ)的值不是最大的,则可以确定像素点302不是特征点。Taking FIG. 3-a as an example for illustration, FIG. 3-a is a schematic diagram of a scale space of a target time-frequency image provided by an embodiment of the present invention. Wherein, the image 301 is an image obtained by convolving the target time-frequency image with the above-mentioned second-order standard Gaussian function when the scale is σ i , and the pixel 302 is a pixel in the image 301 . Above and below the image 301 there are convolved images of the target time-frequency image corresponding to the scales σ i+1 and σ i-1 and the second-order standard Gaussian function (not shown in FIG. 3-a ). When determining the feature points in the image 302, such as determining whether the pixel point 302 is a feature point, it is necessary to determine whether the H (x, y, σ) at the pixel point 302 is its adjacent 26 pixel points (in the image 301 At most 8 pixels adjacent to the pixel 302 , at most 18 pixels adjacent to the pixel 302 in the image adjacent to the image 301 ) is the largest. If the value of H(x, y, σ) of the pixel point 302 is the largest, then the pixel point 302 can be determined as a feature point. If the value of the pixel point H(x, y, σ) is not the largest, it can be determined that the pixel point 302 is not a feature point.

步骤S1031D,确定每一特征点的主方向。Step S1031D, determine the main direction of each feature point.

在本步骤中,为了提高SURF算法对旋转变化的鲁棒性,也就是为了提高目标时频图像发生旋转后提取的特征点的鲁棒性,可以确定每一特征点的主方向。In this step, in order to improve the robustness of the SURF algorithm to rotation changes, that is, to improve the robustness of the feature points extracted after the target time-frequency image is rotated, the main direction of each feature point can be determined.

为方便理解,以图3-b为例进行说明,图3-b为本发明实施例提供的特征点的主方向确定的一种示意图。在以特征点为圆心的圆形区域中,即区域303中,按照预设旋转角度,如α,在区域303中旋转扇形区域304,计算扇形区域304中的所有特征点在水平方向和垂直方向上的哈尔(Haar)小波的响应值,将扇形区域304中Haar小波累加值最大的扇形方向确定为特征点的主方向。其中,扇形区域的角度为预设角度,如60°。在本发明实施例中,对上述Haar小波的响应值的计算方法不作具体说明了。For the convenience of understanding, FIG. 3-b is taken as an example for illustration. FIG. 3-b is a schematic diagram of determining the main direction of a feature point provided by an embodiment of the present invention. In the circular area with the feature point as the center, that is, in the area 303, according to the preset rotation angle, such as α, the fan-shaped area 304 is rotated in the area 303, and the horizontal and vertical directions of all the feature points in the fan-shaped area 304 are calculated. The response value of the Haar (Haar) wavelet on , and the fan-shaped direction with the largest Haar wavelet cumulative value in the fan-shaped area 304 is determined as the main direction of the feature point. Wherein, the angle of the fan-shaped area is a preset angle, such as 60°. In the embodiment of the present invention, the method for calculating the response value of the above-mentioned Haar wavelet is not specifically described.

步骤S1031E,针对每一特征点,根据该特征点的主方向,确定该特征点对应的特征向量,作为特征描述符。Step S1031E, for each feature point, according to the main direction of the feature point, determine the feature vector corresponding to the feature point as a feature descriptor.

在本步骤中,针对每一特征点,根据该特征点的主方向,选取预设大小的矩形区域,并将该矩形区域分割为多个子区域。统计每个子区域中预设数量的像素点在水平方向与垂直方向上Haar小波的响应值。根据水平方向Haar小波的响应值的和,水平方向Haar小波的响应值的绝对值的和,垂直方向Haar小波的响应值的和,以及垂直方向Haar小波的响应值的绝对值的和,生成特征向量,作为该特征点的特征描述符。其中,水平方向和垂直方向为相对该特征点主方向的水平方向和垂直方向。In this step, for each feature point, a rectangular area with a preset size is selected according to the main direction of the feature point, and the rectangular area is divided into multiple sub-areas. Count the response values of the Haar wavelet in the horizontal and vertical directions of the preset number of pixels in each sub-region. According to the sum of the response values of the Haar wavelet in the horizontal direction, the sum of the absolute values of the response values of the Haar wavelet in the horizontal direction, the sum of the response values of the Haar wavelet in the vertical direction, and the sum of the absolute values of the response values of the Haar wavelet in the vertical direction, generate features Vector, as the feature descriptor of the feature point. Wherein, the horizontal direction and the vertical direction are the horizontal direction and the vertical direction relative to the main direction of the feature point.

上述特征点的特征描述符可以表示为:Feature descriptors for the above feature points It can be expressed as:

其中,X为相对特征点的主方向的水平方向,Y为相对特征点的主方向的垂直方向,dX为水平方向的Haar小波的响应值,dY为在垂直方向的Haar小波的响应值,|·|表示绝对值。Among them, X is the horizontal direction relative to the main direction of the feature point, Y is the vertical direction relative to the main direction of the feature point, d X is the response value of the Haar wavelet in the horizontal direction, d Y is the response value of the Haar wavelet in the vertical direction , |·| represents the absolute value.

以多个特征点中的特征点1为例进行说明,特征点1在上述尺度空间中对应的尺度为σ1,可以选取特征点1的主方向上边长为20σ1的正方形区域,作为上述预设大小的矩形区域。对该正方形区域分割为4*4=16个子区域,每个子区域为边长为20σ1/4=5σ1,则在每个子区域中可以包括5*5=25个像素点,也就是上述预设数量为25。针对每个子区域中包括的25个像素点,分别计算每一像素点在特征点1主方向的水平方向与垂直方向上确定该像素点的Haar小波的响应值,进而生成特征点1的特征描述符。Taking feature point 1 among the multiple feature points as an example, the corresponding scale of feature point 1 in the above scale space is σ 1 , and a square area with a side length of 20σ 1 in the main direction of feature point 1 can be selected as the above preset Set the size of the rectangular area. Divide the square area into 4*4=16 sub-areas, each sub-area has a side length of 20σ 1 /4=5σ 1 , then each sub-area can include 5*5=25 pixels, that is, the above-mentioned predetermined Let the quantity be 25. For the 25 pixels included in each sub-region, calculate the response value of each pixel in the horizontal direction and vertical direction of the main direction of feature point 1 to determine the Haar wavelet of the pixel point, and then generate the feature description of feature point 1 symbol.

上述通过采用SURF算法提取目标时频图像中的特征点,除此以外,还可以采用尺度不变特征变换(Scale-invariant feature transform,SIFT)算法,面向快速和旋转简介(oriented FAST and rotated Brief,ORB)算法等预设算法,以及卷积神经网络的预设网络模型,提取目标时频图像中的特征点。在本发明实施例中,对上述特征点提取的算法不作具体限定。The feature points in the target time-frequency image are extracted by using the SURF algorithm. In addition, the scale-invariant feature transform (Scale-invariant feature transform, SIFT) algorithm can also be used for fast and rotated brief introduction (oriented FAST and rotated Brief, ORB) algorithm and other preset algorithms, as well as the preset network model of the convolutional neural network, to extract the feature points in the target time-frequency image. In the embodiment of the present invention, the algorithm for extracting the above feature points is not specifically limited.

一个可选的实施例中,对于上述步骤S1032,采用K-means算法,对多个特征点进行聚类处理,得到K个类,具体可以包括以下步骤。In an optional embodiment, for the above step S1032, the K-means algorithm is used to perform clustering processing on multiple feature points to obtain K clusters, which may specifically include the following steps.

步骤S1032A,从多个特征点中选取K个特征点,作为目标特征点。Step S1032A, selecting K feature points from multiple feature points as target feature points.

在本步骤中,可以按照一定的规则,如随机选取或等间隔选取等规则,从提取到的多个特征点中,选取K个特征点,作为目标特征点。In this step, according to certain rules, such as random selection or equidistant selection, K feature points may be selected from the extracted feature points as target feature points.

在本发明实施例中,每一目标特征点对应一个特征的类,也就是K个目标特征点属于K个类。In the embodiment of the present invention, each target feature point corresponds to a feature class, that is, K target feature points belong to K classes.

步骤S1032B,针对每一其他特征点,确定该其他特征点与每一目标质心之间的距离,并将该其他特征点加入到距离最近的目标特征点所在的类中。Step S1032B, for each other feature point, determine the distance between the other feature point and each target centroid, and add the other feature point to the class where the closest target feature point is located.

在本步骤中,针对除上述目标特征点以外的每一其他特征点,计算该其他特征点与K个目标特征点中每一目标特征点之间的距离。将该其他特征点加入距离该其他特征点距离最近的目标特征点所在的类中。In this step, for each other feature point except the above-mentioned target feature point, the distance between the other feature point and each of the K target feature points is calculated. Add the other feature points to the class of the target feature point closest to the other feature points.

在本发明实施例中,上述其他特征点与目标特征点之间的距离表示的是该其他特征点与目标特征点对应的特征之间的相似度,距离越小,相似度越大;距离越大,相似度越小。另外,上述距离可以为欧式距离、闵可夫斯基距离以及曼哈顿距离等表示,在此,对上述距离不作具体限定。In the embodiment of the present invention, the distance between the above-mentioned other feature points and the target feature point represents the similarity between the other feature points and the features corresponding to the target feature point. The smaller the distance, the greater the similarity; The larger, the smaller the similarity. In addition, the above-mentioned distance may be represented by Euclidean distance, Minkowski distance, Manhattan distance, etc., and the above-mentioned distance is not specifically limited here.

步骤S1032C,根据聚类结果,确定K个类的聚类指标。其中,聚类指标优于衡量K个类的聚类效果。Step S1032C, according to the clustering result, determine the clustering indexes of the K classes. Among them, the clustering index is better than measuring the clustering effect of K classes.

一个可选的实施例中,利用以下公式,计算K个类的平方误差和(Sum of SquaredError,SSE),作为K个类的聚类指标。其中,K个类的聚类指标可以表示为:In an optional embodiment, the following formula is used to calculate the sum of squared errors (Sum of SquaredError, SSE) of the K classes as the clustering index of the K classes. Among them, the clustering index of K classes can be expressed as:

SSE为K个类的聚类指标,也就是上述K个类的平方误差和,k为类的数量,i为第i个,j为第j个,Ai为第i个类,aj为Ai中第j个特征点,dist(aj,Ai)为特征点aj到Ai中目标特征点的距离。SSE is the clustering index of K classes, that is, the sum of square errors of the above K classes, k is the number of classes, i is the i-th, j is the j-th, A i is the i-th class, a j is The jth feature point in A i , dist(a j , A i ) is the distance from the feature point a j to the target feature point in A i .

步骤S1032D,判断聚类指标是否小于预设指标阈值。若否,则执行步骤S1032E。若是,则执行步骤S1032F。Step S1032D, judging whether the clustering index is smaller than a preset index threshold. If not, execute step S1032E. If yes, execute step S1032F.

在本步骤中,将确定的聚类指标与预设指标阈值进行比较,确定聚类指标是否小于预设指标阈值。若聚类指标小于预设指标阈值,则确定完成对多个特征点的聚类处理。若聚类指标不小于预设指标阈值,则确定为完成对多个特征点的聚类处理。In this step, the determined clustering index is compared with a preset index threshold to determine whether the clustering index is smaller than the preset index threshold. If the clustering index is less than the preset index threshold, it is determined that the clustering process on the multiple feature points is completed. If the clustering index is not less than the preset index threshold, it is determined that the clustering process on the multiple feature points is completed.

步骤S1032E,针对K个类中的每一类,重新确定该类的目标特征点,并返回执行步骤S1032B。Step S1032E, for each of the K classes, redetermine the target feature points of the class, and return to step S1032B.

在本步骤中,当上述聚类指标不小于预设指标阈值时,也就是聚类指标大于或等于预设指标阈值时,电子设备可以针对K个类中的每一个类,重新确定该类的目标特征点,并返回执行上述针对每一其他特征点,确定该其他特征点与每一目标质心之间的距离,并将该其他特征点加入到距离最近的目标特征点所在的类中的步骤。In this step, when the above-mentioned clustering index is not less than the preset index threshold, that is, when the clustering index is greater than or equal to the preset index threshold, the electronic device can re-determine the class of each of the K classes. target feature point, and return to perform the above steps for each other feature point, determine the distance between the other feature point and each target centroid, and add the other feature point to the class of the nearest target feature point .

步骤S1032F,结束聚类处理过程,得到目标时频图像的目标特征数据。In step S1032F, the clustering process is ended, and the target feature data of the target time-frequency image is obtained.

在本步骤中,当上述聚类指标小于预设指标阈值时,电子设备可以确定聚类处理已经完成,结束聚类处理过程,确定聚类后的K个类为目标时频图像的目标特征数据。In this step, when the above-mentioned clustering index is less than the preset index threshold, the electronic device can determine that the clustering process has been completed, end the clustering process, and determine that the clustered K classes are the target feature data of the target time-frequency image .

上述对提取到的多个特征点进行聚类处理时,采用的是K-means算法。除此以外,还可以采用其他聚类算法,如基于密度的噪声应用空间聚类(Density-Based SpatialClustering of Applications with Noise,DBSCAN)算法等,在本发明实施例中,对上述聚类处理所采用的聚类算法不作具体限定。The K-means algorithm is used when clustering the extracted multiple feature points. In addition, other clustering algorithms can also be used, such as the Density-Based SpatialClustering of Applications with Noise (DBSCAN) algorithm based on the density of the noise application space clustering (Density-Based SpatialClustering of Applications with Noise, DBSCAN) algorithm, etc. The clustering algorithm is not specifically limited.

通过对提取到的目标时频图像中的特征点进行聚类处理,得到目标时频图像的目标特征数据,使得目标特征数据分类清楚、准确、更具代表性,提高了目标特征数据的准确性,从而提高了信号识别模型识别待识别信号的类别的准确性,提高了信号识别效率。By clustering the feature points in the extracted target time-frequency image, the target feature data of the target time-frequency image is obtained, so that the classification of the target feature data is clear, accurate, and more representative, and the accuracy of the target feature data is improved. , thereby improving the accuracy of the signal identification model in identifying the category of the signal to be identified, and improving the efficiency of signal identification.

综上所述,通过本发明实施例提供的方法,根据不同信号对应的时频图像中的特征数据的不同,利用训练好的信号识别模型,确定信号的类型,实现利用一台设备识别出不同类型的信号,不再需要为每一类型的信号单独配备对应的模块,降低了设备的成本,提高了信号识别效率。To sum up, through the method provided by the embodiment of the present invention, according to the difference in the feature data in the time-frequency images corresponding to different signals, the trained signal recognition model is used to determine the type of the signal, so that one device can be used to identify different different types of signals, it is no longer necessary to separately equip corresponding modules for each type of signal, which reduces the cost of equipment and improves the efficiency of signal recognition.

一个可选的实施例中,对于上述信号识别模型,本发明实施例还提供了一种信号识别模型的训练方法。具体如图4所示,图4为本发明实施例提供的信号识别模型的训练方法的一种流程示意图。该方法包括以下步骤。In an optional embodiment, for the above-mentioned signal recognition model, the embodiment of the present invention further provides a method for training the signal recognition model. Specifically, as shown in FIG. 4 , FIG. 4 is a schematic flowchart of a method for training a signal recognition model provided by an embodiment of the present invention. The method includes the following steps.

步骤S401,获取预设训练集。Step S401, obtaining a preset training set.

在本步骤中,获取上述预设训练集,也就是预设频段内多个样本信号对应样本时频图像的样本特征数据,以及每一样本信号的样本类型。In this step, the above-mentioned preset training set is obtained, that is, the sample feature data of the sample time-frequency images corresponding to the multiple sample signals in the preset frequency band, and the sample type of each sample signal.

具体的,在预设频段内获取多个样本信号,以及每一样本信号的样本类型。确定获取到的多个样本信号对应的样本时频图像,并提取样本时频图像中的样本特征数据。Specifically, a plurality of sample signals and a sample type of each sample signal are acquired within a preset frequency band. The sample time-frequency images corresponding to the acquired multiple sample signals are determined, and sample characteristic data in the sample time-frequency images are extracted.

在获取上述多个样本信号,以及每一样本信号的样本类型时,可以在预设频段内分别发送每一样本类型的样本信号,接收该样本信号。例如,样本信号为上述蓝牙信号、Wi-Fi信号和ZigBee信号,可以在预设频段内依次发送并接收蓝牙信号、Wi-Fi信号和ZigBee信号,将接收到的信号作为样本信号,并标记每一样本信号的样本类型。另外,关于样本信号的样本时频图像确定以及样本特征数据的提取方法,可以参照上述目标时频图像的确定和目标特征数据的提取方法,在此不作具体说明了。When the above-mentioned multiple sample signals and the sample type of each sample signal are acquired, the sample signal of each sample type may be respectively sent in a preset frequency band, and the sample signal is received. For example, the sample signal is the above-mentioned Bluetooth signal, Wi-Fi signal and ZigBee signal, and the Bluetooth signal, Wi-Fi signal and ZigBee signal can be sent and received sequentially in the preset frequency band, and the received signal is used as the sample signal, and each The sample type of a sample signal. In addition, for the determination of the sample time-frequency image of the sample signal and the method for extracting the sample feature data, reference may be made to the above-mentioned method for determining the target time-frequency image and extracting the target feature data, which will not be described in detail here.

对于上述预设训练集中可以包括不同类别的样本信号的样本时频图像。除此以外,预设训练集中还可以包括多个相同类型的样本信号的样本时频图像。以图5为例进行说明。图5-a、图5-b和图5-c均为本发明实施例提供的样本信号为蓝牙信号对应的样本时频图像。虽然图5-a、图5-b和图5-c都是蓝牙信号对应的样本时频图像,但是三者之间存在明显的差异,如图5-a与图5-b相比,蓝牙信号的频率分量的幅值在样本时频图像中的分布位置明显不同,图5-a和图5-b与图5-c相比,图5-c的样本时频图像的频率分辨率与时间分辨率与图5-a和图5-b对应的样本时频图像的频率分辨率与时间分辨率明显不同。The above preset training set may include sample time-frequency images of different categories of sample signals. In addition, the preset training set may also include multiple sample time-frequency images of the same type of sample signal. Take Figure 5 as an example for illustration. Fig. 5-a, Fig. 5-b and Fig. 5-c are all sample time-frequency images corresponding to the sample signal provided by the embodiment of the present invention being a Bluetooth signal. Although Figure 5-a, Figure 5-b, and Figure 5-c are all sample time-frequency images corresponding to Bluetooth signals, there are obvious differences among the three. Compared with Figure 5-a and Figure 5-b, Bluetooth The distribution position of the amplitude of the frequency component of the signal in the sample time-frequency image is obviously different. Comparing Figure 5-a and Figure 5-b with Figure 5-c, the frequency resolution of the sample time-frequency image in Figure 5-c is the same as Time resolution The frequency resolution of the sample time-frequency images corresponding to Figure 5-a and Figure 5-b is significantly different from the time resolution.

在本发明实施例中,对上述预设训练集中的数据不作具体限定。In the embodiment of the present invention, there is no specific limitation on the data in the above-mentioned preset training set.

步骤S402,将多个样本特征数据分别输入预设的机器学习模型,确定每一样本信号的类型。In step S402, a plurality of sample feature data are respectively input into a preset machine learning model to determine the type of each sample signal.

在本步骤中,将上述预设训练集中的多个样本特征数据分别输入预设的机器学习模型,得到每一样本信号对应的类型。In this step, a plurality of sample feature data in the above-mentioned preset training set are respectively input into a preset machine learning model to obtain the corresponding type of each sample signal.

在本发明实施例中,上述机器学习模型可以为神经网络模型或分类器等,如卷积神经网络、支持向量机(Support Vector Machine,SVM)。在此,对上述机器学习模型不作具体限定。In the embodiment of the present invention, the above machine learning model may be a neural network model or a classifier, such as a convolutional neural network and a support vector machine (Support Vector Machine, SVM). Here, the above machine learning model is not specifically limited.

步骤S403,根据确定的每一样本信号的类型和每一样本信号的样本类型,计算损失值。Step S403, calculating a loss value according to the determined type of each sample signal and the sample type of each sample signal.

在本步骤中,根据上述机器学习模型输出的每一样本信号的类型,以及预设训练集中每一样本信号的样本类型,计算损失值。In this step, the loss value is calculated according to the type of each sample signal output by the above machine learning model and the sample type of each sample signal in the preset training set.

一个实施例中,针对每一样本信号,可以将该样本信号对应的机器学习模型输出的类型与该样本信号的样本类型进行比较,确定机器学习模型输出的类型是否正确。统计机器学习模型对样本信号的类型识别的错误率。In one embodiment, for each sample signal, the output type of the machine learning model corresponding to the sample signal may be compared with the sample type of the sample signal to determine whether the output type of the machine learning model is correct. The error rate of the type recognition of the sample signal by the statistical machine learning model.

关于上述损失值也可以是其他数值。例如,损失值可以为机器学习模型对样本信号的类型识别的正确率的倒数。再例如,损失值也可以表示为上述SSE,如若机器学习模型输出的类别与样本信号的样本类别相同,则记为0;若机器学习模型输出的类别与样本信号的样本类别不相同,则记为1。将多个样本信号对应的SSE作为损失值。在本发明实施例中,对上述损失值不作具体限定。Other numerical values are also possible with respect to the above-mentioned loss value. For example, the loss value may be the reciprocal of the correct rate of the machine learning model identifying the type of the sample signal. For another example, the loss value can also be expressed as the above SSE. If the category output by the machine learning model is the same as the sample category of the sample signal, it is recorded as 0; if the category output by the machine learning model is different from the sample category of the sample signal, record is 1. The SSE corresponding to multiple sample signals is used as the loss value. In the embodiment of the present invention, the above loss value is not specifically limited.

步骤S404,判断损失值是否小于预设阈值。若否,则执行步骤S405。若是,则执行步骤S406。Step S404, judging whether the loss value is smaller than a preset threshold. If not, execute step S405. If yes, execute step S406.

在本步骤中,根据上述损失值,确定机器学习模型是否收敛。具体的,将上述计算得到的损失值与预设阈值进行比较,确定损失值是否小于预设阈值,进而确定机器学习模型是否收敛。当损失值小于预设阈值时,电子设备可以确定机器学习模型收敛。当损失值不小于预设阈值时,也就是大于或等于预设阈值时,电子设备可以确定机器学习模型未收敛。In this step, according to the above loss value, it is determined whether the machine learning model is converged. Specifically, the loss value calculated above is compared with a preset threshold to determine whether the loss value is smaller than the preset threshold, and then determine whether the machine learning model converges. When the loss value is less than the preset threshold, the electronic device can determine that the machine learning model is converged. When the loss value is not less than the preset threshold, that is, greater than or equal to the preset threshold, the electronic device may determine that the machine learning model has not converged.

以上述错误率为例进行说明,若错误率的预设阈值为2%。某一次训练时,计算得到的损失值为2.1%,2.1%>2%,则可以确定机器学习模型未收敛。另一次训练时,计算得到的损失值为1.9%,1.9%<2%,则可以确定机器学习模型收敛。Taking the above error rate as an example for illustration, if the preset threshold of the error rate is 2%. During a certain training, if the calculated loss value is 2.1%, if 2.1%>2%, it can be determined that the machine learning model has not converged. During another training, the calculated loss value is 1.9%, and if 1.9%<2%, it can be determined that the machine learning model is converged.

在本发明实施例中,对上述预设阈值不作具体限定。In this embodiment of the present invention, the foregoing preset threshold is not specifically limited.

步骤S405,调整预设的机器学习模型的参数,并返回执行上述步骤步骤S402。Step S405, adjust the parameters of the preset machine learning model, and return to execute the above step S402.

在本步骤中,当上述损失值不小于预设阈值时,也就是机器学习模型未收敛时可以调整上述机器学习模型的参数,并返回执行上述步骤S402,也就是返回执行上述将多个样本特征数据分别输入预设的机器学习模型,确定每一样本信号的类型的步骤。In this step, when the above-mentioned loss value is not less than the preset threshold, that is, when the machine learning model has not converged, the parameters of the above-mentioned machine learning model can be adjusted, and return to the above-mentioned step S402, that is, return to the above-mentioned processing of multiple sample features The data are respectively input into a preset machine learning model to determine the type of each sample signal.

上述调整机器学习模型的参数的方法包括但不限于梯度下降法、反向调节法等,在本发明实施例中,对机器学习模型中参数的调整方法不作具体限定。The methods for adjusting the parameters of the machine learning model include but are not limited to the gradient descent method, the reverse adjustment method, etc. In the embodiment of the present invention, the method for adjusting the parameters of the machine learning model is not specifically limited.

步骤S406,将预设的机器学习模型确定为信号识别模型。Step S406, determining a preset machine learning model as a signal recognition model.

在本步骤中,当上述损失值小于预设阈值时,也就是机器学习模型收敛时,可以将预设的机器学习模型确定为上述信号识别模型。此时,该机器学习模型为上述步骤S104中的预先训练好的信号识别模型。In this step, when the aforementioned loss value is less than a preset threshold, that is, when the machine learning model converges, the preset machine learning model may be determined as the aforementioned signal recognition model. At this time, the machine learning model is the pre-trained signal recognition model in the above step S104.

通过对机器学习模型的训练可以得到训练好的信号识别模型,利用训练好的信号识别模型可以准确的识别出待识别信号的类别,实现利用一台设备识别出不同类型的信号,不再需要为每一类型的信号单独配备对应的模块,降低了设备的成本,提高了信号识别效率。Through the training of the machine learning model, a trained signal recognition model can be obtained. Using the trained signal recognition model, the type of the signal to be recognized can be accurately recognized, and different types of signals can be recognized by using one device. Each type of signal is individually equipped with a corresponding module, which reduces the cost of the equipment and improves the efficiency of signal identification.

此外,在现有的对射频信号进行识别时,电子设备除了根据通信协议的不同采用不同的通信模块识别射频信号以外,还可以对不同类型的射频信号进行能量检测,通过设定的能量阈值,识别每一射频信号。但是由于判决门限的确定较为困难,也就是能量阈值的较难确定,信噪比对能量检测检测结果的影响较大,以及不同类型的射频信号在同一频段可能出现重叠等原因,使得采用能量检测的方法识别射频信号的识别效果较差。与现有的采用能量检测方法识别射频信号相比,本申请实施例通过训练机器学习模型,得到信号识别模型,采用训练好的信号识别模型对确定待识别信号的类别的过程中,并不存在判决门限确定困难,信噪比以及信号重叠对信号识别结果影响较大的问题,这使得信号识别效果相对较好。In addition, in the existing identification of radio frequency signals, in addition to using different communication modules to identify radio frequency signals according to different communication protocols, electronic equipment can also perform energy detection on different types of radio frequency signals. Through the set energy threshold, Identify each RF signal. However, because it is difficult to determine the decision threshold, that is, the energy threshold is difficult to determine, the signal-to-noise ratio has a greater impact on the detection results of energy detection, and different types of radio frequency signals may overlap in the same frequency band, so energy detection is used. The identification effect of the method for identifying radio frequency signals is poor. Compared with the existing energy detection method for identifying radio frequency signals, the embodiment of the present application obtains a signal identification model by training a machine learning model, and there is no It is difficult to determine the decision threshold, and the signal-to-noise ratio and signal overlap have a great influence on the signal recognition results, which makes the signal recognition effect relatively good.

基于同一种发明构思,根据上述本发明实施例提供的信号识别方法,本发明实施例还提供了一种信号识别装置。具体如图6所示,图6为本发明实施例提供的信号识别装置的一种结构示意图。该装置包括以下模块。Based on the same inventive concept, according to the signal identification method provided by the above-mentioned embodiment of the present invention, the embodiment of the present invention also provides a signal identification device. Specifically, as shown in FIG. 6 , FIG. 6 is a schematic structural diagram of a signal identification device provided by an embodiment of the present invention. The device includes the following modules.

第一获取模块601,用于获取预设频段内的待识别信号。The first acquiring module 601 is configured to acquire signals to be identified within a preset frequency band.

第一确定模块602,用于确定待识别信号的目标时频图像。The first determining module 602 is configured to determine a target time-frequency image of the signal to be identified.

提取模块603,用于提取目标时频图像的目标特征数据。An extraction module 603, configured to extract target feature data of the target time-frequency image.

第二确定模块604,用于将目标特征数据输入预先训练好的信号识别模型,确定待识别信号的类型,其中,信号识别模型是通过预设训练集训练得到的模型,预设训练集包括预设频段内多个样本信号对应的样本时频图像的样本特征数据,以及每一样本信号的样本类型。The second determining module 604 is configured to input target feature data into a pre-trained signal recognition model to determine the type of the signal to be recognized, wherein the signal recognition model is a model obtained through training a preset training set, and the preset training set includes a preset The sample feature data of the sample time-frequency images corresponding to the multiple sample signals in the frequency band, and the sample type of each sample signal are set.

可选的,上述第一确定模块602,具体可以用于利用以下短时傅里叶变换公式,得到待识别信号的目标时频图像:Optionally, the above-mentioned first determination module 602 can specifically be used to obtain the target time-frequency image of the signal to be identified by using the following short-time Fourier transform formula:

Gf(w,u)=∫f(t)g(t-u)e-jwtdtG f (w,u)=∫f(t)g(tu)e -jwt dt

其中,w为待识别信号的角频率,f为频率,t为时间t,u为预设时间窗口长度u,函数Gf(w,u)的值为频率分量的幅值,∫·dt为对t的积分操作,函数f(t)为待识别信号,函数g(t-u)为预设窗口函数,函数e-jwt为复变函数,e为自然常数,j为虚数单位。Among them, w is the angular frequency of the signal to be identified, f is the frequency, t is the time t, u is the preset time window length u, the value of the function G f (w, u) is the amplitude of the frequency component, ∫ dt is For the integral operation of t, the function f(t) is the signal to be identified, the function g(tu) is the preset window function, the function e -jwt is a complex variable function, e is a natural constant, and j is an imaginary unit.

可选的,上述提取模块603,可以包括:Optionally, the above extraction module 603 may include:

提取子模块,用于对目标时频图像进行特征提取,得到目标时频图像的多个特征点。The extraction sub-module is used to perform feature extraction on the target time-frequency image to obtain multiple feature points of the target time-frequency image.

聚类子模块,用于采用K-means聚类算法,对多个特征点进行聚类处理,得到K个类。The clustering sub-module is used to use the K-means clustering algorithm to cluster multiple feature points to obtain K clusters.

第一确定子模块,用于确定K个类中每个类包括的特征点的数量。The first determining submodule is used to determine the number of feature points included in each of the K classes.

第二确定子模块,用于根据每个类包括的特征点的数量,确定目标时频图像中的目标特征数据。The second determination sub-module is configured to determine the target feature data in the target time-frequency image according to the number of feature points included in each class.

可选的,上述提取子模块,具体可以用于利用SURF算法,提取目标时频图像中的多个特征描述符,得到目标时频图像的多个特征点。Optionally, the above extraction sub-module may specifically be used to extract multiple feature descriptors in the target time-frequency image by using the SURF algorithm to obtain multiple feature points of the target time-frequency image.

可选的,上述第二确定子模块,具体可以用于根据每个类包括的特征点的数量,构建目标时频图像的第一特征点分布图;将第一特征点分布图确定为目标时频图像中的目标特征数据;或根据每个类包括的特征点的数量,统计每个类包括的特征点在目标时频图像中出现的概率,并根据每个类对应的概率,构建目标时频图像的第二特征点分布图;将第二特征点分布图确定为目标时频图像中的目标特征数据。Optionally, the above-mentioned second determining submodule can be specifically used to construct the first feature point distribution map of the target time-frequency image according to the number of feature points included in each class; when determining the first feature point distribution map as the target The target feature data in the frequency image; or according to the number of feature points included in each class, the probability of the feature points included in each class appearing in the target time-frequency image is counted, and according to the corresponding probability of each class, the target time The second feature point distribution map of the frequency image; the second feature point distribution map is determined as the target feature data in the target time-frequency image.

可选的,上述信号识别装置还可以包括:Optionally, the above-mentioned signal identification device may also include:

第二获取模块,用于获取预设训练集。The second obtaining module is used to obtain a preset training set.

第三确定模块,用于将多个样本特征数据分别输入预设的机器学习模型,确定每一样本信号的类型。The third determination module is used to respectively input a plurality of sample feature data into a preset machine learning model to determine the type of each sample signal.

计算模块,用于根据确定的每一样本信号的类型和每一样本信号的样本类型,计算损失值。The calculation module is used to calculate the loss value according to the determined type of each sample signal and the sample type of each sample signal.

判断模块,用于判断损失值是否小于预设阈值。A judging module, configured to judge whether the loss value is smaller than a preset threshold.

调整模块,用于在判断模块的判断结果为否时,调整预设的机器学习模型的参数,返回执行将多个样本特征数据分别输入预设的机器学习模型,确定每一样本信号的类型的步骤。The adjustment module is used to adjust the parameters of the preset machine learning model when the judgment result of the judging module is No, and return to perform the process of inputting a plurality of sample feature data into the preset machine learning model respectively to determine the type of each sample signal step.

第四确定模块,用于在判断模块的判断为结果为是时,将预设的机器学习模型确定为信号识别模型。The fourth determination module is configured to determine the preset machine learning model as the signal recognition model when the judgment result of the judging module is yes.

通过本发明实施例提供的装置,根据不同信号对应的时频图像中的特征数据的不同,利用训练好的信号识别模型,确定信号的类型,实现利用一台设备识别出不同类型的信号,不再需要为每一类型的信号单独配备对应的模块,降低了设备的成本,提高了信号识别效率。Through the device provided by the embodiment of the present invention, according to the difference in the feature data in the time-frequency images corresponding to different signals, the trained signal recognition model is used to determine the type of the signal, so that different types of signals can be recognized by one device, without Furthermore, it is necessary to separately equip corresponding modules for each type of signal, which reduces the cost of equipment and improves the efficiency of signal recognition.

基于同一种发明构思,根据上述本发明实施例提供的信号识别方法,本发明实施例还提供了一种电子设备,如图7所示,图7为本发明实施例提供的电子设备的一种结构示意图。该电子设备包括处理器701、通信接口702、存储器703和通信总线704,其中,处理器701,通信接口702,存储器703通过通信总线704完成相互间的通信;Based on the same inventive concept, according to the signal identification method provided by the above-mentioned embodiments of the present invention, the embodiments of the present invention also provide an electronic device, as shown in FIG. 7 , which is a kind of electronic device provided by the embodiments of the present invention. Schematic. The electronic device includes a processor 701, a communication interface 702, a memory 703, and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 complete mutual communication through the communication bus 704;

存储器703,用于存放计算机程序;Memory 703, used to store computer programs;

处理器701,用于执行存储器703上所存放的程序时,实现如下步骤:When the processor 701 is used to execute the program stored on the memory 703, the following steps are implemented:

获取预设频段内的待识别信号;Obtain the signal to be identified within the preset frequency band;

确定待识别信号的目标时频图像;Determine the target time-frequency image of the signal to be identified;

提取目标时频图像的目标特征数据;Extracting target feature data of the target time-frequency image;

将目标特征数据输入预先训练好的信号识别模型,确定待识别信号的类型,其中,信号识别模型是通过预设训练集训练得到的模型,预设训练集包括预设频段内多个样本信号对应的样本时频图像的样本特征数据,以及每一样本信号的样本类型。Input the target feature data into the pre-trained signal recognition model to determine the type of the signal to be recognized, wherein the signal recognition model is a model obtained through the training of the preset training set, and the preset training set includes multiple sample signals corresponding to the preset frequency band The sample feature data of the sample time-frequency image of , and the sample type of each sample signal.

通过本发明实施例提供的电子设备,根据不同信号对应的时频图像中的特征数据的不同,利用训练好的信号识别模型,确定信号的类型,实现利用一台设备识别出不同类型的信号,不再需要为每一类型的信号单独配备对应的通信模块,降低了设备的成本,提高了信号识别效率。The electronic device provided by the embodiment of the present invention uses the trained signal recognition model to determine the type of the signal according to the difference in the characteristic data in the time-frequency image corresponding to different signals, so that different types of signals can be recognized by one device. It is no longer necessary to separately equip a corresponding communication module for each type of signal, which reduces the cost of equipment and improves the efficiency of signal identification.

上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral ComponentInterconnect,PCI)总线或扩展工业标准结构(Extended Industry StandardArchitecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus or the like. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

通信接口用于上述电子设备与其他设备之间的通信。The communication interface is used for communication between the electronic device and other devices.

存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include a random access memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located far away from the aforementioned processor.

上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital SignalProcessing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。Above-mentioned processor can be general-purpose processor, comprises central processing unit (Central Processing Unit, CPU), network processor (Network Processor, NP) etc.; Can also be Digital Signal Processor (Digital Signal Processing, DSP), ASIC (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

基于同一种发明构思,根据上述本发明实施例提供的信号识别方法,本发明实施例还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一信号识别方法的步骤。Based on the same inventive concept, according to the signal identification method provided by the above-mentioned embodiments of the present invention, the embodiments of the present invention also provide a computer-readable storage medium, in which a computer program is stored in the computer-readable storage medium, and the computer program is The processor implements the steps of any one of the above-mentioned signal identification methods when executed.

基于同一种发明构思,根据上述本发明实施例提供的信号识别方法,本发明实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中任一信号识别方法。Based on the same inventive concept, according to the signal recognition method provided by the above-mentioned embodiments of the present invention, the embodiments of the present invention also provide a computer program product containing instructions, which, when run on a computer, cause the computer to execute any of the above-mentioned embodiments. A signal identification method.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present invention will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a Solid State Disk (SSD)).

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or order between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、电子设备、计算机可读存储介质及计算机程序产品等实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for embodiments such as devices, electronic equipment, computer-readable storage media, and computer program products, since they are basically similar to the method embodiments, the description is relatively simple. For relevant information, please refer to the part of the description of the method embodiments. .

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.

Claims (10)

1.一种信号识别方法,其特征在于,包括:1. A signal identification method, characterized in that, comprising: 获取预设频段内的待识别信号;Obtain the signal to be identified within the preset frequency band; 确定所述待识别信号的目标时频图像;determining a target time-frequency image of the signal to be identified; 提取所述目标时频图像的目标特征数据;Extracting target feature data of the target time-frequency image; 将所述目标特征数据输入预先训练好的信号识别模型,确定所述待识别信号的类型,其中,所述信号识别模型是通过预设训练集训练得到的模型,所述预设训练集包括所述预设频段内多个样本信号对应的样本时频图像的样本特征数据,以及每一样本信号的样本类型。Inputting the target feature data into a pre-trained signal recognition model to determine the type of the signal to be recognized, wherein the signal recognition model is a model obtained by training a preset training set, and the preset training set includes the The sample characteristic data of the sample time-frequency images corresponding to the multiple sample signals in the preset frequency band, and the sample type of each sample signal. 2.根据权利要求1所述的方法,其特征在于,所述确定所述待识别信号的目标时频图像的步骤,包括:2. The method according to claim 1, wherein the step of determining the target time-frequency image of the signal to be identified comprises: 利用以下短时傅里叶变换公式,得到所述待识别信号的目标时频图像:Using the following short-time Fourier transform formula, the target time-frequency image of the signal to be identified is obtained: Gf(w,u)=∫f(t)g(t-u)e-jwtdtG f (w,u)=∫f(t)g(tu)e -jwt dt 其中,w为所述待识别信号的角频率,f为频率,t为时间t,u为预设时间窗口长度u,函数Gf(w,u)的值为频率分量的幅值,∫·dt为对t的积分操作,函数f(t)为所述待识别信号,函数g(t-u)为预设窗口函数,函数e-jwt为复变函数,e为自然常数,j为虚数单位。Wherein, w is the angular frequency of the signal to be identified, f is the frequency, t is the time t, u is the preset time window length u, the value of the function G f (w, u) is the amplitude of the frequency component, ∫. dt is an integral operation on t, the function f(t) is the signal to be identified, the function g(tu) is a preset window function, the function e -jwt is a complex variable function, e is a natural constant, and j is an imaginary number unit. 3.根据权利要求1所述的方法,其特征在于,所述提取所述目标时频图像中的目标特征数据的步骤,包括:3. The method according to claim 1, wherein the step of extracting the target feature data in the target time-frequency image comprises: 对所述目标时频图像进行特征提取,得到所述目标时频图像的多个特征点;performing feature extraction on the target time-frequency image to obtain a plurality of feature points of the target time-frequency image; 采用K-means聚类算法,对所述多个特征点进行聚类处理,得到K个类;Using the K-means clustering algorithm, the plurality of feature points are clustered to obtain K classes; 确定K个类中每个类包括的特征点的数量;Determine the number of feature points included in each of the K classes; 根据每个类包括的特征点的数量,确定所述目标时频图像中的目标特征数据。According to the number of feature points included in each class, target feature data in the target time-frequency image is determined. 4.根据权利要求3所述的方法,其特征在于,所述对所述目标时频图像进行特征提取,得到所述目标时频图像的多个特征点的步骤,包括:4. The method according to claim 3, wherein the step of performing feature extraction on the target time-frequency image to obtain a plurality of feature points of the target time-frequency image comprises: 利用加速稳健特征SURF算法,提取所述目标时频图像中的多个特征描述符,得到所述目标时频图像的多个特征点。The accelerated robust feature SURF algorithm is used to extract multiple feature descriptors in the target time-frequency image to obtain multiple feature points of the target time-frequency image. 5.根据权利要求3所述的方法,其特征在于,所述根据每个类包括的特征点的数量,确定所述目标时频图像中的目标特征数据的步骤,包括:5. method according to claim 3, is characterized in that, described according to the quantity of the characteristic point that each class comprises, the step of determining the target feature data in the target time-frequency image comprises: 根据每个类包括的特征点的数量,构建所述目标时频图像的第一特征点分布图;将所述第一特征点分布图确定为所述目标时频图像中的目标特征数据;或,Constructing a first feature point distribution map of the target time-frequency image according to the number of feature points included in each class; determining the first feature point distribution map as target feature data in the target time-frequency image; or , 根据每个类包括的特征点的数量,统计每个类包括的特征点在所述目标时频图像中出现的概率,并根据每个类对应的概率,构建所述目标时频图像的第二特征点分布图;将所述第二特征点分布图确定为所述目标时频图像中的目标特征数据。According to the number of feature points included in each class, the probability of the feature points included in each class appearing in the target time-frequency image is counted, and according to the probability corresponding to each class, the second part of the target time-frequency image is constructed. A feature point distribution map: determining the second feature point distribution map as target feature data in the target time-frequency image. 6.根据权利要求1所述的方法,其特征在于,所述信号识别模型采用如下步骤训练得到,包括:6. The method according to claim 1, wherein the signal recognition model is trained through the following steps, comprising: 获取所述预设训练集;Obtain the preset training set; 将多个样本特征数据分别输入预设的机器学习模型,确定每一样本信号的类型;Input multiple sample feature data into the preset machine learning model to determine the type of each sample signal; 根据确定的每一样本信号的类型和每一样本信号的样本类型,计算损失值;calculating a loss value according to the determined type of each sample signal and the sample type of each sample signal; 判断损失值是否小于预设阈值;Determine whether the loss value is less than a preset threshold; 若否,则调整预设的机器学习模型的参数,返回执行所述将多个样本特征数据分别输入预设的机器学习模型,确定每一样本信号的类型的步骤;If not, then adjust the parameters of the preset machine learning model, return to perform the step of inputting a plurality of sample characteristic data into the preset machine learning model respectively, and determine the type of each sample signal; 若是,则将预设的机器学习模型确定为信号识别模型。If yes, the preset machine learning model is determined as the signal recognition model. 7.一种信号识别装置,其特征在于,包括:7. A signal identification device, characterized in that it comprises: 第一获取模块,用于获取预设频段内的待识别信号;The first acquisition module is used to acquire the signal to be identified in the preset frequency band; 第一确定模块,用于确定所述待识别信号的目标时频图像;A first determination module, configured to determine the target time-frequency image of the signal to be identified; 提取模块,用于提取所述目标时频图像的目标特征数据;An extraction module, configured to extract target feature data of the target time-frequency image; 第二确定模块,用于将所述目标特征数据输入预先训练好的信号识别模型,确定所述待识别信号的类型,其中,所述信号识别模型是通过预设训练集训练得到的模型,所述预设训练集包括所述预设频段内多个样本信号对应的样本时频图像的样本特征数据,以及每一样本信号的样本类型。The second determination module is configured to input the target feature data into a pre-trained signal recognition model to determine the type of the signal to be recognized, wherein the signal recognition model is a model obtained by training a preset training set, so The preset training set includes sample feature data of sample time-frequency images corresponding to a plurality of sample signals in the preset frequency band, and a sample type of each sample signal. 8.根据权利要求7所述的装置,其特征在于,所述第一确定模块,具体用于利用以下短时傅里叶变换公式,得到所述待识别信号的目标时频图像:8. The device according to claim 7, wherein the first determination module is specifically configured to use the following short-time Fourier transform formula to obtain the target time-frequency image of the signal to be identified: Gf(w,u)=∫f(t)g(t-u)e-jwtdtG f (w,u)=∫f(t)g(tu)e -jwt dt 其中,w为所述待识别信号的角频率,f为频率,t为时间t,u为预设时间窗口长度u,函数Gf(w,u)的值为频率分量的幅值,∫·dt为对t的积分操作,函数f(t)为所述待识别信号,函数g(t-u)为预设窗口函数,函数e-jwt为复变函数,e为自然常数,j为虚数单位。Wherein, w is the angular frequency of the signal to be identified, f is the frequency, t is the time t, u is the preset time window length u, the value of the function G f (w, u) is the amplitude of the frequency component, ∫. dt is an integral operation on t, the function f(t) is the signal to be identified, the function g(tu) is a preset window function, the function e -jwt is a complex variable function, e is a natural constant, and j is an imaginary number unit. 9.根据权利要求7所述的装置,其特征在于,所述提取模块,包括:9. The device according to claim 7, wherein the extraction module comprises: 提取子模块,用于对所述目标时频图像进行特征提取,得到所述目标时频图像的多个特征点;The extraction submodule is used to perform feature extraction on the target time-frequency image to obtain a plurality of feature points of the target time-frequency image; 聚类子模块,用于采用K-means聚类算法,对所述多个特征点进行聚类处理,得到K个类;The clustering submodule is used to adopt the K-means clustering algorithm to perform clustering processing on the plurality of feature points to obtain K classes; 第一确定子模块,用于确定K个类中每个类包括的特征点的数量;The first determination submodule is used to determine the quantity of feature points included in each class in the K classes; 第二确定子模块,用于根据每个类包括的特征点的数量,确定所述目标时频图像中的目标特征数据。The second determination submodule is configured to determine the target feature data in the target time-frequency image according to the number of feature points included in each class. 10.根据权利要求9所述的装置,其特征在于,所述提取子模块,具体用于利用加速稳健特征SURF算法,提取所述目标时频图像中的多个特征描述符,得到所述目标时频图像的多个特征点。10. The device according to claim 9, wherein the extraction sub-module is specifically configured to use the accelerated robust feature SURF algorithm to extract multiple feature descriptors in the target time-frequency image to obtain the target Multiple feature points of a time-frequency image.
CN201910371624.7A 2019-05-06 2019-05-06 A kind of signal recognition method and device Pending CN110097011A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910371624.7A CN110097011A (en) 2019-05-06 2019-05-06 A kind of signal recognition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910371624.7A CN110097011A (en) 2019-05-06 2019-05-06 A kind of signal recognition method and device

Publications (1)

Publication Number Publication Date
CN110097011A true CN110097011A (en) 2019-08-06

Family

ID=67446963

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910371624.7A Pending CN110097011A (en) 2019-05-06 2019-05-06 A kind of signal recognition method and device

Country Status (1)

Country Link
CN (1) CN110097011A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111310700A (en) * 2020-02-27 2020-06-19 电子科技大学 An Intermediate Frequency Sampling Sequence Processing Method for Fingerprint Feature Recognition of Radiation Sources
CN111414847A (en) * 2020-03-18 2020-07-14 中电科海洋信息技术研究院有限公司 Frogman identification method, device, equipment and medium
CN111464468A (en) * 2020-03-02 2020-07-28 南方科技大学 Signal modulation mode identification method, device, equipment and readable storage medium
CN112188459A (en) * 2020-09-29 2021-01-05 普联技术有限公司 Signal identification method, device and equipment
CN113065387A (en) * 2021-02-03 2021-07-02 中国船级社 Wavelet denoising method and system for pump system
CN114114363A (en) * 2021-11-08 2022-03-01 北京邮电大学 Signal of Opportunity Perception Method, System and Signal of Opportunity Localization Method Based on Time-Frequency and Convolutional Neural Networks
CN116578874A (en) * 2023-07-10 2023-08-11 武汉能钠智能装备技术股份有限公司四川省成都市分公司 Satellite signal attribute appraising method and device based on network protocol

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103559504A (en) * 2013-11-04 2014-02-05 北京京东尚科信息技术有限公司 Image target category identification method and device
CN106803081A (en) * 2017-01-25 2017-06-06 东南大学 A kind of brain electricity sorting technique based on Multi-classifers integrated
CN107122738A (en) * 2017-04-26 2017-09-01 成都蓝色起源科技有限公司 Automatic Communication Signals Recognition based on deep learning model and its realize system
CN108600135A (en) * 2018-04-27 2018-09-28 中国科学院计算技术研究所 A kind of recognition methods of signal modulation mode
CN108764114A (en) * 2018-05-23 2018-11-06 腾讯音乐娱乐科技(深圳)有限公司 A kind of signal recognition method and its equipment, storage medium, terminal
CN109077714A (en) * 2018-07-05 2018-12-25 广州视源电子科技股份有限公司 signal identification method, device, equipment and storage medium
CN109712128A (en) * 2018-12-24 2019-05-03 上海联影医疗科技有限公司 Feature point detecting method, device, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103559504A (en) * 2013-11-04 2014-02-05 北京京东尚科信息技术有限公司 Image target category identification method and device
CN106803081A (en) * 2017-01-25 2017-06-06 东南大学 A kind of brain electricity sorting technique based on Multi-classifers integrated
CN107122738A (en) * 2017-04-26 2017-09-01 成都蓝色起源科技有限公司 Automatic Communication Signals Recognition based on deep learning model and its realize system
CN108600135A (en) * 2018-04-27 2018-09-28 中国科学院计算技术研究所 A kind of recognition methods of signal modulation mode
CN108764114A (en) * 2018-05-23 2018-11-06 腾讯音乐娱乐科技(深圳)有限公司 A kind of signal recognition method and its equipment, storage medium, terminal
CN109077714A (en) * 2018-07-05 2018-12-25 广州视源电子科技股份有限公司 signal identification method, device, equipment and storage medium
CN109712128A (en) * 2018-12-24 2019-05-03 上海联影医疗科技有限公司 Feature point detecting method, device, computer equipment and storage medium

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111310700A (en) * 2020-02-27 2020-06-19 电子科技大学 An Intermediate Frequency Sampling Sequence Processing Method for Fingerprint Feature Recognition of Radiation Sources
CN111310700B (en) * 2020-02-27 2024-02-13 电子科技大学 Intermediate frequency sampling sequence processing method for radiation source fingerprint feature recognition
CN111464468A (en) * 2020-03-02 2020-07-28 南方科技大学 Signal modulation mode identification method, device, equipment and readable storage medium
CN111414847A (en) * 2020-03-18 2020-07-14 中电科海洋信息技术研究院有限公司 Frogman identification method, device, equipment and medium
CN111414847B (en) * 2020-03-18 2023-07-21 中电科海洋信息技术研究院有限公司 Frog person identification method, device, equipment and medium
CN112188459A (en) * 2020-09-29 2021-01-05 普联技术有限公司 Signal identification method, device and equipment
CN112188459B (en) * 2020-09-29 2023-10-03 普联技术有限公司 Signal identification method, device and equipment
CN113065387A (en) * 2021-02-03 2021-07-02 中国船级社 Wavelet denoising method and system for pump system
CN114114363A (en) * 2021-11-08 2022-03-01 北京邮电大学 Signal of Opportunity Perception Method, System and Signal of Opportunity Localization Method Based on Time-Frequency and Convolutional Neural Networks
CN116578874A (en) * 2023-07-10 2023-08-11 武汉能钠智能装备技术股份有限公司四川省成都市分公司 Satellite signal attribute appraising method and device based on network protocol
CN116578874B (en) * 2023-07-10 2023-11-21 武汉能钠智能装备技术股份有限公司四川省成都市分公司 Satellite signal attribute appraising method and device based on network protocol

Similar Documents

Publication Publication Date Title
CN110097011A (en) A kind of signal recognition method and device
CN110163300A (en) A kind of image classification method, device, electronic equipment and storage medium
CN113327626B (en) Voice noise reduction method, device, equipment and storage medium
WO2020114320A1 (en) Point cloud clustering method, image processing device and apparatus having storage function
CN101650784B (en) Method for matching images by utilizing structural context characteristics
KR20130142191A (en) Robust feature matching for visual search
JP2012168941A (en) Method for representing 3d objects or objects with descriptors
CN109978925A (en) Robot pose recognition method and robot thereof
WO2023124233A1 (en) Circle searching method and apparatus, electronic device and storage medium
CN111476813B (en) Image change detection method, image change detection device, electronic equipment and storage medium
US20240273721A1 (en) Image encoder training method and apparatus, device, and medium
CN109104257B (en) Wireless signal detection method and device
CN110765291A (en) Retrieval method and device and electronic equipment
CN111461177A (en) Image identification method and device
CN108960246B (en) Binarization processing device and method for image recognition
CN115063473A (en) Object height detection method, device, computer equipment, storage medium
CN112150487B (en) Rice grain segmentation method, terminal and storage medium
CN105740870A (en) Anti-rotation HDO local feature description method for target robust identification
CN113435479A (en) Feature point matching method and system based on regional feature expression constraint
CN116776122A (en) Data classification method, apparatus, device, medium and program product
CN109344767B (en) SAR target identification method based on multi-azimuth multi-feature collaborative representation
CN114708420A (en) Visual localization method and device based on local variance and posterior probability classifier
CN101615195B (en) A Texture Feature Extraction Method of Chinese Character Image Based on Fourier Spectrum
CN114973225B (en) License plate identification method, device and equipment
Mahajan GT-DTW: Bridging Graph Theory and Dynamic Time Warping for Complex Time Series Analysis

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190806

RJ01 Rejection of invention patent application after publication