LHLei Hu

Lei Hu

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article


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

    DroneTest-Copilot: LLM-Powered Automated Detection and Repair of Flaws in Drone Autotest Suites

    by Ziyi Liang, Lei Hu, Qiyuan Fan, Bin Yuan, Qiankun Zhang, Deqing Zou, Hai Jin

    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.