基于数字孪生与蒙特卡洛模拟的工业视觉检测系统仿真验证方法研究
Research on Simulation Verification Method of Industrial Vision Inspection System Based on Digital Twin and Monte Carlo Simulation
摘要: 针对工业视觉检测系统在复杂制造环境中面临的现场调试周期长、极端工况难以物理复现、稀有缺陷样本匮乏以及检测性能缺乏客观量化评估手段等问题,本文提出一种融合数字孪生与蒙特卡洛模拟的仿真验证方法,并构建了相应的验证平台。首先,采用“几何–物理–行为”三级映射策略,基于Blender与Unity引擎建立典型工业产线的高保真数字孪生模型,并通过Brown-Conrady畸变模型、运动模糊卷积与高斯–泊松混合噪声实现成像退化仿真;其次,利用核密度估计对生产现场光照、振动等扰动因子进行概率建模,结合拉丁超立方采样提升参数空间填充效率,并引入t-Copula函数刻画多类缺陷的联合分布,驱动基于分形几何与Perlin噪声的智能缺陷注入;再次,针对小概率复合缺陷,提出“高斯过程代理模型定位失效边界 + 混合高斯重要性采样”的高效采样策略,显著降低稀有工况的仿真成本;最后,构建涵盖检测精度、稳健性阈值与极端漏检风险价值的多维评价指标体系,结合Sobol全局敏感性分析与SHAP归因实现验证结果的可解释呈现。以某汽车总装车间视觉检测工位为例的实验表明,该平台可将视觉系统调试周期缩短约67%,误检率降低21%以上,验证了方法的有效性与工程实用价值。
Abstract: Aiming at the problems faced by industrial vision inspection system in complex manufacturing environment, such as long on-site debugging period, difficult physical reproduction of extreme working conditions, lack of rare defect samples and lack of objective quantitative evaluation methods of inspection performance, this paper proposes a simulation verification method combining digital twin and Monte Carlo simulation, and constructs the corresponding verification platform. Firstly, the high-fidelity digital twin model of typical industrial production line is established based on Blender and Unity engine by adopting the three-level mapping strategy of “geometry-physics-behavior”, and the image degradation simulation is realized through Brown-Conrady distortion model, motion blur convolution and Gaussian-Poisson mixed noise. Secondly, kernel density estimation is used to model the disturbance factors such as illumination and vibration in the production site, and Latin hypercube sampling is combined to improve the filling efficiency of parameter space, and t-Copula function is introduced to describe the joint distribution of multiple types of defects, which drives intelligent defect injection based on fractal geometry and Perlin noise. Thirdly, aiming at the small probability compound defects, an efficient sampling strategy of “Gaussian process proxy model locating failure boundary + mixed Gaussian importance sampling” is proposed, which significantly reduces the simulation cost of rare working conditions. Finally, a multi-dimensional evaluation index system covering detection accuracy, robustness threshold and extreme missed detection risk value is constructed, and the explanatory presentation of verification results is realized by combining Sobol global sensitivity analysis and SHAP attribution. Taking the visual inspection station of an automobile assembly workshop as an example, the experiment shows that the platform can shorten the debugging period of visual system by about 67% and reduce the false detection rate by more than 21%, which verifies the effectiveness and practical value of the method.
参考文献
|
[1]
|
陶飞, 刘蔚然, 张萌, 等. 数字孪生五维模型及十大领域应用[J]. 计算机集成制造系统, 2019, 25(1): 1-18.
|
|
[2]
|
陶显, 侯伟, 徐德. 基于深度学习的表面缺陷检测方法综述[J]. 自动化学报, 2021, 47(5): 1017-1034.
|
|
[3]
|
张夏禹, 陈小平. 基于目标的域随机化方法在机器人操作方面的研究[J]. 计算机应用研究, 2022, 39(10): 3084-3088.
|
|
[4]
|
李庆忠, 白文秀, 牛炯. 基于改进CycleGAN的水下图像颜色校正与增强[J]. 自动化学报, 2023, 49(4): 820-829.
|
|
[5]
|
万越, 吕震宙, 袁修开. 基于Latin方抽样和修正的Latin方抽样的可靠性灵敏度估计及其方差分析[J]. 机械强度, 2008, 30(6): 927-934.
|
|
[6]
|
韦艳华, 张世英. Copula理论及其在金融分析上的应用[M]. 北京: 清华大学出版社, 2008.
|
|
[7]
|
韩忠华. Kriging模型及代理优化算法研究进展[J]. 航空学报, 2016, 37(11): 3197-3225.
|
|
[8]
|
史朝印, 吕震宙, 李璐祎, 等. 基于自适应Kriging代理模型的交叉熵重要抽样法[J]. 航空学报, 2020, 41(1): 179-190.
|
|
[9]
|
何琨, 严正, 徐潇源, 等. 基于Sobol’法的孤岛微电网潮流全局灵敏度分析[J]. 电力系统自动化, 2018, 42(14): 99-106.
|
|
[10]
|
雷欣南, 林乐凡, 肖斌卿, 等. 小微企业违约特征再探索: 基于SHAP解释方法的机器学习模型[J]. 中国管理科学, 2024, 32(5): 1-12.
|