+

CN113612555A - Intelligent calibration algorithm and system based on mobile terminal wireless radio frequency signal intensity - Google Patents

Intelligent calibration algorithm and system based on mobile terminal wireless radio frequency signal intensity Download PDF

Info

Publication number
CN113612555A
CN113612555A CN202110952490.5A CN202110952490A CN113612555A CN 113612555 A CN113612555 A CN 113612555A CN 202110952490 A CN202110952490 A CN 202110952490A CN 113612555 A CN113612555 A CN 113612555A
Authority
CN
China
Prior art keywords
calibration
mobile terminal
neural network
value
calibration model
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.)
Granted
Application number
CN202110952490.5A
Other languages
Chinese (zh)
Other versions
CN113612555B (en
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.)
Jiangxi Saibai Technology Co ltd
Jiangxi Normal University
Original Assignee
Jiangxi Saibai Technology Co ltd
Jiangxi Normal University
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 Jiangxi Saibai Technology Co ltd, Jiangxi Normal University filed Critical Jiangxi Saibai Technology Co ltd
Priority to CN202110952490.5A priority Critical patent/CN113612555B/en
Publication of CN113612555A publication Critical patent/CN113612555A/en
Application granted granted Critical
Publication of CN113612555B publication Critical patent/CN113612555B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/004Artificial life, i.e. computing arrangements simulating life
    • G06N3/006Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/10Monitoring; Testing of transmitters
    • H04B17/11Monitoring; Testing of transmitters for calibration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/20Monitoring; Testing of receivers
    • H04B17/21Monitoring; Testing of receivers for calibration; for correcting measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/33Services specially adapted for particular environments, situations or purposes for indoor environments, e.g. buildings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/006Locating users or terminals or network equipment for network management purposes, e.g. mobility management with additional information processing, e.g. for direction or speed determination
    • 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)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Biophysics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Electromagnetism (AREA)
  • Quality & Reliability (AREA)
  • Monitoring And Testing Of Transmission In General (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明提出基于移动终端无线射频信号强度的智能标定算法及系统,根据提出的非线性收敛因子得到改进的BP神经网络标定模型建立标定模型库,记录并保存终端型号及对应的标定模型参数;判断移动终端型号是否在标定模型库中,若否则以标准移动终端在所有采集点采集到的所有AP的原始RSSI观测值作为标准采样数据,以该移动终端在对应采集点上所有对应AP的原始RSSI观测值作为测试采样数据;以该移动终端在室内任意位置接收到的原始RSSI观测值作为标定模型输入,将其经过改进的BP神经网络标定模型进行处理,最终的输出作为标定值。本发明可避免算法陷入局部最优,适用性广,仅通过手持的移动终端即可完成标定工作,有效消除了不同移动终端的软硬件异构差异。

Figure 202110952490

The invention proposes an intelligent calibration algorithm and system based on the wireless radio frequency signal strength of the mobile terminal, establishes a calibration model library according to the BP neural network calibration model with an improved nonlinear convergence factor proposed, records and saves the terminal model and the corresponding calibration model parameters; Whether the mobile terminal model is in the calibration model library, if not, use the raw RSSI observations of all APs collected by the standard mobile terminal at all collection points as the standard sampling data, and use the mobile terminal at the corresponding collection point. The observed value is used as the test sampling data; the original RSSI observation value received by the mobile terminal at any indoor position is used as the input of the calibration model, and the improved BP neural network calibration model is processed, and the final output is used as the calibration value. The invention can avoid the algorithm from falling into local optimum, has wide applicability, can complete the calibration work only through the hand-held mobile terminal, and effectively eliminates the heterogeneous differences of software and hardware of different mobile terminals.

Figure 202110952490

Description

基于移动终端无线射频信号强度的智能标定算法及系统Intelligent calibration algorithm and system based on mobile terminal radio frequency signal strength

技术领域technical field

本发明涉及无线射频信号强度观测值标定领域,特别涉及一种基于移动终端无线射频信号强度的智能标定算法及系统。The invention relates to the field of radio frequency signal strength observation value calibration, in particular to an intelligent calibration algorithm and system based on the radio frequency signal strength of a mobile terminal.

背景技术Background technique

在室内定位领域,可以利用移动终端无线射频信号传播的多路径效应进行环境感知,通过获取信号特征进行指纹定位。但是由于不同移动终端的软件、硬件都不相同,使得不同移动终端在同一位置接收到的射频信号强度观测值存在较大差异,导致指纹定位不可用。为了解决上述问题,需要对射频信号强度观测值进行标定,使得其他移动终端与标准移动终端在同一位置接收到的射频信号强度观测值趋于一致。In the field of indoor positioning, the multi-path effect of the wireless radio frequency signal propagation of the mobile terminal can be used for environmental perception, and the fingerprint positioning can be carried out by obtaining the signal characteristics. However, because the software and hardware of different mobile terminals are different, the observed values of radio frequency signal strengths received by different mobile terminals at the same location are quite different, resulting in unusable fingerprint positioning. In order to solve the above problem, it is necessary to calibrate the observed value of the radio frequency signal strength, so that the observed value of the radio frequency signal strength received by other mobile terminals and the standard mobile terminal at the same location tends to be consistent.

本发明提出一种基于移动终端无线射频信号强度的智能标定算法及系统,基于此,为了进一步加快标定算法的建立与优化,避免陷入局部最优,本发明还提出了一种非线性的收敛因子a得到改进的BP神经网络标定模型,使得其他移动终端与标准移动终端在同一位置接收到的射频信号强度观测值趋于一致。用户仅通过手持移动终端即可完成标定工作,有效消除了各移动终端的软硬件异构差异,操作简单,可提高对环境的适应性,可扩展性强,适用性广。The present invention proposes an intelligent calibration algorithm and system based on the strength of the radio frequency signal of the mobile terminal. Based on this, in order to further speed up the establishment and optimization of the calibration algorithm and avoid falling into local optimum, the present invention also proposes a nonlinear convergence factor a The improved BP neural network calibration model makes the observed values of RF signal strengths received by other mobile terminals and standard mobile terminals at the same location tend to be consistent. The user can complete the calibration work only by holding the mobile terminal, which effectively eliminates the heterogeneous differences of software and hardware of each mobile terminal. The operation is simple, and the adaptability to the environment can be improved.

发明内容SUMMARY OF THE INVENTION

本发明是为了解决现有技术中,由于各移动终端软硬件异构导致接收到的射频信号强度观测值存在较大差异,且传统标定方法步骤复杂,适应范围窄、可扩展性低的问题。The present invention is to solve the problems in the prior art that the received radio frequency signal strength observation values are quite different due to the heterogeneity of software and hardware of each mobile terminal, and the traditional calibration method has complex steps, narrow adaptability and low scalability.

为了解决这一技术问题,本发明提出一种基于移动终端无线射频信号强度的智能标定算法及系统,可对每个移动终端建立对应的改进的BP神经网络标定模型,其中,所述方法包括如下步骤:In order to solve this technical problem, the present invention proposes an intelligent calibration algorithm and system based on the strength of radio frequency signals of mobile terminals, which can establish a corresponding improved BP neural network calibration model for each mobile terminal, wherein the method includes the following step:

根据提出的非线性收敛因子得到改进的BP神经网络标定模型建立标定模型库,记录并保存终端型号及对应的标定模型参数;According to the proposed BP neural network calibration model with improved nonlinear convergence factor, a calibration model library is established, and the terminal model and the corresponding calibration model parameters are recorded and saved;

手持某个移动终端进行标定之前,判断该终端型号是否在标定模型库中;Before holding a mobile terminal for calibration, determine whether the terminal model is in the calibration model library;

若否,则以标准移动终端在所有采集点上所有AP的所有原始射频信号强度观测值作为标准采样数据,以该移动终端在对应采集点上所有对应AP的所有原始射频信号强度观测值作为测试采样数据;根据所述标准采样数据以及所述测试采样数据建立并训练得到改进的BP神经网络标定模型,记录并保存终端型号及对应的标定模型参数;If not, take all the original radio frequency signal strength observations of all APs at all collection points of the standard mobile terminal as the standard sampling data, and use all the original radio frequency signal strength observations of all corresponding APs at the corresponding collection points of the mobile terminal as the test Sampling data; establish and train an improved BP neural network calibration model according to the standard sampling data and the test sampling data, and record and save the terminal model and the corresponding calibration model parameters;

若是,则直接利用标定模型库对应的标定模型参数进行标定;If so, directly use the calibration model parameters corresponding to the calibration model library to calibrate;

手持该移动终端进行标定时以在室内任意位置接收到的原始射频信号强度观测值作为标定模型输入,将其经过改进的BP神经网络标定模型进行处理,最终得到的输出作为标定值以完成对该移动终端的智能标定。When holding the mobile terminal for calibration, the original RF signal strength observation value received at any position in the room is used as the input of the calibration model, and it is processed by the improved BP neural network calibration model, and the final output is used as the calibration value to complete the calibration model. Smart calibration of mobile terminals.

基于移动终端无线射频信号强度的智能标定算法,利用改进的BP神经网络标定模型建立标定模型库的方法,包括如下步骤:Based on the intelligent calibration algorithm of the wireless radio frequency signal strength of the mobile terminal, the method for establishing the calibration model library by using the improved BP neural network calibration model includes the following steps:

步骤1:在室内任意选择若干个采集点,标准手机在所有采集点上采集射频信号强度,综合表示为初始标准采样数据,以移动终端在对应采集点上所有对应AP的所有原始射频信号强度观测值作为测试采样数据,以所述测试采样数据为改进的BP神经网络标定模型的真实输入值,以所述初始标准采样数据为改进的BP神经网络标定模型的真实输出值,随机初始化神经网络的各层权值

Figure BDA0003219057560000021
阈值
Figure BDA0003219057560000022
作为初始鲸鱼群位置向量Xi,设置鲸鱼种群大小N,当前鲸鱼种群迭代次数t=0,鲸鱼种群最大迭代数tmax,当前BP神经网络迭代次数T,BP神经网络最大迭代次数Tmax;Step 1: Select a number of collection points at random in the room. The standard mobile phone collects the RF signal strength at all the collection points, and comprehensively expresses it as the initial standard sampling data, and observes all the original RF signal strengths of all the corresponding APs at the corresponding collection point by the mobile terminal. The value is used as the test sampling data, and the test sampling data is the real input value of the improved BP neural network calibration model, and the initial standard sampling data is the real output value of the improved BP neural network calibration model. The weights of each layer
Figure BDA0003219057560000021
threshold
Figure BDA0003219057560000022
As the initial whale population position vector X i , set the whale population size N, the current whale population iteration number t=0, the whale population maximum iteration number t max , the current BP neural network iteration number T, and the BP neural network maximum iteration number T max ;

步骤2:当鲸鱼种群迭代次数t小于鲸鱼种群最大迭代次数tmax时,计算每只鲸鱼的适应度值f(Xi),找出最好的适应度及对应的最优鲸鱼位置XbestStep 2: When the number of iterations t of the whale population is less than the maximum number of iterations t max of the whale population, calculate the fitness value f(X i ) of each whale, and find the best fitness and the corresponding optimal whale position X best ;

Figure BDA0003219057560000023
Figure BDA0003219057560000023

其中,yi为标准采样数据的第i个RSSI真实值,y为测试采样数据的第i个RSSI预测值,n为样本个数;Among them, yi is the ith RSSI real value of the standard sampling data, y is the ith RSSI prediction value of the test sampling data, and n is the number of samples;

步骤3:为了加快标定算法的建立与优化,更新迭代速度有所提升,提出了一种非线性的收敛因子a模拟包围猎物的收缩行为,收敛因子a只随着当前迭代次数t动态变化,可以较为有效避免陷入局部最优;Step 3: In order to speed up the establishment and optimization of the calibration algorithm and improve the update iteration speed, a nonlinear convergence factor a is proposed to simulate the shrinking behavior of surrounding prey. The convergence factor a only changes dynamically with the current iteration number t, which can be It is more effective to avoid falling into local optimum;

Figure BDA0003219057560000031
Figure BDA0003219057560000031

其中,t为当前鲸鱼种群迭代次数,tmax为鲸鱼种群最大迭代次数;更新鲸鱼位置参数A、C;Among them, t is the number of iterations of the current whale population, and t max is the maximum number of iterations of the whale population; update the whale position parameters A and C;

A=2ar-a (3)A=2ar-a (3)

C=2r (4)C=2r (4)

其中,r是[0,1]的一个随机数;Among them, r is a random number in [0,1];

步骤4:随机产生概率p,判断p是否小于0.5,若p≥0.5,则进行收缩包围位置更新:Step 4: Randomly generate probability p, determine whether p is less than 0.5, if p ≥ 0.5, then update the shrinking and surrounding position:

Figure BDA0003219057560000032
Figure BDA0003219057560000032

其中,t为当前鲸鱼种群迭代次数;Xbest为最优鲸鱼位置;Xi为当前鲸鱼位置;A和C为步骤3所得出的系数向量;Among them, t is the number of iterations of the current whale population; X best is the optimal whale position; X i is the current whale position; A and C are the coefficient vectors obtained in step 3;

若p<0.5,且当|A|<1时进行螺旋游走:If p<0.5, and when |A|<1, perform a spiral walk:

Figure BDA0003219057560000033
Figure BDA0003219057560000033

其中,

Figure BDA0003219057560000034
表示当前鲸鱼与最优位置的距离;b为常数,定义对数螺旋线形状;l为[-1,1]中随机数;in,
Figure BDA0003219057560000034
Indicates the distance between the current whale and the optimal position; b is a constant, defining the shape of a logarithmic spiral; l is a random number in [-1,1];

当|A|≥1时根据以下公式进行随机游走:When |A| ≥ 1, a random walk is performed according to the following formula:

Figure BDA0003219057560000035
Figure BDA0003219057560000035

其中,Xrand为随机选取的位置向量;Among them, X rand is a randomly selected position vector;

步骤5:鲸鱼种群迭代次数t自增,根据步骤2比较更新最优位置;当到达鲸鱼种群最大迭代次数tmax时,输出Xbest即最优权值wij、阈值θj,并作为BP神经网络最优初始参数;Step 5: The number of whale population iterations t increases automatically, and the optimal position is updated according to step 2; when the maximum number of iterations t max of the whale population is reached, output X best , which is the optimal weight w ij and threshold θ j , and serve as the BP neural network The optimal initial parameters of the network;

步骤6:BP神经网络进行正向传播过程,通过神经元之间的连接权值wij和神经元阈值θj进行数据加工,并采用非线性Sigmoid激活函数获得预测输出值。Step 6: The BP neural network performs the forward propagation process, performs data processing through the connection weight w ij between neurons and the neuron threshold θ j , and uses the nonlinear Sigmoid activation function to obtain the predicted output value.

Figure BDA0003219057560000036
Figure BDA0003219057560000036

Figure BDA0003219057560000037
Figure BDA0003219057560000037

其中,wij为神经元i到神经元j的连接权值;θj为神经元j阈值;Ij为神经元j输入值;Oj为神经元j输出值;RSSIx,i为神经元i的输入值。Among them, w ij is the connection weight of neuron i to neuron j; θ j is the threshold of neuron j; I j is the input value of neuron j; O j is the output value of neuron j; RSSI x,i is the neuron The input value of i.

步骤7:BP神经网络进行误差反向传播过程,通过正向传播过程获得预测输出值,根据智能设备的预测输出值与标准智能设备的真实输出值之间的差异得到当前迭代次数的损失函数Ej,将误差逆向传播至上一层神经元中得到该层误差,逐层传递直至最上层隐藏层,基于梯度下降法对连接权值和阈值进行不断调整。Step 7: The BP neural network performs the error back propagation process, obtains the predicted output value through the forward propagation process, and obtains the loss function E of the current iteration number according to the difference between the predicted output value of the smart device and the actual output value of the standard smart device j , the error is back-propagated to the neurons of the previous layer to obtain the layer error, which is passed layer by layer to the top hidden layer, and the connection weights and thresholds are continuously adjusted based on the gradient descent method.

Figure BDA0003219057560000041
Figure BDA0003219057560000041

Figure BDA0003219057560000042
Figure BDA0003219057560000042

Figure BDA0003219057560000043
Figure BDA0003219057560000043

其中,RSSIy,j为神经元j真实输出值;RSSI′y,j为输出层神经元j预测输出值;w′ij为更新后权值;θ′j为更新后阈值;η∈(0,1)为学习率,若其值偏大则收敛快但容易陷入局部最优,若偏小则收敛慢但逼近全局最优。Among them, RSSI y,j is the real output value of neuron j; RSSI′ y,j is the predicted output value of output layer neuron j; w′ ij is the updated weight; θ′ j is the updated threshold; η∈(0 ,1) is the learning rate. If the value is too large, the convergence will be fast but it is easy to fall into the local optimum. If it is too small, the convergence will be slow but approach the global optimum.

步骤8:经过反复学习训练,当BP神经网络当前迭代次数T到达BP神经网络最大迭代次数Tmax时,选取损失函数Ej最小的BP神经网络作为最终标定模型,保存当前改进的BP神经网络标定模型的参数。Step 8: After repeated learning and training, when the current iteration number T of the BP neural network reaches the maximum iteration number T max of the BP neural network, the BP neural network with the smallest loss function E j is selected as the final calibration model, and the current improved BP neural network calibration is saved. parameters of the model.

步骤9:将多个移动终端重复步骤1至8,进而建立标定模型库。Step 9: Repeat steps 1 to 8 for multiple mobile terminals, and then establish a calibration model library.

本发明还提出了一种基于移动终端无线射频信号强度的智能标定系统,其中,所述系统包括:The present invention also proposes an intelligent calibration system based on the strength of the wireless radio frequency signal of the mobile terminal, wherein the system includes:

数据采集模块,以标准移动终端在所有采集点上所有AP的所有原始射频信号强度观测值作为标准采样数据,以其他移动终端在对应采集点上所有对应AP的所有原始射频信号强度观测值作为测试采样数据;The data acquisition module uses all the original RF signal strength observations of all APs at all collection points of the standard mobile terminal as the standard sampling data, and uses all the original RF signal strength observations of all corresponding APs at the corresponding collection points of other mobile terminals as the test. sampling data;

模型建立模块,根据所述标准采样数据以及所述测试采样数据建立并训练得到改进的BP神经网络标定模型,记录并保存终端型号及对应的标定模型参数;A model establishment module, establishes and trains an improved BP neural network calibration model according to the standard sampling data and the test sampling data, records and saves the terminal model and the corresponding calibration model parameters;

智能标定模块,以移动终端在室内任意位置接收到的射频信号值作为标定模型输入,将其经过改进的BP神经网络标定模型进行处理,最终得到的输出作为标定值以完成对该移动终端的智能标定。The intelligent calibration module takes the RF signal value received by the mobile terminal at any indoor position as the input of the calibration model, processes it through the improved BP neural network calibration model, and finally obtains the output as the calibration value to complete the intelligent calibration of the mobile terminal. Calibration.

与现有技术相比,本发明提出的一种基于移动终端无线射频信号强度的智能标定算法及系统,可避免算法陷入局部最优,提高对环境的适应性,可扩展性强,适用性广,可仅通过手持的移动终端即可完成标定工作,有效消除了不同移动终端的软硬件异构差异,操作简单。Compared with the prior art, an intelligent calibration algorithm and system based on the radio frequency signal strength of a mobile terminal proposed by the present invention can avoid the algorithm from falling into local optimum, improve the adaptability to the environment, and has strong scalability and wide applicability. , the calibration work can be completed only by the handheld mobile terminal, which effectively eliminates the software and hardware heterogeneous differences of different mobile terminals, and the operation is simple.

本发明的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the present invention will be set forth, in part, from the following description, and in part will be apparent from the following description, or may be learned by practice of the invention.

附图说明Description of drawings

图1为本发明实施例1的原理框架图;Fig. 1 is the principle frame diagram of Embodiment 1 of the present invention;

图2为本发明实施例1的流程图;2 is a flowchart of Embodiment 1 of the present invention;

图3为本发明实施例2的结构示意图。FIG. 3 is a schematic structural diagram of Embodiment 2 of the present invention.

具体实施方式Detailed ways

为了便于理解本发明,下面将参照相关附图对本发明进行更全面的描述。附图中给出了本发明的首选实施例。但是,本发明可以以许多不同的形式来实现,并不限于本文所描述的实施例。相反地,提供这些实施例的目的是使对本发明的公开内容更加透彻全面。In order to facilitate understanding of the present invention, the present invention will be described more fully hereinafter with reference to the related drawings. Preferred embodiments of the invention are shown in the accompanying drawings. However, the present invention may be embodied in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.

除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明。本文所使用的术语“及/或”包括一个或多个相关的所列项目的任意的和所有的组合。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terms used herein in the description of the present invention are for the purpose of describing specific embodiments only, and are not intended to limit the present invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.

实施例1Example 1

请参阅图1与图2,对于本发明提出第一实施例提出的一种基于移动终端无线射频信号强度的智能标定算法,其具体实施方式包括如下步骤:Please refer to FIG. 1 and FIG. 2 , for an intelligent calibration algorithm based on the radio frequency signal strength of a mobile terminal proposed by the first embodiment of the present invention, the specific implementation method includes the following steps:

S101,根据提出的非线性收敛因子得到改进的BP神经网络标定模型建立标定模型库,记录并保存终端型号及对应的标定模型参数;S101, establishing a calibration model library according to the proposed BP neural network calibration model with an improved nonlinear convergence factor, and recording and saving the terminal model and the corresponding calibration model parameters;

S102,手持移动终端进行标定之前,判断该终端型号是否在标定模型库中,若否,则以标准移动终端在所有采集点上所有AP的所有原始射频信号强度观测值作为标准采样数据,以该移动终端在对应采集点上所有对应AP的所有原始射频信号强度观测值作为测试采样数据;S102, before carrying out the calibration of the handheld mobile terminal, determine whether the terminal model is in the calibration model library, if not, take all the original radio frequency signal strength observations of all APs at all the collection points of the standard mobile terminal as the standard sampling data, and use the All raw radio frequency signal strength observations of all corresponding APs on the mobile terminal at the corresponding collection point are used as test sampling data;

S103,以移动终端在室内任意位置接收到的原始射频信号强度观测值作为标定模型输入,将其经过改进的BP神经网络标定模型进行处理,最终得到的输出作为标定值以完成对该移动终端的智能标定。S103, take the original radio frequency signal strength observation value received by the mobile terminal at any indoor position as the input of the calibration model, process it through the improved BP neural network calibration model, and finally obtain the output as the calibration value to complete the calibration of the mobile terminal. Smart calibration.

本申请的标定算法是为了建立标准移动终端和其他移动终端之间的标定模型,一个移动终端最终只有一个对应的标定模型,与采集点没有直接关系,即标定模型的采样数据既可以是在一个采集点采集的,也可以是在很多采集点采集的,并且射频信号指的是WiFi、蓝牙等。标准采样数据和测试采样数据中采集点是一一对应的,且AP及其所有RSSI也是一一对应的。The calibration algorithm of the present application is to establish a calibration model between a standard mobile terminal and other mobile terminals. A mobile terminal has only one corresponding calibration model in the end, which is not directly related to the collection point, that is, the sampling data of the calibration model can be either in a The collection point can also be collected at many collection points, and the radio frequency signal refers to WiFi, Bluetooth, and so on. There is a one-to-one correspondence between the collection points in the standard sampling data and the test sampling data, and the AP and all its RSSIs are also in a one-to-one correspondence.

在S102中,对其他移动终端是否存在该型号的标定模型分两种情况讨论:In S102, whether other mobile terminals have calibration models of the model are discussed in two cases:

a、若存在该移动终端型号的标定模型,则跳转至步骤S103,在对移动终端进行标定之前,当判断出该终端型号存在标定库中,则可使用该移动终端在室内任意位置接收到的原始射频信号强度观测值作为标定模型输入,将其经过改进的BP神经网络标定模型进行处理,最终得到的输出作为标定值以完成对该移动终端的智能标定;a. If there is a calibration model of the mobile terminal model, then jump to step S103. Before calibrating the mobile terminal, when it is judged that the terminal model exists in the calibration library, the mobile terminal can be used to receive any location in the room. The observed value of the original RF signal strength is used as the input of the calibration model, which is processed by the improved BP neural network calibration model, and the final output is used as the calibration value to complete the intelligent calibration of the mobile terminal;

b、若终端型号不在标定库中,则以标准移动终端在所有采集点上所有AP的所有原始射频信号强度观测值作为标准采样数据,以该终端在对应采集点上所有AP的所有原始射频信号强度观测值作为测试采样数据,再跳转至步骤S101,也即根据所述标准采样数据以及所述测试采样数据建立并训练得到改进的BP神经网络标定模型,记录并保存终端型号及对应的标定模型参数,最后跳转至步骤S103完成移动终端智能标定。b. If the terminal model is not in the calibration library, use all the original radio frequency signal strength observations of all APs at all acquisition points of the standard mobile terminal as the standard sampling data, and use all the original radio frequency signals of all APs at the corresponding acquisition points of the terminal as the standard sampling data. The intensity observation value is used as the test sampling data, and then jumps to step S101, that is, an improved BP neural network calibration model is established and trained according to the standard sampling data and the test sampling data, and the terminal model and the corresponding calibration model are recorded and saved. model parameters, and finally jump to step S103 to complete the intelligent calibration of the mobile terminal.

在此需要指出的是,采集到的射频信号是室内环境中早已存在的信号源,不需要再次特意布设AP。It should be pointed out here that the collected radio frequency signal is a signal source that already exists in the indoor environment, and there is no need to deploy APs again.

此外,为了保证标准采样数据和测试采样数据是稳定可靠的,设置在每个采集点采样时间为10分钟,采样频率为5秒。In addition, in order to ensure that the standard sampling data and test sampling data are stable and reliable, the sampling time at each collection point is set to 10 minutes, and the sampling frequency is 5 seconds.

进一步地,从所述标准移动终端获取的所述标准采样数据或从所述其他移动终端获取的所述测试采样数据的原始数据发送格式为:Further, the original data sending format of the standard sampling data obtained from the standard mobile terminal or the test sampling data obtained from the other mobile terminals is:

{P1{(AP11,RSSI1,...,RSSIi,...,RSSIk),...,(AP1n,RSSI1,...,RSSIi,...,RSSIk)},{P 1 {(AP 11 ,RSSI 1 ,...,RSSI i ,...,RSSI k ),...,(AP 1n ,RSSI 1 ,...,RSSI i ,...,RSSI k )},

............

Pi{(APi1,RSSI1,...,RSSIi,...,RSSIk),...,(APin,RSSI1,...,RSSIi,...,RSSIk)},P i {(AP i1 ,RSSI 1 ,...,RSSI i ,...,RSSI k ),...,(AP in ,RSSI 1 ,...,RSSI i ,...,RSSI k ) },

............

Pj{(APj1,RSSI1,...,RSSIi,...,RSSIk),...,(APjn,RSSI1,...,RSSIi,...,RSSIk)}}P j {(AP j1 ,RSSI 1 ,...,RSSI i ,...,RSSI k ),...,(AP jn ,RSSI 1 ,...,RSSI i ,...,RSSI k ) }}

其中,Pi为第i个采集点位置,i=1,2,...,j,j为采集点个数,APin为在Pi采集点上接收到的第n个AP,RSSIk为采集到的第k次原始射频信号强度观测值。Among them, Pi is the position of the ith collection point, i =1,2,...,j,j is the number of collection points, AP in is the nth AP received at the collection point Pi, RSSI k is the acquired kth original RF signal strength observation value.

S101,基于根据提出的非线性收敛因子得到改进的BP神经网络标定模型建立标定模型库,记录并保存终端型号及对应的标定模型参数。S101 , a calibration model library is established based on the BP neural network calibration model improved according to the proposed nonlinear convergence factor, and the terminal model and corresponding calibration model parameters are recorded and saved.

在本步骤中,其具体实施过程如下:In this step, its specific implementation process is as follows:

步骤1:在室内任意选择若干个采集点(如果室内中有多个环境,比如走廊、房间、楼梯间等,在每个场景下都会选几个采集点代表这个场景,综合下来就表示该室内环境),以标准手机在所有采集点上采集射频信号强度,综合表示为初始标准采样数据(比如在a点采了n1条数据,b点采了n2条数据,综合就是n1+n2条数据),以移动终端在对应采集点上所有对应AP的所有原始射频信号强度观测值作为测试采样数据;Step 1: Select a number of collection points at will in the room (if there are multiple environments in the room, such as corridors, rooms, stairwells, etc., in each scene, several collection points will be selected to represent this scene. environment), use a standard mobile phone to collect RF signal strength at all collection points, and comprehensively express it as the initial standard sampling data (for example, if n1 pieces of data are collected at point a, and n2 pieces of data are collected at point b, the synthesis is n1+n2 pieces of data) , and use all the original radio frequency signal strength observations of all corresponding APs at the corresponding collection point of the mobile terminal as the test sampling data;

以所述测试采样数据为改进的BP神经网络标定模型的真实输入值,以所述初始标准采样数据为改进的BP神经网络标定模型的真实输出值,随机初始化神经网络的各层权值

Figure BDA0003219057560000071
阈值
Figure BDA0003219057560000072
作为初始鲸鱼群位置向量Xi,设置鲸鱼种群大小N,当前鲸鱼种群迭代次数t=0,鲸鱼种群最大迭代次数tmax,当前BP神经网络迭代次数T,BP神经网络最大迭代次数Tmax;Taking the test sampling data as the real input value of the improved BP neural network calibration model, using the initial standard sampling data as the real output value of the improved BP neural network calibration model, and randomly initializing the weights of each layer of the neural network
Figure BDA0003219057560000071
threshold
Figure BDA0003219057560000072
As the initial whale population position vector X i , set the whale population size N, the current whale population iteration number t=0, the whale population maximum iteration number t max , the current BP neural network iteration number T, and the BP neural network maximum iteration number T max ;

步骤2:计算每只鲸鱼的适应度值f(Xi),找出最好的适应度及对应的最优鲸鱼位置XbestStep 2: Calculate the fitness value f(X i ) of each whale, find out the best fitness and the corresponding optimal whale position X best ;

Figure BDA0003219057560000073
Figure BDA0003219057560000073

其中,yi为标准采样数据的第i个RSSI真实值,y为测试采样数据的第i个RSSI预测值,n为样本个数;Among them, yi is the ith RSSI real value of the standard sampling data, y is the ith RSSI prediction value of the test sampling data, and n is the number of samples;

步骤3:为了加快标定算法的建立与优化,更新迭代速度有所提升,提出了一种非线性的收敛因子a模拟包围猎物的收缩行为,收敛因子a只随着当前迭代次数t动态变化,可以较为有效避免陷入局部最优,更新鲸鱼位置参数a、A、C:Step 3: In order to speed up the establishment and optimization of the calibration algorithm and improve the update iteration speed, a nonlinear convergence factor a is proposed to simulate the shrinking behavior of surrounding prey. The convergence factor a only changes dynamically with the current iteration number t, which can be It is more effective to avoid falling into a local optimum, and update the whale position parameters a, A, and C:

Figure BDA0003219057560000081
Figure BDA0003219057560000081

A=2ar-a (3)A=2ar-a (3)

C=2r (4)C=2r (4)

其中,t为当前鲸鱼种群迭代次数,tmax为最大迭代数,r是[0,1]的一个随机数;Among them, t is the number of iterations of the current whale population, t max is the maximum number of iterations, and r is a random number in [0,1];

步骤4:随机产生概率p,判断p是否小于0.5,若p≥0.5,则进行收缩包围位置更新:Step 4: Randomly generate probability p, determine whether p is less than 0.5, if p ≥ 0.5, then update the shrinking and surrounding position:

Figure BDA0003219057560000082
Figure BDA0003219057560000082

其中,t为当前鲸鱼种群迭代次数;Xbest为最优鲸鱼位置;Xi为当前鲸鱼位置;A和C为步骤3所得出的系数向量;Among them, t is the number of iterations of the current whale population; X best is the optimal whale position; X i is the current whale position; A and C are the coefficient vectors obtained in step 3;

若p<0.5,且当|A|<1时进行螺旋游走:If p<0.5, and when |A|<1, perform a spiral walk:

Figure BDA0003219057560000083
Figure BDA0003219057560000083

其中,

Figure BDA0003219057560000084
表示当前鲸鱼与最优位置的距离;b为常数,定义对数螺旋线形状;l为[-1,1]中随机数;in,
Figure BDA0003219057560000084
Indicates the distance between the current whale and the optimal position; b is a constant, defining the shape of a logarithmic spiral; l is a random number in [-1,1];

当|A|≥1时根据以下公式进行随机游走:When |A| ≥ 1, a random walk is performed according to the following formula:

Figure BDA0003219057560000085
Figure BDA0003219057560000085

其中,Xrand为随机选取的位置向量;Among them, X rand is a randomly selected position vector;

步骤5:鲸鱼种群迭代次数t自增,根据步骤2比较更新最优位置;当到达鲸鱼种群最大迭代次数tmax时,输出Xbest即最优权值wij、阈值θj,并作为BP神经网络最优初始参数;Step 5: The number of whale population iterations t increases automatically, and the optimal position is updated according to step 2; when the maximum number of iterations t max of the whale population is reached, output X best , which is the optimal weight w ij and threshold θ j , and serve as the BP neural network The optimal initial parameters of the network;

步骤6:BP神经网络进行正向传播过程,通过神经元之间的连接权值wij和神经元阈值θj进行数据加工,并采用非线性Sigmoid激活函数获得预测输出值。Step 6: The BP neural network performs the forward propagation process, performs data processing through the connection weight w ij between neurons and the neuron threshold θ j , and uses the nonlinear Sigmoid activation function to obtain the predicted output value.

Figure BDA0003219057560000086
Figure BDA0003219057560000086

Figure BDA0003219057560000087
Figure BDA0003219057560000087

其中,wij为神经元i到神经元j的连接权值;θj为神经元j阈值;Ij为神经元j输入值;Oj为神经元j输出值;RSSIx,i为神经元i的输入值。Among them, w ij is the connection weight of neuron i to neuron j; θ j is the threshold of neuron j; I j is the input value of neuron j; O j is the output value of neuron j; RSSI x,i is the neuron The input value of i.

步骤7:BP神经网络进行误差反向传播过程,通过正向传播过程获得预测输出值,根据智能设备的预测输出值与标准智能设备的真实输出值之间的差异得到当前迭代次数的损失函数Ej,将误差逆向传播至上一层神经元中得到该层误差,逐层传递直至最上层隐藏层,基于梯度下降法对连接权值和阈值进行不断调整。Step 7: The BP neural network performs the error back propagation process, obtains the predicted output value through the forward propagation process, and obtains the loss function E of the current iteration number according to the difference between the predicted output value of the smart device and the actual output value of the standard smart device j , the error is back-propagated to the neurons of the previous layer to obtain the layer error, which is passed layer by layer to the top hidden layer, and the connection weights and thresholds are continuously adjusted based on the gradient descent method.

Figure BDA0003219057560000091
Figure BDA0003219057560000091

Figure BDA0003219057560000092
Figure BDA0003219057560000092

Figure BDA0003219057560000093
Figure BDA0003219057560000093

其中,RSSIy,j为神经元j真实输出值;RSSI′y,j为输出层神经元j预测输出值;w′ij为更新后权值;θ′j为更新后阈值;η∈(0,1)为学习率,若其值偏大则收敛快但容易陷入局部最优,若偏小则收敛慢但逼近全局最优。Among them, RSSI y,j is the real output value of neuron j; RSSI′ y,j is the predicted output value of output layer neuron j; w′ ij is the updated weight; θ′ j is the updated threshold; η∈(0 ,1) is the learning rate. If the value is too large, the convergence will be fast but it is easy to fall into the local optimum. If it is too small, the convergence will be slow but approach the global optimum.

步骤8:经过反复学习训练,当BP神经网络迭代次数T到达BP神经网络最大迭代次数Tmax时,选取损失函数Ej最小的BP神经网络作为最终标定模型,保存当前改进的BP神经网络标定模型的参数。Step 8: After repeated learning and training, when the number of iterations T of the BP neural network reaches the maximum number of iterations T max of the BP neural network, select the BP neural network with the smallest loss function E j as the final calibration model, and save the current improved BP neural network calibration model. parameter.

步骤9:将多个移动终端重复步骤1至8,进而建立标定模型库。Step 9: Repeat steps 1 to 8 for multiple mobile terminals, and then establish a calibration model library.

当行人手持移动终端需要进行标定时,首先系统会自动在服务器的标定数据库中匹配该终端型号,若存在,则可手持移动终端在室内任意位置对接收到的射频信号强度观测值进行标定,否则要先在采集点采集测试采样数据,建立该终端型号的改进的BP神经网络标定模型后再进行标定。When a pedestrian needs to calibrate a handheld mobile terminal, the system will automatically match the terminal model in the calibration database of the server. If it exists, the mobile terminal can be used to calibrate the received RF signal strength observation value at any location in the room. The test sampling data should be collected at the collection point first, and the improved BP neural network calibration model of the terminal model should be established before calibration.

在此需要补充的是,室内任意位置可以是采样数据的采集点,也可以是其他位置,在任意位置上移动终端接收到所有AP的原始射频信号强度观测值会即时进行标定。What needs to be added here is that any location in the room can be the collection point of the sampling data, or it can be another location. At any location, the mobile terminal receives the raw RF signal strength observations of all APs and will perform calibration in real time.

实施例2Example 2

请参阅图3,对于本发明第二实施例提出的一种基于移动终端无线射频信号强度的智能标定系统,包括依次连接的数据采集模块11、模型建立模块12以及智能标定模块13;Referring to FIG. 3 , an intelligent calibration system based on the strength of a wireless radio frequency signal of a mobile terminal proposed by the second embodiment of the present invention includes a data acquisition module 11 , a model establishment module 12 and an intelligent calibration module 13 connected in sequence;

其中所述数据采集模块11具体用于:The data acquisition module 11 is specifically used for:

以标准移动终端在所有采集点上所有AP的所有原始射频信号强度观测值作为标准采样数据,以移动终端在对应采集点上所有对应AP的所有原始射频信号强度观测值作为测试采样数据;All raw radio frequency signal strength observations of all APs at all collection points of the standard mobile terminal are used as standard sampling data, and all original radio frequency signal strength observations of all corresponding APs at corresponding collection points by the mobile terminal are used as test sampling data;

其中所述模型建立模块12具体用于:The model building module 12 is specifically used for:

根据所述标准采样数据以及所述测试采样数据建立并训练得到改进的BP神经网络标定模型,记录并保存终端型号及对应的标定模型参数;Establish and train an improved BP neural network calibration model according to the standard sampling data and the test sampling data, record and save the terminal model and the corresponding calibration model parameters;

其中所述智能标定模块13具体用于:The intelligent calibration module 13 is specifically used for:

以移动终端在室内任意位置接收到的射频信号值作为标定模型输入,将其经过改进的BP神经网络标定模型进行处理,最终得到的输出作为标定值以完成对该移动终端的智能标定。The radio frequency signal value received by the mobile terminal at any indoor position is used as the input of the calibration model, which is processed by the improved BP neural network calibration model, and the final output is used as the calibration value to complete the intelligent calibration of the mobile terminal.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成。所述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,包括上述方法所述的步骤。所述的存储介质,包括:ROM/RAM、磁碟、光盘等。Those skilled in the art can understand that all or part of the steps in the method of the above embodiments can be implemented by instructing the relevant hardware through a program. The program can be stored in a computer-readable storage medium. When the program is executed, the steps described in the above method are included. The storage medium includes: ROM/RAM, magnetic disk, optical disk, etc.

以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present invention, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the patent of the present invention. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can also be made, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention should be subject to the appended claims.

Claims (3)

1. Intelligent calibration algorithm based on mobile terminal wireless radio frequency signal intensity is characterized in that: the calibration algorithm establishes a corresponding improved BP neural network calibration model for each mobile terminal, and comprises the following steps:
s1, establishing a calibration model library according to the improved BP neural network calibration model obtained by the proposed nonlinear convergence factor, and recording and storing the terminal model and the corresponding calibration model parameters;
s2, before a certain mobile terminal is held by hand for calibration, judging whether the terminal model is in a calibration model library;
if not, taking all original radio frequency signal intensity observed values of all APs of the standard mobile terminal on all acquisition points as standard sampling data, taking all original radio frequency signal intensity observed values of all APs of the mobile terminal on corresponding acquisition points as test sampling data, taking the test sampling data as a real input value of the improved BP neural network calibration model, taking the standard sampling data as a real output value of the improved BP neural network calibration model, repeating the step S1 to establish and train to obtain calibration model parameters of the terminal model in the improved BP neural network calibration model, and then entering the step S3;
if yes, directly entering step S3 to calibrate by using the calibration model parameters corresponding to the calibration model library;
s3, when the mobile terminal is held by hand for calibration, the original radio frequency signal intensity observed value received at any indoor position is used as the input of a calibration model, the calibration model is processed by the improved BP neural network calibration model, and the finally obtained output is used as the calibration value to finish the intelligent calibration of the mobile terminal.
2. The intelligent calibration algorithm based on the wireless radio frequency signal strength of the mobile terminal according to claim 1, wherein the method for establishing the calibration model library according to the improved BP neural network calibration model obtained from the proposed nonlinear convergence factor comprises the following steps:
s1-1: a plurality of acquisition points are randomly selected indoors, the standard mobile phone acquires the radio frequency signal intensity on all the acquisition points and comprehensively expresses the radio frequency signal intensity as initial standard sampling data,taking all original radio frequency signal intensity observed values of all corresponding APs on a corresponding acquisition point of a mobile terminal as test sampling data, taking the test sampling data as a real input value of an improved BP neural network calibration model, and taking the initial standard sampling data as a real output value of the improved BP neural network calibration model; randomly initializing weights of each layer of neural network
Figure FDA0003219057550000011
Threshold value
Figure FDA0003219057550000012
As initial whale flock position vector XiSetting the whale population size N, setting the current whale population iteration time t to be 0, and setting the maximum iteration time t of the whale populationmaxCurrent BP neural network iteration number T, maximum BP neural network iteration number Tmax
S1-2: when the current iteration times t of the whale population is less than the maximum iteration times t of the whale populationmaxThen, the fitness value f (X) of each whale was calculatedi) Finding out the best fitness and the corresponding optimal whale position Xbest
Figure FDA0003219057550000021
In the formula, yiThe real value of the ith RSSI of the standard sampling data is obtained, y is the predicted value of the ith RSSI of the test sampling data, and n is the number of samples;
s1-3: in order to accelerate the establishment and optimization of a calibration algorithm and improve the updating iteration speed, a nonlinear convergence factor a is provided for simulating the shrinkage behavior of a surrounding prey, the convergence factor a only dynamically changes along with the current iteration time t, the algorithm can be effectively prevented from falling into local optimum, and the calculation formula of the nonlinear convergence factor a is as follows:
Figure FDA0003219057550000022
wherein t is the iteration number of the current whale population, and tmaxThe maximum iteration number of the whale population is obtained; the whale location parameter A, C is updated as follows:
A=2ar-a (3)
C=2r (4)
wherein r is a random number of [0,1 ];
s1-4: randomly generating probability p, judging whether p is less than 0.5, if p is more than or equal to 0.5, updating the contraction surrounding position:
Figure FDA0003219057550000023
in the formula, t is the iteration times of the current whale population; xbestIs the optimal whale position; xiIs the current whale position; a and C are coefficient vectors obtained in the step S1-3;
if p <0.5, and when | A | <1, a helical walk is performed:
Figure FDA0003219057550000024
in the formula,
Figure FDA0003219057550000025
representing the distance of the current whale from the optimal position; b is a constant and defines the shape of a logarithmic spiral; l is [ -1,1 [ ]]A medium random number;
when | A | ≧ 1, random walk is performed according to equation (6):
Figure FDA0003219057550000026
in the formula, XrandIs a randomly selected position vector;
s1-5: the iteration times t of the whale population are increased automatically, and the optimal position is updated according to the comparison in the step S1-2; maximum iteration when whale population is reachedNumber of times tmaxThen, output XbestI.e. the optimal weight wijThreshold value thetajAnd is used as the optimal initial parameter of the BP neural network;
s1-6: the BP neural network carries out the forward propagation process and passes the connection weight w between the neuronsijAnd neuron threshold θjAnd (3) processing data, and obtaining a predicted output value by adopting a nonlinear Sigmoid activation function:
Figure FDA0003219057550000031
Figure FDA0003219057550000032
in the formula, wijThe connection weight from the neuron i to the neuron j is obtained; thetajIs neuron j threshold; i isjInputting a value for neuron j; o isjOutputting a value for neuron j; RSSIx,iIs the input value of neuron i;
s1-7: the BP neural network carries out an error back propagation process, obtains a predicted output value through the forward propagation process, and obtains a loss function E of the current iteration times according to the difference between the predicted output value of the intelligent equipment and the real output value of the standard intelligent equipmentjAnd reversely propagating the error to the neuron at the upper layer to obtain the error at the layer, transmitting the error layer by layer until the hidden layer at the uppermost layer, and continuously adjusting the connection weight and the threshold value based on a gradient descent method:
Figure FDA0003219057550000033
Figure FDA0003219057550000034
Figure FDA0003219057550000035
wherein RSSIy,jTrue output values for neuron j; RSSI'y,jPredicting an output value for output layer neuron j; w'ijIs the updated weight value; theta'jIs an updated threshold; eta belongs to (0,1) as a learning rate, if the value is larger, the convergence is fast but the local optimum is easy to fall into, and if the value is smaller, the convergence is slow but the global optimum is approached;
s1-8: after repeated learning and training, when the iteration number T of the BP neural network reaches the maximum iteration number T of the BP neural networkmaxThen, selecting a loss function EjThe minimum BP neural network is used as a final calibration model, and the parameters of the current improved BP neural network calibration model and the corresponding mobile terminal model are saved;
s1-9: and repeating the steps S1-1 to S1-8 on a plurality of mobile terminals, and further establishing a standard model library.
3. Intelligent calibration system based on mobile terminal radio frequency signal intensity, its characterized in that: the calibration system comprises a data acquisition module, a model establishment module and an intelligent calibration module;
the data acquisition module is used for taking all original radio frequency signal intensity observed values of all APs of a standard mobile terminal on all acquisition points as standard sampling data, and taking all original radio frequency signal intensity observed values of all corresponding APs of other mobile terminals on corresponding acquisition points as test sampling data;
the model establishing module is used for establishing and training an improved BP neural network calibration model according to the standard sampling data and the test sampling data, and recording and storing the model number of the terminal and corresponding calibration model parameters;
the intelligent calibration module is used for taking a radio frequency signal value received by the mobile terminal at any indoor position as a calibration model input, processing the radio frequency signal value through the improved BP neural network calibration model, and taking the finally obtained output as a calibration value to finish the intelligent calibration of the mobile terminal.
CN202110952490.5A 2021-08-19 2021-08-19 Intelligent calibration method and system based on wireless radio frequency signal strength of mobile terminal Active CN113612555B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110952490.5A CN113612555B (en) 2021-08-19 2021-08-19 Intelligent calibration method and system based on wireless radio frequency signal strength of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110952490.5A CN113612555B (en) 2021-08-19 2021-08-19 Intelligent calibration method and system based on wireless radio frequency signal strength of mobile terminal

