Dahai Jin

Dahai Jin


Research Focus & Metrics

Academic Career Length

16Years (2011-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
7 January 2023 in Mathematics
Verified
Journal Article
Open access
PDF file
PDPeng Dai
Peng Dai
LYLi Yang
Li Yang
YWYawen Wang
Yawen Wang
DJDahai Jin
Dahai Jin
YGYunzhan Gong
Yunzhan Gong
Software requirement changes, code changes, software reuse, and testing are important activities in software engineering that involve the traceability links between software requirements and code. Software requirement documents, design documents, code documents, and test case documents are the intermediate products of software development. The lack of interrelationship between these documents can make it extremely difficult to change and maintain the software. Frequent requirements and code changes are inevitable in software development. Software reuse, change impact analysis, and testing also require the relationship between software requirements and code. Using these traceability links can improve the efficiency and quality of related software activities. Existing methods for constructing these links need to be better automated and accurate. To address these problems, we propose to embed software requirements and source code into feature vectors containing their semantic information based on four neural networks (NBOW, RNN, CNN, and self-attention). Accurate traceability links from requirements to code are established by comparing the similarity between these vectors. We develop a prototype tool RCT based on this method. These four networks’ performances in constructing links are explored on 18 open-source projects. The experimental results show that the self-attention network performs best, with an average Recall@50 value of 0.687 on the 18 projects, which is higher than the other three neural network models and much higher than previous approaches using information retrieval and machine learning.

4 December 2020 in Future Internet
Verified
Journal Article
Open access
PDF file
YSYang Song
Yang Song
YWYawen Wang
Yawen Wang
DJDahai Jin
Dahai Jin
Web service composition is the process of combining and reusing existing web services to create new business processes to satisfy specific user requirements. Reliability plays an important role in ensuring the quality of web service composition. However, owing to the flexibility and complexity of such architecture, sufficient estimation of reliability is difficult. In this paper, the authors propose a method to estimate the reliability of web service compositions based on Bayes reliability assessment by considering it to be a decision-making problem. This improves the testing efficiency and accuracy of such methods. To this end, the authors focus on fully utilizing prior information of web services to increase the accuracy of prior distributions, and construct a Markov model in terms of the reliabilities of the web composition and each web service to integrate the limited test data. The authors further propose a method of minimum risk (MMR) to calculate the initial values of hyperparameters satisfying the constraint of minimal risk of the wrong decision. Experiments demonstrate that the proposed method is capable of efficiently utilizing prior module-level failure information, comparing with the Bayesian Monte Carlo method (BMCM) and expert scoring method (ESM), when the number of failures increased from 0 to 5, reducing the required number of test cases from 19.8% to 28.9% and 6.1% to 14.1% separately, improving the reliability assessment of web service compositions, and reducing the expenses incurred by system-level reliability testing and demonstration.

15 February 2024 in Electronics
Verified
Journal Article
Open access
PDF file
QZQianjin Zhang
Qianjin Zhang
DJDahai Jin
Dahai Jin
YWYawen Wang
Yawen Wang
YGYunzhan Gong
Yunzhan Gong
Code summarization plays a vital role in aiding developers with program comprehension by generating corresponding textual descriptions for code snippets. While recent approaches have concentrated on encoding the textual and structural characteristics of source code, they often neglect the global hierarchical features, causing limited code representation. Addressing this gap, our paper introduces the statement-grained hierarchy enhanced Transformer model (SHT), a novel framework that integrates global hierarchy, syntax, and token sequences to automatically generate summaries for code snippets. SHT is distinctively designed with two encoders to learn both hierarchical and sequential features of code. One relational attention encoder processes the statement-grained hierarchical graph, producing hierarchical embeddings. Subsequently, another sequence encoder integrates these hierarchical structures with token sequences. The resulting enriched representation is then fed into a vanilla Transformer decoder, which effectively generates concise and informative summarizations. Our extensive experiments demonstrate that SHT significantly outperforms state-of-the-art approaches on two widely used Java benchmarks. This underscores the effectiveness of incorporating global hierarchical information in enhancing the quality of code summarizations.

15 April 2022 in Tehnicki vjesnik - Technical Gazette
Verified
Journal Article
Closed access
PDF file
TGTianze Guo
Tianze Guo
HBHanli Bai
Hanli Bai
YGYunzhan Gong
Yunzhan Gong
YWYawen Wang
Yawen Wang
DJDahai Jin
Dahai Jin
Regarding the practicality of the quality evaluation model, the lack of quantitative experimental evaluation affects the effective use of the quality model, and also a lack of effective guidance for choosing the model. Aiming at this problem, based o...

7 January 2021 in Electronics
Verified
Journal Article
Open access
PDF file
MZMingzhe Zhang
Mingzhe Zhang
YGYunzhan Gong
Yunzhan Gong
YWYawen Wang
Yawen Wang
DJDahai Jin
Dahai Jin
A test oracle is a procedure that is used during testing to determine whether software behaves correctly or not. One of most important tasks for a test oracle is to choose oracle data (the set of variables monitored during testing) to observe. However, most literature on test oracles has focused either on formal specification generation or on automated test oracle construction, whereas little work exists for supporting oracle data selection. In this paper, we present a path-sensitive approach, PSODS (path-sensitive oracle data selection), to automatically select oracle data for use by expected value oracles. PSODS ranks paths according to the possibility that potential faults may exist in them, and the ranked paths help testers determine which oracle data should be considered first. To select oracle data for each path, we introduce quantity and quality analysis of oracle data, which use static analysis to estimate oracle data for their substitution capability and fault-detection capability. Quantity analysis can reduce the number of oracle data. Quality analysis can rank oracle data based on their fault-detection capability. By using quantity and quality analysis, PSODS reduces the cost of oracle construction and improves fault-detection efficiency and effectiveness. We have implemented our approach and applied it to a real-world project. The experimental results show that PSODS is efficient in helping testers construct test oracles. Moreover, the oracle datasets produced by our approach are more effective and efficient than output-only oracles at detecting faults.

1 April 2021 in Journal of Physics: Conference Series
Verified
Conference Paper
Open access
PDF file
WZWei Zhang
Wei Zhang
DJDahai Jin
Dahai Jin
BCBo Chen
Bo Chen
MZMeng Zhao
Meng Zhao
JBJianquan Bi
Jianquan Bi
In order to improve the support ability of software, we must consider the supportability of software in every stage of the whole life cycle of software, and software supportability analysis is an important means and the basis for realizing the goal of software support. It is also an important support to ensure and reduce the cost of software. This paper introduces the task, characteristics and influencing factors of software supportability analysis, and analyzes the supportability of each stage of software life cycle.