Integrating Large Language Models with Internet of Things Applications

Mingyu Zong,Arvin Hekmati,Michael Guastalla,Yiyi Li,Bhaskar Krishnamachari
2024-10-25
Abstract:This paper identifies and analyzes applications in which Large Language Models (LLMs) can make Internet of Things (IoT) networks more intelligent and responsive through three case studies from critical topics: DDoS attack detection, macroprogramming over IoT systems, and sensor data processing. Our results reveal that the GPT model under few-shot learning achieves 87.6% detection accuracy, whereas the fine-tuned GPT increases the value to 94.9%. Given a macroprogramming framework, the GPT model is capable of writing scripts using high-level functions from the framework to handle possible incidents. Moreover, the GPT model shows efficacy in processing a vast amount of sensor data by offering fast and high-quality responses, which comprise expected results and summarized insights. Overall, the model demonstrates its potential to power a natural language interface. We hope that researchers will find these case studies inspiring to develop further.
Artificial Intelligence
What problem does this paper attempt to address?
### What problems does this paper attempt to solve? This paper aims to explore how large language models (LLMs) can make the Internet of Things (IoT) networks more intelligent and more responsive. Specifically, it presents the applications of LLMs in the following three key areas through three case studies: 1. **DDoS Attack Detection**: - Research Background: Due to limited computing resources, IoT devices are vulnerable to various network attacks, especially Distributed Denial - of - Service (DDoS) attacks. Although traditional machine - learning methods have certain effects, they face challenges in adapting to new attack vectors and being deployed on resource - constrained IoT devices. - Solution: Use LLMs for DDoS attack detection and improve detection accuracy through few - shot learning and fine - tuning techniques. The results show that the GPT model achieved a detection accuracy of 87.6% in few - shot learning, and after fine - tuning, the accuracy increased to 94.9%. 2. **Macroprogramming**: - Research Background: The management and operation of large - scale IoT systems require a large amount of manpower or complex script writing. Macroprogramming provides an intermediate interface that simplifies information retrieval and action execution. - Solution: LLMs can generate scripts and use high - level functions to handle possible events. For example, given a macroprogramming framework PyoT, the GPT model can write scripts to handle common application scenarios in smart homes, healthcare, and manufacturing, and can also explain complex structures and form system reports. 3. **Sensor Data Analysis**: - Research Background: As the IoT network expands, it becomes particularly important to process a large amount of sensor data efficiently and reliably. Traditional methods may overlook some patterns when parsing different forms of data (such as logs, alerts, and scripts). - Solution: LLMs demonstrate their advantages in processing large amounts of sensor data, providing fast and high - quality responses, including expected results and summary insights. The GPT - 4 model and the Gemini - 1.5 - pro model showed immediate capabilities in this task. Overall, this paper demonstrates the potential of LLMs in optimizing network security, enhancing macroprogramming functions, and improving IoT data analysis, providing inspiring case studies for researchers to further develop these technologies.