Lei Hu
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Research Subjects
Research Interests
Lei Hu has a total of 6 co-authors. Here are the top co-authors by number of shared publications:
- Bin Yuan
School of Cyber Science and Engineering, Huazhong University of Science and Technology, Wuhan, China
1 shared publication - Deqing Zou
Huazhong University of Science and Technology, Wuhan, China
1 shared publication - Hai Jin
Huazhong University of Science and Technology
1 shared publication - Qiankun Zhang
School of Cyber Science and Engineering, Huazhong University of Science and Technology, Wuhan, China and Key Laboratory of Cyberspace Security, Ministry of Education of China, Zhengzhou, China
1 shared publication - Qiyuan Fan
National Engineering Research Center for Big Data Technology and System, Services Computing Technology and System Lab, Hubei Engineering Research Center on Big Data Security, Hubei Key Laboratory of Distributed System Security, Jinyinhu Laboratory, School of Cyber Science and Engineering, Huazhong University of Science and Technology, Wuhan, China
1 shared publication - Ziyi Liang
National Engineering Research Center for Big Data Technology and System, Services Computing Technology and System Lab, Hubei Engineering Research Center on Big Data Security, Hubei Key Laboratory of Distributed System Security, Jinyinhu Laboratory, School of Cyber Science and Engineering, Huazhong University of Science and Technology, Wuhan, China
1 shared publication
Latest Publications
- Open Access
- 13 January 2026
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Network Science and Engineering
- Vol. 13, 6685-6705
DroneTest-Copilot: LLM-Powered Automated Detection and Repair of Flaws in Drone Autotest Suites
In the landscape of the low-altitude economy, ensuring the reliability of drone flight control software is of utmost importance. ArduPilot's autotest is an automated testing framework integrated into its continuous integration (CI) pipeline, which is crucial for validating autopilot functionality. However, numerous logic defects exist in its test cases, where the intended workflow doesn't match the code implementation. This paper presents DroneTest-Copilot (DTC), a novel framework that leverages large language models (LLMs) to automate the validation and correction of autotest test cases. The system consists of four components: Preprocessor, Test Case Processor, Flaw Corrector, and Vulnerability Tester. It extracts relevant context from pull requests, uses LLMs to detect flaws such as parameter mismatch, API misuse, execution order errors, and logic errors, and then generates corrected test code. We also conduct a detailed survey and comparative analysis of existing related works to highlight the novelty and positioning of DTC. Evaluations on a dataset of patched and new test case pull requests show that DTC can correctly identify 87.23% of introduced defects in the verification set and discover previously unknown vulnerabilities in the new test case set. DTC substantially reduces manual effort in maintaining autotest suites and uncovers subtle flaws in test case code, enhancing the reliability of drone flight control software.
- 13 January 2026
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Network Science and Engineering
- Vol. 13, 6685-6705
Open AccessDroneTest-Copilot: LLM-Powered Automated Detection and Repair of Flaws in Drone Autotest Suites
In the landscape of the low-altitude economy, ensuring the reliability of drone flight control software is of utmost importance. ArduPilot's autotest is an automated testing framework integrated into its continuous integration (CI) pipeline, which is crucial for validating autopilot functionality. However, numerous logic defects exist in its test cases, where the intended workflow doesn't match the code implementation. This paper presents DroneTest-Copilot (DTC), a novel framework that leverages large language models (LLMs) to automate the validation and correction of autotest test cases. The system consists of four components: Preprocessor, Test Case Processor, Flaw Corrector, and Vulnerability Tester. It extracts relevant context from pull requests, uses LLMs to detect flaws such as parameter mismatch, API misuse, execution order errors, and logic errors, and then generates corrected test code. We also conduct a detailed survey and comparative analysis of existing related works to highlight the novelty and positioning of DTC. Evaluations on a dataset of patched and new test case pull requests show that DTC can correctly identify 87.23% of introduced defects in the verification set and discover previously unknown vulnerabilities in the new test case set. DTC substantially reduces manual effort in maintaining autotest suites and uncovers subtle flaws in test case code, enhancing the reliability of drone flight control software.