A Code Embedding-Based Java Software Risk Detection Method

Software risk detection is a critical aspect of ensuring software security and reliability. However, challenges remain in effectively capturing complex structural and semantic relationships in source code, modeling latent risk patterns, and integrating diverse code representation techniques. To address these issues, this paper proposes a Java software risk detection method based on code embedding techniques. We leverage Abstract Syntax Trees (ASTs) for structural code representation, CodeBert for capturing semantic information in source code, and Latent Dirichlet Allocation (LDA) for modeling latent risk topics. The proposed method integrates syntactic, semantic, and contextual information to assess and detect potential risks in Java code. We evaluate the method on benchmark datasets, where our MLP-based detection model outperforms traditional classification models. Ablation studies demonstrate the critical contributions of CodeBert and LDA in enhancing code embeddings. Additionally, parameter sensitivity experiments validate the method’s robustness in detecting subtle risk indicators within complex code structures. The results highlight the effectiveness of our approach in improving Java software security, offering a reliable and practical solution for real-world software risk detection.

Authors

Institutions

Publication Details

Published
2025-05-09
DOI
https://doi.org/10.1109/ids66066.2025.00010
Primary Topic
Advanced Malware Detection Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Code Embedding-Based Java Software Risk Detection Method

Hanyu Rao, Xiaojun Shen, Ling Wang, Yiliang Wang et al.
Advanced Malware Detection Techniques
article

A Code Embedding-Based Java Software Risk Detection Method

Hanyu Rao, Xiaojun Shen, Ling Wang, Yiliang Wang, Kun Tong, Chen Zhang
article en

Abstract

Software risk detection is a critical aspect of ensuring software security and reliability. However, challenges remain in effectively capturing complex structural and semantic relationships in source code, modeling latent risk patterns, and integrating diverse code representation techniques. To address these issues, this paper proposes a Java software risk detection method based on code embedding techniques. We leverage Abstract Syntax Trees (ASTs) for structural code representation, CodeBert for capturing semantic information in source code, and Latent Dirichlet Allocation (LDA) for modeling latent risk topics. The proposed method integrates syntactic, semantic, and contextual information to assess and detect potential risks in Java code. We evaluate the method on benchmark datasets, where our MLP-based detection model outperforms traditional classification models. Ablation studies demonstrate the critical contributions of CodeBert and LDA in enhancing code embeddings. Additionally, parameter sensitivity experiments validate the method’s robustness in detecting subtle risk indicators within complex code structures. The results highlight the effectiveness of our approach in improving Java software security, offering a reliable and practical solution for real-world software risk detection.

State Grid Corporation of China (China) (CN), Zhejiang Lab (CN), Beihang University (CN)
Openalex Percentile: Top 84%
Advanced Malware Detection Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

A Code Embedding-Based Java Software Risk Detection Method — Hanyu Rao, Xiaojun Shen, et al. · (2025) | TGRS Research Map | TGRS