## 1 Introduction  
With the rapid development of sensor technology, machine learning, and the Internet of Things, wireless sensor networks have gradually become a research hotspot. Because of its broad application prospects, many scientists have conducted in-depth research on wireless sensor technology. A number of challenging issues have been raised for logical and technological specialists at the fundamental hypothesis and design innovation levels. Remote sensor systems (WSNs) are a multi-jump self-organized framework formed by a large number of sensor hubs located within the observing range communicating with each other, and they plan an important role the Internet of Things [1]. With the development of remote communication, sensor innovation, inserted application, and microelectronics innovation, remote sensor systems can obtain the data individuals require at any time, any place, and under any natural conditions, laying the basis for the improvement of the Internet of Things (IoT). Due to the specialized preferences of self-organization, fast arrangement, high fault tolerance, and solid concealment, remote sensor systems are exceptionally appropriate for war zone target areas [2], physiological information collection [3], the brilliantly transportation framework [4], sea investigation [5], and numerous other sites. In recent years, sensors, radio frequency identification tags (RFID), machine-to-machine (M2M), and other related technologies have developed rapidly. The Internet of Things (IoT) has become a hot technology in the academic research field and industrial manufacturing field and will play an important role in the new Internet in the future [6]. As an important part of the Internet of Things for data discernment, remote sensor systems play a progressively critical role. A wireless sensor arrangement can be a disseminated remote organization, which is composed of a large number of low-power sensor hubs deployed within the detecting range through remote communication joins. A sensor hub is a kind of miniaturized scale computing unit, which has the characteristics of low capacity and constrained computing control and battery control. Due to the openness of remote systems and the impediments of sensor hubs, remote sensor systems are confronting an assortment of security threats [7]. The presentation of key administration and personal confirmation components as the primary line of defense to secure remote sensor systems can viably guard against assaults from outside the remote sensor networks [8]. Due to the restrictions of remote sensor systems, conventional intrusion detection innovations cannot be straightforwardly connected to remote sensor networks [9]. The research into an intrusion detection technology suitable for wireless sensor networks has become a research hotspot, which has attracted the extensive attention of experts and scholars worldwide. While the existing research on the detection algorithms of engineering mechanics tests has achieved some results, there are also some problems: the detection rate for known attack types is high, but the effect of the unknown attacks is poor. Although wireless sensor network algorithms or models can be applied to non-ideal data with certain errors, their effects are not satisfactory when erroneous data exist. Although they can be detected in advance and eliminated by some means, WSN has strict restrictions and requirements on the energy and storage of sensor nodes, and simple detection algorithms cannot guarantee that these erroneous data can be eliminated completely. To improve the detection rate, some detection algorithms introduce complex mathematical models, but these algorithmic models are not applicable to the application scenario of external behavioral intrusion into sensor networks. For the problem of the low performance of wireless sensor data fusion, the localization mechanism of the IoT based on wireless sensor networks is analyzed herein. An LE-LPCCA localization algorithm based on wireless sensor networks is designed.