In view of the inability of Global Navigation Satellite System (GNSS) to provide accurate indoor positioning services and the growing demand for location-based services, indoor positioning has become one of the most attractive research areas. Moreover, with the improvement of the smartphone hardware level, the rapid development of deep learning applications on mobile terminals has been promoted. Therefore, this paper borrows relevant ideas to transform indoor positioning problems into problems that can be solved by artificial intelligence algorithms. First, this article reviews the current mainstream pedestrian dead reckoning (PDR) optimization and improvement methods, and based on this, uses the micro-electromechanical systems (MEMS) sensor on a smartphone to achieve better step detection, stride length estimation, and heading estimation modules. In the real environment, an indoor continuous positioning system based on a smartphone is implemented. Then, in order to solve the problem that the PDR algorithm has accumulated errors for a long time, a calibration method is proposed without the need to deploy any additional equipment. An indoor turning point feature detection model based on deep neural network is designed, and the accuracy of turning point detection is 98%. Then, the particle filter algorithm is used to fuse the detected turning point and the PDR positioning result, thereby realizing lightweight cumulative error calibration. In two different experimental environments, the performance of the proposed algorithm and the commonly used localization algorithm are compared through a large number of experiments. In a small-scale indoor office environment, the average positioning accuracy of the algorithm is 0.14 m, and the error less than 1 m is 100%. In a large-scale conference hall environment, the average positioning accuracy of the algorithm is 1.29 m, and 65% of the positioning errors are less than 1.50 m which verifies the effectiveness of the proposed algorithm. The simple and lightweight indoor positioning design scheme proposed in this article is not only easy to popularize, but also provides new ideas for subsequent scientific research in the field of indoor positioning.