Professional Documents
Culture Documents
Convolutional Neural Networks Based Indoor Wi-Fi Localization With A Novel Kind of CSI Images
Convolutional Neural Networks Based Indoor Wi-Fi Localization With A Novel Kind of CSI Images
efficient and can be easily applied with mobile H p,q is the CSI of the p th antenna and the
devices [23]. q th subcarrier. N is the number of Multipath
The main contributions of this paper are Components (MPCs) which is directly relat-
summarized as follows. ed to the main scatterers in the propagation
• We propose a novel construction method of environment. Since the main scatterers in the
CSI images. This new kind of CSI images indoor propagation environment are mainly
has 3 sub-images like RGB images, which walls and other immovable scatterers, N is
means the CSI image constructed via the relatively spare and stable when the locations
new proposed method can contain more of AP and devices are established [25,26]. α n
channel information such as the AOA, TOA is the complex amplitude of the nth path which
and amplitude. represents the propagation attenuation.φn is the
• The CSI images are used as the input data frequency-independent random phase noise
to train the light-weight CNN model. The of the nth path. λq and f q are the wavelength
outputs of the well-trained CNN model are and the frequency of the q th subcarrier. d is the
used as the weighted average coefficients to
pairwise separation between antennas (typical-
estimate the position of the devices.
ly half the wavelength λ). θ n and τ n are DOA
• Repeated measurements with commodity
and TOA of the nth path.
2.4 GHz Wi-Fi are carried out in the typical
N, θ n and τ n are mainly determined by
indoor environment to verify the perfor-
the main scatterers in the indoor propagation
mance of the proposed localization method.
environment. Wireless channel refers to the
The results show that the proposed local-
free space from the transmitter to the receiver
ization method achieves better location ac-
which can be determined by the reflection off
curacy than two existing schemes. Besides,
every object in the radio environment. The
the impact of various system parameters is
radio propagation environment is main deter-
evaluated.
mined by the real spatial information in the
The paper is organized as follows. Section
same way. So the CSI is mainly determined
II presents the CSI image construction method
by the location of the target device and can be
we proposed. The CNN stricture we adopted
Stage1
Downsample Unit x1
Basic Unit x3
57x57x24 feature 28x28x24 feature
114x114x3 Image map map
Phase difference
3&2
Stage3 Stage2
Downsample Unit x1 Downsample Unit x1
Basic Unit x3 Basic Unit x7
1x1@1024
Conv
14x14x116
feature map
4x4x464 7x7x232
feature map feature map
4X4 GlobalPooling
Stride=1
1024 x K
4x4x1024 feature Fully connected
map layer
K output
Rx4 Tx
Rx1
Rx14 Rx13 Rx12 and ConFi while the CNN works effectively in
Rx5
the extraction of the CSI features.
1.45m
Rx7
Figure 4 presents the cumulative distribu-
Rx3 Rx8
8.68m tion function (CDF) of distance errors of the
three methods.
The proposed method has 79% of the test
Fig. 3. Layout of the mobile measurement environment. locations having an error less than 2 m, while
1 1
0.9 0.9
0.8 0.8
0.7 0.7
0.6 0.6
CDF
CDF
0.5 0.5
0.4 0.4
0.3 0.3
Proposed Method
0.2 CiFi 0.2
ConFi Proposed Method with 3 Channels
0.1 Proposed Method with 2 Channels
0.1
0 0
0 1 2 3 4 5 6 0 1 2 3 4 5 6
Distance Error/m Distance Error/m
Fig. 4. Comparison of the performance among proposed method, Fig. 5. Comparison of the performance between proposed method
CiFi and ConFi. with 3 channels and 2 channels.
1 1
0.9 0.9
0.8 0.8
0.7 0.7
0.6 0.6
CDF
CDF
0.5 0.5
0.4 0.4
0.3 0.3
Learning Rate = 0.005
0.2 CNN with 3 STAGES 0.2 Learning Rate = 0.01
Learning Rate = 0.02
CNN with 2 STAGES
0.1 0.1
0 0
0 1 2 3 4 5 6 0 1 2 3 4 5 6
Distance Error/m Distance Error/m
Fig. 6. Comparison of the performance between CNN with 3 stages Fig. 7. Comparison of the performance among learning rate =0.005,
and 2 stages. 0.01, 0.02.
0.5
reach the best convergence point. Thus, the
0.4
learning rate needs be chosen carefully in dif-
0.3 ferent experiments.
0.2 To study the impact of the R which is the
0.1
number of the largest outputs to calculate the
location of the target device, the localization
0
0 1 2 3 4 5 6 errors of the R= 1, 2, 3, 4, 5, 6 are compared
Distance Error/m in Table VII and figrue 8. The mean error of
the of the R= 1,2,3,4,5,6 are 2.2627 m, 1.7937
m, 1.5762 m, 1.6649 m, 1.7145 m and 1.7004
Fig. 8. Comparison of the performance among R =1, 2, 3, 4, 5, 6.