Publications (2)

Publication Number Publication Date
CN113612555A true CN113612555A (en) 2021-11-05
CN113612555B CN113612555B (en) 2022-06-07

Family

ID=78341189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110952490.5A Active CN113612555B (en) 2021-08-19 2021-08-19 Intelligent calibration method and system based on wireless radio frequency signal strength of mobile terminal

Country Status (1)

Country Link
CN (1) CN113612555B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130165143A1 (en) * 2011-06-24 2013-06-27 Russell Ziskind Training pattern recognition systems for determining user device locations
US20190150006A1 (en) * 2017-11-15 2019-05-16 Futurewei Technologies, Inc. Predicting received signal strength in a telecommunication network using deep neural networks
CN109948791A (en) * 2017-12-21 2019-06-28 河北科技大学 A method of optimizing BP neural network by genetic algorithm and its application in localization
US10655971B1 (en) * 2019-05-01 2020-05-19 Mapsted Corp. Maintaining a trained neural network for mobile device RSS fingerprint based indoor navigation
US20200259570A1 (en) * 2020-04-29 2020-08-13 Intel Corporation Indoor localization with beacon technology based on signal strength distribution and deep learning techniques
WO2021007812A1 (en) * 2019-07-17 2021-01-21 深圳大学 Deep neural network hyperparameter optimization method, electronic device and storage medium
CN112333652A (en) * 2019-07-16 2021-02-05 中国移动通信集团浙江有限公司 WLAN indoor positioning method and device and electronic equipment
CN112700060A (en) * 2021-01-08 2021-04-23 佳源科技股份有限公司 Station terminal load prediction method and prediction device
CN113163484A (en) * 2021-01-08 2021-07-23 广东工业大学 Indoor positioning method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130165143A1 (en) * 2011-06-24 2013-06-27 Russell Ziskind Training pattern recognition systems for determining user device locations
US20190150006A1 (en) * 2017-11-15 2019-05-16 Futurewei Technologies, Inc. Predicting received signal strength in a telecommunication network using deep neural networks
CN109948791A (en) * 2017-12-21 2019-06-28 河北科技大学 A method of optimizing BP neural network by genetic algorithm and its application in localization
US10655971B1 (en) * 2019-05-01 2020-05-19 Mapsted Corp. Maintaining a trained neural network for mobile device RSS fingerprint based indoor navigation
CN112333652A (en) * 2019-07-16 2021-02-05 中国移动通信集团浙江有限公司 WLAN indoor positioning method and device and electronic equipment
WO2021007812A1 (en) * 2019-07-17 2021-01-21 深圳大学 Deep neural network hyperparameter optimization method, electronic device and storage medium
US20200259570A1 (en) * 2020-04-29 2020-08-13 Intel Corporation Indoor localization with beacon technology based on signal strength distribution and deep learning techniques
CN112700060A (en) * 2021-01-08 2021-04-23 佳源科技股份有限公司 Station terminal load prediction method and prediction device
CN113163484A (en) * 2021-01-08 2021-07-23 广东工业大学 Indoor positioning method

