Article(id=1329419782627111303, tenantId=1146029695717560320, journalId=1324759914146529478, issueId=1329419577676641015, articleNumber=null, orderNo=null, doi=10.7544/issn1000-1239.202550898, pmid=null, cstr=null, oa=null, hot=null, price=null, onlineType=0, articleFormat=0, articleType=null, articleTypeStr=null, receivedDate=1765728000000, receivedDateStr=2025-12-15, revisedDate=1773158400000, revisedDateStr=2026-03-11, acceptedDate=null, acceptedDateStr=null, onlineDate=1794887975603, onlineDateStr=2026-11-17, pubDate=1777564800000, pubDateStr=2026-05-01, doiRegisterDate=null, doiRegisterDateStr=null, onlineIssueDate=1794887975603, onlineIssueDateStr=2026-11-17, onlineJustAcceptDate=null, onlineJustAcceptDateStr=null, onlineFirstDate=null, onlineFirstDateStr=null, sourceXml=null, magXml=null, createTime=1794887975603, creator=13701087609, updateTime=1794887975603, updator=13701087609, issue=Issue{id=1329419577676641015, tenantId=1146029695717560320, journalId=1324759914146529478, year='2026', volume='63', issue='5', pageStart='1095', pageEnd='1375', issueExtLink='null', onlineDate='null', pubDate='1777564800000', pubDateStr='2026-05-01', beforeIssueId=null, nextIssueId=null, price=null, status=1, issueComplete=1, articleOrder=1, issueType=-1, specialIssue=null, createTime=1794887926739, creator='13701087609', updateTime=1794887926739, updator='13701087609', preIssue=null, nextIssue=null, articleTotal=null, ext=null, issueFiles=null, downloadFileDto=null}, startPage=1097, endPage=1116, ext={EN=ArticleExt(id=1329419782811660680, articleId=1329419782627111303, tenantId=1146029695717560320, journalId=1324759914146529478, language=EN, title=LLM-Based Interpretable Embedded System Requirements Specification, columnId=1329419682488103033, journalTitle=Journal of Computer Research and Development, columnName=Special Issue on Security and Trustworthiness for AI-Enabled Human-Cyber-Physical Systems, runingTitle=null, highlight=null, articleAbstract=

The embedded system requirements specification serves as the cornerstone of system development, playing a crucial role in transforming high-level user intentions into clear and executable software requirements. Currently, this process remains highly dependent on manual derivation and composition by domain experts, with inherent limitations such as low efficiency and insufficient interpretability. Although automated requirements generation is regarded as a potential solution, its development still faces two core challenges: how to effectively embed domain-specific device knowledge, and how to strictly adhere to the standards of intent satisfiability and traceability to construct an interpretable requirements system. To address these issues, we propose an interpretable requirements specification method based on large language models (LLMs). By constructing a prompt chain that integrates domain knowledge and requirements engineering, our method gradually complements and refines user intentions into device, system, and software requirements level by level under human-computer interaction collaboration, ensuring the satisfiability of requirements. Additionally, it introduces the problem diagram and scenario diagram model to guarantee the traceability of requirements. Experiments on four embedded system cases show that compared with manual methods, our method reduces time cost by approximately 73% and improves the quality of requirements specification documents by 82%. Moreover, its interpretability increases by about 15% and 21% compared with both manual methods and single-step LLM methods, providing an efficient and reliable new approach for requirements specification of complex embedded systems.

, authors=Chunhui Wang1, *, Jiaqi Zhao1, Xiaohong Chen2, Zhi Jin3, 4, authorsList=Chunhui Wang, Jiaqi Zhao, Xiaohong Chen, Zhi Jin, authorCompany=null, correspAuthors=Chunhui Wang, authorNote=

born in 1979. PhD, professor. Her main research interests include software engineering and requirements engineering

born in 2000. Master candidate. Her main research interests include software engineering and requirements engineering

born in 1982. PhD, professor. Her main research interests include requirements engineering, and knowledge based software engineering and formal method

born in 1962. PhD, professor. Her main research interests include requirements engineering and software automation

, correspAuthorsNote=null, copyrightStatement=Copyright © 2026 Journal of Computer Research and Development. All rights reserved., copyrightOwner=null, extLink=null, articleAbsUrl=null, sourceXml=null, magXml=null, pdfUrl=null, pdf=null, pdfFileSize=null, pdfExtLink=null, richHtmlUrl=null, mobilePdfUrl=null, reviewReport=null, pdfFirstPage=null, abstractGraph=null, abstractGraphContent=null, abstractVideo=null, citation=null, cebUrl=null, magXmlContent=null, mapNumber=null, fund=null), CN=ArticleExt(id=1329419785336631716, articleId=1329419782627111303, tenantId=1146029695717560320, journalId=1324759914146529478, language=CN, title=基于LLM的可解释嵌入式系统需求规约方法, columnId=1329419682655875195, journalTitle=计算机研究与发展, columnName=面向人机物融合智能系统的安全可信专题, runingTitle=null, highlight=null, articleAbstract=

嵌入式系统需求规约是系统开发的基石,承担着将高层用户意图转化为明确且可执行的软件需求的重要职能。当前,该过程仍高度依赖领域专家的人工推导与撰写,存在效率低、可解释性不足等固有局限性。尽管自动化需求生成被视为潜在的解决方案,其发展仍面临双重核心挑战:如何有效嵌入领域特定的设备知识、如何严格遵循意图可满足和可追溯性标准,构建具备可解释性的需求体系。为解决上述问题,提出了一种基于大语言模型(LLM)的可解释需求规约方法。该方法通过构建融合领域知识与需求工程的提示链,在人机交互协作下,逐层将用户意图补全并细化为设备、系统及软件需求,确保需求可满足,并引入问题图-情景图模型以保障需求的可追溯。在4个嵌入式系统案例上的实验表明,所提方法较人工方法节约73%时间成本,需求规约文档质量提升82%,而可解释性相较人工方法和单步LLM方法分别提升约15%和21%,为复杂嵌入式系统提供了一种高效且可信的需求规约新途径。

, authors=王春晖1, *, 赵佳琪1, 陈小红2, 金芝3, 4, authorsList=王春晖, 赵佳琪, 陈小红, 金芝, authorCompany=null, correspAuthors=王春晖, authorNote=

作者贡献声明

王春晖负责方法整体设计、实验分析及论文撰写;赵佳琪完成案例数据收集、整理以及实验实现;陈小红和金芝提出指导和修改意见。

1979年生。博士,教授。主要研究方向为软件工程、需求工程

2000年生。硕士研究生。主要研究方向为软件工程、需求工程

1982年生。博士,教授。主要研究方向为需求工程、基于知识的软件工程和形式化方法

1962年生。博士,教授。主要研究方向为需求工程、软件自动化

, correspAuthorsNote=
王春晖()
, copyrightStatement=版权所有 © 2026 计算机研究与发展编辑部, copyrightOwner=null, extLink=null, articleAbsUrl=null, sourceXml=vsasYSL+4yjjLmqQA+kRow==, magXml=6LscI90le2GMj+omqt1egA==, pdfUrl=null, pdf=OA0GoOyS56Tqkjk+YZcaig==, pdfFileSize=1441771, pdfExtLink=null, richHtmlUrl=null, mobilePdfUrl=null, reviewReport=null, pdfFirstPage=null, abstractGraph=iTGCMvwQgOjQLzG6hYWz2Q==, abstractGraphContent=null, abstractVideo=null, citation=null, cebUrl=null, magXmlContent=PPDcwO/jB8833hzLUK5AoA==, mapNumber=null, fund=null)}, authors=[Author(id=1329419785877696946, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, orderNo=0, firstName=null, middleName=null, lastName=null, nameCn=null, orcid=null, stid=null, country=null, authorPic=null, dead=0, email=ciecwch@imnu.edu.cn, emailSecond=null, emailThird=null, correspondingAuthor=1, authorType=1, ext={EN=AuthorExt(id=1329419785949000116, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, authorId=1329419785877696946, language=EN, stringName=Chunhui Wang, firstName=Chunhui, middleName=null, lastName=Wang, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=1, *, address=1College of Computer Science and Technology, Inner Mongolia Normal University, Hohhot 010022, bio={"content":"

born in 1979. PhD, professor. Her main research interests include software engineering and requirements engineering

"}, bioImg=null, bioContent=

born in 1979. PhD, professor. Her main research interests include software engineering and requirements engineering

, aboutCorrespAuthor=null), CN=AuthorExt(id=1329419786016108981, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, authorId=1329419785877696946, language=CN, stringName=王春晖, firstName=null, middleName=null, lastName=null, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=1, *, address=1内蒙古师范大学计算机科学技术学院 呼和浩特 010022, bio={"img":"t1Z17G1pIq/U1Cca7+S8pg==","content":"

1979年生。博士,教授。主要研究方向为软件工程、需求工程

"}, bioImg=t1Z17G1pIq/U1Cca7+S8pg==, bioContent=

1979年生。博士,教授。主要研究方向为软件工程、需求工程

, aboutCorrespAuthor=null)}, companyList=[AuthorCompany(id=1329419785550541221, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, xref=1, ext=[AuthorCompanyExt(id=1329419785554735526, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785550541221, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=1College of Computer Science and Technology, Inner Mongolia Normal University, Hohhot 010022), AuthorCompanyExt(id=1329419785563124135, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785550541221, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=1内蒙古师范大学计算机科学技术学院 呼和浩特 010022)])]), Author(id=1329419786091606455, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, orderNo=1, firstName=null, middleName=null, lastName=null, nameCn=null, orcid=null, stid=null, country=null, authorPic=null, dead=0, email=null, emailSecond=null, emailThird=null, correspondingAuthor=0, authorType=1, ext={EN=AuthorExt(id=1329419786175492537, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, authorId=1329419786091606455, language=EN, stringName=Jiaqi Zhao, firstName=Jiaqi, middleName=null, lastName=Zhao, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=1, address=1College of Computer Science and Technology, Inner Mongolia Normal University, Hohhot 010022, bio={"content":"

born in 2000. Master candidate. Her main research interests include software engineering and requirements engineering

"}, bioImg=null, bioContent=

born in 2000. Master candidate. Her main research interests include software engineering and requirements engineering

, aboutCorrespAuthor=null), CN=AuthorExt(id=1329419786246795706, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, authorId=1329419786091606455, language=CN, stringName=赵佳琪, firstName=null, middleName=null, lastName=null, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=1, address=1内蒙古师范大学计算机科学技术学院 呼和浩特 010022, bio={"img":"OxmIU8jcuhYYrr15kROP5Q==","content":"

2000年生。硕士研究生。主要研究方向为软件工程、需求工程

"}, bioImg=OxmIU8jcuhYYrr15kROP5Q==, bioContent=

2000年生。硕士研究生。主要研究方向为软件工程、需求工程

, aboutCorrespAuthor=null)}, companyList=[AuthorCompany(id=1329419785550541221, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, xref=1, ext=[AuthorCompanyExt(id=1329419785554735526, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785550541221, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=1College of Computer Science and Technology, Inner Mongolia Normal University, Hohhot 010022), AuthorCompanyExt(id=1329419785563124135, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785550541221, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=1内蒙古师范大学计算机科学技术学院 呼和浩特 010022)])]), Author(id=1329419786309710268, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, orderNo=2, firstName=null, middleName=null, lastName=null, nameCn=null, orcid=null, stid=null, country=null, authorPic=null, dead=0, email=xhchen@sei.ecnu.edu.cn, emailSecond=null, emailThird=null, correspondingAuthor=0, authorType=1, ext={EN=AuthorExt(id=1329419786385207742, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, authorId=1329419786309710268, language=EN, stringName=Xiaohong Chen, firstName=Xiaohong, middleName=null, lastName=Chen, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=2, address=2Shanghai Key Laboratory of Trustworthy Computing (East China Normal University), Shanghai 200062, bio={"content":"

born in 1982. PhD, professor. Her main research interests include requirements engineering, and knowledge based software engineering and formal method

"}, bioImg=null, bioContent=

born in 1982. PhD, professor. Her main research interests include requirements engineering, and knowledge based software engineering and formal method

, aboutCorrespAuthor=null), CN=AuthorExt(id=1329419786456510911, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, authorId=1329419786309710268, language=CN, stringName=陈小红, firstName=null, middleName=null, lastName=null, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=2, address=2上海市高可信计算重点实验室(华东师范大学) 上海 200062, bio={"img":"TKriiRq91rvpB4bbNMJ9Ig==","content":"

1982年生。博士,教授。主要研究方向为需求工程、基于知识的软件工程和形式化方法

"}, bioImg=TKriiRq91rvpB4bbNMJ9Ig==, bioContent=

1982年生。博士,教授。主要研究方向为需求工程、基于知识的软件工程和形式化方法

, aboutCorrespAuthor=null)}, companyList=[AuthorCompany(id=1329419785617650088, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, xref=2, ext=[AuthorCompanyExt(id=1329419785626038697, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785617650088, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=2Shanghai Key Laboratory of Trustworthy Computing (East China Normal University), Shanghai 200062), AuthorCompanyExt(id=1329419785630233002, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785617650088, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=2上海市高可信计算重点实验室(华东师范大学) 上海 200062)])]), Author(id=1329419786519425473, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, orderNo=3, firstName=null, middleName=null, lastName=null, nameCn=null, orcid=null, stid=null, country=null, authorPic=null, dead=0, email=zhijin@pku.edu.cn, emailSecond=null, emailThird=null, correspondingAuthor=0, authorType=1, ext={EN=AuthorExt(id=1329419786594922948, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, authorId=1329419786519425473, language=EN, stringName=Zhi Jin, firstName=Zhi, middleName=null, lastName=Jin, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=3, 4, address=3Key Lab of High Confidence Software Technologies (Peking University), Ministry of Education, Beijing 100871
4School of Computer Science, Peking University, Beijing 100871, bio={"content":"

born in 1962. PhD, professor. Her main research interests include requirements engineering and software automation

"}, bioImg=null, bioContent=

born in 1962. PhD, professor. Her main research interests include requirements engineering and software automation

, aboutCorrespAuthor=null), CN=AuthorExt(id=1329419786657837509, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, authorId=1329419786519425473, language=CN, stringName=金芝, firstName=null, middleName=null, lastName=null, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=3, 4, address=3高可信软件技术教育部重点实验室(北京大学) 北京 100871
4北京大学计算机学院 北京 100871, bio={"img":"RNadvqWZJ/BnM/husIY/2g==","content":"

1962年生。博士,教授。主要研究方向为需求工程、软件自动化

"}, bioImg=RNadvqWZJ/BnM/husIY/2g==, bioContent=

1962年生。博士,教授。主要研究方向为需求工程、软件自动化

, aboutCorrespAuthor=null)}, companyList=[AuthorCompany(id=1329419785693147563, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, xref=3, ext=[AuthorCompanyExt(id=1329419785701536172, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785693147563, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=3Key Lab of High Confidence Software Technologies (Peking University), Ministry of Education, Beijing 100871), AuthorCompanyExt(id=1329419785709924781, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785693147563, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=3高可信软件技术教育部重点实验室(北京大学) 北京 100871)]), AuthorCompany(id=1329419785772839342, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, xref=4, ext=[AuthorCompanyExt(id=1329419785793810863, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785772839342, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=4School of Computer Science, Peking University, Beijing 100871), AuthorCompanyExt(id=1329419785806393776, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785772839342, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=4北京大学计算机学院 北京 100871)])])], keywords=[Keyword(id=1329419786762695110, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, orderNo=1, keyword=embedded systems), Keyword(id=1329419786833998279, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, orderNo=2, keyword=requirements specification), Keyword(id=1329419786901107144, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, orderNo=3, keyword=requirements interpretability), Keyword(id=1329419786964021705, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, orderNo=4, keyword=LLM (large language model)), Keyword(id=1329419787031130570, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, orderNo=5, keyword=requirements completion), Keyword(id=1329419787098239435, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, orderNo=1, keyword=嵌入式系统), Keyword(id=1329419787165348300, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, orderNo=2, keyword=需求规约), Keyword(id=1329419787232457165, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, orderNo=3, keyword=需求可解释性), Keyword(id=1329419787286983118, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, orderNo=4, keyword=大语言模型), Keyword(id=1329419787345703375, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, orderNo=5, keyword=需求补全)], refs=[Reference(id=1329419791107994110, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=1, rfOrder=0, authorNames=null, journalName=null, refType=null, unstructuredReference=陈小红, 刘少彬, 金芝. 嵌入式系统的需求描述综述[J]. 软件学报, 2025, 36(1): 27−46, articleTitle=null, refAbstract=null), Reference(id=1329419791166714367, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=1, rfOrder=1, authorNames=null, journalName=null, refType=null, unstructuredReference=Chen Xiaohong, Liu Shaobin, Jin Zhi. A survey of requirements description for embedded systems[J]. Journal of Software, 2025, 36(1): 27−46 (in Chinese), articleTitle=null, refAbstract=null), Reference(id=1329419791225434624, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=2, rfOrder=2, authorNames=null, journalName=null, refType=null, unstructuredReference=金芝, 刘璘, 陈小红, 等. 软件需求工程方法与实践[M]. 北京: 清华大学出版社, 2023, articleTitle=null, refAbstract=null), Reference(id=1329419791288349185, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=2, rfOrder=3, authorNames=null, journalName=null, refType=null, unstructuredReference=Jin Zhi, Liu Lin, Chen Xiaohong, et al. Software Requirements Engineering: Methods and Practice[M]. Beijing: Tsinghua University Press, 2023 (in Chinese), articleTitle=null, refAbstract=null), Reference(id=1329419791389012482, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=3, rfOrder=4, authorNames=null, journalName=null, refType=null, unstructuredReference=Voria G, Casillo F, Gravino C, et al. RECOVER: Toward requirements generation from stakeholders’ conversations[J]. IEEE Transactions on Software Engineering, 2025, 51(6): 1912−1933, articleTitle=null, refAbstract=null), Reference(id=1329419791447732739, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=4, rfOrder=5, authorNames=null, journalName=null, refType=null, unstructuredReference=Koscinski V, Hashemi S, Mirakhorli M. On-demand security requirements synthesis with relational generative adversarial networks[C] //Proc of the 45th IEEE/ACM Int Conf on Software Engineering (ICSE). Piscataway, NJ: IEEE, 2023: 1609−1621, articleTitle=null, refAbstract=null), Reference(id=1329419791498064388, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=5, rfOrder=6, authorNames=null, journalName=null, refType=null, unstructuredReference=Lian Xiaoli, Ma Jieping, Lv Heyang, et al. ReqCompletion: Domain-enhanced automatic completion for software requirements[C] //Proc of the 32nd IEEE Int Requirements Engineering Conf (RE). Piscataway, NJ: IEEE, 2024: 142−154, articleTitle=null, refAbstract=null), Reference(id=1329419791560978949, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=6, rfOrder=7, authorNames=null, journalName=null, refType=null, unstructuredReference=Almonte J T, Boominathan S A, Nascimento N. Automated non-functional requirements generation in software engineering with large language models: A comparative study[J]. arXiv preprint, arXiv: 2503.15248, 2025, articleTitle=null, refAbstract=null), Reference(id=1329419791636476422, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=7, rfOrder=8, authorNames=null, journalName=null, refType=null, unstructuredReference=Habib M K, Graziotin D, Wagner S. ReqBrain: Task-specific instruction tuning of LLMs for AI-assisted requirements generation[J]. arXiv preprint, arXiv: 2505.17632, 2025, articleTitle=null, refAbstract=null), Reference(id=1329419791703585287, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=8, rfOrder=9, authorNames=null, journalName=null, refType=null, unstructuredReference=Lowin M, Mihale-Wilson C. Functional requirements and recommendations for AI-based sustainable energy solutions[C]//Proc of INFORMATIK 2024. Bonn: Gesellschaft für Informatik, 2024: 1705−1716, articleTitle=null, refAbstract=null), Reference(id=1329419791766499848, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=9, rfOrder=10, authorNames=null, journalName=null, refType=null, unstructuredReference=Zhao Ziyan, Zhang Li, Lian Xiaoli, et al. Reqgen: Keywords-driven software requirements generation[J]. Mathematics, 2023, 11(2): 1−22, articleTitle=null, refAbstract=null), Reference(id=1329419791833608713, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=10, rfOrder=11, authorNames=null, journalName=null, refType=null, unstructuredReference=Elliott R A, Allen E B. Creating a software requirements specification document using an ontology based methodology[J]. International Journal of Advanced Research in Science, Engineering and Technology, 2016, 3(9): 2616−2630, articleTitle=null, refAbstract=null), Reference(id=1329419791900717578, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=11, rfOrder=12, authorNames=null, journalName=null, refType=null, unstructuredReference=Wang Chunhui, Zhao Jiaqi, Chen Xiaohong, et al. Generating requirements documents for embedded systems: A device knowledge-guided approach[C] //Proc of the IEEE 32nd Int Requirements Engineering Conf Workshops (REW). Piscataway, NJ: IEEE, 2024: 200−205, articleTitle=null, refAbstract=null), Reference(id=1329419791988797963, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=12, rfOrder=13, authorNames=null, journalName=null, refType=null, unstructuredReference=IEEE Computer Society. IEEE Std 830-1998: IEEE Recommended Practice for Software Requirements Specifications[S]. New York: IEEE, 1998, articleTitle=null, refAbstract=null), Reference(id=1329419792076878348, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=13, rfOrder=14, authorNames=null, journalName=null, refType=null, unstructuredReference=Mavin A, Wilkinson P, Harwood A, et al. Easy approach to requirements syntax (EARS)[C] //Proc of the 17th IEEE Int Requirements Engineering Conf. Piscataway, NJ: IEEE, 2009: 317−322, articleTitle=null, refAbstract=null), Reference(id=1329419792148181517, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=14, rfOrder=15, authorNames=null, journalName=null, refType=null, unstructuredReference=Kang K C, Ko K I. PARTS: A temporal logic-based real-time software specification and verification method[C] //Proc of the 17th Int Conf on Software Engineering. Piscataway, NJ: IEEE, 1995: 169−176, articleTitle=null, refAbstract=null), Reference(id=1329419792227873294, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=15, rfOrder=16, authorNames=null, journalName=null, refType=null, unstructuredReference=Mahmud N, Seceleanu C, Ljungkrantz O. Specification and semantic analysis of embedded systems requirements: From description logic to temporal logic[C] //Proc of the 15th Int Conf on Software Engineering and Formal Methods. Berlin: Springer, 2017: 332−348, articleTitle=null, refAbstract=null), Reference(id=1329419792290787856, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=16, rfOrder=17, authorNames=null, journalName=null, refType=null, unstructuredReference=Xuan Zhen, Wang Tianci, Wang Chunhui, et al. A tool for automatically identifying semantic conflicts in user stories by combining NLP and BERT model[C] //Proc of the 32nd IEEE Int Requirements Engineering Conf (RE). Piscataway, NJ: IEEE, 2024: 484−487, articleTitle=null, refAbstract=null), Reference(id=1329419792349508113, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=17, rfOrder=18, authorNames=null, journalName=null, refType=null, unstructuredReference=Bertram V, Kausch H, Kusmenko E, et al. Leveraging natural language processing for a consistency checking toolchain of automotive requirements[C] //Proc of the IEEE 31st Int Requirements Engineering Conf (RE). Piscataway, NJ: IEEE, 2023: 212−222, articleTitle=null, refAbstract=null), Reference(id=1329419792454365714, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=18, rfOrder=19, authorNames=null, journalName=null, refType=null, unstructuredReference=Chen Boqi, Babikian A A, Feng Shuzhao, et al. LLM-based satisfiability checking of string requirements by consistent data and checker generation[J]. arXiv preprint, arXiv: 2506.16639, 2025, articleTitle=null, refAbstract=null), Reference(id=1329419792525668883, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=19, rfOrder=20, authorNames=null, journalName=null, refType=null, unstructuredReference=Krishna M, Gaur B, Verma A, et al. Using LLMs in software requirements specifications: An empirical evaluation[C] //Proc of the IEEE 32nd Int Requirements Engineering Conf (RE). Piscataway, NJ: IEEE, 2024: 475−483, articleTitle=null, refAbstract=null), Reference(id=1329419792601166356, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=20, rfOrder=21, authorNames=null, journalName=null, refType=null, unstructuredReference=Yong G, Jeon K, Lee G. Prompt engineering for zero-shot and few-shot defect detection and classification using a visual-language pretrained model[J]. Computer-Aided Civil and Infrastructure Engineering, 2023, 38(11): 1536−1554, articleTitle=null, refAbstract=null), Reference(id=1329419792664080917, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=21, rfOrder=22, authorNames=null, journalName=null, refType=null, unstructuredReference=Meck A M, Precht L. How to design the perfect prompt: A linguistic approach to prompt design in automotive voice assistants—an exploratory study[C]//Proc of the 13th Int Conf on Automotive User Interfaces and Interactive Vehicular Applications. New York: ACM, 2021: 237−246, articleTitle=null, refAbstract=null), Reference(id=1329419792722801174, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=22, rfOrder=23, authorNames=null, journalName=null, refType=null, unstructuredReference=Shakthi S, Srivastava P, Kumar R, et al. Automated test case generation for satellite FRD using NLP and large language model[C] //Proc of the 4th Int Conf on Electrical, Computer, Communications and Mechatronics Engineering (ICECCME). Piscataway, NJ: IEEE, 2024: 1−8, articleTitle=null, refAbstract=null), Reference(id=1329419792777327127, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=23, rfOrder=24, authorNames=null, journalName=null, refType=null, unstructuredReference=杨晓, 王小齐, 陈小红, 等. 复杂嵌入式系统需求一致性的组合验证方法[J]. 软件学报, 2025, 36(4): 1413−1434, articleTitle=null, refAbstract=null), Reference(id=1329419792836047384, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=23, rfOrder=25, authorNames=null, journalName=null, refType=null, unstructuredReference=Yang Xiao, Wang Xiaoqi, Chen Xiaohong, et al. Combined verification method for consistency of complex embedded system requirements[J]. Journal of Software, 2025, 36(4): 1413−1434 (in Chinese), articleTitle=null, refAbstract=null), Reference(id=1329419792894767641, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=24, rfOrder=26, authorNames=null, journalName=null, refType=null, unstructuredReference=靳东明, 金芝, 陈小红, 等. ChatModeler: 基于大语言模型的人机协作迭代式需求获取和建模方法[J]. 计算机研究与发展, 2024, 61(2): 338−350, articleTitle=null, refAbstract=null), Reference(id=1329419792945099290, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=24, rfOrder=27, authorNames=null, journalName=null, refType=null, unstructuredReference=Jin Dongming, Jin Zhi, Chen Xiaohong, et al. ChatModeler: Human-AI collaborative iterative requirements elicitation and modeling method based on large language models[J]. Journal of Computer Research and Development, 2024, 61(2): 338−350 (in Chinese), articleTitle=null, refAbstract=null), Reference(id=1329419793033179675, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=25, rfOrder=28, authorNames=null, journalName=null, refType=null, unstructuredReference=Ferrari A, Spagnolo G O, Gnesi S. PURE: A dataset of public requirements documents[C]//Proc of the 25th IEEE Int Requirements Engineering Conf (RE). Piscataway, NJ: IEEE, 2017: 502–505, articleTitle=null, refAbstract=null), Reference(id=1329419793096094236, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=26, rfOrder=29, authorNames=null, journalName=null, refType=null, unstructuredReference=Zeng Aohan, Xu Bin, Wang Bowen, et al. ChatGLM: A family of large language models from GLM-130B to GLM-4[J]. arXiv preprint, arXiv: 2406.12793, 2024, articleTitle=null, refAbstract=null), Reference(id=1329419793150620189, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=27, rfOrder=30, authorNames=null, journalName=null, refType=null, unstructuredReference=Yang An, Li Anfeng, Yang Baosong, et al. Qwen3 technical report[J]. arXiv preprint, arXiv: 2505.09388, 2025, articleTitle=null, refAbstract=null), Reference(id=1329419793221923358, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, doi=null, pmid=null, pmcid=null, year=null, volume=null, issue=null, pageStart=null, pageEnd=null, url=null, language=null, rfNumber=28, rfOrder=31, authorNames=null, journalName=null, refType=null, unstructuredReference=Sun Yu, Wang Shuohuan, Feng Shikun, et al. ERNIE 3.0: Large-scale knowledge enhanced pre-training for language understanding and generation[J]. arXiv preprint, arXiv: 2107.02137, 2021, articleTitle=null, refAbstract=null)], funds=null, companyList=[AuthorCompany(id=1329419785550541221, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, xref=1, ext=[AuthorCompanyExt(id=1329419785554735526, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785550541221, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=1College of Computer Science and Technology, Inner Mongolia Normal University, Hohhot 010022), AuthorCompanyExt(id=1329419785563124135, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785550541221, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=1内蒙古师范大学计算机科学技术学院 呼和浩特 010022)]), AuthorCompany(id=1329419785617650088, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, xref=2, ext=[AuthorCompanyExt(id=1329419785626038697, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785617650088, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=2Shanghai Key Laboratory of Trustworthy Computing (East China Normal University), Shanghai 200062), AuthorCompanyExt(id=1329419785630233002, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785617650088, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=2上海市高可信计算重点实验室(华东师范大学) 上海 200062)]), AuthorCompany(id=1329419785693147563, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, xref=3, ext=[AuthorCompanyExt(id=1329419785701536172, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785693147563, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=3Key Lab of High Confidence Software Technologies (Peking University), Ministry of Education, Beijing 100871), AuthorCompanyExt(id=1329419785709924781, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785693147563, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=3高可信软件技术教育部重点实验室(北京大学) 北京 100871)]), AuthorCompany(id=1329419785772839342, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, xref=4, ext=[AuthorCompanyExt(id=1329419785793810863, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785772839342, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=4School of Computer Science, Peking University, Beijing 100871), AuthorCompanyExt(id=1329419785806393776, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785772839342, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=4北京大学计算机学院 北京 100871)])], figs=[ArticleFig(id=1329419787475726800, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Figure 1, caption=Interpretable requirements specification framework for embedded systems based on LLM, figureFileSmall=YvlHY39eY7KQPKvLonjIxg==, figureFileBig=iTGCMvwQgOjQLzG6hYWz2Q==, tableContent=null), ArticleFig(id=1329419787551224273, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=图1, caption=基于LLM的嵌入式系统可解释需求规约框架, figureFileSmall=YvlHY39eY7KQPKvLonjIxg==, figureFileBig=iTGCMvwQgOjQLzG6hYWz2Q==, tableContent=null), ArticleFig(id=1329419787735773650, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Figure 2, caption=The problem diagram of the “equipment power-on”, figureFileSmall=7fubflisLGdG4dTl+r1tsA==, figureFileBig=eYz+k6IJ1TfE0SBkJbzV8Q==, tableContent=null), ArticleFig(id=1329419787794493907, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=图2, caption=“设备加电”问题图, figureFileSmall=7fubflisLGdG4dTl+r1tsA==, figureFileBig=eYz+k6IJ1TfE0SBkJbzV8Q==, tableContent=null), ArticleFig(id=1329419787853214164, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Figure 3, caption=The scenario diagram of the “equipment power-on”, figureFileSmall=o10KHMOBCHJGAoZ8NeSqrw==, figureFileBig=awz+aBROCjf6YZrhGlQ5mA==, tableContent=null), ArticleFig(id=1329419787911934421, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=图3, caption=“设备加电”情景图示例, figureFileSmall=o10KHMOBCHJGAoZ8NeSqrw==, figureFileBig=awz+aBROCjf6YZrhGlQ5mA==, tableContent=null), ArticleFig(id=1329419787970654678, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Figure 4, caption=Hierarchical structure diagram of the equipment knowledge base, figureFileSmall=kfW8nfoCoSyNr3gDrdXbcg==, figureFileBig=vAOi09/8iIZt0gXtw0fPeQ==, tableContent=null), ArticleFig(id=1329419788050346455, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=图4, caption=设备知识库层次结构图, figureFileSmall=kfW8nfoCoSyNr3gDrdXbcg==, figureFileBig=vAOi09/8iIZt0gXtw0fPeQ==, tableContent=null), ArticleFig(id=1329419788121649624, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Figure 5, caption=“Indoor temperature anomaly monitoring system” problem diagram, figureFileSmall=3RVmDhwIFWAld7jbYElTZw==, figureFileBig=esA4uTYTQgc0aOMLNO05bg==, tableContent=null), ArticleFig(id=1329419788184564185, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=图5, caption=“室内温度异常监测系统”问题图, figureFileSmall=3RVmDhwIFWAld7jbYElTZw==, figureFileBig=esA4uTYTQgc0aOMLNO05bg==, tableContent=null), ArticleFig(id=1329419788281033178, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Figure 6, caption=Problem diagram and scenario diagram for “LED alarm control” requirement, figureFileSmall=unayoePkTSYWGDdMxnDUeQ==, figureFileBig=AdR4rDO4c064GfrvIFF71g==, tableContent=null), ArticleFig(id=1329419788381696475, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=图6, caption=“LED报警控制”需求的问题图及情景图, figureFileSmall=unayoePkTSYWGDdMxnDUeQ==, figureFileBig=AdR4rDO4c064GfrvIFF71g==, tableContent=null), ArticleFig(id=1329419788444611036, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Figure 7, caption=The architecture diagram of the tool, figureFileSmall=OzXeOQeumAta/XvnzLb7Nw==, figureFileBig=q/9tgS0WITDhZQ0CHAvLxw==, tableContent=null), ArticleFig(id=1329419788499136989, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=图7, caption=工具的构件图, figureFileSmall=OzXeOQeumAta/XvnzLb7Nw==, figureFileBig=q/9tgS0WITDhZQ0CHAvLxw==, tableContent=null), ArticleFig(id=1329419788562051550, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Figure 8, caption=Comparison of average support degree and average coverage rate of different embedded requirement documents across four cases, figureFileSmall=ZjYF/ZWqag4HlXqnB46UVw==, figureFileBig=xtsUV/F2hvcbtnz0qU3l5A==, tableContent=null), ArticleFig(id=1329419788616577503, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=图8, caption=不同嵌入式需求文档平均支撑度和平均覆盖率在4个案例中的对比, figureFileSmall=ZjYF/ZWqag4HlXqnB46UVw==, figureFileBig=xtsUV/F2hvcbtnz0qU3l5A==, tableContent=null), ArticleFig(id=1329419788679492064, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Figure 9, caption=Average Performance of different LLMs in equipment, system, and software requirement generation across four cases, figureFileSmall=Wvqht3Le7LN7RbdlwAurvQ==, figureFileBig=wDTRn4UJTkk8Wriug/hM8A==, tableContent=null), ArticleFig(id=1329419788746600929, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=图9, caption=不同LLM在4案例的设备、系统、软件需求生成平均性能, figureFileSmall=Wvqht3Le7LN7RbdlwAurvQ==, figureFileBig=wDTRn4UJTkk8Wriug/hM8A==, tableContent=null), ArticleFig(id=1329419788801126882, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Table 1, caption=

Multi-step Guided LLM Prompt Framework

, figureFileSmall=null, figureFileBig=null, tableContent=
母项子项内容描述
任务目标<任务描述>
前置信息输入内容<具体输入内容>
背景知识<相关背景知识>
上下文<任务上下文信息>
任务拆解<描述子步骤及依赖关系>
执行子步骤前序结果引用<引用信息>或无
知识引用<所需知识列表>
处理过程<执行流程描述>
用户反馈整合<交互反馈内容>或无
输出结果<当前步骤的输出>
), ArticleFig(id=1329419788889207267, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=表1, caption=

多步骤引导的LLM提示框架

, figureFileSmall=null, figureFileBig=null, tableContent=
母项子项内容描述
任务目标<任务描述>
前置信息输入内容<具体输入内容>
背景知识<相关背景知识>
上下文<任务上下文信息>
任务拆解<描述子步骤及依赖关系>
执行子步骤前序结果引用<引用信息>或无
知识引用<所需知识列表>
处理过程<执行流程描述>
用户反馈整合<交互反馈内容>或无
输出结果<当前步骤的输出>
), ArticleFig(id=1329419788960510436, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Table 2, caption=

Instructions for prompt1 Prompt Template

, figureFileSmall=null, figureFileBig=null, tableContent=
prompt1具体内容
任务目标根据用户意图识别核心硬件设备,经用户确认形成结构化设备列表。
前置信息1. 输入:user_intent
2. 背景知识:设备知识
3. 上下文:初始user_intent
任务拆解注入设备知识库→分解用户意图→设备匹配分析→生成候选→整合反馈
执行子步骤1. 前序引用:无
2. 知识引用:K1设备知识库、T1设备推荐模板
3. 处理过程:
①注入K1至LLM;
②分解意图为“系统能力+核心目标+业务价值”;
③匹配设备静态/动态属性生成候选。
4. 用户交互:工程师选择候选设备,如果对推荐不满意,再次提出问题,发起重新推荐
5. 输出:设备列表(要求提供型号/协议/接口/参数的信息,并列出推荐该设备是基于哪项系统能力、核心目标或业务价值的需要)
), ArticleFig(id=1329419789027619301, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=表2, caption=

prompt1提示模板说明

, figureFileSmall=null, figureFileBig=null, tableContent=
prompt1具体内容
任务目标根据用户意图识别核心硬件设备,经用户确认形成结构化设备列表。
前置信息1. 输入:user_intent
2. 背景知识:设备知识
3. 上下文:初始user_intent
任务拆解注入设备知识库→分解用户意图→设备匹配分析→生成候选→整合反馈
执行子步骤1. 前序引用:无
2. 知识引用:K1设备知识库、T1设备推荐模板
3. 处理过程:
①注入K1至LLM;
②分解意图为“系统能力+核心目标+业务价值”;
③匹配设备静态/动态属性生成候选。
4. 用户交互:工程师选择候选设备,如果对推荐不满意,再次提出问题,发起重新推荐
5. 输出:设备列表(要求提供型号/协议/接口/参数的信息,并列出推荐该设备是基于哪项系统能力、核心目标或业务价值的需要)
), ArticleFig(id=1329419789098922470, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Table 3, caption=

Instructions for prompt2 Prompt Template

, figureFileSmall=null, figureFileBig=null, tableContent=
prompt2具体内容
任务目标基于意图和设备选型,形成系统需求列表。
前置信息1. 输入:步骤1设备列表+user_intent
2. 背景知识:T2系统需求模板
3. 上下文:步骤1设备列表
任务拆解注入系统模板→意图转化系统能力→匹配设备参数生成需求→整合反馈
执行子步骤1. 前序引用:步骤1设备列表
2. 知识引用:T2系统需求模板、K1设备知识库
3. 处理过程:
①注入T2至LLM;
②意图转化为“感知/控制/通信”能力;将业务价值转化为可量化性能指标;
③结合步骤1设备列表参数分析功能逻辑(传感/处理/执行等)的可实现性,补充相关约束(如设备通信协议要求、环境适应性条件),生成候选系统需求列表。
4. 用户交互:工程师核对候选系统需求条目,发现存在“不完整”“描述不全面”等问题,再次提出问题,发起重新推荐
5. 输出:系统需求列表(基于系统需求描述模板描述系统需求,要求:标注系统需求的意图来源以及属于哪类能力(感知/控制/通信))
), ArticleFig(id=1329419789182808551, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=表3, caption=

prompt2提示模板说明

, figureFileSmall=null, figureFileBig=null, tableContent=
prompt2具体内容
任务目标基于意图和设备选型,形成系统需求列表。
前置信息1. 输入:步骤1设备列表+user_intent
2. 背景知识:T2系统需求模板
3. 上下文:步骤1设备列表
任务拆解注入系统模板→意图转化系统能力→匹配设备参数生成需求→整合反馈
执行子步骤1. 前序引用:步骤1设备列表
2. 知识引用:T2系统需求模板、K1设备知识库
3. 处理过程:
①注入T2至LLM;
②意图转化为“感知/控制/通信”能力;将业务价值转化为可量化性能指标;
③结合步骤1设备列表参数分析功能逻辑(传感/处理/执行等)的可实现性,补充相关约束(如设备通信协议要求、环境适应性条件),生成候选系统需求列表。
4. 用户交互:工程师核对候选系统需求条目,发现存在“不完整”“描述不全面”等问题,再次提出问题,发起重新推荐
5. 输出:系统需求列表(基于系统需求描述模板描述系统需求,要求:标注系统需求的意图来源以及属于哪类能力(感知/控制/通信))
), ArticleFig(id=1329419789283471848, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Table 4, caption=

Instructions for prompt3 Prompt Template

, figureFileSmall=null, figureFileBig=null, tableContent=
prompt3具体内容
任务目标拆解系统需求为模块化软件需求,明确交互逻辑与设备约束。
前置信息1. 输入:步骤1设备列表+步骤2系统需求+user_intent
2. 背景知识:T3软件需求模板,K1设备知识库
3. 上下文:步骤2系统需求列表
任务拆解注入软件模板+设备知识→拆解模块→生成软件需求→整合反馈
执行子步骤1. 前序引用:步骤1设备列表、步骤2系统需求
2. 知识引用:T3软件需求模板、K1设备知识库
3. 处理过程:
①注入T3+系统需求至LLM;
②解析系统需求,将系统级能力映射到软件逻辑(感知/处理/执行/通信),选择WHEN/WHILE类型;
③结合设备接口协议与控制指令,生成可执行的软件交互逻辑(模块调用顺序、事件触发机制、数据流动路径),编写事件驱动型(WHEN)、时序控制型(WHILE)、非功能需求,形成完整的软件模块级需求集。
4. 用户交互:工程师确认规范性、完整性以及是否存在非功能缺失等情况,决定是否发起下一轮交互
5. 输出:结构化软件需求列表(基于软件需求描述模板表达软件需求,要求:标注软件需求的系统需求来源以及软件需求的类别)
), ArticleFig(id=1329419789346386409, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=表4, caption=

prompt3提示模板说明

, figureFileSmall=null, figureFileBig=null, tableContent=
prompt3具体内容
任务目标拆解系统需求为模块化软件需求,明确交互逻辑与设备约束。
前置信息1. 输入:步骤1设备列表+步骤2系统需求+user_intent
2. 背景知识:T3软件需求模板,K1设备知识库
3. 上下文:步骤2系统需求列表
任务拆解注入软件模板+设备知识→拆解模块→生成软件需求→整合反馈
执行子步骤1. 前序引用:步骤1设备列表、步骤2系统需求
2. 知识引用:T3软件需求模板、K1设备知识库
3. 处理过程:
①注入T3+系统需求至LLM;
②解析系统需求,将系统级能力映射到软件逻辑(感知/处理/执行/通信),选择WHEN/WHILE类型;
③结合设备接口协议与控制指令,生成可执行的软件交互逻辑(模块调用顺序、事件触发机制、数据流动路径),编写事件驱动型(WHEN)、时序控制型(WHILE)、非功能需求,形成完整的软件模块级需求集。
4. 用户交互:工程师确认规范性、完整性以及是否存在非功能缺失等情况,决定是否发起下一轮交互
5. 输出:结构化软件需求列表(基于软件需求描述模板表达软件需求,要求:标注软件需求的系统需求来源以及软件需求的类别)
), ArticleFig(id=1329419789417689578, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Table 5, caption=

Instructions for prompt4 Prompt Template

, figureFileSmall=null, figureFileBig=null, tableContent=
prompt4具体内容
任务目标可视化整合全量需求,构建交互边界与动态行为逻辑。
前置信息1. 输入:步骤1~3全量结果+user_intent
2. 背景知识:K2需求建模知识(问题图/情景图规则);T4问题图和情景图表达格式模板
3. 上下文:步骤3软件需求列表+历史上下文
任务拆解注入建模知识+全量上下文→生成问题图→生成情景图→一致性检查+整合反馈
执行子步骤1. 前序引用:步骤1~3全部结果
2. 知识引用:K2需求建模知识,T4模板
3. 处理过程:
①注入K2+历史上下文至LLM;
②从意图、系统需求以及软件需求的描述中识别问题概念和边,生成系统级问题图;
③基于问题图,理解行为交互和期望交互,识别交互逻辑,生成模块级情景图;
④根据问题图,建立意图、系统需求以及软件需求的追踪关系。
4. 用户交互:工程师查看问题图、情景图,发现不完整和不一致等问题,决定发起下一轮交互
5. 输出:问题图/情景图+结构化说明
), ArticleFig(id=1329419789606433259, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=表5, caption=

prompt4提示模板说明

, figureFileSmall=null, figureFileBig=null, tableContent=
prompt4具体内容
任务目标可视化整合全量需求,构建交互边界与动态行为逻辑。
前置信息1. 输入:步骤1~3全量结果+user_intent
2. 背景知识:K2需求建模知识(问题图/情景图规则);T4问题图和情景图表达格式模板
3. 上下文:步骤3软件需求列表+历史上下文
任务拆解注入建模知识+全量上下文→生成问题图→生成情景图→一致性检查+整合反馈
执行子步骤1. 前序引用:步骤1~3全部结果
2. 知识引用:K2需求建模知识,T4模板
3. 处理过程:
①注入K2+历史上下文至LLM;
②从意图、系统需求以及软件需求的描述中识别问题概念和边,生成系统级问题图;
③基于问题图,理解行为交互和期望交互,识别交互逻辑,生成模块级情景图;
④根据问题图,建立意图、系统需求以及软件需求的追踪关系。
4. 用户交互:工程师查看问题图、情景图,发现不完整和不一致等问题,决定发起下一轮交互
5. 输出:问题图/情景图+结构化说明
), ArticleFig(id=1329419789715485164, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Table 6, caption=

Instructions for prompt5 Prompt Template

, figureFileSmall=null, figureFileBig=null, tableContent=
prompt5具体内容
任务目标整合全部制品,生成符合规范的需求文档
前置信息1. 输入:步骤1~4全部结果+user_intent
2. 背景知识:T5需求规约模板
3. 上下文:步骤4建模结果+历史上下文
任务拆解注入文档模板+全部上下文→生成初稿→构建追溯链→整合反馈
执行子步骤1. 前序引用:步骤1~4全部结果
2. 知识引用:T5需求规约模板
3. 处理过程:
①注入T5+全部上下文至LLM;
②生成文档初稿(意图/设备/需求/模型);
③构建“意图→系统需求→软件需求”追溯链。
4. 用户交互:工程师根据文档中存在的“不完整”“不一致”“不充分”等问题,提供问题反馈,或发起重新推荐
5. 输出:完整需求规约文档(含追溯链)
), ArticleFig(id=1329419789790982637, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=表6, caption=

prompt5提示模板说明

, figureFileSmall=null, figureFileBig=null, tableContent=
prompt5具体内容
任务目标整合全部制品,生成符合规范的需求文档
前置信息1. 输入:步骤1~4全部结果+user_intent
2. 背景知识:T5需求规约模板
3. 上下文:步骤4建模结果+历史上下文
任务拆解注入文档模板+全部上下文→生成初稿→构建追溯链→整合反馈
执行子步骤1. 前序引用:步骤1~4全部结果
2. 知识引用:T5需求规约模板
3. 处理过程:
①注入T5+全部上下文至LLM;
②生成文档初稿(意图/设备/需求/模型);
③构建“意图→系统需求→软件需求”追溯链。
4. 用户交互:工程师根据文档中存在的“不完整”“不一致”“不充分”等问题,提供问题反馈,或发起重新推荐
5. 输出:完整需求规约文档(含追溯链)
), ArticleFig(id=1329419789849702894, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Table 7, caption=

Scale Comparison of Experimental Cases in Terms of Device and Requirement

, figureFileSmall=null, figureFileBig=null, tableContent=
案例DNSyNSoN
ECS3711
SSS41414
SHS92425
TCS152162
), ArticleFig(id=1329419789912617455, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=表7, caption=

实验案例在设备与需求层面的规模比较

, figureFileSmall=null, figureFileBig=null, tableContent=
案例DNSyNSoN
ECS3711
SSS41414
SHS92425
TCS152162
), ArticleFig(id=1329419789979726320, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Table 8, caption=

Explanation of Quality Evaluation Indicators for Embedded Software Requirement Documents

, figureFileSmall=null, figureFileBig=null, tableContent=
类型子类评价方法
无歧义性语言模糊含主观词的需求数量占比(如“快速响应”“友好界面”)
不确定含不明确的量词或程度词的需求占比(如“若干”“尽可能”“部分”“大约”“不少于”)
指代歧义含模糊代词(如“它”“该系统”“他们”)的需求占比
完整性成分完整软件需求中缺乏关键细节(如输入、输出、约束条件等)的占比
非功能需求覆盖涵盖性能、安全性、可靠性等维度的非功能需求类型的占比
一致性冲突需求需求条目间的逻辑矛盾数量在总需求条目的占比
句式一致采用标准句式风格的需求占比
可验证性可测试可测量的需求占比,可测量要求具有可观测的指标,且指标可感知
验证条件明确可验证的需求占比,可验证要求需求具有具体标准(如时间、
数量、环境约束等),能直接用于判断是否处于达标的状态
可修改性信息冗余度重复出现的语义相同的需求数量占比
独立性不需要拆分为多个需求的数量占比
), ArticleFig(id=1329419790063612401, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=表8, caption=

嵌入式软件需求文档质量评价指标说明

, figureFileSmall=null, figureFileBig=null, tableContent=
类型子类评价方法
无歧义性语言模糊含主观词的需求数量占比(如“快速响应”“友好界面”)
不确定含不明确的量词或程度词的需求占比(如“若干”“尽可能”“部分”“大约”“不少于”)
指代歧义含模糊代词(如“它”“该系统”“他们”)的需求占比
完整性成分完整软件需求中缺乏关键细节(如输入、输出、约束条件等)的占比
非功能需求覆盖涵盖性能、安全性、可靠性等维度的非功能需求类型的占比
一致性冲突需求需求条目间的逻辑矛盾数量在总需求条目的占比
句式一致采用标准句式风格的需求占比
可验证性可测试可测量的需求占比,可测量要求具有可观测的指标,且指标可感知
验证条件明确可验证的需求占比,可验证要求需求具有具体标准(如时间、
数量、环境约束等),能直接用于判断是否处于达标的状态
可修改性信息冗余度重复出现的语义相同的需求数量占比
独立性不需要拆分为多个需求的数量占比
), ArticleFig(id=1329419790160081394, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Table 9, caption=

Time Spent on Manual Writing and Our Method Under the Same Intention min

, figureFileSmall=null, figureFileBig=null, tableContent=
案例低年级学生高年级学生本文方法
ECS8310515
SSS1019718
SHS987125
TCS1359349
), ArticleFig(id=1329419790227190259, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=表9, caption=

相同意图下人工撰写和本文方法所花费时间

, figureFileSmall=null, figureFileBig=null, tableContent=
案例低年级学生高年级学生本文方法
ECS8310515
SSS1019718
SHS987125
TCS1359349
), ArticleFig(id=1329419790285910516, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Table 10, caption=

Quality Evaluation of Requirement Documents Written Manually and Those Written by Our Method Under the Same Intention

, figureFileSmall=null, figureFileBig=null, tableContent=
类型子类案例低年级学生高年级学生本文方法
DNSNR/%DNSNR/%DNSNR/%
无歧义性语言模糊ECS315201185.562287.14
SSS015002102306.67
SHS014002100370
TCS3339.101185.560830
不确定ECS21513.3301800280
SSS21513.331214.760300
SHS31421.4342119.051372.70
TCS43312.1221811.110830
指代歧义ECS1156.6701801283.57
SSS015002100300
SHS014002100370
TCS033001800830
完整性成分完整ECS3933.334944.440160
SSS4850312250190
SHS2728.5768752229.09
TCS1166.251911.112623.23
非功能需求覆盖ECS030030030
SSS030030030
SHS1333.331333.33030
TCS1333.331333.33030
一致性冲突需求ECS015031816.672287.14
SSS015002100300
SHS21414.291214.760370
TCS2336.0601802832.41
句式一致ECS1156.6701800280
SSS015002100300
SHS014002100370
TCS033001800830
可验证性可测试ECS21513.3381844.441283.57
SSS41526.6732114.291303.33
SHS41428.5752123.810370
TCS43312.1231816.672832.41
验证条件明确ECS41526.671185.562287.14
SSS015002102306.67
SHS014002100370
TCS3339.101185.561831.20
可修改性信息冗余度ECS2922.222922.220160
SSS08021216.6721910.53
SHS0700800220
TCS01600900620
独立性ECS315201185.562287.1
SSS1156.6752123.810300
SHS1147.141214.761372.7
TCS3339.1021811.112832.41
平均1.516.0911.121.4316.18110.6838.052.02
), ArticleFig(id=1329419790373990901, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=表10, caption=

相同意图下人工撰写和本文方法撰写的需求文档质量评价

, figureFileSmall=null, figureFileBig=null, tableContent=
类型子类案例低年级学生高年级学生本文方法
DNSNR/%DNSNR/%DNSNR/%
无歧义性语言模糊ECS315201185.562287.14
SSS015002102306.67
SHS014002100370
TCS3339.101185.560830
不确定ECS21513.3301800280
SSS21513.331214.760300
SHS31421.4342119.051372.70
TCS43312.1221811.110830
指代歧义ECS1156.6701801283.57
SSS015002100300
SHS014002100370
TCS033001800830
完整性成分完整ECS3933.334944.440160
SSS4850312250190
SHS2728.5768752229.09
TCS1166.251911.112623.23
非功能需求覆盖ECS030030030
SSS030030030
SHS1333.331333.33030
TCS1333.331333.33030
一致性冲突需求ECS015031816.672287.14
SSS015002100300
SHS21414.291214.760370
TCS2336.0601802832.41
句式一致ECS1156.6701800280
SSS015002100300
SHS014002100370
TCS033001800830
可验证性可测试ECS21513.3381844.441283.57
SSS41526.6732114.291303.33
SHS41428.5752123.810370
TCS43312.1231816.672832.41
验证条件明确ECS41526.671185.562287.14
SSS015002102306.67
SHS014002100370
TCS3339.101185.561831.20
可修改性信息冗余度ECS2922.222922.220160
SSS08021216.6721910.53
SHS0700800220
TCS01600900620
独立性ECS315201185.562287.1
SSS1156.6752123.810300
SHS1147.141214.761372.7
TCS3339.1021811.112832.41
平均1.516.0911.121.4316.18110.6838.052.02
), ArticleFig(id=1329419790508208630, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Table 11, caption=

Adoption Rates for Three Types of Requirements Regarding the Using or Not Using the Knowledge Base

, figureFileSmall=null, figureFileBig=null, tableContent=
案例有无知识设备需求系统需求软件需求
RNENSNAR/%RNENSNAR/%RNENSNAR/%
ECS有4431001412785.7120161180
无234317.391412785.7118141177.78
对比19↓083↑0002↑2↓22↑
SSS有44410013111484.6221191490.48
无124433.3316101462.524201483.33
对比8↓067↑3↓1↑22↑3↓1↓7↑
SHS有97977.7816152493.7526222584.61
无377918.9219152478.9427222581.48
对比28↓059↑3↓015↑1↓03↑
TCS有16151593.7524212187.573626284.93
无72151520.8328222178.5780666282.5
对比56↓073↑4↓1↓9↑7↓4↓2↑
), ArticleFig(id=1329419790583706103, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=表11, caption=

有无使用知识库的3类需求采纳率

, figureFileSmall=null, figureFileBig=null, tableContent=
案例有无知识设备需求系统需求软件需求
RNENSNAR/%RNENSNAR/%RNENSNAR/%
ECS有4431001412785.7120161180
无234317.391412785.7118141177.78
对比19↓083↑0002↑2↓22↑
SSS有44410013111484.6221191490.48
无124433.3316101462.524201483.33
对比8↓067↑3↓1↑22↑3↓1↓7↑
SHS有97977.7816152493.7526222584.61
无377918.9219152478.9427222581.48
对比28↓059↑3↓015↑1↓03↑
TCS有16151593.7524212187.573626284.93
无72151520.8328222178.5780666282.5
对比56↓073↑4↓1↓9↑7↓4↓2↑
), ArticleFig(id=1329419790659203576, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Table 12, caption=

Three Types of Requirements Interactive Number of the Using or Not Using the Knowledge Base

, figureFileSmall=null, figureFileBig=null, tableContent=
案例设备需求系统需求软件需求
IN(有)IN(无)IN(有)IN(无)IN(有)IN(无)
ECS021111
SSS012222
SHS021212
TCS012322
平均值01.51.521.51.75
), ArticleFig(id=1329419790722118137, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=表12, caption=

有无使用设备知识库的3类需求交互次数

, figureFileSmall=null, figureFileBig=null, tableContent=
案例设备需求系统需求软件需求
IN(有)IN(无)IN(有)IN(无)IN(有)IN(无)
ECS021111
SSS012222
SHS021212
TCS012322
平均值01.51.521.51.75
), ArticleFig(id=1329419790797615610, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Table 13, caption=

Comparison of Manual Methods (H1 and H2), Direct Use of LLM, and Our Method in Interpretability Metrics (Support Degree and Coverage Rate)

, figureFileSmall=null, figureFileBig=null, tableContent=
案例方法意图-系统需求系统需求-软件需求意图-系统需求系统需求-软件需求汇总
ISNINSD/%SSNSyNSD/%TSyNSyNCR/%TSoNSoNCR/%ASD/%ACR/%
ECSH134755683.335683.33991007992
H234756966.67991009910071100
LLM-Single441005771.433742.86152365.228654
Ours44100121210012121001616100100100
SSSH134756785.71771008810080100
H224506966.678988.8912121005894
LLM-Single441008988.897977.78152365.229472
Ours44100111110011111001919100100100
SHSH134754757.146785.715771.436679
H24410081361.5413131008810081100
LLM-Single44100182281.82162272.73243470.599172
Ours44100151510015151002222100100100
TCSH1141687.5151788.24161794.1216161008897
H2131681.258988.89991008988.898594
LLM-Single1616100141782.35111764.71334573.339169
Ours1616100212110021211006262100100100
), ArticleFig(id=1329419790885695995, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=表13, caption=

人工方法(H1和H2)、单步LLM和本文方法在可解释性(支撑度与覆盖率)指标对比

, figureFileSmall=null, figureFileBig=null, tableContent=
案例方法意图-系统需求系统需求-软件需求意图-系统需求系统需求-软件需求汇总
ISNINSD/%SSNSyNSD/%TSyNSyNCR/%TSoNSoNCR/%ASD/%ACR/%
ECSH134755683.335683.33991007992
H234756966.67991009910071100
LLM-Single441005771.433742.86152365.228654
Ours44100121210012121001616100100100
SSSH134756785.71771008810080100
H224506966.678988.8912121005894
LLM-Single441008988.897977.78152365.229472
Ours44100111110011111001919100100100
SHSH134754757.146785.715771.436679
H24410081361.5413131008810081100
LLM-Single44100182281.82162272.73243470.599172
Ours44100151510015151002222100100100
TCSH1141687.5151788.24161794.1216161008897
H2131681.258988.89991008988.898594
LLM-Single1616100141782.35111764.71334573.339169
Ours1616100212110021211006262100100100
), ArticleFig(id=1329419790952804860, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=EN, label=Table 14, caption=

Performance Comparison of Different LLMs on Layered Requirements Across Different Cases %

, figureFileSmall=null, figureFileBig=null, tableContent=
案例模型设备需求系统需求软件需求平均F1值
准确率召回率F1准确率召回率F1准确率召回率F1
ECSGLM-4.7-flash50505055.5641.6747.6257.147564.8654.16
GLM-4.78010088.89502533.337556.2564.3362.18
GLM-510010010083.3341.6755.5666.677570.5675.37
Qwen3-1.7b8010088.8957.1433.3342.1266.675057.1462.72
Qwen3-8b10010010066.675057.1466.675057.1471.43
Qwen3-32b66.67100807058.3363.646581.2572.2371.96
ERNIE-Lite8010088.895050506056.5258.2165.70
SSSGLM-4.7-flash502533.338036.36506047.3752.9245.42
GLM-4.7607566.6710036.3653.3372.7342.1153.3457.78
GLM-566.710080.0210036.3653.3384.2184.2184.2172.52
Qwen3-1.7b75757562.545.4552.637563.1668.5765.40
Qwen3-8b8010088.896054.5557.1677.7873.6875.6873.91
Qwen3-32b10010010077.7863.6469.9786.6768.4276.5582.17
ERNIE-Lite66.671008055.5645.45507563.1668.5766.19
SHSGLM-4.7-flash77.7810087.566.6726.6738.1166.6745.4554.0559.89
GLM-4.777.7810087.571.4333.3345.448054.5564.9165.95
GLM-577.7810087.587.546.6760.8783.3368.1874.9474.44
Qwen3-1.7b77.7810087.566.6766.6766.6761.11505569.72
Qwen3-8b63.6410077.7887.546.6760.8787.563.6473.670.75
Qwen3-32b7585.7179.9671.4366.6768.9476.1972.7374.4174.44
ERNIE-Lite63.6410077.7864.296062.0657.6968.1862.4567.43
TCSGLM-4.7-flash77.7893.3384.7866.6752.6358.866.6748.3956.0166.53
GLM-4.776.4786.6781.2277.7836.8450.0262.556.4559.2763.50
GLM-580808076.9252.6362.4869.8159.6864.3868.95
Qwen3-1.7b77.7893.3384.7866.6752.6358.854.7964.5259.2767.62
Qwen3-8b81.2586.6783.8986.6768.4276.5582.6161.2970.3976.94
Qwen3-32b8080807563.1668.5776.3667.7471.8273.46
ERNIE-Lite68.1810081.0955.5652.6354.021.9066.2058.1664.42
), ArticleFig(id=1329419791024108029, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, language=CN, label=表14, caption=

不同LLM在各案例分层需求上的性能对比

, figureFileSmall=null, figureFileBig=null, tableContent=
案例模型设备需求系统需求软件需求平均F1值
准确率召回率F1准确率召回率F1准确率召回率F1
ECSGLM-4.7-flash50505055.5641.6747.6257.147564.8654.16
GLM-4.78010088.89502533.337556.2564.3362.18
GLM-510010010083.3341.6755.5666.677570.5675.37
Qwen3-1.7b8010088.8957.1433.3342.1266.675057.1462.72
Qwen3-8b10010010066.675057.1466.675057.1471.43
Qwen3-32b66.67100807058.3363.646581.2572.2371.96
ERNIE-Lite8010088.895050506056.5258.2165.70
SSSGLM-4.7-flash502533.338036.36506047.3752.9245.42
GLM-4.7607566.6710036.3653.3372.7342.1153.3457.78
GLM-566.710080.0210036.3653.3384.2184.2184.2172.52
Qwen3-1.7b75757562.545.4552.637563.1668.5765.40
Qwen3-8b8010088.896054.5557.1677.7873.6875.6873.91
Qwen3-32b10010010077.7863.6469.9786.6768.4276.5582.17
ERNIE-Lite66.671008055.5645.45507563.1668.5766.19
SHSGLM-4.7-flash77.7810087.566.6726.6738.1166.6745.4554.0559.89
GLM-4.777.7810087.571.4333.3345.448054.5564.9165.95
GLM-577.7810087.587.546.6760.8783.3368.1874.9474.44
Qwen3-1.7b77.7810087.566.6766.6766.6761.11505569.72
Qwen3-8b63.6410077.7887.546.6760.8787.563.6473.670.75
Qwen3-32b7585.7179.9671.4366.6768.9476.1972.7374.4174.44
ERNIE-Lite63.6410077.7864.296062.0657.6968.1862.4567.43
TCSGLM-4.7-flash77.7893.3384.7866.6752.6358.866.6748.3956.0166.53
GLM-4.776.4786.6781.2277.7836.8450.0262.556.4559.2763.50
GLM-580808076.9252.6362.4869.8159.6864.3868.95
Qwen3-1.7b77.7893.3384.7866.6752.6358.854.7964.5259.2767.62
Qwen3-8b81.2586.6783.8986.6768.4276.5582.6161.2970.3976.94
Qwen3-32b8080807563.1668.5776.3667.7471.8273.46
ERNIE-Lite68.1810081.0955.5652.6354.021.9066.2058.1664.42
)], attaches=null, journal=Journal(id=1324759606947315908, delFlag=0, nameCn=计算机研究与发展, nameEn=Journal of Computer Research and Development, nameHistory1=null, nameHistory2=null, issn=1000-1239, eissn=null, cn=11-1777/TP, coden=null, periodic=0, language=CN, oaType=null, ccby=null, superviseOffice=null, ownerOffice=null, pubOffice=null, editorOffice=null, officeType=null, aims=null, clcCode=null, officeProv=null, officeCity=null, officeAddr=null, officeZip=null, officeEmail=null, officePhone=null, editDirector=null, officeDirector=null, officeDirectorPhone=null, officeStaffNum=null, officeEmpNum=null, coverPicUrl=k2l8zgqwstuxxevFX2qxVA==, journalPrice=null, startedYear=null, abbrevIsoEn=Journal of Computer Research and Development, journalRemark=null, publicationField=null, createdTime=1793776903141, updatedTime=1793850698612, createdBy=18614031015, updatedBy=13701087609, firstLetterCn=J, firstLetterEn=J, subjectCode=Electronic Information, subjectName=null, subjectCodeEn=Electronic Information, subjectNameEn=null, picCn=k2l8zgqwstuxxevFX2qxVA==, picEn=r6k0Ry+RD+c/VXj5QarmDw==, jcr=null, cjcr=null, exts=[JournalExt(id=1325069127710286688, language=CN, name=计算机研究与发展, nameHistory1=null, nameHistory2=null, managedBy=, sponsoredBy=, publishedBy=, editorOffice=, officeProv=null, officeCity=null, officeAddr=, officeZip=, editDirector=, officeDirector=null, officePhone=null, coverPicUrl=null, journalRemark=, submitArticleUrl=null, websiteUrl=, createdTime=1793850698640, updatedTime=1793850698640, createdBy=13701087609, updatedBy=13701087609, submissionGuidelinesUrl=, submissionAuthorUrl=https://crad.ict.ac.cn/journalx/authorLogOn.action, submissionEditorUrl=https://crad.ict.ac.cn/journalx/editorLogOn.action, submissionReviewUrl=https://crad.ict.ac.cn/journalx/expertLogOn.action, submissionCeEditorUrl=https://crad.ict.ac.cn/journalx/editorInChiefLogOn.action, submissionAeEditorUrl=, option={"copyright":""}), JournalExt(id=1325069127777395553, language=EN, name=Journal of Computer Research and Development, nameHistory1=null, nameHistory2=null, managedBy=, sponsoredBy=, publishedBy=, editorOffice=, officeProv=null, officeCity=null, officeAddr=, officeZip=, editDirector=, officeDirector=null, officePhone=null, coverPicUrl=null, journalRemark=, submitArticleUrl=null, websiteUrl=, createdTime=1793850698656, updatedTime=1793850698656, createdBy=13701087609, updatedBy=13701087609, submissionGuidelinesUrl=, submissionAuthorUrl=https://crad.ict.ac.cn/journalx/authorLogOn.action, submissionEditorUrl=https://crad.ict.ac.cn/journalx/editorLogOn.action, submissionReviewUrl=https://crad.ict.ac.cn/journalx/expertLogOn.action, submissionCeEditorUrl=https://crad.ict.ac.cn/journalx/editorInChiefLogOn.action, submissionAeEditorUrl=, option={"copyright":""})], databaseList=null, tenantJournalId=1324759914146529478, websiteList=[Website(id=1325070300139892771, webName=null, webTitle=null, webDomain=null, webCopyrigh=null, webIpcNo=null, seoTitle=null, seoKeywords=null, seoDescription=null, tenantJournalId=null, journalId=1324759914146529478, journalNameCn=null, journalNameEn=null, grayFlag=null, tenantId=1146029695717560320, platformId=null, journalGroupId=null, journalGroupNameCn=null, journalGroupNameEn=null, type=1, domain=https://castjournals.cast.org.cn/joweb/jsjyjyfz/CN, language=CN, createTime=1793850978169, createBy=18614031015, updateTime=1793851040259, updateBy=18614031015, name=计算机研究与发展-中文, tplId=1146099689490845704, title=计算机研究与发展, delFlag=0, indexPage=/home, props=[WebsiteProps(id=1325070893751349360, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1325070300139892771, code=articleTextType, value=kx, createTime=1793851119697, updateTime=1793851119697, creator=18614031015, updator=18614031015), WebsiteProps(id=1325070893730377837, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1325070300139892771, code=banner, value=null, createTime=1793851119692, updateTime=1793851119692, creator=18614031015, updator=18614031015), WebsiteProps(id=1325070893772320883, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1325070300139892771, code=grayFlag, value=0, createTime=1793851119702, updateTime=1793851119702, creator=18614031015, updator=18614031015), WebsiteProps(id=1325070893721989228, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1325070300139892771, code=logo, value=https://castjournals.cast.org.cn/joweb/jsjyjyfz/CN/file/pic?fileId=U27tDsy717YF7XSPA+Vwdw==, createTime=1793851119690, updateTime=1793851119690, creator=18614031015, updator=18614031015), WebsiteProps(id=1325070893784903797, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1325070300139892771, code=minRunFlag, value=0, createTime=1793851119705, updateTime=1793851119705, creator=18614031015, updator=18614031015), WebsiteProps(id=1325070893742960751, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1325070300139892771, code=picServerUrl, value=https://castjournals.cast.org.cn/joweb/jsjyjyfz/CN/file/pic, createTime=1793851119695, updateTime=1793851119695, creator=18614031015, updator=18614031015), WebsiteProps(id=1325070893780709492, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1325070300139892771, code=silenceFlag, value=0, createTime=1793851119704, updateTime=1793851119704, creator=18614031015, updator=18614031015), WebsiteProps(id=1325070893738766446, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1325070300139892771, code=staticResourcePath, value=https://castjournals.cast.org.cn/joweb/cast_kjdb_cn_619/, createTime=1793851119694, updateTime=1793851119694, creator=18614031015, updator=18614031015), WebsiteProps(id=1325070893755543665, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1325070300139892771, code=themeColor, value=null, createTime=1793851119698, updateTime=1793851119698, creator=18614031015, updator=18614031015), WebsiteProps(id=1325070893763932274, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1325070300139892771, code=themeStyle, value=null, createTime=1793851119700, updateTime=1793851119700, creator=18614031015, updator=18614031015)]), Website(id=1325070300580294698, webName=null, webTitle=null, webDomain=null, webCopyrigh=null, webIpcNo=null, seoTitle=null, seoKeywords=null, seoDescription=null, tenantJournalId=null, journalId=1324759914146529478, journalNameCn=null, journalNameEn=null, grayFlag=null, tenantId=1146029695717560320, platformId=null, journalGroupId=null, journalGroupNameCn=null, journalGroupNameEn=null, type=1, domain=https://castjournals.cast.org.cn/joweb/jsjyjyfz/EN, language=EN, createTime=1793850978274, createBy=18614031015, updateTime=1793851036638, updateBy=18614031015, name=计算机研究与发展-英文, tplId=1146101810881728533, title=Journal of Computer Research and Development, delFlag=0, indexPage=/home, props=[WebsiteProps(id=1325070925288321148, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1325070300580294698, code=articleTextType, value=kx, createTime=1793851127216, updateTime=1793851127216, creator=18614031015, updator=18614031015), WebsiteProps(id=1325070925263155321, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1325070300580294698, code=banner, value=null, createTime=1793851127210, updateTime=1793851127210, creator=18614031015, updator=18614031015), WebsiteProps(id=1325070925309292671, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1325070300580294698, code=grayFlag, value=0, createTime=1793851127221, updateTime=1793851127221, creator=18614031015, updator=18614031015), WebsiteProps(id=1325070925254766712, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1325070300580294698, code=logo, value=https://castjournals.cast.org.cn/joweb/jsjyjyfz/EN/file/pic?fileId=U27tDsy717YF7XSPA+Vwdw==, createTime=1793851127208, updateTime=1793851127208, creator=18614031015, updator=18614031015), WebsiteProps(id=1325070925326069889, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1325070300580294698, code=minRunFlag, value=0, createTime=1793851127225, updateTime=1793851127225, creator=18614031015, updator=18614031015), WebsiteProps(id=1325070925279932539, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1325070300580294698, code=picServerUrl, value=https://castjournals.cast.org.cn/joweb/jsjyjyfz/EN/file/pic, createTime=1793851127214, updateTime=1793851127214, creator=18614031015, updator=18614031015), WebsiteProps(id=1325070925317681280, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1325070300580294698, code=silenceFlag, value=0, createTime=1793851127223, updateTime=1793851127223, creator=18614031015, updator=18614031015), WebsiteProps(id=1325070925271543930, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1325070300580294698, code=staticResourcePath, value=https://castjournals.cast.org.cn/joweb/cast_kjdb_en_623/, createTime=1793851127212, updateTime=1793851127212, creator=18614031015, updator=18614031015), WebsiteProps(id=1325070925292515453, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1325070300580294698, code=themeColor, value=null, createTime=1793851127217, updateTime=1793851127217, creator=18614031015, updator=18614031015), WebsiteProps(id=1325070925300904062, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1325070300580294698, code=themeStyle, value=null, createTime=1793851127219, updateTime=1793851127219, creator=18614031015, updator=18614031015)])], journalTitle=计算机研究与发展, weixinUrl=null, journalUrl=https://crad.ict.ac.cn/, iacademicId=null, status=1, seqNo=null, journalTitleEn=Journal of Computer Research and Development, journalPhotoCn=k2l8zgqwstuxxevFX2qxVA==, journalPhotoEn=r6k0Ry+RD+c/VXj5QarmDw==, journalFirstLetter=J, journalRecommend=null, journalNew=null, journalCollection=null, jcrJf=null, cjcrJf=null, jcrJfStr=null, cjcrJfStr=null, submissionFirstDecision=null, sciSubjectClassification=null, casSubjectClassification=null, citeScore=null, totalCitationFrequency=null, icpCode=null, psCode=null, advertisingLicenseCode=null, copyrightInformation=null, country=null, option=, provinceCode=null, provinceName=null, collectFlag=false, interPubPlatform=, interPubPlatformUrl=null), detailUrlCn=https://castjournals.cast.org.cn/joweb/jsjyjyfz/CN/10.7544/issn1000-1239.202550898, detailUrlEn=https://castjournals.cast.org.cn/joweb/jsjyjyfz/EN/10.7544/issn1000-1239.202550898, pdfUrlCn=https://castjournals.cast.org.cn/joweb/jsjyjyfz/CN/PDF/10.7544/issn1000-1239.202550898, pdfUrlEn=https://castjournals.cast.org.cn/joweb/jsjyjyfz/EN/PDF/10.7544/issn1000-1239.202550898, aliStartDate=0, aliEndDate=0, collectionFlag=false, citedCount=null, citedUrl=null, previewStatus=0, delFlag=0, hasFullText=1, orderTime=1777564800000, fullTextJson=null, articleText=null, reference=null)
收藏切换
基于LLM的可解释嵌入式系统需求规约方法
王春晖 1, * , 赵佳琪 1 , 陈小红 2 , 金芝 3, 4
计算机研究与发展 | 面向人机物融合智能系统的安全可信专题 2026,63(5): 1097-1116
收起
收藏切换
计算机研究与发展 |面向人机物融合智能系统的安全可信专题 2026 , 63 (5) : 1097 -1116
基于LLM的可解释嵌入式系统需求规约方法
全屏
[Author(id=1329419785877696946, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, orderNo=0, firstName=null, middleName=null, lastName=null, nameCn=null, orcid=null, stid=null, country=null, authorPic=null, dead=0, email=ciecwch@imnu.edu.cn, emailSecond=null, emailThird=null, correspondingAuthor=1, authorType=1, ext={EN=AuthorExt(id=1329419785949000116, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, authorId=1329419785877696946, language=EN, stringName=Chunhui Wang, firstName=Chunhui, middleName=null, lastName=Wang, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=1, *, address=1College of Computer Science and Technology, Inner Mongolia Normal University, Hohhot 010022, bio={"content":"

born in 1979. PhD, professor. Her main research interests include software engineering and requirements engineering

"}, bioImg=null, bioContent=

born in 1979. PhD, professor. Her main research interests include software engineering and requirements engineering

, aboutCorrespAuthor=null), CN=AuthorExt(id=1329419786016108981, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, authorId=1329419785877696946, language=CN, stringName=王春晖, firstName=null, middleName=null, lastName=null, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=1, *, address=1内蒙古师范大学计算机科学技术学院 呼和浩特 010022, bio={"img":"t1Z17G1pIq/U1Cca7+S8pg==","content":"

1979年生。博士,教授。主要研究方向为软件工程、需求工程

"}, bioImg=t1Z17G1pIq/U1Cca7+S8pg==, bioContent=

1979年生。博士,教授。主要研究方向为软件工程、需求工程

, aboutCorrespAuthor=null)}, companyList=[AuthorCompany(id=1329419785550541221, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, xref=1, ext=[AuthorCompanyExt(id=1329419785554735526, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785550541221, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=1College of Computer Science and Technology, Inner Mongolia Normal University, Hohhot 010022), AuthorCompanyExt(id=1329419785563124135, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785550541221, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=1内蒙古师范大学计算机科学技术学院 呼和浩特 010022)])]), Author(id=1329419786091606455, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, orderNo=1, firstName=null, middleName=null, lastName=null, nameCn=null, orcid=null, stid=null, country=null, authorPic=null, dead=0, email=null, emailSecond=null, emailThird=null, correspondingAuthor=0, authorType=1, ext={EN=AuthorExt(id=1329419786175492537, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, authorId=1329419786091606455, language=EN, stringName=Jiaqi Zhao, firstName=Jiaqi, middleName=null, lastName=Zhao, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=1, address=1College of Computer Science and Technology, Inner Mongolia Normal University, Hohhot 010022, bio={"content":"

born in 2000. Master candidate. Her main research interests include software engineering and requirements engineering

"}, bioImg=null, bioContent=

born in 2000. Master candidate. Her main research interests include software engineering and requirements engineering

, aboutCorrespAuthor=null), CN=AuthorExt(id=1329419786246795706, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, authorId=1329419786091606455, language=CN, stringName=赵佳琪, firstName=null, middleName=null, lastName=null, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=1, address=1内蒙古师范大学计算机科学技术学院 呼和浩特 010022, bio={"img":"OxmIU8jcuhYYrr15kROP5Q==","content":"

2000年生。硕士研究生。主要研究方向为软件工程、需求工程

"}, bioImg=OxmIU8jcuhYYrr15kROP5Q==, bioContent=

2000年生。硕士研究生。主要研究方向为软件工程、需求工程

, aboutCorrespAuthor=null)}, companyList=[AuthorCompany(id=1329419785550541221, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, xref=1, ext=[AuthorCompanyExt(id=1329419785554735526, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785550541221, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=1College of Computer Science and Technology, Inner Mongolia Normal University, Hohhot 010022), AuthorCompanyExt(id=1329419785563124135, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785550541221, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=1内蒙古师范大学计算机科学技术学院 呼和浩特 010022)])]), Author(id=1329419786309710268, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, orderNo=2, firstName=null, middleName=null, lastName=null, nameCn=null, orcid=null, stid=null, country=null, authorPic=null, dead=0, email=xhchen@sei.ecnu.edu.cn, emailSecond=null, emailThird=null, correspondingAuthor=0, authorType=1, ext={EN=AuthorExt(id=1329419786385207742, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, authorId=1329419786309710268, language=EN, stringName=Xiaohong Chen, firstName=Xiaohong, middleName=null, lastName=Chen, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=2, address=2Shanghai Key Laboratory of Trustworthy Computing (East China Normal University), Shanghai 200062, bio={"content":"

born in 1982. PhD, professor. Her main research interests include requirements engineering, and knowledge based software engineering and formal method

"}, bioImg=null, bioContent=

born in 1982. PhD, professor. Her main research interests include requirements engineering, and knowledge based software engineering and formal method

, aboutCorrespAuthor=null), CN=AuthorExt(id=1329419786456510911, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, authorId=1329419786309710268, language=CN, stringName=陈小红, firstName=null, middleName=null, lastName=null, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=2, address=2上海市高可信计算重点实验室(华东师范大学) 上海 200062, bio={"img":"TKriiRq91rvpB4bbNMJ9Ig==","content":"

1982年生。博士,教授。主要研究方向为需求工程、基于知识的软件工程和形式化方法

"}, bioImg=TKriiRq91rvpB4bbNMJ9Ig==, bioContent=

1982年生。博士,教授。主要研究方向为需求工程、基于知识的软件工程和形式化方法

, aboutCorrespAuthor=null)}, companyList=[AuthorCompany(id=1329419785617650088, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, xref=2, ext=[AuthorCompanyExt(id=1329419785626038697, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785617650088, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=2Shanghai Key Laboratory of Trustworthy Computing (East China Normal University), Shanghai 200062), AuthorCompanyExt(id=1329419785630233002, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785617650088, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=2上海市高可信计算重点实验室(华东师范大学) 上海 200062)])]), Author(id=1329419786519425473, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, orderNo=3, firstName=null, middleName=null, lastName=null, nameCn=null, orcid=null, stid=null, country=null, authorPic=null, dead=0, email=zhijin@pku.edu.cn, emailSecond=null, emailThird=null, correspondingAuthor=0, authorType=1, ext={EN=AuthorExt(id=1329419786594922948, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, authorId=1329419786519425473, language=EN, stringName=Zhi Jin, firstName=Zhi, middleName=null, lastName=Jin, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=3, 4, address=3Key Lab of High Confidence Software Technologies (Peking University), Ministry of Education, Beijing 100871
4School of Computer Science, Peking University, Beijing 100871, bio={"content":"

born in 1962. PhD, professor. Her main research interests include requirements engineering and software automation

"}, bioImg=null, bioContent=

born in 1962. PhD, professor. Her main research interests include requirements engineering and software automation

, aboutCorrespAuthor=null), CN=AuthorExt(id=1329419786657837509, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, authorId=1329419786519425473, language=CN, stringName=金芝, firstName=null, middleName=null, lastName=null, prefix=null, suffix=null, authorComment=null, nameInitials=null, affiliation=null, department=null, xref=3, 4, address=3高可信软件技术教育部重点实验室(北京大学) 北京 100871
4北京大学计算机学院 北京 100871, bio={"img":"RNadvqWZJ/BnM/husIY/2g==","content":"

1962年生。博士,教授。主要研究方向为需求工程、软件自动化

"}, bioImg=RNadvqWZJ/BnM/husIY/2g==, bioContent=

1962年生。博士,教授。主要研究方向为需求工程、软件自动化

, aboutCorrespAuthor=null)}, companyList=[AuthorCompany(id=1329419785693147563, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, xref=3, ext=[AuthorCompanyExt(id=1329419785701536172, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785693147563, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=3Key Lab of High Confidence Software Technologies (Peking University), Ministry of Education, Beijing 100871), AuthorCompanyExt(id=1329419785709924781, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785693147563, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=3高可信软件技术教育部重点实验室(北京大学) 北京 100871)]), AuthorCompany(id=1329419785772839342, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, xref=4, ext=[AuthorCompanyExt(id=1329419785793810863, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785772839342, language=EN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=4School of Computer Science, Peking University, Beijing 100871), AuthorCompanyExt(id=1329419785806393776, tenantId=1146029695717560320, journalId=1324759914146529478, articleId=1329419782627111303, companyId=1329419785772839342, language=CN, country=null, province=null, city=null, postcode=null, companyName=null, departmentName=null, remark=4北京大学计算机学院 北京 100871)])])]
王春晖1, * , 赵佳琪1, 陈小红2 , 金芝3, 4
作者信息
  • 1内蒙古师范大学计算机科学技术学院 呼和浩特 010022
  • 2上海市高可信计算重点实验室(华东师范大学) 上海 200062
  • 3高可信软件技术教育部重点实验室(北京大学) 北京 100871
  • 4北京大学计算机学院 北京 100871
通讯作者:
王春晖()
作者简介:

作者贡献声明

王春晖负责方法整体设计、实验分析及论文撰写;赵佳琪完成案例数据收集、整理以及实验实现;陈小红和金芝提出指导和修改意见。

1979年生。博士,教授。主要研究方向为软件工程、需求工程

2000年生。硕士研究生。主要研究方向为软件工程、需求工程

1982年生。博士,教授。主要研究方向为需求工程、基于知识的软件工程和形式化方法

1962年生。博士,教授。主要研究方向为需求工程、软件自动化

LLM-Based Interpretable Embedded System Requirements Specification
Chunhui Wang1, * , Jiaqi Zhao1, Xiaohong Chen2 , Zhi Jin3, 4
Affiliations
  • 1College of Computer Science and Technology, Inner Mongolia Normal University, Hohhot 010022
  • 2Shanghai Key Laboratory of Trustworthy Computing (East China Normal University), Shanghai 200062
  • 3Key Lab of High Confidence Software Technologies (Peking University), Ministry of Education, Beijing 100871
  • 4School of Computer Science, Peking University, Beijing 100871
  • born in 1979. PhD, professor. Her main research interests include software engineering and requirements engineering

    born in 2000. Master candidate. Her main research interests include software engineering and requirements engineering

    born in 1982. PhD, professor. Her main research interests include requirements engineering, and knowledge based software engineering and formal method

    born in 1962. PhD, professor. Her main research interests include requirements engineering and software automation

出版时间: 2026-05-01 doi: 10.7544/issn1000-1239.202550898
文章导航
收藏切换

嵌入式系统需求规约是系统开发的基石,承担着将高层用户意图转化为明确且可执行的软件需求的重要职能。当前,该过程仍高度依赖领域专家的人工推导与撰写,存在效率低、可解释性不足等固有局限性。尽管自动化需求生成被视为潜在的解决方案,其发展仍面临双重核心挑战:如何有效嵌入领域特定的设备知识、如何严格遵循意图可满足和可追溯性标准,构建具备可解释性的需求体系。为解决上述问题,提出了一种基于大语言模型(LLM)的可解释需求规约方法。该方法通过构建融合领域知识与需求工程的提示链,在人机交互协作下,逐层将用户意图补全并细化为设备、系统及软件需求,确保需求可满足,并引入问题图-情景图模型以保障需求的可追溯。在4个嵌入式系统案例上的实验表明,所提方法较人工方法节约73%时间成本,需求规约文档质量提升82%,而可解释性相较人工方法和单步LLM方法分别提升约15%和21%,为复杂嵌入式系统提供了一种高效且可信的需求规约新途径。

嵌入式系统  /  需求规约  /  需求可解释性  /  大语言模型  /  需求补全

The embedded system requirements specification serves as the cornerstone of system development, playing a crucial role in transforming high-level user intentions into clear and executable software requirements. Currently, this process remains highly dependent on manual derivation and composition by domain experts, with inherent limitations such as low efficiency and insufficient interpretability. Although automated requirements generation is regarded as a potential solution, its development still faces two core challenges: how to effectively embed domain-specific device knowledge, and how to strictly adhere to the standards of intent satisfiability and traceability to construct an interpretable requirements system. To address these issues, we propose an interpretable requirements specification method based on large language models (LLMs). By constructing a prompt chain that integrates domain knowledge and requirements engineering, our method gradually complements and refines user intentions into device, system, and software requirements level by level under human-computer interaction collaboration, ensuring the satisfiability of requirements. Additionally, it introduces the problem diagram and scenario diagram model to guarantee the traceability of requirements. Experiments on four embedded system cases show that compared with manual methods, our method reduces time cost by approximately 73% and improves the quality of requirements specification documents by 82%. Moreover, its interpretability increases by about 15% and 21% compared with both manual methods and single-step LLM methods, providing an efficient and reliable new approach for requirements specification of complex embedded systems.

embedded systems  /  requirements specification  /  requirements interpretability  /  LLM (large language model)  /  requirements completion
王春晖, 赵佳琪, 陈小红, 金芝. 基于LLM的可解释嵌入式系统需求规约方法. 计算机研究与发展, 2026 , 63 (5) : 1097 -1116 . DOI: 10.7544/issn1000-1239.202550898
Chunhui Wang, Jiaqi Zhao, Xiaohong Chen, Zhi Jin. LLM-Based Interpretable Embedded System Requirements Specification[J]. Journal of Computer Research and Development, 2026 , 63 (5) : 1097 -1116 . DOI: 10.7544/issn1000-1239.202550898
嵌入式系统已广泛应用于航空航天、轨道交通、工业控制、自动驾驶等关键领域,其需求规约是保障系统质量的核心基础[1]。当前,嵌入式系统需求规约的核心流程依赖人工梳理用户意图,并结合设备特性、环境约束等领域知识,将抽象意图逐步精化为涵盖系统及软件层面的需求。这一过程不仅需精确界定系统功能、性能指标与约束条件,更需满足可解释性这一关键特性[2]。其核心包含2个维度:一是“意图—需求”的可满足性,即所有设备、系统及软件需求均需严格对齐并满足用户原始意图,且意图到各层级需求的精化逻辑清晰可阐释;二是“需求—意图”的可追溯性,即每项设备、系统及软件需求均明确追踪至其对应的用户意图,确保需求的来源可查、依据可信。具体而言,嵌入式系统需求规约需明确“需求如何逐层落地”以及“为何需要该需求”,即具有从上至下的可满足以及至下而上的可追溯,为后续开发、验证及维护提供可信依据。
然而,达成嵌入式系统需求规约文档的可解释面临2个方面的挑战:一是需求对意图的可满足性难保证,用户意图常以模糊化自然语言表述,而转化为硬件接口参数、实时性阈值等技术指标时涉及跨学科知识,可能因为对约束的关联度关注不够,导致最终需求集与原始意图存在“语义偏差”;二是随着系统规模和复杂性的增大,需求可追溯性难保障,需求数量从数十项增至数千项,人工逐条维护“需求—意图”追溯逻辑及跨需求依赖关系的成本增长,易出现底层需求与高层用户意图之间的追溯关系中断或不同模块需求对同一意图的解读冲突等问题,导致后续开发或维护难以理解需求的来源和可信性。
传统人工方法受限于嵌入式软件的复杂性,高效开发具有良好可解释的嵌入式软件需求文档存在困难。为此,本文设计了一种基于大语言模型(LLM)的可解释嵌入式系统需求规约方法。主要贡献包括3个方面:
1)提出知识引导LLM的需求规约框架,通过分步骤将用户意图精化为系统及软件层面的显性化细化链路,解决需求遗漏与语义偏差问题;
2)提出人机协同的需求规约方法,结合LLM自动化生成与专家交互式校验,动态维护意图和需求的关联关系,降低人工维护成本;
3)提出三层级嵌入式系统需求结构化组织模型,按“意图(任务目标)→系统需求(与环境交互)→软件需求(与设备交互)”三级架构组织需求,通过问题图建模刻画跨层级依赖关系,确保需求规约过程可解释性。
在需求工程领域,研究者围绕需求信息的自动化补全与需求文档生成展开了广泛探索,现有研究主要分为基于数据驱动的方法与基于知识引导的方法两大类。
基于数据驱动的方法以历史需求数据、对话记录或功能描述等非结构化文本为输入,通过深度学习模型(如LLM、生成对抗网络等)学习数据中的模式,进而自动生成或补全需求信息,其核心优势在于无需人工定义复杂规则,可直接从海量数据中提取需求生成的隐性规律。例如,Voria等人[3]利用自然语言处理技术与LLM,从利益相关者会议对话中自动提取需求要素(包括功能目标、约束条件)并生成符合工程规范的系统需求,实验表明其生成的需求在正确性、完整性及可操作性上表现良好,显著减少了人工提取的耗时与误差。Koscinski等人[4]采用关系生成对抗网络从安全需求相关的历史数据(漏洞报告、安全规范文档)中学习安全需求的语义关联模式,合成符合专家要求的安全需求规格,通过法院案件管理系统(CCMS)的真实案例验证,表明生成的安全需求在覆盖度与准确性上均达到行业可用水平。Lian等人[5]基于GPT-2模型构建,通过分析需求描述的前缀文本,结合指针网络捕捉领域术语的上下文依赖关系,实时推荐或补全后续需求内容,实验显示该方法有效提升了需求编写的效率与术语一致性。
此外,LLM凭借其强大的自然语言理解与生成能力,成为数据驱动方法的核心技术载体。例如,Almonte等人[6]利用LLM从功能需求中推导ISO/IEC 25010:2023标准的质量属性(如性能、可靠性),生成高相关性的非功能需求,实验生成的1593条NFRs与行业专家评估高度一致。Habib等人[7]通过微调LLM开发ReqBrain工具,生成符合ISO 29148标准的需求并支持分类,通过人工评估验证了生成需求的真实性。Lowin等人[8]则借助ChatGPT、BARD等LLM,从智能设备的产品概念目录中生成定制化需求规格,辅助解决开发中的复杂约束(如用户需求与技术限制的平衡)问题。
基于知识引导的方法以领域本体、行业标准或专家规则等结构化知识为基础,通过将知识注入生成过程,确保需求符合领域规范、语法约束及标准化要求,其核心优势在于可显式控制生成需求的质量(如术语准确性、文档合规性),弥补了数据驱动方法可能因数据偏差导致的生成缺陷。例如,Zhao等人[9]通过构建领域本体模型(软件需求术语库、语法规则库等),将本体知识注入预训练模型UniLM进行微调,并结合复用机制确保生成需求包含关键领域术语,同时设计语法约束解码策略,缩小生成需求与参考规格的语义/语法差距。Elliott等人[10]通过整合IEEE 830-1998标准与SWEBOK推荐的需求工程数据元素(如功能需求、外部接口),构建本体框架指导需求文档生成,该方法支持诸如医疗软件、金融系统等跨领域定制,并通过7个用例验证,3个典型案例的需求文档生成结果符合标准要求,有效减少了手工编写的错误率。Wang等人[11]关注嵌入式软件需求文档的生成,提出借助设备知识补全系统需求与软件需求,并通过案例研究表明其在需求一致性保持的价值。
本文提出一种融合需求工程知识与应用领域知识的需求规约方法,通过构建知识提示链引导LLM从意图出发,理解约束和规范要求,补全系统需求、软件需求信息,确保需求信息的可解释与可追踪。该方法不受对结构化知识完备性的依赖,同时规避数据驱动方法因数据偏差导致的生成缺陷。
需求规约作为连接用户意图与系统实现的桥梁,其规范化方法经历了从人工主导到自动化辅助的演进。IEEE Std 830-1998[12]标准定义了可行性、完整性等核心质量属性。为了确保规约质量,相关研究围绕模板化(如EARS结构化模板[13])、形式化(如时序逻辑[14-15])及自动化辅助(基于传统自然语言处理的分类与冲突检测工具[16])开展。这些方法通过规范自然语言表达与结构逻辑,减少了需求歧义与遗漏,但由于嵌入式系统的硬件-软件耦合性、多领域知识交叉特性,仍存在自然语言模糊性与人工依赖成本高的挑战。例如,Bertram等人[17]研究利用自然语言处理构建汽车需求的一致性检查工具链,Chen 等人[18]研究通过LLM改进需求完整性的自动化辅助,Krishna等人[19]则设计了评估的质量属性列表,并借助LLM实施评估。
在自动化辅助需求规约过程中,提示工程通过优化人机交互范式,提高LLM对内容的理解质量以及输出结果质量。有研究者采用零样本提示技术,无需标注数据,用于生成需求文档[20]和功能规格说明[18]。也有研究者采用检索增强生成技术与对话式交互方法,生成产品需求文档[21],以提升内容准确性和需求匹配度。还有研究者借助少样本学习技术,通过少量示例实现任务适配,生成软件规格说明[19]。
提示链(prompt chaining)通过构建“提示序列-输出依赖”的工作流,实现复杂需求任务的分步骤自动化,其核心技术要素为上下文维护与工作流编排。传统提示链侧重“任务分解—指令传递”,例如,Shakthi等人[22]采用“少样本示例+思维链推荐”的方法,从卫星功能需求文档自动生成结构化测试用例,将卫星领域测试用例模板作为上下文,通过提取功能需求,将需求转化为测试条件,再生成可执行测试脚本。
借助LLM与自动化技术(如提示工程中的零样本/少样本学习、检索增强生成及提示链等方法),在需求规约文档的自动化生成(如需求文档、功能规格说明)及质量保障(如一致性检查、完整性提升、质量属性评估)方面已展现出显著效果。然而,现有方法存在用户实时反馈机制融入不足以及在不同层需求可解释方面关注不够等问题,导致下层需求对上层需求支撑和上层需求对下层需求的覆盖不够。本文面向从意图到需求文档生成这一复杂的任务,设计知识提示链方法,通过任务拆解为多步骤流程,并针对每个步骤注入相关的知识,引导LLM生成细化逻辑清晰可阐释的需求规约文档。
考虑嵌入式系统从用户意图到系统需求,再到软件需求的可解释生成,我们借助LLM的推理与解释能力,通过注入相关领域和需求工程知识,分步骤引导LLM从理解意图出发逐步推荐需求细节,通过与需求工程师交互,补全和生成需求文档。图1展示了嵌入式需求规约的过程框架。该框架以LLM为核心,通过“输入→知识注入→反馈→确认→输出”的交互闭环,分5步实现需求文档构建:设备选型、系统需求生成、软件需求生成、需求建模及需求文档生成。各步骤以意图、设备、需求等中间制品为输入,注入已有设备库、需求描述模板(系统/软件/文档)及建模知识,由LLM调用对应引导词模板($ promp{t}_{1} $~$ promp{t}_{5} $)生成反馈信息。反馈经需求工程师确认后,作为输出传递至下一阶段,未通过确认则返回重新生成,最终形成完整需求规约。本节介绍需求规约文档表示、各层需求描述模板、问题图与情景图以及设备知识库的表示,引导模板和过程在第3节中阐述。
嵌入式系统规约文档包括意图、设备、系统需求和软件需求4个核心维度。意图维度作为顶层设计,明确系统开发的目标,回答“为什么开发”和“系统应实现什么”。设备维度说明使用何种硬件设备与外界环境进行交互以达成任务意图的能力,包括具体的硬件型号、接口协议、环境适应性等物理约束,构成需求实现的硬件支撑。系统需求维度定义如何通过硬件设备与外界环境的交互来满足意图目标,包含功能逻辑、性能指标与安全合规要求等;软件需求维度则通过控制器与设备的交互实现系统能力,具体明确任务划分及算法逻辑。各维度之间存在系统需求分解意图、软件需求实现系统需求,系统需求、软件需求依赖设备的关系。
各维度间的逻辑关联可通过可视化需求建模方法显性化表达。问题图能够表达待开发软件及其交互环境实体的直接或间接交互,以及与交互对象之间的接口,形成待开发软件的上下文[23]。将需求视为待开发软件要解决的问题,从意图出发,通过问题分解,明确需求与上下文实体与设备的交互关系(共享的控制信号、指令、数据等现象)。行为层的动态交互过程则可通过情景图表达[23],即描述期望交互与行为交互的过程。期望交互在系统需求层面,关注系统与上下文实体通过共享数据、控制信号或指令实现功能目标和性能指标的交互逻辑;行为交互关注控制器与硬件的交互,描述软件模块通过接口协议驱动硬件设备执行具体操作的动态过程。通过问题图与情景图的协同建模,需求文档既能清晰呈现各维度的静态结构关系,又能动态展示需求实现的行为逻辑,为嵌入式系统开发提供全面且可验证的需求框架。
综上,嵌入式系统需求文档包括意图、设备需求、系统需求、软件需求4个维度的需求信息,也包括各维度逻辑关联的问题图和情景图。
需求描述模板是为需求描述者提供的标准化自然语言句式,旨在规范需求信息的表达并确保其完整性。本文针对嵌入式需求规约内容,提供任务意图描述模板、系统需求描述模板及软件需求描述模板。基于各类模板的核心含义,分别为其定义标准化的描述句式(定义1~定义3)。
定义1. 任务意图描述模板。规范系统核心目标及价值导向,明确关联设备资源约束与系统层级目标的追溯关系。句式:<系统>应通过<系统能力>实现/确保/支持/达成<核心目标>/达成<业务价值>。
例如:“室内温度异常监测系统”应通过实时温度监测与自动报警能力实现室内温度异常(≥38℃)的识别与预警,达成降低火灾风险、保障人员安全的目的。
定义2. 系统需求描述模板。承接任务意图,明确系统层功能与非功能目标,需绑定设备资源的硬件参数,体现“设备约束系统”的关联逻辑。标准句式:<系统>需集成/具备/通过 <设备资源>(<硬件参数>),实现 <任务目标>,[满足<性能指标|环境要求>]。包括以下3种能力描述的句式。
①感知能力:系统需通过<传感器>实时监测<物理量|环境参数>,[采样周期设置<设备约束阈值>|误差范围<硬件指标>]。
例如:系统需通过温度传感器(单总线接口,测量范围−10~50℃)实时监测室内环境温度,采样周期设置10秒/次,误差范围为−0.5℃~+0.5℃。
②控制能力:系统需通过<执行器|驱动模块>对[控制实体]实现[控制动作],[响应时间<设备模块上限>|<软件算法延迟>]。
例如:系统需通过蜂鸣器与LED指示灯对异常温度状态实现声光报警(蜂鸣器1 kHz持续鸣响,红色LED 1Hz闪烁),响应时间≤1 s。
③计算与通信:系统需支持<通信协议|接口类型>,在<延迟|带宽>约束下完成<数据|指令>传输。
定义3. 软件需求描述模板。细化模块级实现逻辑,需关联设备状态触发条件与系统需求指标。标准句式:软件需[实现|遵循|保障]<功能|约束>,通过<算法|协议|逻辑>满足<具体条件>;具体描述功能及非功能,可采用如下句式。
①功能需求:主要包括事件驱动型和时序控制型2类句式。
事件驱动型:WHEN<事件>(<设备状态触发条件>,持续<时间阈值>),则<软件模块>通过<协议>调用<设备接口>执行<动作>,[响应时间<系统需求指标>]。
例如:WHEN温度异常事件(传感器检测温度≥38℃,持续5 s),则报警控制模块通过GPIO协议调用蜂鸣器/LED接口执行声光报警动作,响应时间≤1 s。
时序控制型:WHILE<系统状态>,<软件模块>需周期性调用<设备接口>执行<动作>[周期= <设备数据更新频率>],[数据刷新延迟<系统需求指标>]。
例如:WHILE系统正常运行状态,数据采集模块需周期性调用传感器接口执行温度读取动作[周期=10 s](设备数据更新频率上限0.5秒/次)。
②非功能需求:包括精度需求、空间需求、可靠性和安全性需求等。
<精度需求约束声明>::= <物理量> 采用|使用 <精度>。例如:温度采集数据采用float32类型(32位浮点精度)。
<空间需求约束声明>::= <存储设备|存储媒介> 大于|等于|不高于 <空间类型值>。例如:应用软件编译后bin文件大小小于32 KB。
<可靠性需求约束声明>::= <数据> 格式的合法性检查|<数据> <边界要求> | <数据> 不允许除零| <数组> 不允许越界 | <控制> 不允许死循环。例如:温度数据不允许超出传感器量程(−10~50℃),数组存储时不允许越界访问。
<安全性需求约束声明>::=一旦 <故障发生条件>,那么 <故障处理>。例如:一旦传感器通信中断持续10 s,那么系统需触发黄色LED故障提示。
问题图表示需求及其实现的上下文[23],而情景图表达需求实现中的交互序约束[23]。问题图和情景图的定义见定义4、定义5。
定义4. 问题图。问题图是描述嵌入式系统需求与上下文环境交互边界的可视化模型,可描述为六元组<CS, DS, RS, RC, BI, EI>,其中:
1)CS(控制器集合)表示软件需求中承担控制逻辑的核心模块集合,对应软件维度的实现主体。
2)DS(领域集合)可以作为系统需求、软件需求交互的发起者或接收者,需求交互的外部实体与资源抽象包括设备维度的硬件实体(如传感器、执行器)、系统维度的被控对象(如“通信模块”“存储单元”),是需求落地的物理载体。
3)RS(系统需求集合)是自然语言表达的系统需求集合,对应系统需求模板中的功能目标。
4)RC(约束关系集合)是表示需求对期望交互的引用/约束关系集合,描述需求与领域间的依赖规则,通过“需求→领域”或“领域→需求”的有向关联表达约束。
5)BI(行为交互集合)表示软件控制器与领域实体的动态交互动作,对应软件需求模板中的协议调用逻辑。
6)EI(期望交互集合)是系统需求对领域实体的期望状态或性能指标。
图2展示了设备加电的问题图。针对设备加电的需求,为设备D1和D2进行加电。其中需求作用到设备上的是期望需求,即加电的状态。而控制软件(software controller,SC)作用到设备上的是需求行为交互的过程,即通过传达对设备的控制信号实施设备加电的行为。
问题图清晰界定了“谁(CS)在什么条件下(RC)与谁(DS)交互(BI),以达成什么目标(RS/EI)”的静态结构,为需求追溯提供可视化。
定义5. 情景图。情景图是刻画嵌入式系统需求,实现过程中动态交互行为的模型,表达为四元组<BI, EI, CN, ES>,其中:
1)BI(行为交互集合):软件控制器与领域实体的具体动作序列(如“发送加电指令”“检测电压信号”),对应软件需求模板中的协议调用与算法执行逻辑。
2)EI(期望交互集合):系统需求对行为结果的期望状态(如“设备D1加电成功”),要与系统需求模板中的性能指标绑定。
3)CN(控制节点集合):行为交互的触发条件与状态判断节点,包括事件节点、判断节点、动作节点等。
4)ES(边的集合):节点间的有向连接,描述时序或并发。
图3展示了针对设备加电需求的情景图。情景图中描述了期望的行为和行为活动。分别对2个设备加电可并发执行,没有先后次序的关系。
设备知识是基于嵌入式系统设备属性特征构建的结构化表示。主要包含静态属性和动态属性两大类核心内容。其中,静态属性作为设备固有特征的基础描述,涵盖设备标识、设备类型及技术参数3个关键层面:设备标识以厂商型号为主要标识信息,同时可关联别名以适应不同场景下的称呼需求;设备类型明确了设备的功能定位,分为传感器和执行器等类型;技术参数则进一步细化设备的技术特性,包含通信协议、状态管理参数及接口类型等具体信息,共同构成对设备静态特征的全面刻画。动态属性则聚焦设备在运行过程中的行为特性与交互规则,由功能能力、控制与操作、环境与约束、数据与交互4个维度组成。控制与操作维度包含设备的功能能力、具体控制指令及对应的操作步骤,定义了设备可执行的动作及实现方式;环境与约束维度明确设备正常运行所需的环境要求(如温度、湿度等)和性能约束(如响应时间、负载能力等);数据与交互维度则规范了设备的数据格式及交互流程,确保设备在数据交换过程中的准确性和一致性。静态属性与动态属性的有机结合,形成了对设备从固有特征到行为规则的完整知识体系。图4展示了设备知识库的层次结构。
设备知识库在补充系统需求和软件需求中发挥着至关重要的作用。在系统需求层面,知识库中的设备类型(传感器/执行器)、技术参数(如通信协议、接口类型)等静态属性,直接影响系统的整体架构设计,例如“室内温度异常监测”系统中,选用DS1820温度传感器(单总线接口、测量范围为−55℃~125℃、精度为−0.5℃~+0.5℃)的感知能力,决定了系统对室内温度(0℃~50℃)的监测范围和数据可靠性。环境要求和性能约束等动态属性则进一步明确了系统运行环境的边界条件,例如DS18B20的工作温度范围(−40℃~85℃)确保系统可适应冬季低温(0℃)与夏季高温(40℃)的室内环境。
在软件需求层面,设备的控制指令、操作步骤、数据格式及交互流程等动态属性,为软件功能模块的设计提供了直接依据,例如DS18B20的控制指令(如0x44启动温度转换、0xBE读取数据)和数据格式(16位二进制补码,高8位为整数部分,低8位为小数部分),定义了软件“数据采集模块”需通过单总线协议按“发送启动指令、等待转换完成、读取原始数据、校验并转换为温度”的操作步骤执行,确保温度数据的准确解析。
图1展示的框架将嵌入式系统需求规约任务拆解为设备选型、系统需求生成、软件需求生成、需求建模及需求文档生成5个核心步骤,实现从用户意图到规范化需求文档的全流程。该方法以LLM为基础,结合设备知识库与需求描述模板,通过多轮用户交互优化结果,最终生成符合嵌入式系统开发规范的需求文档。其中,LLM是一个多步骤引导的过程,提示框架说明如表1所示。
设备选型根据用户意图识别系统所需要的核心硬件设备,并通过用户确认形成设备列表。基于表1的提示框架,$ promp{t}_{1} $的提示模板如表2所示。
例如针对“室内温度异常监测系统应通过实时温度监测与自动报警能力实现室内温度异常(≥38℃)的快速识别与预警,达成降低火灾风险、保障人员安全的目的”这一意图,推荐用于实时采集室内环境温度的设备“DS18B20温度传感器”和用于异常温度声光报警的设备“蜂鸣器”和“红色LED”。
推荐的设备可能存在设备选型超出预算,或者交互方式等不符合预期的情况。此时,需求工程师需要勾选不满意的设备条目,并在问题提示框注明进一步推荐引导并发起重新推荐,直到所有设备满足需求后确认通过。
基于已确认的设备列表,通过匹配设备能力与用户意图,定义系统级功能目标及性能约束,经过用户确认后形成系统需求列表。该步骤对应使用引导模板$ promp{t}_{2} $,如表3所示。
例如,针对“室内温度异常监测系统”的意图和设备选型,从感知能力和控制能力2个方面提供系统需求SyR1和SyR2。SyR1:系统需通过DS18B20传感器实时监测室内环境温度,采样周期设置10秒/次,误差范围为−0.5℃~+0.5℃。SyR2:系统需通过蜂鸣器与LED对异常温度状态实现声光报警(蜂鸣器1kHz持续鸣响,LED 1Hz闪烁),响应时间≤1 s。其中系统需求SyR1的推荐与“传感器最小采样间隔0.5 s(硬件限制)”的知识相关,而SyR2的推荐与“蜂鸣器响应时间≤100 ms,LED驱动电流≤20mA”硬件参数相关。
在系统需求生成阶段,当LLM基于设备列表生成候选系统需求后,需求工程师核对发现超出意图范围、功能模块逻辑冲突(如报警响应时间≤0.5 s与设备通信延迟0.8 s矛盾)、一些描述不完全等情况,可在问题提示框注明继续引导信息,如“进一步检查是否存在逻辑冲突,请仔细核对”发起重新推荐;LLM基于这些提示重新匹配设备参数与系统需求,生成新候选列表,直到所有需求条目符合技术可行性和用户意图核心目标,工程师确认通过后形成最终结构化系统需求列表。
对系统需求进行模块化拆解,明确软件与设备、外部实体的交互逻辑,需满足设备接口约束与系统性能指标。该步骤对应使用引导模板$ promp{t}_{3} $,如表4所示。
例如,“室内温度异常监测系统”将系统需求“监测环境温度”“声光报警”分解为“报警控制模块”以及“数据采集模块”两个功能性需求以及相关的非功能需求。其中,SsR1和SsR2是功能需求,而SsR3和SsR4是非功能需求。SsR1:WHEN温度异常事件(传感器检测温度≥38℃,持续5 s),则报警控制模块通过GPIO协议调用蜂鸣器(PB0引脚)和LED(PA5引脚)执行声光报警动作,响应时间≤1 s;SsR2:WHILE系统正常运行状态,数据采集模块需周期性调用传感器单总线接口执行温度读取动作[周期=10 s](设备数据更新频率上限0.5秒/次);SsR3: 温度采集数据采用float32类型(32位浮点精度);SsR4: 一旦传感器通信中断持续10 s,则系统需触发黄色LED故障提示(PA6引脚)。
需求建模通过可视化方式整合设备、系统及软件需求,构建系统与外部实体的交互边界及动态行为逻辑。该步骤中,前序结果引用为全量上下文信息(意图、设备、系统需求、软件需求);知识引用为需求建模知识(K2(含问题框架方法)、上下文图/问题图模型抽取知识及绘制规则[24])。引导模板$ promp{t}_{4} $的设计如表5所示。
例如,图5展示了“室内温度异常监测系统”的问题图。图中包括外部实体、设备、需求、交互信息(数据、控制指定)等信息。
图6展示了需求“报警控制”模块针对LED指标灯控制的情景图。该图中上部展示了分解后的“LED报警控制”问题图,包括设计领域“指示灯控制”对LED灯实施控制以实现控制行为。图下部分描述了期望需求和行为需求的过程。
对前序步骤所有需求制品进行结构化整合,生成符合规约要求的文档,支持用户回溯修改。该步骤中,前序结果引用为需求建模阶段输出的可视化模型及全部上下文信息。知识引用为需求规约模板(包括任务意图、设备清单、需求列表、模型说明4类信息)。引导模板$ promp{t}_{5} $的设计如表6所示。
用户可调整需求描述,通过检查追溯链查看完整性,并观察可追踪性。输出结果为需求规约文档,包含任务意图、设备清单、系统/软件需求、需求模型及追溯链。
整合上述步骤,算法描述如算法1所示。
算法1. 基于知识提示链的嵌入式系统需求规约算法。
① context ← user_intent;
② for $i \in \{1,2,3,4,5\} $
③   curr_template ← T[i];
④   curr_kb ← K[i]; /* 当i=4时,kb为K[2],其 他情况kb为K[1]*/
⑤   curr_template.inject(context + curr_kb);/*注入 前序结果与当前知识库*/
⑥  loop:
⑦    candidate_result ← LLM.generate (curr_template.messages + context);
⑧   print(“候选结果:{candidate_result}”);
⑨    user_feedback ← input(“反馈(确认/修改/ 提问):”);
⑩    curr_template.messages.append((“user”, user_feedback));
⑪   if user_feedback == “确认”
⑫     structured_result ← curr_kb.extract (candidate_result);/*从候选结果中人 工选取的结果*/
⑬     context ← structured_result;
⑭    break;
⑮   else if user_feedback==“修改”
⑯     curr_template.messages.append (candidate_result);/*在候选结果中增 加信息*/
⑰     context ← context.update ({modified_ content});
⑱   else if user_feedback==“提问”
⑲     question = user_feedback(“问题”);/*人 工提供问题*/
⑳     llm_answer ← LLM.generate(question); /*LLM再次生成回答*/
㉑     curr_template.messages.append(llm_ answer);/*将LLM生成的回答追加 到原有信息中*/
㉒     context ← llm_answer;
㉓ end loop
㉔ end for
㉕ return context。
本节详细介绍实验验证过程。首先介绍实验数据,包括老人看护系统、太阳搜索系统、智能家居系统、战术控制系统4个嵌入式系统。其次,介绍研究问题及针对每个研究问题开展的实验设计。随后,介绍用于开展实验的工具。最后,对实验结果进行展示和分析。
本文针对老人看护系统[2](elderly care system,ECS)、太阳搜索系统(solar search system,SSS)和智能家居系统[25](smart home system,SHS)、战术控制系统[25](tactical control system,TCS)四个案例开展实验研究。这4个案例分别来自健康监护、特定工业控制、智能家居领域和军事指挥与无人作战控制领域。其中,老人看护系统是教学案例,太阳搜索系统来自真实企业项目,另外2个项目来源于公开需求文档数据集,它们具有不同的规模,见表7(使用设备数为DN、系统需求数为SyN和软件需求数为SoN)。我们从原始的需求描述中总结和提取了这4个案例的用户意图。初始意图描述如下:
1) 老人看护系统。通过实时监测生理指标、健康阈值预警,实现对老人生活健康的监测,保障老人身体健康以及预防突发风险的目标。
2) 太阳搜索系统。通过获得最佳光能采集角度、能及时响应地面操作员指令调整卫星状态,达到实时感知太阳位置并动态调整卫星姿态以追踪太阳的目的。
3) 智能家居系统。通过环境感知与自动调节优化室内温湿度及照明等参数提升居住舒适性。
4) 战术控制系统。通过构建分级无人机控制能力、任务规划与实时监控能力、多数据链协同控制能力以及C4I系统(Command,Control,Communications,Computers and Intelligence,即指挥、控制、通信、计算机与情报系统)互操作能力,实现对无人机飞行与载荷的全流程控制、任务动态调整、跨区域通信保障与情报共享,在确保信息安全与系统可靠性的前提下,达成战场态势感知增强、联合指挥协同和精确作战支撑的目标。
分别为这4个系统构建了知识库。目前,这4个系统已有设备数量分别为10个、10个、18个、36个。每个设备描述了如图4所示的各类属性特征。我们统计了这3个已有设备知识库的规模(字符数)分别为1530个、1050个、2400个和6500个。
为了检验本文方法的效率以及质量,提出了4个研究问题:
问题1:方法在需求规约文档生成的效率和质量如何?
设计人工需求规约组(人工组)与本文方法(工具组)的对照实验,分别记录2组在同样“意图”和相同知识库背景下的需求规约过程时间开销,以及获取了具有相同格式的需求规约文档。人工组分为4组,每个项目包括2名硕士研究生(1名为高年级学生,1名为刚入学的低年级学生),在无工具的环境下独立完成需求规约过程;工具组则使用本文方法提供的工具(详见4.3节),由另外4名学生分别针对4个案例独立完成。
实验记录2组完成文档所需时间并对文档的质量进行评估。如表8所示的评价方法基于IEEE830标准[12],包括无歧义性、完整性、一致性、可验证性、可修改性等维度,并根据嵌入式系统的特征进行了细化。该规则和评价策略提供给LLM进行评估。从表8中的各项指标的评价方法来看,各项指标的取值越小,反映出存在的问题越少。
问题2:设备知识库在提升规约效率方面的作用如何?
为验证方法中设备知识库在需求规约效率提升方面发挥的作用,实验通过量化“需求信息推荐采纳率”和“交互次数”2个核心指标,在4个案例中进行对比分析。采纳率指标定义如式(1)所示。
$ \text{采纳率}=\frac{\text{LLM推荐且被采纳的需求条目数}}{\text{总需求条目数}}\times 100{\text{%}}。 $
我们基于方法中LLM反馈和人工交互的记录来量化采纳数(即反馈在交互工具中被人工确认采纳的数量)、再“提示”数(在交互工具中再次发起推荐申请的数量)和总的需求条目数。其中,需求条目数为设备列表、系统需求项和软件需求项的数量。推荐采纳率反映方法减少人工编写工作量的能力;而交互次数反映了当前推荐结果是否存在“需求冗余或失控”现象,需要进一步定位问题,重新推荐满足需要的信息。
问题3:方法在确保需求可解释方面的能力如何?
为验证方法对需求可解释性的保障能力,实验通过“支撑度”和“覆盖率”分别在案例中进行对比分析。具体指标定义如式(2)和(3)所示。
$ \text{支撑度}=\frac{\text{被下层需求支撑的上层需求数}}{\text{总上层需求条目数}}\times 100{\text{%}} \text{,} $
$ \text{覆盖率}=\frac{\text{可追溯至上层需求的下层需求数}}{\text{总下层需求条目数}}\times 100{\text{%}} 。 $
支撑度反映是否存在“意图或系统需求未落地”的情况,体现需求是否被有效细化与传递。也就是,上层需求的核心意图被下层需求实际支撑的比例越高,表明需求意图在细化过程中缺失越少,系统行为与用户目标一致性越高。覆盖度反映是否存在“无来源的孤立需求”,体现需求向下推荐。若可追溯至上层需求的下层需求数量占总下层需求数的比例越高,表明孤立或冗余需求越少,需求体系结构越完整。同时,下层需求与上层需求之间的关联越紧密,需求演化过程中的信息丢失风险越低。
本文针对意图、系统需求、软件需求3个层面量化支撑度与覆盖率。针对支撑度,分别将意图作为系统需求的上层需求,将系统需求作为软件需求的上层需求分别进行量化。式(2)中被下层需求支撑的上层需求表示上层需求分解为1至多个下层需求,且下层需求依据上层需求满足和达成上层需求。而在覆盖率方面,将系统需求作为意图的下层,而将软件需求作为系统需求的下层分别进行量化。式(3)中下层对上层需求的追踪表示下层需求可追溯到某一个上层需求,且该上层需求是它的源。
为验证本文提出的框架对需求文档可解释方面的优势,对比人工方法、单步LLM生成方法和本文提出的多步引导的方法。其中,单步LLM生成方法将用户意图和嵌入式系统需求规约过程要求直接输入LLM(无多步引导与知识注入),依赖模型自身能力完成需求规约。3种方法生成的需求文档将输入给LLM,采用表6所示的提示策略构建追溯链,并人工确认可满足和可追踪关系,分别度量支撑度和覆盖率,并进行量化对比。
问题4:不同LLM对本文方法的影响如何?
为了探究不同LLM对本文方法的影响,设计对比实验,重点考察不同大模型在方法核心步骤中推荐效果差异和性能表现。在本文中,我们分别使用GLM系列[26](GLM-4.7-flash、GLM-4.7、GLM-5)、Qwen3系列[27](Qwen3-1.7B、Qwen3-8B、Qwen3-32B) 以及文心系列[28]LLM进行对比实验与综合分析。其中,GLM 系列模型由智谱 AI 发布,GLM-4.7-flash 为轻量化版本,具有响应速度快、推理成本低等特点,而 GLM-4.7 和 GLM-5 则属于能力更强的大模型,在复杂语义理解与推理任务中表现较为突出。Qwen3 系列模型由阿里巴巴公司推出,提供从 1.7B、8B 到 32B 等不同参数规模的版本,具有良好的开源生态与可扩展性,其中参数规模越大的模型通常在复杂语义理解任务中具有更稳定的表现。文心系列模型则由百度公司研发,属于商业化部署的LLM,在中文理解与生成任务中具有一定优势,并提供轻量化模型以适应不同算力环境。通过选择不同规模与不同类型的LLM,评估本文方法在多种模型条件下的适用性与稳定性。
在实验设置上,本实验不考虑人工交互过程,而是以4个案例经过多次人工确认后形成的基准作为评价标准。该基准涵盖设备选型、系统需求和软件需求3个方面。实验过程中,分别记录每个引导步骤后的模型反馈,并通过准确率、召回率和F1值3个指标进行评估,如式(4)~(6)所示。
$ \text{准确率}=\frac{\text{模型正确推荐的数量}}{\text{推荐的总数量}} \text{,} $
$ \text{召回率}=\frac{\text{模型正确推荐的数量}}{\text{基准中应推荐的总数量}} \text{,} $
$ {F}1=\frac{2\times \text{准确率}\times \text{召回率}}{\text{准确率}+\text{召回率}} 。 $
为了支持本文方法,便于人与LLM的交互,我们开发了适用性的工具。该工具主要包括知识注入的知识存储、需求信息推荐、需求模型的构建和需求信息的整合的核心模块,构件图如图7所示。主要包括知识库基于知识的需求推荐、知识存储、模型构建和需求信息融合四大子系统。其中,知识存储子系统提供各层级需求描述模板、设备知识和模型知识3类知识支撑,提供这些知识的存储、维护的相关功能;需求推荐子系统基于用户意图和设备信息,自动推荐设备选型、系统及软件需求;模型构建子系统生成需求可视化的上下文图和问题图;最终通过需求信息融合子系统整合多源信息,输出结构化的需求规约文档。
工具采用基于Java的编程语言,遵循MVC( model-view-controller )的设计思想,设计了前端交互界面和数据库。在需求推荐子系统中我们选择了低部署成本、快推理速度且满足业务要求(详见问题4部分的结果分析)的文心系列的ERNIE Lite(ernie-lite-8k)作为核心语言模型。经过参数调整,上下文窗口设置为8 000 tokens,实际输入约6 000 tokens,温度参数设置为 0.7。
1) 问题1 的实验结果及分析
我们对老人看护系统、太阳搜索系统、智能家居系统、战术控制系统4个案例分别统计低年级学生、高年级学生以及本文方法在提供相同意图和设备知识、文档模板的情况下,开展需求规约过程(不包括建模)。表9展示了3组实验对象完成任务的时间。
从表9可以看出,本文方法在时间开销方面整体显著优于低年级和高年级学生,人工写作的平均用时为98 min,而借助本文方法提供的工具,平均用时为27 min(包括LLM推荐和人工交互的时间),相比人工写作,工具写作平均可以节省约72.7%的时间。除了老人看护系统,其他3个案例中,高年级学生的总体用时低于低年级学生,但依然远高于本文方法。这表明,尽管高年级学生具备更扎实的专业基础和文档撰写能力,但在撰写嵌入式系统需求文档这一复杂任务中,仍然需要花费大量时间。
此外,我们还对人工撰写的文档与本文方法生成的文档进行了质量评估,采用表8所示的质量评价指标。表10展示了4个案例中无歧义性、完整性、一致性、可验证性、可修改性等维度的质量评估结果。其中,DN,SN和R分别表示缺陷数量、需求总数以及占比。从表10的结果可以看出,本文方法在生成的需求总体数量高于人工的方法。即本文方法在4个案例中,平均需求数量为38.05,而低年级学生和高年级学生生成文档的需求数量分别平均为16.09和16.18。本文方法是人工方法生成需求数量的2.37倍和2.35倍。此外,从平均的需求问题占比来看,本文方法、低年级学生、高年级学生平均分别为2.02%、11.12%和11%。本文方法相比人工平均水平在写作质量上的提升为81.7%(质量差除以平均人工质量的百分比)。综上,在生成需求的数量以及质量整体方面,本文提出的方法均显著优于人工撰写,尤其在需求覆盖广度与错误控制方面表现突出。
2) 问题2的实验结果及分析
针对4个案例,分别在有无知识库的作用下执行本文方法,以分析知识库在需求规约文档写作效率提升方面发挥的作用如何。在实验中,采用“采纳率”和“交互次数”作为度量的指标,表11展示了有无知识库的作用下,设备需求、系统需求以及软件需求的采纳率对比数据。其中,RN,EN,SN,AR分别表示推荐数量,确认采纳数量、总数以及采纳率。
从表11可以看出,在4个案例中,使用设备知识库后,3类需求的采纳率均呈现显著提升。以设备需求为例,ECS案例中使用知识库后,AR值从无知识库时的17.39%跃升至100%,RN从23个减少至4个,减少了19个,说明知识库有效降低了重复需求的提出;SSS案例中,设备需求的AR值从33.33%提升至100%,RN从12个降至4个,减少了8个;SHS案例中,设备需求的AR值从18.92%提升至77.78%,RN从37个降至9个,减少了28个;TCS案例中,设备需求的AR值从20.83%提升至93.75%,RN从72个降至16个,减少了56个。系统需求方面,ECS案例中使用知识库前后AR值均为85.71%,无明显变化,但SSS案例中AR值从62.5%提升至84.62%,提升了22.12个百分点,SHS案例中AR值从78.94%提升至93.75%,提升了14.81个百分点,TCS案例中AR值从78.57%提升至87.5%,提升了8.93个百分点,软件需求方面,ECS案例中使用知识库后AR值从77.78%提升至80%,提升了2.22个百分点;SSS案例中AR值从83.33%提升至90.48%,提升了7.15个百分点;SHS案例中AR值从81.48%提升至84.61%,提升了3.13个百分点;TCS案例中AR值从82.5%提升至84.93%,提升了2.43个百分点。整体来看,设备知识库对设备需求的优化效果最为显著,能大幅缩小推荐范围,提升采纳率;此外,对系统需求和软件需求也有不同程度的正向影响,其中系统需求的提升幅度在不同案例中存在差异,软件需求的提升幅度相对较小,但仍能有效优化需求质量。
在实验过程中,本文方法在不同的阶段实施了交互活动,即针对推荐结果进行再次提问以便于结果的再次反馈,通过再次推荐和采纳,减少人工撰写需求的工作量。表12展示了在不同阶段(设备需求、系统需求以及软件需求)交互次数。其中,IN表示交互次数(新增加问题)。从表12可以看出,从交互次数来看,有设备知识库的情况下,交互次数较少(有设备知识平均为1,而无设备知识平均为1.75),交互次数平均减少42.86%。
此外,我们也统计了交互的原因,主要分为3种情况:精度类、完整性以及模糊性。分别针对反馈的需求描述不精确、数据不正确或者表达不完全或者定义模糊的情况进行追问,提示LLM再次生成推荐信息,以减少人工的输入。
3)问题3的实验结果及分析
为检验生成文档在可解释性方面的效果,我们将每个案例生成的需求文档的意图、系统需求和软件需求进行编号,并在意图、系统需求、软件需求之间建立了追踪关系,即如果系统需求达成意图,软件需求实现系统需求,则在它们之间建立一条追踪边。这样,就构建了多层的追踪链。根据追踪链,我们统计了意图到系统需求以及系统需求到软件需求之间的可追溯数(即存在追踪边的数量)。同时也反向从系统需求到意图以及软件需求到系统需求统计了可满足的数量(即查看需求描述,核对精化逻辑)。
我们针对4个案例,开展了对比实验。分别为人工方法(包括低年级学生H1和高年级学生H2)、只提供意图的LLM单步方法(LLM-Single)和本文方法(Ours)。单步LLM的方法将同样的意图提供给LLM,并设计了提示词,让LLM根据意图生成系统需求和软件需求。分别针对支撑度与覆盖率进行了评价,对比情况见表13所示。其中,ISN,IN,SSN,SyN,SD分别表示意图被系统需求支撑的数量、意图总数,系统需求被软件需求支撑的数量、系统需求总数以及支撑度。TSyN,TSoN,SoN,CR分别表示可追溯至意图的系统需求数量、可追溯至系统需求的软件需求数量、软件需求数量以及覆盖率。ASD,ACR分别表示平均支撑度和平均覆盖率。
从表13可以看出,本文方法在可解释性的2个指标“支持度”与“覆盖率”上取得了优异的指标(均为100%)。这是因为本文方法将“意图、设备、系统、软件”各层次的需求借助需求模板和设备知识,有步骤地从上而下实施需求信息的补全,进而生成完整的需求文档。该文档中上层需求与下层需求之间具有清晰的可满足和可追溯关系,确保了需求的可解释。表13还可以看出,人工方法H1和H2的表现不稳定,人工方法易受个人经验与案例熟悉程度的影响,导致在不同场景下表现差异较大。LLM-Single的支撑度表现较为突出,在ECS、SSS、SHS、TCS四个案例中的平均支撑度分别为86%、94%、91%、91%,但覆盖度明显不足,对应的平均覆盖率仅为54%、72%、72%、69%。相比之下,本文方法通过结构化知识引导与逻辑推理机制,有效降低了人为因素的干扰,提升了结果的一致性与可靠性。
图8展示了不同方法在各案例中支撑度与覆盖率的对比趋势。总体来看,LLM的支撑度高于人工方法,但覆盖率不足,表现不稳定;而本文方法在支撑度与覆盖率方面表现优异,即在LLM辅助人工决策的作用下表现突出,进一步验证了本文方法在可理解性方面的优势。具体而言,在支撑度维度,平均人工方法的支撑度为76%,而LLM-Single为90.5%。在覆盖率维度,平均人工方法的覆盖率为94.5%,而LLM-Single为66.8%。从平均上来看,本文方法在可维护性指标方面,相比人工方法提升15个百分点,相比LLM-Single方法提升21个百分点。
4)问题4的实验结果及分析
本文针对 ECS、SSS、SHS 和 TCS 四个案例,对7款LLM,GLM-4.7-flash、GLM-4.7、GLM-5、Qwen3-1.7B、Qwen3-8B、Qwen3-32B以及 ERNIE-Lite,在设备需求、系统需求和软件需求层的推荐性能进行了实验研究,评价指标包括准确率、召回率和 F1 值。
表14展示了不同LLM在各案例分层需求上的准确率、召回率与 F1 值。实验结果显示,在设备需求层,GLM-5 与 Qwen3-8B 的表现最为突出,例如在 ECS 案例中两者的召回率均达到 100%,F1 值分别为 100%,显示了大模型在设备需求推荐上的优势。相比之下,GLM-4.7-flash 与 Qwen3-1.7B 的性能略低,在 SSS 案例中 F1 仅为 33.33%,而 ERNIE-Lite 的表现相对稳定,F1 值为 77.78%~88.89%,说明轻量化模型在设备需求推荐上仍具一定能力。
系统需求层整体推荐难度较大,F1 值波动明显,GLM-5 在 SHS 案例中 F1 达 60.87%,而 GLM-4.7 和 GLM-4.7-flash 多案例 F1 值低于 50%,显示部分模型在系统需求层存在召回不足的问题。Qwen3 系列模型表现较为均衡,其中 Qwen3-32B 在 SSS 案例中 F1 达 69.97%,表明更大规模模型在复杂系统需求推荐上具有优势。ERNIE-Lite 在系统需求层 F1 值为 50%~62%,表现中等。
在软件需求层,整体推荐性能优于系统需求层,GLM-5 与 Qwen3-32B 在 SHS 案例中 F1 分别达到 74.94% 和 74.41%,Qwen3-8B 在 TCS 案例中 F1 为 70.39%,显示了大模型在软件需求推荐的稳定性。ERNIE-Lite 在软件需求层表现相对较弱,例如在 TCS 案例 F1 为 58.16%,反映了轻量模型在复杂多层需求推荐任务中的局限性。
图9展示了7款LLM从准确率、召回率、F1值3个核心维度在4个案例的设备需求、系统需求、软件需求推荐任务的平均表现。在准确率方面,所有模型都在58%~81%,整体表现稳定。其中GLM-5、Qwen3-8B、Qwen3-32B三款模型表现最优,GLM-4.7、Qwen3-1.7B次之,GLM-4.7-flash和ERNIE-Lite准确率相对偏低,分别为64%和59%。召回率方面,整体分布在55%~74%,Qwen3-32B达到76%的最高值;GLM-5与ERNIE-Lite紧随其后,召回率约71%和73%;GLM-4.7-flash表现最弱,召回率不足55%。在F1值方面,整体分布在57%~75%,Qwen3-32B的F1值最优,GLM-5、Qwen3-8的F1值分别达到接近73%;GLM-4.7-flash最弱,不足60%,其他模型总体表现在65%左右。
综合各案例与各层需求的实验结果可以看出,模型规模与性能呈正相关,大模型在跨层需求推荐任务中表现更为稳定;设备需求相对容易推荐,系统需求最具挑战性,软件需求表现居中;而轻量化模型如 ERNIE-Lite 在资源受限环境下仍具有一定应用价值,但在复杂需求场景下需要进一步优化。
本文的有效性威胁主要来自5个方面。
1)实验案例规模和设备知识库规模相对有限。我们选取了4个覆盖不同复杂度和应用场景的嵌入式需求文档案例(ECS、SSS、SHS、TCS),但是这案例虽具有一定的代表性,但从规模和领域覆盖方面相对有限,需后续扩充数据集和实验规模。此外,本文采用人工构建的方法构建知识库,在知识库的完整性和精准性方面还缺乏验证。然而,本文提供的工具支持交互式的设备知识库动态维护,对知识库的进一步修正和扩展提供动态维护支持。
2)人工参与环节在参与人数和背景方面存在局限。人工评估涉及初学者和高年级学生,但参与人数较少,且他们对嵌入式系统的理解程度各异。初学者可能因专业术语或系统架构知识不足而对支撑度和覆盖率的评估产生偏差,而高年级学生的判断可能受个人项目经验影响,存在主观倾向。这些局限可能影响评估结果的可靠性。为缓解此问题,我们平衡了不同水平参与者的比例,但未来研究应扩大样本量并纳入专业嵌入式工程师,以提高评估的客观性。
3)LLMs的固有随机性构成潜在干扰。本次实验选用的7款参数量从1.7B到32B不等的LLM普遍存在生成过程的固有随机性,同一prompt多次调用的输出结果会存在细节差异,可能导致同一案例下的需求生成指标(准确率、召回率、F1值)出现小幅波动。不过从整体实验结果来看,这类随机性并未改变不同模型的性能排序,也未影响“大模型可有效提升需求生成效率”的核心结论,但在对输出一致性要求高的落地场景中,确实可能出现推荐结果偏离预期的情况,需要人工二次校验调整。本次实验已通过多轮重复测试取平均值、随机抽样核验的方式控制随机误差,未来研究可进一步通过领域微调优化模型输出分布、引入结构化提示词约束生成边界、叠加确定性规则校验模块等方式,进一步提升需求生成结果的稳定性与可复现性。
4)评估指标的设计可能存在覆盖不全的问题。当前采用的支撑度与覆盖率主要衡量需求的可解释性,需求文档的质量采用基于IEEE830标准的五维度评分法。我们对每一维度的评分法进行了针对嵌入式系统的评估量化,但其评估的全面性和精确性仍需在更广泛的场景中验证。
5)方法的人工交互成本分析需进一步深入。围绕人机交互频次、工具使用耗时、大模型辅助生成相较纯人工撰写的成本节约比例3个核心维度展开分析,验证了本文所提方法在效率与性能层面的综合优势。但当前成本分析仍存在覆盖边界的局限:方法落地所需的前期领域知识库构建质量、参与人员对嵌入式系统领域知识的熟悉程度等前置因素,都会对实际交互成本(尤其是时间成本)产生显著影响,而这类隐性影响尚未纳入本次成本评估体系,可能导致对全流程人力投入的测算存在偏差。后续研究将进一步扩大人工评估样本覆盖范围,深入分析人员专业背景、知识库成熟度等人为因素对交互成本的影响机制。
本文提出了一种基于LLM的可解释嵌入式系统需求规约框架,通过知识提示链交互式地引导LLM分步骤将用户意图细化为设备、系统及软件需求,构建问题图和情景图模型,建立需求之间的关联。构建了人工与工具对照组,实验结果表明,本文方法在时间、文档质量和可解释性方面具有优异表现。在时间维度方面,本文方法减少约73%,而可解释性相比人工方法和LLM-Single方法分别提升15个百分点和21个百分点。为复杂嵌入式系统需求工程提供了高效且可信的新途径。此外,本文还对比了不同步骤对7款不同类型和参数的LLM推荐效果的影响,通过分析准确率、召回率、F1值等指标可以看出,当参数越大时推荐的性能有小幅度提升。虽然本文选择了总体表现中等的文心大模型,但是得益于方法框架的通用性,用户也可根据实际场景的性能需求,灵活替换为更高性能的LLM以获得更优的推荐结果。未来将重点探索动态知识融合机制以增强设备知识适配性、扩展实验规模和面向复杂系统真实案例,进一步验证和提升需求文档的工程实践价值以及探索需求的动态演化和支持可复用。

