The invention discloses an indoor Wifi positioning data preprocessing and trajectory
reconstruction method, comprising the following steps: A, defining an indoor space POI; B, extracting correspondingpositioning data according to mac, and forming a mac behavior trajectory, Strj = { p1..., pi, pj,...pn }; C, analyzing the
signal loss and an AP point, and judging the invalid trajectory; D, intersecting trajectory points in the Strj trajectory with the indoor POI,
ranking all points in the POI, and constructing a temporary trajectory sequence Strjtmp = { p1,..., pi,...pn }; E, merging the trajectory points in the same POI, namely only keeping the earliest and latest trajectory points in a continuous time period in the POI, reconstructing a trajectory Strjnew = { p1,..., pi,...pn }; F, mapping the trajectory data to a two-dimensional plane based on which the drift points and the jump points in the trajectory are deleted; and G, implementing step E again, and merging the trajectory pointsin the same POI, thus realizing
trajectory compression, and completing the extraction of a new trajectory. According to the invention, indoor space characteristics and indoor trajectory characteristics are met, the result is reliable, and the
processing efficiency is high.