一种基于贝叶斯网络模型的代码生成方法、系统及介质

By generating dynamic and fixed C code files, combining the node information of the Bayesian network model, parsing the information of the probabilistic graphical model to be processed, and constructing the Bayesian network model, the problem of embedded inference of Bayesian network models on spaceborne computers is solved, and the deployment and probability calculation of Bayesian inference networks on spaceborne embedded computers are realized.

CN115951867BActive Publication Date: 2026-07-17BEIJING XUANYU INFORMATION TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING XUANYU INFORMATION TECH CO LTD
Filing Date
2022-11-30
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

Existing technologies make it difficult to implement embedded inference of Bayesian network models on spaceborne computers, and cannot effectively calculate the probability of the top event based on the probability of the bottom event.

Method used

By generating dynamic C code files and preset fixed C code files, and combining the node information of the Bayesian network model, the information of the probabilistic graphical model to be processed is parsed, and a Bayesian network model is constructed to realize the probability of the top event based on the probability of the bottom event.

Benefits of technology

A Bayesian inference network was successfully deployed on a spaceborne embedded computer, enabling probability calculation based on the Bayesian network model. This decoupled the fixed C code from the specific Bayesian network structure and provided a general code generation solution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115951867B_ABST
    Figure CN115951867B_ABST
Patent Text Reader

Abstract

一种基于贝叶斯网络模型的代码生成方法,涉及贝叶斯网络的推理方法和实现,以及自动代码生成技术。本发明方法包括:由待处理概率图模型信息生成对应的贝叶斯网络模型;根据贝叶斯网络模型生成动态C代码文件,结合预设的固定C代码文件,并根据预设的指派节点事件取第几个值的编号信息,实现根据底事件发生的概率求顶事件发生的概率,生成的动态C代码文件和预设的固定C代码文件交由计算机执行。本发明使用C代码实现了贝叶斯推理网络,根据输入的贝叶斯网络模型动态生成C代码,配合固定的C代码,可以实现根据底事件发生的概率求顶事件发生的概率,完成了贝叶斯推理网络的嵌入式实现,给出了嵌入式平台移植的解决方案。
Need to check novelty before this filing date? Find Prior Art