信息网络安全 ›› 2024, Vol. 24 ›› Issue (8): 1152-1162.doi: 10.3969/j.issn.1671-1122.2024.08.002

• 理论研究 • 上一篇    下一篇

基于改进鲸鱼算法优化SVM的软件缺陷检测方法

杜晔1,2, 田晓清1(), 李昂3, 黎妹红1,2   

  1. 1.北京交通大学智能交通数据安全与隐私保护技术北京市重点实验室,北京 100044
    2.北京交通大学国家经济安全预警工程北京实验室,北京 100044
    3.北京交通大学詹天佑学院,北京 100044
  • 收稿日期:2024-04-09 出版日期:2024-08-10 发布日期:2024-08-22
  • 通讯作者: 田晓清 22140434@bjtu.edu.cn
  • 作者简介:杜晔(1978—),男,黑龙江,教授,博士,主要研究方向为网络行为异常检测、空天地信息一体化网络安全|田晓清(2001—),女,河北,硕士研究生,主要研究方向为软件缺陷检测、漏洞检测|李昂(2002—),男,内蒙古,主要研究方向为空天地信息一体化网络安全|黎妹红(1974—),男,湖北,副教授,博士,主要研究方向为保密技术、网络攻防
  • 基金资助:
    国家重点研发计划(2022YFB3105105)

Software Defect Detection Method Based on Improved Whale Algorithm to Optimize SVM

DU Ye1,2, TIAN Xiaoqing1(), LI Ang3, LI Meihong1,2   

  1. 1. Beijing Key Laboratory of Security and Privacy In Intelligent Transportation, Beijing Jiaotong University, Beijing 100044, China
    2. Beijing Laboratory of National Economic Security Early-Warning Engineering, Beijing Jiaotong University, Beijing 100044, China
    3. Jeme Tienyow Honors College, Beijing Jiaotong University, Beijing 100044, China
  • Received:2024-04-09 Online:2024-08-10 Published:2024-08-22

摘要:

为解决传统支持向量机在软件缺陷检测中存在分类精度低、参数选择困难等问题,文章提出一种基于改进鲸鱼算法优化SVM的软件缺陷检测方法LFWOA-SVM。首先针对鲸鱼算法在求解过程中存在收敛速度慢、寻优效率低和局部最优解问题,基于Levy飞行策略优化鲸鱼觅食阶段,最大限度地实现搜索代理多样化,并利用混合变异扰动算子提高WOA的全局寻优能力;然后采用改进的鲸鱼算法LFWOA对SVM的惩罚因子和核函数参数进行优化,在获得最优参数的同时可有效检测软件缺陷。仿真实验表明,在6个基准测试函数中,LFWOA展现出更高的寻优速度和全局搜索能力;在8个公开软件缺陷数据集上进行测试显示,LFWOA-SVM方法能够有效提高分类性能和预测精度。

关键词: 软件缺陷检测, Levy飞行, 鲸鱼优化算法, 变异扰动, 支持向量机

Abstract:

To enhance the performance of software defect detection, a refined model called LFWOA-SVM has been proposed, utilizing an improved Whale algorithm to optimize traditional SVM. This approach aims at inherent issues of SVM, such as low classification accuracy and complex parameter tuning. First, in view of the problems of slow convergence speed, low optimization efficiency and local optimal solution in the whale algorithm during the solution process, the whale foraging stage was optimized based on the levy flight strategy to maximize the diversification of search agents, and a hybrid mutation perturbation was proposed operators were used to improve WOA’s global optimization capabilities. Secondly, the improved whale algorithm LFWOA was used to optimize the penalty factor and kernel function parameters of SVM, which can be effectively used in software defect detection while obtaining the optimal parameters. Finally, data simulation experiments show that among 6 benchmark test functions, LFWOA exhibits higher optimization speed and global search capabilities; tests on 8 public software defect data sets show that LFWOA-SVM method can effectively improve identification performance and prediction accuracy.

Key words: software defect detection, Levy flight, whale optimization algorithm, mutation perturbation, SVM

中图分类号: