CN116390139A - Equipment detection method and device based on neural network, computer equipment and medium - Google Patents

Equipment detection method and device based on neural network, computer equipment and medium Download PDF

Info

Publication number
CN116390139A
CN116390139A CN202310269953.7A CN202310269953A CN116390139A CN 116390139 A CN116390139 A CN 116390139A CN 202310269953 A CN202310269953 A CN 202310269953A CN 116390139 A CN116390139 A CN 116390139A
Authority
CN
China
Prior art keywords
data set
neural network
matrix
preset
training data
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
CN202310269953.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.)
Chinese University of Hong Kong Shenzhen
Original Assignee
Chinese University of Hong Kong Shenzhen
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 Chinese University of Hong Kong Shenzhen filed Critical Chinese University of Hong Kong Shenzhen
Priority to CN202310269953.7A priority Critical patent/CN116390139A/en
Publication of CN116390139A publication Critical patent/CN116390139A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/06Testing, supervising or monitoring using simulated traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/364Delay profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/391Modelling the propagation channel
    • H04B17/3911Fading models or fading generators
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/16Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using machine learning or artificial intelligence
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Quality & Reliability (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Databases & Information Systems (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Computer And Data Communications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本申请实施例提供了基于神经网络的设备检测方法、装置、计算机设备及介质,属于通信技术领域。该方法包括:获取训练数据集以及测试数据集;根据上述数据集中设备的活跃状态以及时延值构建指示变量函数;将指示变量函数输入神经网络进行求和计算,输出协方差矩阵;根据协方差矩阵、预设的第一矩阵、预设的第二矩阵以及预设的可学习参数对训练数据集以及测试数据集进行梯度计算,得到梯度信息;对梯度信息以及指示变量函数进行迭代更新,得到更新变量;根据更新变量对神经网络进行迭代,并将待检测设备的通信信号输入迭代后的神经网络,确定待检测设备的活跃状态。本申请实施例能够避免迭代算法中的高复杂度操作,提高对活跃用户的检测准确率。

Figure 202310269953

Embodiments of the present application provide a neural network-based device detection method, device, computer equipment, and media, which belong to the field of communication technology. The method includes: obtaining a training data set and a test data set; constructing an indicator variable function according to the active state and delay value of the equipment in the above data set; inputting the indicator variable function into the neural network for sum calculation, and outputting a covariance matrix; The matrix, the preset first matrix, the preset second matrix, and the preset learnable parameters perform gradient calculations on the training data set and the test data set to obtain gradient information; iteratively update the gradient information and the indicator variable function to obtain The variable is updated; the neural network is iterated according to the updated variable, and the communication signal of the device to be detected is input into the iterative neural network to determine the active state of the device to be detected. The embodiment of the present application can avoid high-complexity operations in the iterative algorithm, and improve the detection accuracy of active users.

Figure 202310269953

Description

基于神经网络的设备检测方法、装置、计算机设备及介质Neural network-based equipment detection method, device, computer equipment and medium

技术领域technical field

本申请涉及通信技术领域,尤其涉及基于神经网络的设备检测方法、装置、计算机设备及介质。The present application relates to the field of communication technology, and in particular to a neural network-based device detection method, device, computer equipment and media.

背景技术Background technique

随着通信技术的发展,大规模机器通信成为了海量物联网终端连接的主要方式,其中,在免调度随机接入过程中,活跃用户直接在分配得到的无线通信资源上进行数据传输。现有的接入过程大体可分为两类。第一类为利用机器通信业务的阵发性,采用基于压缩感知的方法,通过对设备活动状态和瞬时信道的联合估计,来实现对活跃设备的检测。与之不同,另一类为利用信道的概率分布,基于接入点接收信号的样本协方差,直接对活跃设备进行检测。与基于压缩感知的方法相比,基于协方差的方法无需对瞬时信道进行估计,因此可以获得更加精准的活跃设备检测结果。尽管存在的活跃设备检测算法在一定程度上具有较好的检测能力,可是这些算法的实现通常需要求解高维的非凸问题。而求解这类非凸问题需要设计较高计算复杂度的迭代算法,不满足实际应用的需求,从而影响对活跃设备的检测能力。With the development of communication technology, large-scale machine communication has become the main way to connect massive IoT terminals. Among them, during the scheduling-free random access process, active users directly perform data transmission on the allocated wireless communication resources. Existing access procedures can be roughly divided into two categories. The first category is to use the burstiness of machine communication services, adopt the method based on compressed sensing, and realize the detection of active equipment through the joint estimation of equipment activity status and instantaneous channel. In contrast, the other type uses the probability distribution of the channel to directly detect active devices based on the sample covariance of the signal received by the access point. Compared with compressive sensing-based methods, covariance-based methods do not need to estimate the instantaneous channel, so more accurate active device detection results can be obtained. Although the existing active device detection algorithms have better detection capabilities to a certain extent, the implementation of these algorithms usually requires solving high-dimensional non-convex problems. However, solving such non-convex problems requires the design of an iterative algorithm with high computational complexity, which does not meet the needs of practical applications, thus affecting the ability to detect active devices.

发明内容Contents of the invention

本申请实施例的主要目的在于提出一种基于神经网络的设备检测方法、装置、计算机设备及介质,能够避免迭代算法中的高复杂度操作,提高对活跃用户的检测准确率。The main purpose of the embodiments of the present application is to propose a neural network-based device detection method, device, computer equipment, and media, which can avoid high-complexity operations in iterative algorithms and improve the detection accuracy of active users.

为实现上述目的,本申请实施例的第一方面提出了一种基于神经网络的设备检测方法,所述方法包括:In order to achieve the above purpose, the first aspect of the embodiment of the present application proposes a neural network-based device detection method, the method comprising:

获取训练数据集以及测试数据集,其中,所述训练数据集以及所述测试数据集由预设的数据生成函数对接入点收集的通信信号计算得到,所述接入点包括至少一个设备;Acquiring a training data set and a test data set, wherein the training data set and the test data set are calculated by a preset data generation function on communication signals collected by an access point, and the access point includes at least one device;

根据所述训练数据集以及所述测试数据集中设备的活跃状态以及时延值构建指示变量函数;Constructing an indicator variable function according to the active state and delay value of the equipment in the training data set and the test data set;

将所述指示变量函数输入所述神经网络进行求和计算,输出协方差矩阵;Input the indicator variable function into the neural network for sum calculation, and output the covariance matrix;

根据所述协方差矩阵、预设的第一矩阵、预设的第二矩阵以及预设的可学习参数对所述训练数据集以及所述测试数据集进行梯度计算,得到梯度信息;performing gradient calculation on the training data set and the test data set according to the covariance matrix, the preset first matrix, the preset second matrix and the preset learnable parameters to obtain gradient information;

基于所述可学习参数对所述梯度信息以及所述指示变量函数进行迭代更新,得到更新变量;Iteratively updating the gradient information and the indicator variable function based on the learnable parameters to obtain updated variables;

根据所述更新变量对所述神经网络进行迭代,并将待检测设备的通信信号输入迭代后的神经网络进行活跃检测,确定所述待检测设备的活跃状态。The neural network is iterated according to the update variable, and the communication signal of the device to be detected is input into the iterated neural network for active detection, and the active state of the device to be detected is determined.

在一些实施例中,还包括:In some embodiments, also include:

获取设备的特征序列以及与所述特征序列对应的时延值;Obtaining a characteristic sequence of the device and a delay value corresponding to the characteristic sequence;

根据所述特征序列以及所述时延值得到所述设备的等效特征序列。An equivalent signature sequence of the device is obtained according to the signature sequence and the delay value.

在一些实施例中,所述训练数据集以及测试数据集根据如下步骤得到:In some embodiments, the training data set and the test data set are obtained according to the following steps:

获取所述设备与所述接入点之间的小尺度衰落信道信息以及所述设备的发射功率;Obtaining small-scale fading channel information between the device and the access point and transmit power of the device;

计算所述设备与所述接入点之间的距离,得到距离值;calculating the distance between the device and the access point to obtain a distance value;

将所述距离值输入预设的损耗模型,得到大尺度衰落信息;inputting the distance value into a preset loss model to obtain large-scale fading information;

根据所述发射功率、所述大尺度衰落信息以及所述等效特征序列生成第一函数;generating a first function according to the transmit power, the large-scale fading information, and the equivalent eigensequence;

根据所述小尺度衰落信道信息、所述第一函数以及预设的高斯分布值得到所述数据生成函数;Obtaining the data generation function according to the small-scale fading channel information, the first function, and a preset Gaussian distribution value;

将所述接入点收集的通信信号输入所述数据生成函数进行计算,输出所述训练数据集以及所述测试数据集。The communication signal collected by the access point is input into the data generation function for calculation, and the training data set and the test data set are output.

在一些实施例中,所述将所述指示变量函数输入所述神经网络进行求和计算,输出协方差矩阵,包括:In some embodiments, the input of the indicator variable function into the neural network for sum calculation, and the output covariance matrix includes:

获取所述接入点的噪声功率;Acquiring the noise power of the access point;

将所述噪声功率、所述第一函数、所述指示变量函数以及预设的单位矩阵输入所述神经网络进行求和计算,输出协方差矩阵。Inputting the noise power, the first function, the indicator variable function, and a preset identity matrix into the neural network for sum calculation, and outputting a covariance matrix.

在一些实施例中,所述可学习参数包括惩罚因子;所述根据所述协方差矩阵、预设的第一矩阵、预设的第二矩阵以及预设的可学习参数对所述训练数据集以及所述测试数据集进行梯度计算,得到梯度信息,包括:In some embodiments, the learnable parameters include a penalty factor; the training data set is analyzed according to the covariance matrix, the preset first matrix, the preset second matrix and the preset learnable parameters And the test data set performs gradient calculation to obtain gradient information, including:

根据所述第一矩阵以及所述第二矩阵对所述协方差矩阵进行矩阵近似操作,得到近似矩阵;performing a matrix approximation operation on the covariance matrix according to the first matrix and the second matrix to obtain an approximate matrix;

根据所述近似矩阵以及所述惩罚因子对所述训练数据集以及所述测试数据集进行梯度计算,得到所述梯度信息。Perform gradient calculation on the training data set and the test data set according to the approximation matrix and the penalty factor to obtain the gradient information.

在一些实施例中,所述可学习参数包括迭代步长;所述基于所述可学习参数对所述梯度信息以及所述指示变量函数进行迭代更新,得到更新变量,包括:In some embodiments, the learnable parameter includes an iterative step; the iterative update of the gradient information and the indicator variable function based on the learnable parameter to obtain an updated variable includes:

将所述迭代步长与所述梯度信息进行相乘,得到乘积结果;multiplying the iteration step size by the gradient information to obtain a product result;

根据所述指示变量函数以及所述乘积结果得到所述更新变量。The update variable is obtained according to the indicator variable function and the product result.

在一些实施例中,所述根据所述更新变量对所述神经网络进行迭代,并将待检测设备输入迭代后的神经网络进行活跃检测,确定所述待检测设备的活跃状态,包括:In some embodiments, iterating the neural network according to the updated variable, and inputting the device to be detected into the iterated neural network for active detection, and determining the active state of the device to be detected includes:

根据所述更新变量以及所述可学习参数生成迭代公式;generating an iterative formula according to the update variable and the learnable parameter;

根据所述迭代公式对所述神经网络进行迭代;Iterating the neural network according to the iterative formula;

将所述待检测设备输入迭代后的神经网络进行活跃检测,确定所述待检测设备的活跃状态。Inputting the device to be detected into the iterated neural network to perform activity detection to determine the active state of the device to be detected.

本申请实施例的第二方面提出了一种基于神经网络的设备检测装置,所述装置包括:The second aspect of the embodiment of the present application proposes a device detection device based on a neural network, the device comprising:

数据获取模块,用于获取训练数据集以及测试数据集,其中,所述训练数据集以及所述测试数据集由预设的数据生成函数对接入点收集的通信信号计算得到,所述接入点包括至少一个设备;A data acquisition module, configured to acquire a training data set and a test data set, wherein the training data set and the test data set are obtained by calculating the communication signals collected by the access point by a preset data generation function, and the access A point includes at least one device;

函数构建模块,用于根据所述训练数据集以及所述测试数据集中设备的活跃状态以及时延值构建指示变量函数;A function construction module, configured to construct an indicator variable function according to the active state and delay value of the equipment in the training data set and the test data set;

迭代计算模块,用于将所述指示变量函数输入所述神经网络进行求和计算,输出协方差矩阵;An iterative calculation module, configured to input the indicator variable function into the neural network for sum calculation, and output a covariance matrix;

梯度计算模块,用于根据所述协方差矩阵、预设的第一矩阵、预设的第二矩阵以及预设的可学习参数对所述训练数据集以及所述测试数据集进行梯度计算,得到梯度信息;A gradient calculation module, configured to perform gradient calculation on the training data set and the test data set according to the covariance matrix, the preset first matrix, the preset second matrix and the preset learnable parameters, to obtain gradient information;

迭代更新模块,用于基于所述可学习参数对所述梯度信息以及所述指示变量函数进行迭代更新,得到更新变量;an iterative update module, configured to iteratively update the gradient information and the indicator variable function based on the learnable parameters to obtain updated variables;

活跃检测模块,用于根据所述更新变量对所述神经网络进行迭代,并将待检测设备的通信信号输入迭代后的神经网络进行活跃检测,确定所述待检测设备的活跃状态。The active detection module is configured to iterate the neural network according to the update variable, and input the communication signal of the device to be detected into the iterated neural network for active detection, and determine the active state of the device to be detected.

本申请实施例的第三方面提出了一种计算机设备,所述计算机设备包括存储器和处理器,其中,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时所述处理器用于执行如本申请第一方面实施例任一项所述的方法。The third aspect of the embodiments of the present application provides a computer device, the computer device includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processing The device is configured to execute the method described in any one of the embodiments of the first aspect of the present application.

本申请实施例的第四方面提出了一种存储介质,所述存储介质为计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,在所述计算机程序被计算机执行时,所述计算机用于执行如本申请第一方面实施例任一项所述的方法。The fourth aspect of the embodiments of the present application provides a storage medium, the storage medium is a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a computer, the The computer is used to execute the method described in any one of the embodiments of the first aspect of the present application.

本申请实施例提出的基于神经网络的设备检测方法、装置、计算机设备及介质,通过根据数据生成函数对接入点收集的通信信号进行计算,得到训练数据集以及测试数据集,并根据训练数据集以及测试数据集中的设备活跃状态以及时延值构建指示变量函数,便于后续进行深度展开,并将指示变量函数输入神经网络进行求和计算,输出协方差矩阵,便于后续训练神经网络,之后,根据协方差矩阵、预设的第一矩阵、预设的第二矩阵以及预设的可学习参数对训练数据集以及测试数据集进行梯度计算,得到梯度信息,引入可学习参数以及预设的矩阵能够避免计算过程中的求逆操作,减少计算复杂度,再基于可学习参数对梯度信息以及指示变量函数进行迭代更新,得到更新变量,提高神经网络对设备的检测性能,最后,根据更新变量对神经网络进行迭代,并将待检测设备的通信信号输入迭代后的神经网络进行活跃检测,确定待检测设备的活跃状态,从而减少神经网络的迭代次数,提高神经网络对活跃设备的检测能力。The neural network-based equipment detection method, device, computer equipment, and medium proposed in the embodiments of the present application calculate the communication signals collected by the access point according to the data generation function to obtain the training data set and the test data set, and according to the training data The active state and delay value of the equipment in the set and test data set construct an indicator variable function, which is convenient for subsequent in-depth expansion, and the indicator variable function is input into the neural network for summation calculation, and the output covariance matrix is convenient for subsequent training of the neural network. After that, According to the covariance matrix, the preset first matrix, the preset second matrix and the preset learnable parameters, the gradient calculation is performed on the training data set and the test data set, and the gradient information is obtained, and the learnable parameters and the preset matrix are introduced. It can avoid the inversion operation in the calculation process, reduce the computational complexity, and then iteratively update the gradient information and the indicator variable function based on the learnable parameters to obtain the updated variable and improve the detection performance of the neural network for the device. Finally, according to the updated variable The neural network is iterated, and the communication signal of the device to be detected is input into the iterative neural network for active detection to determine the active state of the device to be detected, thereby reducing the number of iterations of the neural network and improving the detection ability of the neural network for active devices.

附图说明Description of drawings

图1是本申请实施例提供的基于神经网络的设备检测方法的流程图;Fig. 1 is a flow chart of a neural network-based device detection method provided in an embodiment of the present application;

图2是本申请另一实施例提供的基于神经网络的设备检测方法的流程图;FIG. 2 is a flowchart of a neural network-based device detection method provided by another embodiment of the present application;

图3是图1中步骤S101的具体流程图;Fig. 3 is the specific flowchart of step S101 in Fig. 1;

图4是图1中步骤S103的具体流程图;Fig. 4 is the specific flowchart of step S103 among Fig. 1;

图5是图1中步骤S104的具体流程图;Fig. 5 is the specific flowchart of step S104 among Fig. 1;

图6是图1中步骤S105的具体流程图;Fig. 6 is the specific flowchart of step S105 among Fig. 1;

图7是图1中步骤S106的具体流程图;Fig. 7 is the specific flowchart of step S106 among Fig. 1;

图8是本申请一个具体示例提供的基于神经网络的设备检测方法的示意图;Fig. 8 is a schematic diagram of a neural network-based device detection method provided in a specific example of the present application;

图9是本申请另一具体示例提供的基于神经网络的设备检测方法的示意图;FIG. 9 is a schematic diagram of a neural network-based device detection method provided in another specific example of the present application;

图10是本申请实施例提供的活跃用户和数据的检测装置的模块结构框图;Figure 10 is a block diagram of the module structure of the active user and data detection device provided by the embodiment of the present application;

图11是本申请实施例提供的计算机设备的硬件结构示意图。FIG. 11 is a schematic diagram of a hardware structure of a computer device provided by an embodiment of the present application.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, not to limit the present application.

需要说明的是,虽然在装置示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置中的模块划分,或流程图中的顺序执行所示出或描述的步骤。说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that although the functional modules are divided in the schematic diagram of the device, and the logical sequence is shown in the flowchart, in some cases, it can be executed in a different order than the module division in the device or the flowchart in the flowchart. steps shown or described. The terms "first", "second" and the like in the specification and claims and the above drawings are used to distinguish similar objects, and not necessarily used to describe a specific sequence or sequence.

除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中所使用的术语只是为了描述本申请实施例的目的,不是旨在限制本申请。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application, and are not intended to limit the present application.

随着通信技术的发展,大规模机器通信成为了海量物联网终端连接的主要方式,其中,在免调度随机接入过程中,活跃用户直接在分配得到的无线通信资源上进行数据传输。现有的接入过程大体可分为两类。第一类为利用机器通信业务的阵发性,采用基于压缩感知的方法,通过对设备活动状态和瞬时信道的联合估计,来实现对活跃设备的检测。与之不同,另一类为利用信道的概率分布,基于接入点接收通信信号的样本协方差,直接对活跃设备进行检测。与基于压缩感知的方法相比,基于协方差的方法无需对瞬时信道进行估计,因此可以获得更加精准的活跃设备检测结果。With the development of communication technology, large-scale machine communication has become the main way to connect massive IoT terminals. Among them, during the scheduling-free random access process, active users directly perform data transmission on the allocated wireless communication resources. Existing access procedures can be roughly divided into two categories. The first category is to use the burstiness of machine communication services, adopt the method based on compressed sensing, and realize the detection of active equipment through the joint estimation of equipment activity status and instantaneous channel. In contrast, the other type uses the probability distribution of the channel to directly detect active devices based on the sample covariance of the communication signal received by the access point. Compared with compressive sensing-based methods, covariance-based methods do not need to estimate the instantaneous channel, so more accurate active device detection results can be obtained.

尽管相关技术的活跃设备检测算法在一定程度上具有较好的检测能力,可是这些算法的实现通常需要求解高维的非凸问题。而求解这类非凸问题需要设计较高计算复杂度的迭代算法,不满足实际应用的需求。因此,非常有必要在大规模机器通信的接入方法上进行创新,探索低复杂度的解决思路。Although active device detection algorithms in the related art have better detection capabilities to a certain extent, the implementation of these algorithms usually requires solving high-dimensional non-convex problems. However, solving such non-convex problems requires the design of an iterative algorithm with high computational complexity, which does not meet the needs of practical applications. Therefore, it is very necessary to innovate in the access method of large-scale machine communication and explore low-complexity solutions.

基于此,本申请实施例的主要目的在于提出了一种基于神经网络的设备检测方法、装置、计算机设备及介质,能够避免迭代算法中的高复杂度操作,提高对活跃用户的检测准确率。Based on this, the main purpose of the embodiments of the present application is to propose a neural network-based device detection method, device, computer equipment and media, which can avoid high-complexity operations in iterative algorithms and improve the detection accuracy of active users.

本申请实施例提供的一种基于神经网络的设备检测方法可应用于终端中,也可应用于服务器端中,还可以是运行于终端或服务器端中的软件。在一些实施例中,终端可以是智能手机、平板电脑、笔记本电脑、台式计算机或者智能手表等;服务器端可以配置成独立的物理服务器,也可以配置成多个物理服务器构成的服务器集群或者分布式系统,还可以配置成提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(Content Delivery Network,CDN)以及大数据和人工智能平台等基础云计算服务的云服务器;软件可以是实现上述方法的应用等,但并不局限于以上形式。The neural network-based device detection method provided in the embodiment of the present application may be applied to a terminal, may also be applied to a server, and may also be software running on the terminal or the server. In some embodiments, the terminal can be a smart phone, a tablet computer, a notebook computer, a desktop computer, or a smart watch; the server end can be configured as an independent physical server, or as a server cluster composed of multiple physical servers or as a distributed The system can also be configured to provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery network (Content Delivery Network, CDN) and large Cloud servers for basic cloud computing services such as data and artificial intelligence platforms; software can be applications that implement the above methods, but are not limited to the above forms.

本申请实施例可用于众多通用或专用的计算机系统环境或配置中。例如:个人计算机、服务器计算机、手持设备或便携式设备、平板型设备、多处理器系统、基于微处理器的系统、置顶盒、可编程的消费计算机设备、网络PC、小型计算机、大型计算机、包括以上任何系统或设备的分布式计算环境等等。本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。The embodiments of the present application can be used in many general-purpose or special-purpose computer system environments or configurations. Examples: personal computers, server computers, handheld or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer computing devices, network PCs, minicomputers, mainframe computers, including A distributed computing environment for any of the above systems or devices, etc. This application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.

请参照图1,图1是本申请实施例提供的基于神经网络的设备检测方法的具体方法的流程图。在一些实施例中,基于神经网络的设备检测方法包括但不限于步骤S101至步骤S106。Please refer to FIG. 1 . FIG. 1 is a flowchart of a specific method of a neural network-based device detection method provided by an embodiment of the present application. In some embodiments, the neural network-based device detection method includes but not limited to steps S101 to S106.

步骤S101,获取训练数据集以及测试数据集;Step S101, obtaining a training data set and a testing data set;

需要说明的是,训练数据集以及测试数据集由预设的数据生成函数对接入点收集的通信信号计算得到,接入点包括至少一个设备。It should be noted that the training data set and the test data set are calculated by a preset data generation function on communication signals collected by the access point, and the access point includes at least one device.

在一些实施例中,获取训练数据集以及测试数据集,便于后续对神经网络的迭代以及训练。In some embodiments, the training data set and the test data set are acquired to facilitate subsequent iteration and training of the neural network.

步骤S102,根据训练数据集以及测试数据集中设备的活跃状态以及时延值构建指示变量函数;Step S102, constructing an indicator variable function according to the active state and delay value of the equipment in the training data set and the test data set;

步骤S103,将指示变量函数输入神经网络进行求和计算,输出协方差矩阵;Step S103, input the indicator variable function into the neural network for sum calculation, and output the covariance matrix;

步骤S104,根据协方差矩阵、预设的第一矩阵、预设的第二矩阵以及预设的可学习参数对训练数据集以及所述测试数据集进行梯度计算,得到梯度信息;Step S104, performing gradient calculation on the training data set and the test data set according to the covariance matrix, the preset first matrix, the preset second matrix and the preset learnable parameters to obtain gradient information;

步骤S105,基于可学习参数对梯度信息以及指示变量函数进行迭代更新,得到更新变量;Step S105, iteratively updating the gradient information and indicator variable functions based on the learnable parameters to obtain updated variables;

步骤S106,根据更新变量对神经网络进行迭代,并将待检测设备的通信信号输入迭代后的神经网络进行活跃检测,确定待检测设备的活跃状态。Step S106, iterating the neural network according to the updated variables, inputting the communication signal of the device to be detected into the iterated neural network for active detection, and determining the active state of the device to be detected.

在一些实施例的步骤S101至步骤S106中,获取训练数据集以及测试数据集,并根据训练数据集以及测试数据集中的设备的活跃状态以及时延值构建指示变量函数,从而能够联合活跃设备进行检测,之后再将指示变量函数输入神经网络进行求和计算,得到协方差矩阵,便于后续训练神经网络,根据协方差矩阵、预设的第一矩阵、预设的第二矩阵以及预设的可学习参数对训练数据集以及测试数据集进行梯度计算,得到梯度信息,引入可学习参数以及预设的矩阵能够避免计算过程中的求逆操作,减少计算复杂度,再基于可学习参数对梯度信息以及指示变量函数进行迭代更新,得到更新变量,提高神经网络对设备的检测性能,最后,根据更新变量对神经网络进行迭代,并将待检测设备输入迭代后的神经网络进行活跃检测,确定待检测设备的活跃状态,从而减少神经网络的迭代次数,提高神经网络对活跃设备的检测能力。In some embodiments, from step S101 to step S106, the training data set and the test data set are obtained, and an indicator variable function is constructed according to the active state and delay value of the equipment in the training data set and the test data set, so that the active equipment can be combined After the detection, the indicator variable function is input into the neural network for sum calculation to obtain the covariance matrix, which is convenient for subsequent training of the neural network. According to the covariance matrix, the preset first matrix, the preset second matrix and the preset possible The learning parameters perform gradient calculations on the training data set and the test data set to obtain gradient information. The introduction of learnable parameters and preset matrices can avoid inversion operations during the calculation process and reduce computational complexity. Then, the gradient information is calculated based on the learnable parameters. And the indicator variable function is iteratively updated to obtain the updated variable and improve the detection performance of the neural network for the device. Finally, iterate the neural network according to the updated variable, and input the device to be detected into the iterated neural network for active detection to determine the detection performance of the device to be detected. The active state of the device, thereby reducing the number of iterations of the neural network and improving the detection ability of the neural network for active devices.

请参照图2,图2是本申请另一实施例提供的基于神经网络的设备检测方法的具体方法的流程图。在一些实施例中,基于神经网络的设备检测方法包括但不限于步骤S201至步骤S202。Please refer to FIG. 2 . FIG. 2 is a flowchart of a specific method of a neural network-based device detection method provided by another embodiment of the present application. In some embodiments, the neural network-based device detection method includes but not limited to steps S201 to S202.

步骤S201,获取设备的特征序列以及与特征序列对应的时延值;Step S201, obtaining the characteristic sequence of the device and the delay value corresponding to the characteristic sequence;

步骤S202,根据特征序列以及时延值得到设备的等效特征序列。In step S202, an equivalent signature sequence of the device is obtained according to the signature sequence and the delay value.

在一些实施例的步骤S201至步骤S202中,在设备发送通信信号的过程中,每个设备都有唯一的特征序列

Figure BDA0004134354650000061
其中,L为特征序列长度,由于非同步传输的特征导致特征序列的发送伴随一个未知的时延tk∈{0,…,T},其中,T代表最大可能的时延,因此设备的带有时延的等效特征序列可以如下公式(1)所示:In some embodiments, from step S201 to step S202, in the process of devices sending communication signals, each device has a unique signature sequence
Figure BDA0004134354650000061
Among them, L is the length of the characteristic sequence. Due to the characteristics of asynchronous transmission, the transmission of the characteristic sequence is accompanied by an unknown time delay t k ∈ {0,...,T}, where T represents the maximum possible time delay. Therefore, the bandwidth of the device The equivalent feature sequence with time delay can be shown in the following formula (1):

Figure BDA0004134354650000062
Figure BDA0004134354650000062

可以理解的是,当设备k处于活跃状态时,记为ak=1,否则ak=0。因此,设备的活跃状态和时延构成了一个指示变量函数,如下公式(2)所示:It can be understood that when the device k is in the active state, it is recorded as a k =1, otherwise a k =0. Therefore, the active state of the device and the delay constitute an indicator variable function, as shown in the following formula (2):

Figure BDA0004134354650000063
Figure BDA0004134354650000063

需要说明的是,当且仅当设备k处于活跃状态且时延为t时,bk,t=1。因此,非同步大规模机器通信中接入点对活跃设备的检测在数学上可以等价为对bk,t∈{0,1}的检测。具体地说,每个接入点将接收到的通信信号通过前传链路传送到中央处理单元,然后中央处理单元进行联合的活跃设备的检测。该活跃设备检测任务通常建模成高维非凸问题。解决此类非凸问题,需要设计迭代算法,下面给出具体说明。It should be noted that b k,t =1 if and only when device k is active and the time delay is t. Therefore, the detection of active devices by access points in asynchronous large-scale machine-to-machine communication can be mathematically equivalent to the detection of b k,t ∈ {0,1}. Specifically, each access point transmits the received communication signal to the central processing unit through the fronthaul link, and then the central processing unit performs joint active device detection. This active device detection task is usually modeled as a high-dimensional non-convex problem. To solve such non-convex problems, an iterative algorithm needs to be designed, and a specific description is given below.

请参照图3,图3是本申请实施例提供的步骤S101的具体流程图。在一些实施例中,步骤S101具体包括但不限于步骤S301和步骤S306。Please refer to FIG. 3 . FIG. 3 is a specific flowchart of step S101 provided by the embodiment of the present application. In some embodiments, step S101 specifically includes but not limited to step S301 and step S306.

步骤S301,获取设备与接入点之间的小尺度衰落信道信息以及设备的发射功率;Step S301, acquiring small-scale fading channel information between the device and the access point and the transmit power of the device;

在一些实施例中,获取第k个设备和第m个接入点之间的小尺度衰落信道信息

Figure BDA0004134354650000064
以及设备的发射功率βk,其中,βk=23dBm。In some embodiments, the small-scale fading channel information between the kth device and the mth access point is obtained
Figure BDA0004134354650000064
and the transmit power β k of the device, where β k =23dBm.

需要说明的是,小尺度衰落信道信息中的每一个元素服从瑞利分布。It should be noted that each element in the small-scale fading channel information obeys the Rayleigh distribution.

步骤S302,计算设备与接入点之间的距离,得到距离值;Step S302, calculating the distance between the device and the access point to obtain a distance value;

在一些实施例中,计算设备与接入点之间的距离,得到距离值d。In some embodiments, the distance between the device and the access point is calculated to obtain a distance value d.

步骤S303,将距离值输入预设的损耗模型,得到大尺度衰落信息;Step S303, inputting the distance value into a preset loss model to obtain large-scale fading information;

在一些实施例中,将距离值d输入预设的损耗模型gk,m=128.1+37.6log10(d),得到大尺度衰落信息gk,mIn some embodiments, the distance value d is input into a preset loss model g k,m =128.1+37.6log 10 (d) to obtain large-scale fading information g k,m .

步骤S304,根据发射功率、大尺度衰落信息以及等效特征序列生成第一函数;Step S304, generating a first function according to the transmit power, large-scale fading information and equivalent feature sequence;

在一些实施例中,根据发射功率βk、大尺度衰落信息gk,m以及等效特征序列sk,t构成第一函数zk,t,mIn some embodiments, the first function z k, t,m is formed according to the transmit power β k , the large-scale fading information g k,m and the equivalent feature sequence s k ,t .

步骤S305,根据小尺度衰落信道信息、第一函数以及预设的高斯分布值得到数据生成函数;Step S305, obtaining a data generating function according to the small-scale fading channel information, the first function and the preset Gaussian distribution value;

在一些实施例中,根据小尺度衰落信道信息

Figure BDA0004134354650000071
第一函数zk,t,m以及预设的高斯分布值Wm得到数据生成函数Ym,其中,具体过程如下公式(3)所示:In some embodiments, according to the small-scale fading channel information
Figure BDA0004134354650000071
The first function z k, t, m and the preset Gaussian distribution value W m obtain the data generation function Y m , where the specific process is shown in the following formula (3):

Figure BDA0004134354650000072
Figure BDA0004134354650000072

需要说明的是,Wm中的每一个元素服从均值为0、方差为1的高斯分布。It should be noted that each element in W m obeys a Gaussian distribution with a mean of 0 and a variance of 1.

步骤S306,将接入点收集的通信信号输入数据生成函数进行计算,输出训练数据集以及测试数据集。Step S306, input the communication signal collected by the access point into the data generation function for calculation, and output the training data set and the testing data set.

在一些实施例中,将接入点收集得到的通信信号输入数据生成函数中进行计算,输出训练数据集以及测试数据集,其中,训练数据集以及测试数据集中的样本个数可以根据使用者的实际需要自行设置,本实施例中每次根据公式(3)独立产生1280000个训练样本组成训练数据集,并产生100000个验证集样本组成测试数据集,每一个训练周期包括10000次循环,每次循环中数据按照批量的形式传入到神经网络,一次的批量是128。In some embodiments, the communication signal collected by the access point is input into the data generation function for calculation, and the training data set and the test data set are output, wherein, the number of samples in the training data set and the test data set can be based on the user's In fact, it needs to be set by itself. In this embodiment, 1,280,000 training samples are independently generated according to formula (3) each time to form a training data set, and 100,000 verification set samples are generated to form a test data set. Each training cycle includes 10,000 cycles. The data in the loop is transferred to the neural network in batches, and the batch size is 128 at a time.

请参照图4,图4是本申请实施例提供的步骤S103的具体流程图。在一些实施例中,步骤S103具体包括但不限于步骤S401和步骤S402。Please refer to FIG. 4 . FIG. 4 is a specific flowchart of step S103 provided by the embodiment of the present application. In some embodiments, step S103 specifically includes but not limited to step S401 and step S402.

步骤S401,获取接入点的噪声功率;Step S401, acquiring the noise power of the access point;

步骤S402,将噪声功率、第一函数、指示变量函数以及预设的单位矩阵输入神经网络进行求和计算,输出协方差矩阵。Step S402, input the noise power, the first function, the indicator variable function and the preset identity matrix into the neural network for sum calculation, and output the covariance matrix.

在一些实施例的步骤S401至步骤S402中,获取接入点的噪声功率

Figure BDA0004134354650000073
并对第一函数进行共轭转置计算,得到/>
Figure BDA0004134354650000074
将噪声功率/>
Figure BDA0004134354650000075
第一函数zk,t,m、指示变量函数/>
Figure BDA0004134354650000076
以及预设的单位矩阵IL+T均输入神经网络,并将第一函数zk,t,m、共轭转置后的第一函数/>
Figure BDA0004134354650000077
以及指示变量函数/>
Figure BDA0004134354650000078
进行求和累加,并与噪声功率/>
Figure BDA0004134354650000079
和预设的单位矩阵IL+T的乘积进行相加,得到协方差矩阵/>
Figure BDA00041343546500000710
具体如下公式(4)所示:In some embodiments, from step S401 to step S402, the noise power of the access point is obtained
Figure BDA0004134354650000073
And perform the conjugate transpose calculation on the first function, get />
Figure BDA0004134354650000074
will noise power />
Figure BDA0004134354650000075
first function z k,t,m , indicator variable function/>
Figure BDA0004134354650000076
and the preset identity matrix I L+T are input into the neural network, and the first function z k,t,m and the first function after conjugate transposition/>
Figure BDA0004134354650000077
and the indicator variable function />
Figure BDA0004134354650000078
is summed and accumulated, and compared with the noise power />
Figure BDA0004134354650000079
Add the product of the preset identity matrix I L+T to get the covariance matrix />
Figure BDA00041343546500000710
The details are shown in the following formula (4):

Figure BDA00041343546500000711
Figure BDA00041343546500000711

请参照图5,图5是本申请实施例提供的步骤S104的具体流程图。在一些实施例中,步骤S104具体包括但不限于步骤S501至步骤S502。Please refer to FIG. 5 , which is a specific flow chart of step S104 provided by the embodiment of the present application. In some embodiments, step S104 specifically includes but not limited to steps S501 to S502.

需要说明的是,可学习参数包括惩罚因子。It should be noted that the learnable parameters include penalty factors.

步骤S501,根据第一矩阵以及第二矩阵对协方差矩阵进行矩阵近似操作,得到近似矩阵;Step S501, performing a matrix approximation operation on the covariance matrix according to the first matrix and the second matrix to obtain an approximate matrix;

在一些实施例中,由于原始的活跃检测算法需要对协方差矩阵进行求逆运算,从而导致较高的计算复杂度,需要较高的迭代次数,不满足实际应用的需求,因此,本实施例通过第一矩阵A(i)和第二矩阵B(i)对协方差矩阵

Figure BDA00041343546500000712
进行矩阵近似操作,得到近似矩阵
Figure BDA00041343546500000713
从而减少传统迭代算法的计算复杂度,避免了矩阵的求逆操作,提高设备的检测效率。In some embodiments, since the original liveness detection algorithm needs to invert the covariance matrix, resulting in higher computational complexity and a higher number of iterations, which does not meet the needs of practical applications, therefore, this embodiment The covariance matrix is paired by the first matrix A (i) and the second matrix B (i)
Figure BDA00041343546500000712
Perform matrix approximation operations to obtain approximate matrices
Figure BDA00041343546500000713
Therefore, the calculation complexity of the traditional iterative algorithm is reduced, the inverse operation of the matrix is avoided, and the detection efficiency of the device is improved.

需要说明的是,第一矩阵和第二矩阵需要与协方差矩阵的维度保持一致。It should be noted that the dimensions of the first matrix and the second matrix need to be consistent with the covariance matrix.

步骤S502,根据近似矩阵以及惩罚因子对训练数据集以及测试数据集进行梯度计算,得到梯度信息。Step S502, performing gradient calculation on the training data set and the testing data set according to the approximate matrix and the penalty factor, to obtain gradient information.

在一些实施例中,根据近似矩阵

Figure BDA0004134354650000081
以及惩罚因子ρ对训练数据集以及测试数据集进行梯度计算,得到梯度信息/>
Figure BDA0004134354650000082
从而避免了矩阵的求逆操作,减少计算复杂度,并且引入惩罚因子提高神经网络的学习能力,提高计算的准确性,其中,具体过程如下公式(5)所示:In some embodiments, according to the approximation matrix
Figure BDA0004134354650000081
And the penalty factor ρ calculates the gradient of the training data set and the test data set to obtain the gradient information />
Figure BDA0004134354650000082
In this way, the inversion operation of the matrix is avoided, the computational complexity is reduced, and the penalty factor is introduced to improve the learning ability of the neural network and improve the accuracy of calculation. The specific process is shown in the following formula (5):

Figure BDA0004134354650000083
Figure BDA0004134354650000083

可以理解的是,N代表每个接入点的天线数目,

Figure BDA0004134354650000084
代表目标函数在/>
Figure BDA0004134354650000085
处的梯度信息,其中,目标函数的具体表达形式可以根据基于协方差的极大似然准则推到得出,本实施例不做具体限制。It can be understood that N represents the number of antennas of each access point,
Figure BDA0004134354650000084
represents the objective function at />
Figure BDA0004134354650000085
Gradient information at , where the specific expression form of the objective function can be deduced according to the maximum likelihood criterion based on covariance, which is not specifically limited in this embodiment.

请参照图6,图6是本申请实施例提供的步骤S105的具体流程图。在一些实施例中,步骤S105具体包括但不限于步骤S601至步骤S602。Please refer to FIG. 6 . FIG. 6 is a specific flowchart of step S105 provided by the embodiment of the present application. In some embodiments, step S105 specifically includes but not limited to step S601 to step S602.

需要说明的是,可学习参数包括迭代步长。It should be noted that the learnable parameters include the iteration step size.

步骤S601,将迭代步长与梯度信息进行相乘,得到乘积结果;Step S601, multiplying the iteration step size and the gradient information to obtain a product result;

步骤S602,根据指示变量函数以及乘积结果得到更新变量。In step S602, an update variable is obtained according to the indicator variable function and the result of the product.

在一些实施例的步骤S601至步骤S602中,将迭代步长η与梯度信息

Figure BDA0004134354650000086
进行相乘,得到乘积结果,并根据指示变量函数/>
Figure BDA0004134354650000087
以及乘积结果得到更新变量/>
Figure BDA0004134354650000088
其中,具体过程如下公式(6)所示:In some embodiments from step S601 to step S602, iterative step size n and gradient information
Figure BDA0004134354650000086
Multiply, get the product result, and according to the indicator variable function />
Figure BDA0004134354650000087
and the result of the product gets the update variable />
Figure BDA0004134354650000088
Among them, the specific process is shown in the following formula (6):

Figure BDA0004134354650000089
Figure BDA0004134354650000089

其中,η(i)代表第i次迭代的步长,

Figure BDA00041343546500000810
代表算法一次梯度下降后的更新变量。Among them, η (i) represents the step size of the ith iteration,
Figure BDA00041343546500000810
Represents the updated variable after one gradient descent of the algorithm.

请参照图7,图7是本申请实施例提供的步骤S106的具体流程图。在一些实施例中,步骤S106具体包括但不限于步骤S701至步骤S703。Please refer to FIG. 7 . FIG. 7 is a specific flowchart of step S106 provided by the embodiment of the present application. In some embodiments, step S106 specifically includes but not limited to steps S701 to S703.

步骤S701,根据更新变量以及可学习参数生成迭代公式;Step S701, generating an iterative formula according to the update variables and learnable parameters;

在一些实施例中,根据更新变量以及可学习参数生成迭代公式,其中,具体如下公式(7)所示:In some embodiments, an iterative formula is generated according to the update variable and the learnable parameter, wherein, specifically, it is shown in the following formula (7):

Figure BDA00041343546500000811
Figure BDA00041343546500000811

其中,

Figure BDA00041343546500000812
Π[0,1]代表min(max(·,0),1)。in,
Figure BDA00041343546500000812
Π [0,1] represents min(max(·,0),1).

步骤S702,根据迭代公式对神经网络进行迭代;Step S702, iterating the neural network according to the iteration formula;

在一些实施例中,根据迭代公式对神经网络进行迭代,把迭代算法的一次迭代过程看成神经网络的一层,能够通过较少的层数完成收敛,并且迭代过程中引入可学习参数以通过监督学习的方式进行训练,提高设备的检测准确性。In some embodiments, the neural network is iterated according to the iterative formula, and an iterative process of the iterative algorithm is regarded as a layer of the neural network, the convergence can be completed through fewer layers, and learnable parameters are introduced in the iterative process to pass Supervised learning is used for training to improve the detection accuracy of the device.

步骤S703,将待检测设备的通信信号输入迭代后的神经网络进行活跃检测,确定待检测设备的活跃状态。Step S703, input the communication signal of the device to be detected into the iterative neural network to perform activity detection, and determine the active state of the device to be detected.

在一些实施例中,将待检测设备的通信信号输入迭代后的神经网络进行设备状态的检测,其中,待检测设备的通信信号中携带有待检测设备的特征序列,获取待检测设备的特征序列以及特征序列对应的时延值,构成待检测设备的等效特征序列,并根据公式(3)至(7)进行计算,输出

Figure BDA0004134354650000091
从而确定待检测设备的活跃状态。In some embodiments, the communication signal of the device to be detected is input into the iterative neural network to detect the state of the device, wherein the communication signal of the device to be detected carries the characteristic sequence of the device to be detected, and the characteristic sequence of the device to be detected is obtained and The delay value corresponding to the characteristic sequence constitutes the equivalent characteristic sequence of the device to be detected, and is calculated according to formulas (3) to (7), and the output
Figure BDA0004134354650000091
Thereby determining the active state of the device to be detected.

为了更加清楚的说明基于神经网络的设备检测方法的流程,下面以具体的示例进行说明。In order to more clearly illustrate the process of the neural network-based device detection method, a specific example will be used below.

示例一:Example one:

参照图8,图8为本申请一个具体示例提供的基于神经网络的设备检测方法的示意图;Referring to FIG. 8, FIG. 8 is a schematic diagram of a neural network-based device detection method provided in a specific example of the present application;

首先,将接入点收集得到的通信信号输入数据生成函数中进行计算,输出训练数据集以及测试数据集,其中,训练数据集以及测试数据集中的样本个数可以根据使用者的实际需要自行设置,本实施例中每次根据公式(3)独立产生1280000个训练样本组成训练数据集,并产生100000个验证集样本组成测试数据集,每一个训练周期包括10000次循环,每次循环中数据按照批量的形式传入到神经网络,一次的批量是128,之后基于本实施例中的设备检测方法将训练数据集以及测试数据集输入神经网络进行训练,根据训练数据集以及测试数据集中的设备的活跃状态以及时延值构建指示变量函数,并对指示变量函数进行初始化,将指示变量函数输入神经网络进行求和计算,得到协方差矩阵,再引入第一矩阵以及第二矩阵对协方差矩阵进行矩阵近似操作,得到近似矩阵,并通过可学习的惩罚因子对训练数据集以及测试数据集进行梯度计算,得到梯度信息,再基于可学习参数对梯度信息以及指示变量函数进行迭代更新,得到更新变量,从而可以有效的减少传统迭代算法的计算复杂度,最后,根据更新变量对神经网络进行迭代,将迭代算法的一次迭代过程看成神经网络一层,将待检测设备输入迭代后的神经网络进行活跃检测,确定待检测设备的活跃状态,提高网络的活跃设备检测能力。First, the communication signal collected by the access point is input into the data generation function for calculation, and the training data set and the test data set are output. The number of samples in the training data set and the test data set can be set according to the actual needs of the user. , in this embodiment, each time according to formula (3), 1,280,000 training samples are independently generated to form a training data set, and 100,000 verification set samples are generated to form a test data set. Each training cycle includes 10,000 cycles, and the data in each cycle is according to The form of batches is imported into the neural network, and the batch size at a time is 128. Then, based on the device detection method in this embodiment, the training data set and the test data set are input into the neural network for training. The active state and the delay value construct the indicator variable function, and initialize the indicator variable function, input the indicator variable function into the neural network for sum calculation, and obtain the covariance matrix, and then introduce the first matrix and the second matrix to carry out the covariance matrix Matrix approximation operation to obtain an approximate matrix, and calculate the gradient of the training data set and the test data set through the learnable penalty factor to obtain the gradient information, and then iteratively update the gradient information and the indicator variable function based on the learnable parameters to obtain the updated variable , so that the computational complexity of the traditional iterative algorithm can be effectively reduced. Finally, the neural network is iterated according to the update variable, and an iterative process of the iterative algorithm is regarded as a layer of the neural network, and the device to be tested is input into the iterative neural network for Active detection, to determine the active state of the device to be detected, and improve the active device detection capability of the network.

参照图8可以看出,本实施例中的基于神经网络的设备检测方法具备良好的收敛性,并且需要较少的层数就可以完成收敛,其中,I为神经网络的不同的层数。Referring to FIG. 8 , it can be seen that the neural network-based device detection method in this embodiment has good convergence, and requires fewer layers to complete the convergence, where I is a different number of layers of the neural network.

参照图9,图9为本申请另一个具体示例提供的基于神经网络的设备检测方法的示意图;Referring to FIG. 9, FIG. 9 is a schematic diagram of a neural network-based device detection method provided in another specific example of the present application;

参照图9可以看出,本申请与现有的坐标下降算法以及罚函数法进行对比,具备较低的虚警概率以及漏检概率,因此本实施例的方法能够提高对设备的活跃状态检测的准确性。Referring to FIG. 9, it can be seen that, compared with the existing coordinate descent algorithm and the penalty function method, the present application has a lower false alarm probability and a lower probability of missed detection, so the method of this embodiment can improve the detection accuracy of the active state of the device accuracy.

请参照图10,图10是本申请实施例提供的基于神经网络的设备检测装置的模块结构框图,用于执行上述任一实施例的基于神经网络的设备检测方法,装置包括:Please refer to FIG. 10. FIG. 10 is a block diagram of a module structure of a device detection device based on a neural network provided by an embodiment of the present application, which is used to implement the device detection method based on a neural network in any of the above embodiments. The device includes:

数据获取模块801,用于获取训练数据集以及测试数据集,其中,训练数据集以及测试数据集由预设的数据生成函数对接入点收集的通信信号计算得到,接入点包括至少一个设备;The data acquisition module 801 is configured to acquire a training data set and a test data set, wherein the training data set and the test data set are calculated by a preset data generation function on communication signals collected by the access point, and the access point includes at least one device ;

函数构建模块802,用于根据训练数据集以及测试数据集中设备的活跃状态以及时延值构建指示变量函数;A function construction module 802, configured to construct an indicator variable function according to the active state and the delay value of the equipment in the training data set and the test data set;

迭代计算模块803,用于将指示变量函数输入神经网络进行求和计算,输出协方差矩阵;The iterative calculation module 803 is used to input the indicator variable function into the neural network for sum calculation, and output the covariance matrix;

梯度计算模块804,用于根据协方差矩阵、预设的第一矩阵、预设的第二矩阵以及预设的可学习参数对训练数据集以及测试数据集进行梯度计算,得到梯度信息;The gradient calculation module 804 is used to perform gradient calculation on the training data set and the test data set according to the covariance matrix, the preset first matrix, the preset second matrix and the preset learnable parameters to obtain gradient information;

迭代更新模块805,用于基于可学习参数对梯度信息以及指示变量函数进行迭代更新,得到更新变量;An iterative update module 805, configured to iteratively update gradient information and indicator variable functions based on learnable parameters to obtain update variables;

活跃检测模块806,用于根据更新变量对神经网络进行迭代,并将待检测设备输入迭代后的神经网络进行活跃检测,确定待检测设备的活跃状态。The active detection module 806 is configured to iterate the neural network according to the updated variables, and input the device to be detected into the iterated neural network for liveness detection, so as to determine the active state of the device to be detected.

本申请实施例的基于神经网络的设备检测装置用于执行上述实施例中的基于神经网络的设备检测方法,其具体处理过程与上述实施例中的基于神经网络的设备检测方法相同,此处不再一一赘述。The device detection device based on neural network in the embodiment of the present application is used to implement the device detection method based on neural network in the above embodiment, and its specific processing process is the same as the device detection method based on neural network in the above embodiment, which is not mentioned here Let me repeat them one by one.

本申请实施例还提供了一种计算机设备,包括存储器和处理器,其中,存储器中存储有计算机程序,该计算机程序被处理器执行时处理器用于执行本申请上述实施例中的基于神经网络的设备检测方法。The embodiment of the present application also provides a computer device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is used to execute the neural network-based neural network in the above embodiments of the present application. Device detection method.

下面结合图11对计算机设备的硬件结构进行详细说明。该计算机设备包括:处理器910、存储器920、输入/输出接口930、通信接口940和总线950。The hardware structure of the computer device will be described in detail below in conjunction with FIG. 11 . The computer device includes: a processor 910 , a memory 920 , an input/output interface 930 , a communication interface 940 and a bus 950 .

处理器910,可以采用通用的CPU(Central Processin Unit,中央处理器)、微处理器、应用专用集成电路(Application Specific Integrated Circuit,ASIC)、或者一个或多个集成电路等方式实现,用于执行相关程序,以实现本申请实施例所提供的技术方案;The processor 910 may be implemented by a general-purpose CPU (Central Processing Unit, central processing unit), a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute Relevant programs to realize the technical solutions provided by the embodiments of the present application;

存储器920,可以采用只读存储器(Read Only Memory,ROM)、静态存储设备、动态存储设备或者随机存取存储器(Random Access Memory,RAM)等形式实现。存储器920可以存储操作系统和其他应用程序,在通过软件或者固件来实现本说明书实施例所提供的技术方案时,相关的程序代码保存在存储器920中,并由处理器910来调用执行本申请实施例的基于神经网络的设备检测方法;The memory 920 may be implemented in the form of a read only memory (Read Only Memory, ROM), a static storage device, a dynamic storage device, or a random access memory (Random Access Memory, RAM). The memory 920 can store operating systems and other application programs. When implementing the technical solutions provided by the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 920 and called by the processor 910 to execute the implementation of the present application. Example of device detection method based on neural network;

输入/输出接口930,用于实现信息输入及输出;The input/output interface 930 is used to realize information input and output;

通信接口940,用于实现本设备与其他设备的通信交互,可以通过有线方式(例如USB、网线等)实现通信,也可以通过无线方式(例如移动网络、WIFI、蓝牙等)实现通信;和总线950,在设备的各个组件(例如处理器910、存储器920、输入/输出接口930和通信接口940)之间传输信息;The communication interface 940 is used to realize the communication interaction between this device and other devices, which can realize communication through wired methods (such as USB, network cable, etc.), or can realize communication through wireless methods (such as mobile network, WIFI, Bluetooth, etc.); and bus 950, transmitting information between various components of the device (such as the processor 910, the memory 920, the input/output interface 930, and the communication interface 940);

其中处理器910、存储器920、输入/输出接口930和通信接口940通过总线950实现彼此之间在设备内部的通信连接。The processor 910 , the memory 920 , the input/output interface 930 and the communication interface 940 are connected to each other within the device through the bus 950 .

本申请实施例还提供一种存储介质,该存储介质为计算机可读存储介质,计算机可读存储介质存储有计算机程序,在计算机程序被计算机执行时,计算机用于执行如本申请上述实施例中的基于神经网络的设备检测方法。The embodiment of the present application also provides a storage medium, the storage medium is a computer-readable storage medium, and the computer-readable storage medium stores a computer program. When the computer program is executed by a computer, the computer is used to execute the A neural network-based device detection method.

存储器作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序以及非暂态性计算机可执行程序。此外,存储器可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施方式中,存储器可选包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至该处理器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。As a non-transitory computer-readable storage medium, memory can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the processor via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

本申请实施例描述的实施例是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域技术人员可知,随着技术的演变和新应用场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The embodiments described in the embodiments of the present application are to illustrate the technical solutions of the embodiments of the present application more clearly, and do not constitute a limitation to the technical solutions provided by the embodiments of the present application. Those skilled in the art know that with the evolution of technology and new For the emergence of application scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.

本领域技术人员可以理解的是,图1至图7中示出的技术方案并不构成对本申请实施例的限定,可以包括比图示更多或更少的步骤,或者组合某些步骤,或者不同的步骤。Those skilled in the art can understand that the technical solutions shown in Figures 1 to 7 do not constitute limitations on the embodiments of the present application, and may include more or fewer steps than those shown in the illustrations, or combine certain steps, or different steps.

以上所描述的装置实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、设备中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。Those of ordinary skill in the art can understand that all or some of the steps in the methods disclosed above, the functional modules/units in the system, and the device can be implemented as software, firmware, hardware, and an appropriate combination thereof.

本申请的说明书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the description of the present application and the above drawings are used to distinguish similar objects and not necessarily to describe specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

应当理解,在本申请中,“至少一个(项)”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系,例如,“A和/或B”可以表示:只存在A,只存在B以及同时存在A和B三种情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,“a和b”,“a和c”,“b和c”,或“a和b和c”,其中a,b,c可以是单个,也可以是多个。It should be understood that in this application, "at least one (item)" means one or more, and "multiple" means two or more. "And/or" is used to describe the association relationship of associated objects, indicating that there can be three types of relationships, for example, "A and/or B" can mean: only A exists, only B exists, and A and B exist at the same time , where A and B can be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one item (piece) of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c ", where a, b, c can be single or multiple.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括多指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including multiple instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk or optical disk, etc., which can store programs. medium.

以上参照附图说明了本申请实施例的优选实施例,并非因此局限本申请实施例的权利范围。本领域技术人员不脱离本申请实施例的范围和实质内所作的任何修改、等同替换和改进,均应在本申请实施例的权利范围之内。The preferred embodiments of the embodiments of the present application have been described above with reference to the accompanying drawings, which does not limit the scope of rights of the embodiments of the present application. Any modifications, equivalent replacements and improvements made by those skilled in the art without departing from the scope and essence of the embodiments of the present application shall fall within the scope of rights of the embodiments of the present application.

Claims (10)

1.一种基于神经网络的设备检测方法,其特征在于,所述方法包括:1. A neural network-based device detection method, characterized in that the method comprises: 获取训练数据集以及测试数据集,其中,所述训练数据集以及所述测试数据集由预设的数据生成函数对接入点收集的通信信号计算得到,所述接入点包括至少一个设备;Acquiring a training data set and a test data set, wherein the training data set and the test data set are calculated by a preset data generation function on communication signals collected by an access point, and the access point includes at least one device; 根据所述训练数据集以及所述测试数据集中设备的活跃状态以及时延值构建指示变量函数;Constructing an indicator variable function according to the active state and delay value of the equipment in the training data set and the test data set; 将所述指示变量函数输入所述神经网络进行求和计算,输出协方差矩阵;Input the indicator variable function into the neural network for sum calculation, and output the covariance matrix; 根据所述协方差矩阵、预设的第一矩阵、预设的第二矩阵以及预设的可学习参数对所述训练数据集以及所述测试数据集进行梯度计算,得到梯度信息;performing gradient calculation on the training data set and the test data set according to the covariance matrix, the preset first matrix, the preset second matrix and the preset learnable parameters to obtain gradient information; 基于所述可学习参数对所述梯度信息以及所述指示变量函数进行迭代更新,得到更新变量;Iteratively updating the gradient information and the indicator variable function based on the learnable parameters to obtain updated variables; 根据所述更新变量对所述神经网络进行迭代,并将待检测设备的通信信号输入迭代后的神经网络进行活跃检测,确定所述待检测设备的活跃状态。The neural network is iterated according to the update variable, and the communication signal of the device to be detected is input into the iterated neural network for active detection, and the active state of the device to be detected is determined. 2.根据权利要求1所述的设备检测方法,其特征在于,还包括:2. The device detection method according to claim 1, further comprising: 获取设备的特征序列以及与所述特征序列对应的时延值;Obtaining a characteristic sequence of the device and a delay value corresponding to the characteristic sequence; 根据所述特征序列以及所述时延值得到所述设备的等效特征序列。An equivalent signature sequence of the device is obtained according to the signature sequence and the delay value. 3.根据权利要求2所述的设备检测方法,其特征在于,所述训练数据集以及测试数据集根据如下步骤得到:3. The device detection method according to claim 2, wherein the training data set and the test data set are obtained according to the following steps: 获取所述设备与所述接入点之间的小尺度衰落信道信息以及所述设备的发射功率;Obtaining small-scale fading channel information between the device and the access point and transmit power of the device; 计算所述设备与所述接入点之间的距离,得到距离值;calculating the distance between the device and the access point to obtain a distance value; 将所述距离值输入预设的损耗模型,得到大尺度衰落信息;inputting the distance value into a preset loss model to obtain large-scale fading information; 根据所述发射功率、所述大尺度衰落信息以及所述等效特征序列生成第一函数;generating a first function according to the transmit power, the large-scale fading information, and the equivalent eigensequence; 根据所述小尺度衰落信道信息、所述第一函数以及预设的高斯分布值得到所述数据生成函数;Obtaining the data generation function according to the small-scale fading channel information, the first function, and a preset Gaussian distribution value; 将所述接入点收集的通信信号输入所述数据生成函数进行计算,输出所述训练数据集以及所述测试数据集。The communication signal collected by the access point is input into the data generation function for calculation, and the training data set and the test data set are output. 4.根据权利要求3所述的设备检测方法,其特征在于,所述将所述指示变量函数输入所述神经网络进行求和计算,输出协方差矩阵,包括:4. The device detection method according to claim 3, wherein the input of the indicator variable function into the neural network is summed and calculated, and the covariance matrix is output, comprising: 获取所述接入点的噪声功率;obtaining the noise power of the access point; 将所述噪声功率、所述第一函数、所述指示变量函数以及预设的单位矩阵输入所述神经网络进行求和计算,输出协方差矩阵。Inputting the noise power, the first function, the indicator variable function, and a preset identity matrix into the neural network for sum calculation, and outputting a covariance matrix. 5.根据权利要求1所述的设备检测方法,其特征在于,所述可学习参数包括惩罚因子;所述根据所述协方差矩阵、预设的第一矩阵、预设的第二矩阵以及预设的可学习参数对所述训练数据集以及所述测试数据集进行梯度计算,得到梯度信息,包括:5. The device detection method according to claim 1, wherein the learnable parameters include a penalty factor; the covariance matrix, the preset first matrix, the preset second matrix and the preset The set learnable parameters carry out gradient calculation on the training data set and the test data set to obtain gradient information, including: 根据所述第一矩阵以及所述第二矩阵对所述协方差矩阵进行矩阵近似操作,得到近似矩阵;performing a matrix approximation operation on the covariance matrix according to the first matrix and the second matrix to obtain an approximate matrix; 根据所述近似矩阵以及所述惩罚因子对所述训练数据集以及所述测试数据集进行梯度计算,得到所述梯度信息。Perform gradient calculation on the training data set and the test data set according to the approximation matrix and the penalty factor to obtain the gradient information. 6.根据权利要求1所述的设备检测方法,其特征在于,所述可学习参数包括迭代步长;所述基于所述可学习参数对所述梯度信息以及所述指示变量函数进行迭代更新,得到更新变量,包括:6. The device detection method according to claim 1, wherein the learnable parameters include an iterative step size; the gradient information and the indicator variable function are iteratively updated based on the learnable parameters, Get updated variables, including: 将所述迭代步长与所述梯度信息进行相乘,得到乘积结果;multiplying the iteration step size by the gradient information to obtain a product result; 根据所述指示变量函数以及所述乘积结果得到所述更新变量。The update variable is obtained according to the indicator variable function and the product result. 7.根据权利要求1所述的设备检测方法,其特征在于,所述根据所述更新变量对所述神经网络进行迭代,并将待检测设备输入迭代后的神经网络进行活跃检测,确定所述待检测设备的活跃状态,包括:7. The device detection method according to claim 1, wherein the neural network is iterated according to the update variable, and the device to be detected is input into the iterated neural network for active detection, and the Active status of the device to be detected, including: 根据所述更新变量以及所述可学习参数生成迭代公式;generating an iterative formula according to the update variable and the learnable parameter; 根据所述迭代公式对所述神经网络进行迭代;Iterating the neural network according to the iterative formula; 将所述待检测设备输入迭代后的神经网络进行活跃检测,确定所述待检测设备的活跃状态。Inputting the device to be detected into the iterated neural network for active detection, and determining the active state of the device to be detected. 8.一种基于神经网络的设备检测装置,其特征在于,所述装置包括:8. A device detection device based on a neural network, characterized in that the device comprises: 数据获取模块,用于获取训练数据集以及测试数据集,其中,所述训练数据集以及所述测试数据集由预设的数据生成函数对接入点收集的通信信号计算得到,所述接入点包括至少一个设备;A data acquisition module, configured to acquire a training data set and a test data set, wherein the training data set and the test data set are obtained by calculating the communication signals collected by the access point by a preset data generation function, and the access A point includes at least one device; 函数构建模块,用于根据所述训练数据集以及所述测试数据集中设备的活跃状态以及时延值构建指示变量函数;A function construction module, configured to construct an indicator variable function according to the active state and delay value of the equipment in the training data set and the test data set; 迭代计算模块,用于将所述指示变量函数输入所述神经网络进行求和计算,输出协方差矩阵;An iterative calculation module, configured to input the indicator variable function into the neural network for sum calculation, and output a covariance matrix; 梯度计算模块,用于根据所述协方差矩阵、预设的第一矩阵、预设的第二矩阵以及预设的可学习参数对所述训练数据集以及所述测试数据集进行梯度计算,得到梯度信息;A gradient calculation module, configured to perform gradient calculation on the training data set and the test data set according to the covariance matrix, the preset first matrix, the preset second matrix and the preset learnable parameters, to obtain gradient information; 迭代更新模块,用于基于所述可学习参数对所述梯度信息以及所述指示变量函数进行迭代更新,得到更新变量;an iterative update module, configured to iteratively update the gradient information and the indicator variable function based on the learnable parameters to obtain updated variables; 活跃检测模块,用于根据所述更新变量对所述神经网络进行迭代,并将待检测设备的通信信号输入迭代后的神经网络进行活跃检测,确定所述待检测设备的活跃状态。The active detection module is configured to iterate the neural network according to the update variable, and input the communication signal of the device to be detected into the iterated neural network for active detection, and determine the active state of the device to be detected. 9.一种计算机设备,其特征在于,所述计算机设备包括存储器和处理器,其中,所述存储器中存储有计算机程序,所述计算机程序被所述处理器执行时,所述处理器用于执行如权利要求1至7中任一项所述的方法。9. A computer device, characterized in that the computer device includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is used to execute The method according to any one of claims 1 to 7. 10.一种存储介质,其特征在于,所述存储介质为计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,在所述计算机程序被计算机执行时,所述计算机用于执行如权利要求1至7中任一项所述的方法。10. A storage medium, wherein the storage medium is a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a computer, the A computer is used to execute the method according to any one of claims 1-7.
CN202310269953.7A 2023-03-14 2023-03-14 Equipment detection method and device based on neural network, computer equipment and medium Pending CN116390139A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310269953.7A CN116390139A (en) 2023-03-14 2023-03-14 Equipment detection method and device based on neural network, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310269953.7A CN116390139A (en) 2023-03-14 2023-03-14 Equipment detection method and device based on neural network, computer equipment and medium

Publications (1)

Publication Number Publication Date
CN116390139A true CN116390139A (en) 2023-07-04

Family

ID=86963966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310269953.7A Pending CN116390139A (en) 2023-03-14 2023-03-14 Equipment detection method and device based on neural network, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN116390139A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118798397A (en) * 2024-09-14 2024-10-18 清华大学 Training methods and devices for efficient collaborative learning

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118798397A (en) * 2024-09-14 2024-10-18 清华大学 Training methods and devices for efficient collaborative learning
CN118798397B (en) * 2024-09-14 2024-11-29 清华大学 Training methods and devices for efficient collaborative learning

Similar Documents

Publication Publication Date Title
CN109754105B (en) Prediction method, terminal and server
US8438189B2 (en) Local computation of rank contributions
CN114239840B (en) Quantum channel noise coefficient estimation method and device, electronic equipment and medium
CN113065660B (en) Quantum state measurement method, device, equipment, storage medium and system
CN111090877B (en) Data generation and acquisition methods, corresponding devices and storage medium
CN115329972B (en) Quantum computer performance determining method and device, electronic equipment and medium
CN116390139A (en) Equipment detection method and device based on neural network, computer equipment and medium
CN115700548A (en) Method, apparatus and computer program product for user behavior prediction
CN115994582B (en) Quantum measurement device performance comparison method and device, electronic device and medium
CN113098624A (en) Quantum state measurement method, device, equipment, storage medium and system
CN117375855A (en) Abnormality detection method, model training method and related equipment
Lu et al. HLognGP: A parallel computation model for GPU clusters
Fu et al. Seeking the truth in a decentralized manner
CN115174237B (en) Method and device for detecting malicious traffic of Internet of things system and electronic equipment
CN112036418A (en) Method and device for extracting user features
CN113487041B (en) Transverse federal learning method, device and storage medium
CN108959194A (en) Perception task distribution method, device, system and readable storage medium storing program for executing
EP4402872A1 (en) Systems and methods for performing root cause analysis
KR20230149630A (en) Apparatus and method of processing quantum state tomography in quantum information integrated processing system
CN113704309A (en) Graph data processing method and device, computer equipment and storage medium
CN115208944B (en) Method, system, computer device and medium for detecting active users and data
CN114826707B (en) Method, apparatus, electronic device and computer readable medium for dealing with user threats
CN116739098B (en) Quantum measurement device performance estimation method and device, electronic device and medium
CN118396085B (en) Online text recognition model training method, online text recognition method and device
CN112488867B (en) User attribute deduction method and system in social information service

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