计算机科学 ›› 2026, Vol. 53 ›› Issue (11A): 260500131-378.doi: 10.11896/jsjkx.260500131

• 人工智能 • 上一篇    下一篇

基于知识图谱的Excel财务模型解析与语义追溯研究

李哲斐, 李舒兴, 嵇子涵   

  1. 中国长江三峡集团有限公司 武汉 430010
  • 出版日期:2026-11-16 发布日期:2026-11-16
  • 通讯作者: 李舒兴(li_shuxing@ctg.com.cn)
  • 作者简介:(li_zhefei@ctg.com.cn)

Research on Excel Financial Model Analysis and Semantic Tracing Based on Knowledge Graphs

LI Zhefei, LI Shuxing, JI Zihan   

  1. China Three Gorges Corporation,Wuhan 430010,China
  • Published:2026-11-16 Online:2026-11-16
  • About author:LI Zhefei,born in 1994,postgraduate,engineer.His main research interests include natural language processing and knowledge graph.

摘要: 在能源行业中,大量复杂的财务决策依赖Excel模型,但公式与其业务语义之间存在结构性的解耦现象。以某真实的抽水蓄能电站财务评价模型为例,该模型包含14个工作表、57 577个非空单元格和42 109个公式,其中9 199次跨Sheet引用导致人工追溯需要2至3人天,而289个含错误公式(占0.69%)极难被全面检出。针对“跨Sheet引用无法追溯”与“公式业务含义不透明”这两个问题,提出了Excel解析与知识图谱构建方法。核心贡献有三方面:一是基于有向无环图搭建公式依赖解析引擎,构建出含62 160个节点和78 472条边的计算依赖图,验证无循环引用且支持最长730步路径追溯;二是采用上下文规则优先的混合语义分类方法,在299条分层采样数据集上达到88.3%的准确率,相比纯公式结构方法(20.7%)提升了67.6个百分点,消融实验证明“公式黑盒”的本质是语法与语义的结构性解耦;三是构建包含42 138个实体和65 333条关系的财务模型知识图谱,实现秒级路径追溯与智能问答,IRR计算路径追溯响应时间小于0.5 s(相较于人工45~60 min效率提升了5 000多倍),问答意图识别综合准确率达92.3%,基于知识图谱的路径追溯将人工审计效率提升超过5 000倍。

关键词: Excel公式分析, 知识图谱, 依赖图, 语义理解, 财务模型, 能源行业, 智能问答

Abstract: In the energy industry,many complex financial decisions rely on Excel models,but there is a structural decoupling between formulas and their business semantics.Take a real financial evaluation model for a pumped storage power station as an example.It comprises 14 worksheets,57 577 non-empty cells,and 42 109 formulas.Notably,9 199 cross-sheet references would require 2 to 3 man-days for manual tracing,while 289 formulas containing errors(accounting for 0.69%) are extremely difficult to detect comprehensively.To address the challenges of “untraceable cross-sheet references” and “opaque business meanings of formulas,” this paper proposes a method for Excel parsing and knowledge graph construction.The core contributions are threefold.1)A formula dependency parsing engine based on directed acyclic graph(DAG) is successfully built,establishing a computational dependency graph with 62 160 nodes and 78 472 edges.This verifies the absence of circular references and supports path tracing of up to 730 steps.2 A hybrid semantic classification method prioritizing context rules is adopted.On a stratified sampling data-set of 299 entries,the accuracy reaches 88.3%,marking a67.6 percentage point increase compared to the pure formula structure method(20.7%).Ablation studies further demonstrate that the essence of the “formula black box” lies in the structural decoupling of syntax and semantics.3 A financial model knowledge graph containing 42 138 entities and 65 333 relationships is constructed,enabling second-level path tracing and intelligent Q&A.The response time for IRR calculation path tracing is under 0.5 se-conds-boosting efficiency by over 5 000 times compared to the manual 45~60 minutes.Furthermore,the comprehensive accuracy of Q&A intent recognition reaches 92.3%,with knowledge graph-based path tracing elevating manual audit efficiency by more than5 000 times.

Key words: Excel formula analysis, Knowledge graph, Dependency graph, Semantic understanding, Financial model, Energy sector, Intelligent Q&A

中图分类号: 

  • TP391
[1] 国家能源局.2024年抽水蓄能开发建设情况[R].北京:国家能源局,2024.
[2] HERMANS F,AIVALOGLOU E,EIJK R.Analyzing and Understanding Spreadsheet Smells and Errors[C]//Proceedings of the IEEE Working Conference on Software Visualization.2014:1-10.
[3] HERMANS F,PINZGER M,VAN DEURSEN A.Detecting Code Smells in Spreadsheet Formulas[J].Empirical Software Engineering,2015,20(1):115-142.
[4] JANSEN A,BAARS A,ENGELEN J.Towards a Methodology for Spreadsheet Quality Assessment[C]//Proceedings of the 16th International Conference on Software Engineering and Knowledge Engineering.2004:281-284.
[5] CAFARELLA M J,HALEVY A,WANG Z,et al.WebTables:Exploring the Power of Tables on the Web[C]//Proceedings of the VLDB Endowment.2008:538-550.
[6] VENETIS P,HALEVY A,MADHAVAN J,et al.Recovering Semantics of Tables on the Web[C]//Proceedings of the VLDB Endowment.2011:305-316.
[7] CHEN Z,CAFARELLA M J.Integrating Spreadsheet Data via Accurate and Low-Effort Extraction[C]//Proceedings of the 2014 ACM SIGMOD International Conference on Management of Data.2014.
[8] KOCI E,THIELE M,ROMERO O,et al.Cell Classification in Spreadsheets via Machine Learning[J].Datenbank-Spektrum,2018,18(3):191-200.
[9] WANG J H,LIU Y C,ZHANG W.Transformer fault diagnosis method based on dynamic knowledge graph reasoning [J].Proceedings of the CSEE,2025,45(3):1234-1245.
[10] DU M Y,LI M,WANG X D.Construction method of fault knowledge graph for wind power hydraulic equipment [J].Automation of Electric Power Systems,2024,48(8):56-65.
[11] YU T,ZHANG R,YANG K,et al.Spider:A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Task[C]//Proceedings of the 2018 Conference on Empirical Methods in Natural Language Proces-sing.2018:3911-3921.
[12] HUANG Z H,CHEN S Y,LIU Y.Application and challenges of large language models in the field of industrial operation and maintenance [J].Chinese Journal of Computers,2024,47(5):1023-1041.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!