Also Published As

Publication number Publication date
CN113612555B (en) 2022-06-07

Similar Documents

Publication Publication Date Title
CN110689127B (en) Neural network structure model searching method, device and storage medium
US8738032B2 (en) Hybrid location using a weighted average of location readings and signal strengths of wireless access points
US20200311552A1 (en) Device and method for compressing machine learning model
US8774830B2 (en) Training pattern recognition systems for determining user device locations
CN109769280B (en) A WIFI intelligent predictive switching method based on machine learning
US9542938B2 (en) Scene recognition method, device and mobile terminal based on ambient sound
CN110166154B (en) Software radio frequency spectrum monitoring and identifying method based on neural network
CN112364981B (en) Differentiable searching method and device for mixed precision neural network
CN113762489B (en) A method for obtaining a multi-bit width quantized deep convolutional neural network
CN111930336A (en) Volume adjusting method and device of audio device and storage medium
Cui et al. Improved genetic algorithm to optimize the Wi-Fi indoor positioning based on artificial neural network
CN110969240B (en) Pruning method, device, equipment and medium for deep convolutional neural network
CN115293324B (en) Quantized perception training method and related device
CN114520005A (en) Audio processing method, device, equipment and computer readable storage medium
CN112766402A (en) Algorithm selection method and device and electronic equipment
CN110163342A (en) A kind of model compression method, apparatus, equipment and storage medium
CN118861992A (en) A multimodal data processing method, device, equipment and medium for intelligent manufacturing
CN116151488A (en) Pollution data analysis method, system and equipment
CN114189899B (en) User equipment selection method based on random aggregation beam forming
CN113612555A (en) Intelligent calibration algorithm and system based on mobile terminal wireless radio frequency signal intensity
CN112381224B (en) Neural network training method, device, equipment and computer readable storage medium
CN111880568A (en) Optimization training method, device and equipment for automatic control of unmanned aerial vehicle and storage medium
CN117253079A (en) Model training method, device, equipment and storage medium
CN115396784B (en) Remote tuning method and system
CN112259122A (en) Audio type identification method and device and storage medium

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
GR01 Patent grant
GR01 Patent grant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载