参考文献 引证文献
排序方式:
1
陈小红, 刘少彬, 金芝. 嵌入式系统的需求描述综述[J]. 软件学报, 2025, 36(1): 27−46
Chen Xiaohong, Liu Shaobin, Jin Zhi. A survey of requirements description for embedded systems[J]. Journal of Software, 2025, 36(1): 27−46 (in Chinese)
2
金芝, 刘璘, 陈小红, 等. 软件需求工程方法与实践[M]. 北京: 清华大学出版社, 2023
Jin Zhi, Liu Lin, Chen Xiaohong, et al. Software Requirements Engineering: Methods and Practice[M]. Beijing: Tsinghua University Press, 2023 (in Chinese)
3
Voria G, Casillo F, Gravino C, et al. RECOVER: Toward requirements generation from stakeholders’ conversations[J]. IEEE Transactions on Software Engineering, 2025, 51(6): 1912−1933
4
Koscinski V, Hashemi S, Mirakhorli M. On-demand security requirements synthesis with relational generative adversarial networks[C] //Proc of the 45th IEEE/ACM Int Conf on Software Engineering (ICSE). Piscataway, NJ: IEEE, 2023: 1609−1621
5
Lian Xiaoli, Ma Jieping, Lv Heyang, et al. ReqCompletion: Domain-enhanced automatic completion for software requirements[C] //Proc of the 32nd IEEE Int Requirements Engineering Conf (RE). Piscataway, NJ: IEEE, 2024: 142−154
6
Almonte J T, Boominathan S A, Nascimento N. Automated non-functional requirements generation in software engineering with large language models: A comparative study[J]. arXiv preprint, arXiv: 2503.15248, 2025
7
Habib M K, Graziotin D, Wagner S. ReqBrain: Task-specific instruction tuning of LLMs for AI-assisted requirements generation[J]. arXiv preprint, arXiv: 2505.17632, 2025
8
Lowin M, Mihale-Wilson C. Functional requirements and recommendations for AI-based sustainable energy solutions[C]//Proc of INFORMATIK 2024. Bonn: Gesellschaft für Informatik, 2024: 1705−1716
9
Zhao Ziyan, Zhang Li, Lian Xiaoli, et al. Reqgen: Keywords-driven software requirements generation[J]. Mathematics, 2023, 11(2): 1−22
10
Elliott R A, Allen E B. Creating a software requirements specification document using an ontology based methodology[J]. International Journal of Advanced Research in Science, Engineering and Technology, 2016, 3(9): 2616−2630
11
Wang Chunhui, Zhao Jiaqi, Chen Xiaohong, et al. Generating requirements documents for embedded systems: A device knowledge-guided approach[C] //Proc of the IEEE 32nd Int Requirements Engineering Conf Workshops (REW). Piscataway, NJ: IEEE, 2024: 200−205
12
IEEE Computer Society. IEEE Std 830-1998: IEEE Recommended Practice for Software Requirements Specifications[S]. New York: IEEE, 1998
13
Mavin A, Wilkinson P, Harwood A, et al. Easy approach to requirements syntax (EARS)[C] //Proc of the 17th IEEE Int Requirements Engineering Conf. Piscataway, NJ: IEEE, 2009: 317−322
14
Kang K C, Ko K I. PARTS: A temporal logic-based real-time software specification and verification method[C] //Proc of the 17th Int Conf on Software Engineering. Piscataway, NJ: IEEE, 1995: 169−176
15
Mahmud N, Seceleanu C, Ljungkrantz O. Specification and semantic analysis of embedded systems requirements: From description logic to temporal logic[C] //Proc of the 15th Int Conf on Software Engineering and Formal Methods. Berlin: Springer, 2017: 332−348
16
Xuan Zhen, Wang Tianci, Wang Chunhui, et al. A tool for automatically identifying semantic conflicts in user stories by combining NLP and BERT model[C] //Proc of the 32nd IEEE Int Requirements Engineering Conf (RE). Piscataway, NJ: IEEE, 2024: 484−487
17
Bertram V, Kausch H, Kusmenko E, et al. Leveraging natural language processing for a consistency checking toolchain of automotive requirements[C] //Proc of the IEEE 31st Int Requirements Engineering Conf (RE). Piscataway, NJ: IEEE, 2023: 212−222
18
Chen Boqi, Babikian A A, Feng Shuzhao, et al. LLM-based satisfiability checking of string requirements by consistent data and checker generation[J]. arXiv preprint, arXiv: 2506.16639, 2025
19
Krishna M, Gaur B, Verma A, et al. Using LLMs in software requirements specifications: An empirical evaluation[C] //Proc of the IEEE 32nd Int Requirements Engineering Conf (RE). Piscataway, NJ: IEEE, 2024: 475−483
20
Yong G, Jeon K, Lee G. Prompt engineering for zero-shot and few-shot defect detection and classification using a visual-language pretrained model[J]. Computer-Aided Civil and Infrastructure Engineering, 2023, 38(11): 1536−1554
21
Meck A M, Precht L. How to design the perfect prompt: A linguistic approach to prompt design in automotive voice assistants—an exploratory study[C]//Proc of the 13th Int Conf on Automotive User Interfaces and Interactive Vehicular Applications. New York: ACM, 2021: 237−246
22
Shakthi S, Srivastava P, Kumar R, et al. Automated test case generation for satellite FRD using NLP and large language model[C] //Proc of the 4th Int Conf on Electrical, Computer, Communications and Mechatronics Engineering (ICECCME). Piscataway, NJ: IEEE, 2024: 1−8
23
杨晓, 王小齐, 陈小红, 等. 复杂嵌入式系统需求一致性的组合验证方法[J]. 软件学报, 2025, 36(4): 1413−1434
Yang Xiao, Wang Xiaoqi, Chen Xiaohong, et al. Combined verification method for consistency of complex embedded system requirements[J]. Journal of Software, 2025, 36(4): 1413−1434 (in Chinese)
24
靳东明, 金芝, 陈小红, 等. ChatModeler: 基于大语言模型的人机协作迭代式需求获取和建模方法[J]. 计算机研究与发展, 2024, 61(2): 338−350
Jin Dongming, Jin Zhi, Chen Xiaohong, et al. ChatModeler: Human-AI collaborative iterative requirements elicitation and modeling method based on large language models[J]. Journal of Computer Research and Development, 2024, 61(2): 338−350 (in Chinese)
25
Ferrari A, Spagnolo G O, Gnesi S. PURE: A dataset of public requirements documents[C]//Proc of the 25th IEEE Int Requirements Engineering Conf (RE). Piscataway, NJ: IEEE, 2017: 502–505
26
Zeng Aohan, Xu Bin, Wang Bowen, et al. ChatGLM: A family of large language models from GLM-130B to GLM-4[J]. arXiv preprint, arXiv: 2406.12793, 2024
27
Yang An, Li Anfeng, Yang Baosong, et al. Qwen3 technical report[J]. arXiv preprint, arXiv: 2505.09388, 2025
28
Sun Yu, Wang Shuohuan, Feng Shikun, et al. ERNIE 3.0: Large-scale knowledge enhanced pre-training for language understanding and generation[J]. arXiv preprint, arXiv: 2107.02137, 2021
2026年第63卷第5期
78
34
0
引用本文
BibTeX
文章信息
doi: 10.7544/issn1000-1239.202550898
  • 接收时间:2025-12-15
  • 首发时间:2026-11-17
  • 出版时间:2026-05-01
补充材料
相关文章
文章信息
作者
出版历史
  • 收稿日期:2025-12-15
  • 修回日期:2026-03-11
基金
作者信息
    1内蒙古师范大学计算机科学技术学院 呼和浩特 010022
    2上海市高可信计算重点实验室(华东师范大学) 上海 200062
    3高可信软件技术教育部重点实验室(北京大学) 北京 100871
    4北京大学计算机学院 北京 100871

通讯作者:

王春晖()
参考文献
分享链接
https://castjournals.cast.org.cn/joweb/jsjyjyfz/CN/10.7544/issn1000-1239.202550898
分享至
全文二维码

扫描看全文

引用本文
BibTeX
本文的引用情况
2种不同金属材料的力学参数
科
Family
属数
Number of
genus
种数
Number of
species
占总种数比例
Percentage of
total species (%)
属
Genus
种数
Number of
species
占总种数比例
Percentage of total
species (%)
鹅膏菌科Amanitaceae 2 11 5.26 鹅膏菌属 Amanita 10 4.78
小菇科 Mycenaceae 2 12 5.74 丝盖伞属 Inocybe 5 2.39
多孔菌科 Polyporaceae 8 14 6.70 蜡蘑属 Laccaria 5 2.39
红菇科 Russulaceae 3 23 11.00 小皮伞属 Marasmius 6 2.87
小菇属 Mycena 11 5.26
光柄菇属 Pluteus 5 2.39
红菇属 Russula 17 8.13
栓菌属 Trametes 5 2.39
关闭全屏