Research on gear shaving error analysis based on knowledge graph
Istraživanje analize greške kod brijanja zupčanika (gear shaving) zasnovano na grafu znanja
Men L, Cai A.
2025 · Scientific reports · CC BY-NC-ND
Prevod na srpski je mašinski (Claude) i prikazan je radi čitljivosti; original je merodavan.
The influencing factors of shaving-induced mid-profile concavity error and tooth profile errors are numerous and complex, yet they lack effective interconnections, resulting in severe siloization issues. Existing literature research and practical manufacturing data have primarily accumulated the relationship between the influence of individual factors on gear shaving error and stored in the form of text dispersed. These discrete knowledges can’t be systematically integrated and utilized and individual factor influence mechanism can’t be effectively shared, resulting in the failure to quantitatively differentiate between the factors of the role of the mechanism, while the unclear underlying mechanisms obstruct the fundamental revelation of the mapping relationship between shaving-induced mid-profile concavity error and tooth profile errors. To address this, this study derives computational formulas for the improved gear shaving tooth profile cutting depth error and shaving allowance, solving the gear shaving tooth profile cutting depth error and shaving allowance by the shaving cutting parameter (radial feed), and analyzing the influence law of radial feed on the gear shaving tooth profile cutting depth error and shaving allowance. Experimental results demonstrate that when the degree of overlap ranges from 1.3 to 1.9, and the axis intersection angle error falls within 0.2°~0.5°, selecting a radial feed of 44 ~ 50 μm simultaneously reduces tooth profile middle-concave error and tooth profile errors in workpiece gears. To resolve the lack of factor correlation, the Neo4j graph database was employed to construct a knowledge graph of influencing factors for shaving-induced mid-profile concavity error and tooth profile errors. This framework enables unified management of shaving error factors, the expression of correlations between knowledge entities, and relevant search and reasoning. It effectively resolves the issue of missing intrinsic connections among shaving error factors, realizes efficient retrieval and reasoning of knowledge regarding the intrinsic mechanism through which shaving error factors induce gear shaving errors, and thereby better facilitates the solution to tooth profile errors in shaving processes.
Introduction Currently, the lack of correlation among influencing factors for both shaving-induced mid-profile concavity error and tooth profile errors, coupled with insufficient data and information management, easily leads to information silos and resource waste. This results in multiple issues including duplicate resolutions of error factors, omitted solutions, asynchronous updates, and low data structurization levels, ultimately preventing the synchronous resolution of both error types. To address these challenges, this study introduces knowledge graphs to analyze the factors influencing gear shaving errors. By extracting mechanistic knowledge of individual factors’ impacts from discrete textual data, we construct a knowledge graph based on the cause-effect relationships of single-factor mechanisms. A knowledge graph is fundamentally a semantic knowledge base that utilizes graph-structured format representations to model real-world entities (including concepts, individuals, and objects) and their interrelationships 1 . It has gained significant attention and found widespread applications across various domains 2 – 15 . Hao et al. 16 . proposed an intelligent design tool based on knowledge graphs, aiming to intelligently recommend relevant design data, information, and knowledge for flexible gear design, thereby assisting in completing design tasks and improving design efficiency. It is evident that there are currently few studies on the application of knowledge graphs in the field of gear machining within the industry, but there are many applications in the field of mechanical machining. In the application of knowledge base construction and knowledge integration and reuse, Guo et al. 17 . developed an automated framework for constructing machining process knowledge graphs to support intelligent decision-making systems. Bai 18 constructed and applied a product knowledge base for cemented carbide milling cutters based on a knowledge graph, achieving the integration, sharing, and reuse of tool knowledge. Li et al. 19 , 20 . proposed a method for constructing a process knowledge graph for process reuse to address issues such as the difficulty of reusing and sharing process knowledge due to the complexity and diversity of process knowledge, which makes it difficult to represent uniformly. Qiu et al. 21 . addressed the critical “data island” problem inherent in conventional structural health monitoring (SHM) methods, which significantly constrained the identification efficiency for complex and heterogeneous signal data. They proposed an innovative knowledge graph-based approach that successfully resolved the challenges of fine-grained domain knowledge modeling and multi-source sensor data integration in machine tool SHM, thereby enabling efficient and convenient retrieval and analysis of sensor data. In fault diagnosis, Wu et al. 22 proposed a method for constructing a fault knowledge graph for aviation engine lubrication systems, given the complex structure and functionality of such systems and the heavy reliance on expert experience for fault diagnosis. The results showed that knowledge graph technology effectively explained the causes of faults. Wang et al. 23 . proposed a fault diagnosis method for identifying the fault causes of the on-board interface equipment in the Chinese Train Control System Level 3 (CTCS-3) based on temporal knowledge graph completion. Experimental results demonstrated that, under the same corpus, the fault diagnosis model based on temporal knowledge graph completion achieved an accuracy rate of 96.69%, significantly outperforming other fault diagnosis models. Zhao 24 demonstrated the efficacy of CNC machine fault knowledge graphs in streamlining diagnostic procedures through structured knowledge representation. Wang et al. 25 . conducted a comprehensive analysis of the content characteristics and structural features of CNC machine tool failure cases. They optimized the design of a domain ontology model for machine tool fault diagnosis and constructed a fault diagnosis knowledge graph using Neo4j graph database. This implementation achieved structured storage and visual representation of machine tool fault knowledge, significantly improving the efficiency of machine tool fault diagnosis. Liu et al. 26 . introduced a digital twin-enabled collaborative framework that establishes bidirectional cyber-physical data flows and supports dynamic construction of fault diagnosis knowledge graphs. Through advanced knowledge extraction and fusion techniques. Liu et al. 27 . achieved measurable enhancements in diagnostic accuracy. In knowledge-based question-answering and reasoning, Guo et al. 28 . introduced knowledge graphs into automated machining process decision-making systems to address the challenges of knowledge representation and knowledge heterogeneity that traditional process decision-making methods struggle with. They validated the effectiveness of the proposed system by developing a prototype system. Auer et al. 29 . proposed SciQA, a benchmark test that utilizes the Open Research Knowledge Graph (ORKG), which contains a large amount of data resources. By setting a large number of questions for ORKG to answer, the experimental results show that it achieves excellent performance. While these studies collectively validate the superior capability of knowledge graphs in data correlation representation and relevance-based search and reasoning - effectively addressing challenges in data storage management and knowledge sharing reuse - a critical research gap persists. Current implementations fail to establish explicit mapping relationships between shaving-induced mid-profile concavity error and tooth profile errors. This limitation has prevented effective solutions for tooth profile error issues in gear manufacturing, creating a significant bottleneck for technological advancement in this field. Current research on the quantitative relationship between shaving-induced mid-profile concavity error and tooth profile errors remains remarkably limited, with the majority of existing literature focusing exclusively on the formation mechanisms of shaving-induced mid-profile concavity error. Chen et al. 30 . developed a comprehensive load calculation method for crossed helical gears that simultaneously considers tooth profile errors, modifications, and manufacturing inaccuracies, analyzing how load distribution affects mid-profile concavity formation. Zhang et al. 31 . employed tooth contact analysis (TCA) to investigate the generation mechanisms of these concavity errors through load distribution and contact deformation analysis. Xu 32 established a mathematical model for spur gear tooth surfaces incorporating profile errors, utilizing TCA to examine transmission error characteristics caused by various error factors and their subsequent impact on gear system dynamics. Antoniadis et al. 33 . improved the cutting force model in shaving processes by adapting a gear hobbing simulation algorithm, effectively reducing mid-profile concavity errors. Cao et al. 34 . proposed a helical gear shaving model accounting for installation errors, demonstrating through parametric analysis that increasing cutter tooth count and reducing shaft angles minimizes installation error effects on finished gear accuracy. Based on the principles of gear shaving cutting principle and gear meshing principle, this study derived calculation formulas for shaving allowance and improved gear shaving tooth profile cutting depth error. It analyzed the influence law of radial feed on shaving allowance and gear shaving tooth profile cutting depth error, and quantitatively investigated the mapping relationship between mid-concave error and tooth profile errors in gear shaving. By controlling gear shaving error factors (radial feed), the shaving-induced mid-profile concavity error is reduced, and subsequently, tooth profile errors were minimized based on this error mitigation. Finally, a knowledge graph of gear shaving error factors was constructed using the Neo4j graph database to establish intrinsic correlations among factors. This approach provides a solution to the problem of data silos existing among error factors in gear shaving, and offers decision-making and knowledge support for professionals in the gear manufacturing industry to enhance gear precision and quality. Study on the quantitative relationship between middle-concave error and tooth profile error in gear shaving Calculation of shaving allowance Shaving allowance refers to the thickness of the metal layer left by the previous process (hobbing or shaping) to be removed during gear shaving. Tooth flank allowance refers to the material thickness to be removed on a single tooth flank. The shaving allowance includes the tooth flank allowance, and the shaving allowance is derived from the tooth flank allowance. By controlling the shaving allowance, tooth profile errors can be effectively constrained. Reference 35 establishes the theoretical relationship between the workpiece gear tooth flank allowance and shaving allowance as: 1 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\delta =\frac{\Delta }{{2\sin {\alpha _n}}}$$\end{document} where: \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\varDelta\:$$\end{document} : shaving allowance, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\delta\:$$\end{document} : single-flank allowance, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{\alpha\:}_{n}$$\end{document} : normal pressure angle. In gear shaving operations, the radial feed allocates the flank allowance \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\delta\:$$\end{document} incrementally per cutting stroke, governed by the relation: 2 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${f_r}=\frac{\delta }{{nk}}$$\end{document} where: \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{f}_{r}$$\end{document} : radial feed, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:n$$\end{document} : number of meshing contact points between the shaving cutter and workpiece gear, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:k$$\end{document} : effective cutting coefficient (typically 0.3 ~ 0.7, dependent on tool wear and cutting fluid effectiveness). The theoretical relationship between the shaving allowance and radial feed is derived from Eqs. ( 1 ) and ( 2 ) as follows: 3 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${f_r}=\frac{\Delta }{{2nk\sin {\alpha _n}}}$$\end{document} In the process of gear shaving, the radial feed directly affects the removal efficiency and distribution uniformity of the shaving allowance. The magnitude and distribution of the shaving allowance significantly affect the tooth profile error, making it a critical factor in enhancing gear productivity and ensuring shaving quality. The shaving allowance is also influenced by the precision of pre-shaving gear machining, including factors such as surface roughness of the pre-shaving tooth surface, radial runout of the gear ring, and tooth alignment errors. Under the premise of correcting all pre-shaving errors to meet specified requirements, the shaving allowance should be minimized as much as possible, with its distribution ideally exhibiting a “thicker in the middle and thinner at both ends” pattern 36 . The recommended range for shaving allowance values is presented in Table 1 37 . Table 1 Reference values for shaving allowance. Normal modulus/mm Diameter/mm Cushion/mm 1 ~ 2 < 100 0.01 ~ 0.02 100 ~ 300 0.015 ~ 0.025 > 300 0.02 ~ 0.03 2 ~ 4 < 200 0.02 ~ 0.03 200 ~ 500 0.025 ~ 0.04 > 500 0.03 ~ 0.05 4 ~ 6 100 ~ 400 0.03 ~ 0.05 > 400 0.04 ~ 0.06 Establishing the quantitative relationship between the middle-concave error and tooth profile error in gear shaving The magnitude of the gear shaving tooth profile depth error reflects the value of the shaving concave error 38 . The specific derivation process of the calculation formula for the improved gear shaving tooth profile depth error \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{S}_{M}^{{\prime\:}}$$\end{document} is as follows: The formula for gear shaving tooth profile cutting depth error 39 is shown in Eq. ( 4 ): 4 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${S_M}=\sqrt {{{(z\sin {{\varvec{\Sigma}}} - y\cos {{\varvec{\Sigma}}})}^2}+{{(x+a)}^2}} \cos {\alpha _i}\frac{{{n_x}{{\varvec{\Delta}}}a+\left( {y{n_z} - z{n_y}} \right){{\varvec{\Delta}\varvec{\Sigma}}}}}{{(z\sin {{\varvec{\Sigma}}} - y\cos {{\varvec{\Sigma}}}){n_x}+(x+a)(\cos {{\varvec{\Sigma}}}{n_y} - \sin {{\varvec{\Sigma}}}{n_z})}}$$\end{document} where: \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:a$$\end{document} is the standard center distance; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\varDelta\:a$$\end{document} is the center distance error; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\sum\:$$\end{document} is the axis angle; and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\varDelta\:\sum\:$$\end{document} is the axis intersection angle error; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:x$$\end{document} , \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:y$$\end{document} , \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:z$$\end{document} are the coordinates of the contact point, which can be obtained from the gear shaving meshing line equation. The gear shaving meshing line equation in the spatially fixed coordinate system S ( o-xyz ) is as follows: 5 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\left\{ {\begin{array}{*{20}{l}} {x={r_{b1}}c_{0}^{2} - {u_1}{r_{b1}}\sqrt {1 - c_{0}^{2}} } \\ {y={r_{b1}}\sqrt {1 - c_{0}^{2}} +{u_1}{r_{b1}}c_{0}^{2}} \\ {z=\frac{{r_{{b1}}^{2}\left( {1 - {u_1}} \right)}}{{{p_1}}}} \end{array}} \right.$$\end{document} where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${c_0}=\cos \left( {{u_1}+{\lambda _1}+{\varphi _1}} \right)=\frac{{{r_{b1}}}}{{\sin \Sigma }}\left( {\frac{{\cos \Sigma }}{{{p_1}}} - \frac{{i^{\prime}}}{{{i_{21}}}}} \right)$$\end{document} ; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${u_1}=\tan {\alpha _n}$$\end{document} ; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{\alpha\:}_{n}$$\end{document} is the normal pressure angle at any meshing point of the shaving cutter; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{i}_{21}$$\end{document} and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{i}^{{\prime\:}}$$\end{document} are the transmission ratios of \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{\omega\:}_{2}$$\end{document} to \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{\omega\:}_{1}$$\end{document} and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{v}_{2}$$\end{document} ; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{\lambda\:}_{1}$$\end{document} is the helix angle parameter of the shaving cutter; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{\phi\:}_{1}$$\end{document} is the rotation angle of the shaving cutter; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{r}_{b1}$$\end{document} is the radius of the base circle of the shaving cutter; the helix parameter \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${p_1}={r_{b1}}\cot {\beta _{b1}}$$\end{document} , \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{\beta\:}_{b1}$$\end{document} is the helix angle of the base circle of the shaving cutter. The \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{n}_{x}$$\end{document} , \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{n}_{y}$$\end{document} , and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{n}_{z}$$\end{document} in Eq. ( 4 ) are the three components of the normal vector n in the spatially fixed coordinate system \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:S$$\end{document} ( o-xyz ), which are: 6 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\left\{ {\begin{array}{*{20}{l}} {{n_x}={p_1}{r_{b1}}{u_1}\cos ({u_1} - {\lambda _1})\cos {\varphi _1} - {p_1}{r_{b1}}{u_1}\sin ({u_1} - {\lambda _1})\sin {\varphi _1}} \\ {{n_y}={p_1}{r_{b1}}{u_1}\cos ({u_1} - {\lambda _1})\sin {\varphi _1}+{p_1}{r_{b1}}{u_1}\sin ({u_1} - {\lambda _1})\cos {\varphi _1}} \\ {{n_z}= - r_{{b1}}^{2}{u_1}} \end{array}} \right.$$\end{document} According to the relationship between the center distance and the meshing angle when gears mesh as: 7 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$a=\frac{{a^{\prime}\cos {{\alpha ^{\prime}}_t}}}{{\cos {\alpha _t}}}$$\end{document} The formula for gear shaving cutting force 35 is shown in Eq. ( 8 ): 8 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$F_{c} = \tau _{s} f(1.4\xi + C)\left[ {\frac{{2\sin \alpha f_{r} }}{n}\left( {\frac{{\frac{{2\pi \varepsilon }}{{Z_{1} }} - \tan \alpha _{{at1}} + \tan \alpha ^{\prime}_{t} }}{{\tan \alpha _{{at2}} - \tan \alpha ^{\prime}_{t} }}} \right) + e\left( {\frac{{3\pi \lambda F_{{nc}} }}{2}/\mathop \sum \limits_{{i = 1}}^{m} \frac{{K_{i} }}{{C_{i}^{{3/2}} }}} \right)^{{\frac{2}{3}}} } \right]$$\end{document} where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:f$$\end{document} is the axial feed; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{f}_{r}$$\end{document} is the radial feed; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{\tau\:}_{s}$$\end{document} is the material shear yield value (estimated from material tensile strength); \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\xi\:$$\end{document} is the material deformation coefficient (ratio of material deformation to the original length of the material); \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:e$$\end{document} is the ratio of the slot pitch to the slot width of the shaving cutter chip holding slot; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:C$$\end{document} is determined by the front angle of the tool as shown in Table 2 ; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\lambda =\frac{{1 - \mu _{1}^{2}}}{{\pi {E_1}}}+\frac{{1 - \mu _{2}^{2}}}{{\pi {E_2}}}$$\end{document} , where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{\mu\:}_{j}$$\end{document} is the Poisson’s ratio of the material and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{E}_{j}$$\end{document} is the elastic modulus of the material; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{K}_{i}={K}_{1}^{I}-{K}_{2}^{I}$$\end{document} , where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{K}_{1}^{I}$$\end{document} , \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{K}_{2}^{I}$$\end{document} are the principal curvatures of the involute helical surfaces of the shaving cutter and the workpiece gear, respectively; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{C}_{i}={AM}^{2}=B{N}^{2}$$\end{document} , Where A , B , M , N are obtained based on the literature 35 ; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:m$$\end{document} is the number of meshing points when shaving teeth meshing; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{F}_{nc}$$\end{document} is the gear shaving normal force (obtained from the hydrostatic equations at the meshing point); \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:n$$\end{document} is the spindle speed. Table 2 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:C$$\end{document} Values for different front angles. Tool front angle − 10° 0° 10° 20° \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:C$$\end{document} 1.2 0.8 0.6 0.45 From Eq. ( 8 ), \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{\alpha\:}_{t}^{{\prime\:}}$$\end{document} is obtained as follows: 9 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\alpha ^{\prime}_{t} = \tan ^{{ - 1}} \left[ {\frac{{n\tan \alpha _{{at2}} \left[ {\frac{{F_{c} }}{{\tau _{s} f(1.4\xi + C)}} - e\left( {\frac{{3\pi \lambda F_{{nc}} }}{2}/\mathop \sum \limits_{{i = 1}}^{m} \frac{{K_{i} }}{{C_{i}^{{3/2}} }}} \right)^{{\frac{2}{3}}} } \right] - 2\sin \alpha f_{r} \left( {\frac{{2\pi \varepsilon }}{{Z_{1} }} - \tan \alpha _{{at1}} } \right)}}{{2\sin \alpha f_{r} + n\left[ {\frac{{F_{c} }}{{\tau _{s} f(1.4\xi + C)}} - e\left( {\frac{{3\pi \lambda F_{{nc}} }}{2}/\mathop \sum \limits_{{i = 1}}^{m} \frac{{K_{i} }}{{C_{i}^{{3/2}} }}} \right)^{{\frac{2}{3}}} } \right]}}} \right]$$\end{document} The relationship between the pressure angle of the tooth tip end face and the normal pressure angle of the pitch circle is as follows: 10 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\alpha _{at}}={\cos ^{ - 1}}\left( {\frac{{z\cos \left( {{{\tan }^{ - 1}}\left( {\frac{{\tan {\alpha _n}}}{{\cos \beta }}} \right)} \right)}}{{z+2\cos \beta (1+{x_n})}}} \right)$$\end{document} where: \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{\alpha\:}_{at}$$\end{document} is the pressure angle of the tooth tip circle end face; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{\alpha\:}_{n}$$\end{document} is the normal pressure angle of the pitch circle; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\beta\:$$\end{document} is the helix angle of the helical gear; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:z$$\end{document} is the number of gear teeth; \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{x}_{n}$$\end{document} is the normal displacement coefficient. To simplify the formula expression, only Eq. ( 7 ) is substitute into Eq. ( 4 ) to obtain \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{S}_{M}^{{\prime\:}}$$\end{document} as shown in Eq. ( 11 ): 11 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${S^{\prime}_M}=\sqrt {{{(z\sin {{\varvec{\Sigma}}} - y\cos {{\varvec{\Sigma}}})}^2}+{{(x+\frac{{a^{\prime}\cos {{\alpha ^{\prime}}_t}}}{{\cos {\alpha _t}}})}^2}} \cos {\alpha _i}\frac{{{n_x}{{\varvec{\Delta}}}a+\left( {y{n_z} - z{n_y}} \right){{\varvec{\Delta}\varvec{\Sigma}}}}}{{(z\sin {{\varvec{\Sigma}}} - y\cos {{\varvec{\Sigma}}}){n_x}+(x+\frac{{a^{\prime}\cos {{\alpha ^{\prime}}_t}}}{{\cos {\alpha _t}}})(\cos {{\varvec{\Sigma}}}{n_y} - \sin {{\varvec{\Sigma}}}{n_z})}}$$\end{document} where: \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{a}_{i}$$\end{document} is the normal pressure angle of the instantaneous meshing point on the tooth surface. The remaining parameters are as previously indicated. The gear shaving allowance is calculated using Eq. ( 3 ) based on the radial feed and the values of corresponding processing parameters. An unreasonable selection of the shaving allowance directly leads to the tooth profile error characterized by the “incomplete shaving” phenomenon. The gear shaving tooth profile cutting depth error is solved using Eq. ( 11 ). By controlling the magnitude of the radial feed, the gear shaving tooth profile cutting depth error can be reduced, thereby decreasing the shaving concave error. Additionally, by controlling the radial feed and selecting a reasonable shaving allowance according to Table 1 , the tooth profile error of the workpiece gear is reduced, and the tooth profile accuracy can be improved after shaving. Knowledge graph construction Knowledge graph construction process Knowledge graph construction methods are categorized as top-down and bottom-up 40 . Top-down approaches are often suitable for situations where domain knowledge is clear, data size is small, and domain knowledge graph has stringent knowledge specialization and accuracy. Since the knowledge graph of shaving error influencing factors constructed this time is a domain knowledge graph, the knowledge graph in this paper chooses the top-down construction method. The construction of knowledge graph is logically divided into two parts: pattern layer construction and data layer construction. In order to ensure that it can be standardized expression and accurate access to the knowledge of shaving error influencing factors, its knowledge graph construction process is as follows (the overall framework is shown in Fig. 1 ): 1) Knowledge classification. An analysis of the knowledge within the field of shaving errors is conducted, categorizing it into two distinct types: tooth profile error and tooth profile concavity error, along with the error factors contributing to the generation of these two types of errors, thereby establishing a clear hierarchical structure of knowledge. 2) Pattern layer construction. Based on knowledge classification, the concepts, origins, mechanisms, and interrelationships of shaving error factors are systematically analyzed. Conduct ontology construction for the knowledge concepts and relationships of gear shaving error factors. Through knowledge concept mapping, obtain the pattern layer. 3) Data layer construction. The data layer constitutes a fundamental component of the knowledge graph. Initially, the knowledge pertaining to the influencing factors of gear shaving errors is collected and processed in accordance with knowledge classification. Subsequently, guided by the structural hierarchy and rules established in the pattern layer, the data layer is constructed by extracting ontological concepts and attributes from the data sources. This process instantiates the completed pattern layer, transforming it into a structured data representation. The construction of the data layer is ultimately accomplished under the guidance of the pattern layer. 4) knowledge graph generation. Select the appropriate storage method to visualize the knowledge graph. Fig. 1 Overall framework for constructing the knowledge graph of gear shaving error factors. Knowledge classification and pattern layer mapping Gear shaving errors are diverse in type, and the factors contributing to these errors are numerous and intricately interrelated. Among these, the shaving concave error and tooth profile error are the most common and critical types of errors. Therefore, gear shaving errors are categorized into two hierarchical levels: shaving concave error and tooth profile error. The corresponding influencing factors of these two types of errors, such as shaving allowance, pre-shaving gear accuracy, shaving installation error (axis intersection angle error), degree of overlap, radial feed, shaving cutter rotational speed, and the number of contact points between tooth surfaces, are classified into a tree-like structure, as in Fig. 2 . In this structure, the detailed hierarchical levels of knowledge classification are represented by solid lines, and the classification terms within the solid-line boxes are defined as concepts. Based on these knowledge concepts or classification hierarchies, three types of relationships are defined: “has subset”, “belongs to category”, and “contains”, with the relationship indicated by dashed lines in Fig. 2 . In the tree-like classification, each node represents a feature or attribute, while each leaf node represents a category or label. Specifically, in Fig. 2 , each node corresponds to different attributes of gear shaving errors, and each leaf represents distinct types of gear shaving errors along with their associated influencing factors. This classification method effectively captures complex relationships and hierarchical structures, clearly delineating the interconnections among various categories. It enhances the organization and management efficiency of data knowledge and provides precise data information (comprehensive in content and accurate in relationships) for the mapping of pattern views. Fig. 2 Knowledge classification of influencing factors for gear shaving errors. Based on the aforementioned knowledge classification of influencing factors for gear shaving errors, the classified knowledge is mapped into a pattern view, as illustrated in Fig. 3 a. Considering the complexity of the gear shaving process, the property graph model is adopted for pattern view design, which offers two significant advantages. First, the labels in property graph model are used to group nodes into sets, where all nodes with the same label belong to the same set. Querying these sets instead of the entire graph makes query statements easier to write and more efficient. Second, it effectively handles non-binary relationships by creating a new node type for the relationship and introducing node attributes for its different, enabling the materialization of any relationship. For example, given the relationship among objects A, B, and C to represent the information “C is located between A and B”, a new node type, Between_Relationship , is introduced with two attributes: has_object (A and B) and has_between_object (with value C). Correspondingly, in Fig. 3 a, the Between_Degree of overlap Relationship has two attributes: has_object (with values Shaving concave error and Axis Angle ) and has_between_object (with value Degree of overlap ). The pattern view of the knowledge graph for gear shaving error factors accurately describes and characterizes the formation mechanism of tooth profile errors during the gear shaving process. Based on the pattern view, the pattern layer of knowledge graph is designed as shown in Fig. 3 b, which is subdivided into six hierarchical levels according to hierarchical relationships. Among them, levels 1, 2, 3, and 4 pertain to the shaving concave error hierarchy, while levels 2, 5, and 6 belong to the tooth profile error hierarchy. The pattern view of the knowledge graph for gear shaving error factors allows for the continuous creation of new labels, nodes, and relationships, as well as the addition of new knowledge, enabling continuous expansion, iterative updating, and enrichment of the pattern layer. This provides a guarantee for constructing the data layer of the knowledge graph for gear shaving error factors. Subsequently, the knowledge graph data layer is constructed based on the knowledge graph pattern layer. Fig. 3 ( a ) Pattern view of the knowledge graph for gear shaving error factors. ( b ) Pattern layer under the pattern view of the knowledge graph for gear shaving error factors. Data layer construction and knowledge graph generation The data layer of the knowledge graph for gear shaving error factors primarily originates from multi-source heterogeneous knowledge, which requires a unified processing approach. The processing flow is illustrated in Fig. 4 . The knowledge of gear shaving error factors exists in a multi-source heterogeneous form, manifested as knowledge materials such as gear parameter attribute description data, processing technology standard data, process flow data, and literature materials, which are distributed in different sources such as databases, tables, and texts, and exist in three forms: unstructured data, semi-structured data, and structured data, as shown in the knowledge acquisition part of Fig. 4 . Appropriate extraction methods are selected based on the structural form of the knowledge data. Given the highly specialized nature and relatively uniform format of knowledge in the gear shaving error domain, various ontological knowledge is modularly represented in machining documents. Structured data, characterized by well-defined fields and relationships, is stored in databases, allowing for the direct extraction of entities and relationships. For instance, gear parameter attribute descriptions may reveal gear types (such as spur gears, helical gears, bevel gears, etc.), the materials used for these gear types (such as steel, cast iron, etc.), and the precision grades that the gear machining must satisfy. Unstructured data refers to information without fixed formats or clear structures, stored in forms such as text. Knowledge extraction from unstructured data adopts the template matching method 41 , which offers advantages of easy modification, straightforward comprehension, and relative ease of implementation for small-scale datasets. Semi-structured data, which falls between structured and unstructured data, typically exists as tabular lists and is extracted using rule-based methods. Entities obtained through knowledge extraction are separated as individual nodes without inherent associations. Relationship extraction is employed to uncover the associative links between entities, thereby constructing semantic bridges within the entity framework 42 . The specific processes of knowledge extraction and relationship establishment are shown in Figs. 5 and 6 . The extracted entities and relationships are then reformulated into relational triplets in the form of “head entity-relation-tail entity” as depicted in the knowledge processing section of Fig. 4 . Fig. 4 Unified processing flow of knowledge on gear shaving error factors. From the semantic point of view of the knowledge graph, the unification process is in the form of a ternary \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:(h,r,t)$$\end{document} , where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:h$$\end{document} is the head entity, \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:r$$\end{document} is the relation, and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:t$$\end{document} is the tail entity 43 .For the textual unstructured document data shown in Fig. 5 , three concepts can be extracted, namely, “installation error”, “axis intersection angle error”, and “shaving concave error”, and then based on the relationship between concepts in Fig. 2 , two sets of structured triples can be obtained. For the semi-structured tabular data shown in Fig. 6 , two types of concepts, “error name” and “error factor” or “error name” and “solution”, can be extracted to form a ternary group with error factor analysis and error solution relationships. Fig. 5 Example of unified processing of text unstructured document data. Fig. 6 Example of unified processing of semi-structured tabular data. Taking the knowledge graph pattern layer as a guide, in accordance with the above knowledge unification processing process, to get part of the relationship ternary samples as shown in Table 3 , all the collected and processed ternary knowledge is stored as a CSV file, as the structured data generated by the knowledge graph. The Neo4j graph database 44 was chosen for the storage of the knowledge graph, and the structured CSV files were written into the Neo4j graph database using the Cypher language to achieve the visualization of knowledge on the influencing factors of gear shaving errors, as shown in Fig. 7 . Efficient data retrieval and querying of Neo4j database with the help of Cypher query language. Traditional information retrieval is accomplished through keyword matching, and the search results are only the surface information of natural language, not deep into the semantic information. The knowledge graph represents the knowledge of shaving error influencing factors in the form of a graph, which can accurately and intuitively express the correlation relationship between entities. Take “Tooth profile error” as an example, when the user needs to query the attribute information related to tooth profile error, the query using Cypher language is as follows: MATCH p=(n: Gear shaving error{name:‘Tooth profile error’})<-[r]-> (m) RETURN p. The query result is shown in Fig. 8 , the query time is only 7ms, you can double-click the feature or node to view the information associated with it, thus only need to search for the name of the error to get the cause of the error, the error factor, the correlation factor of the error factor, and the error factor from the source of the error, and gives the current more mature solution, etc., which improves the efficiency of the retrieval and the depth of the information association. Table 3 Partial sample of relational triad. \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:h$$\end{document} \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:r$$\end{document} \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:t$$\end{document} Shaving concave error Contain(Is_impact, Has_kind) Degree of overlap Tooth profile error Contain(Is_impact, Has_kind) Number of teeth Degree of overlap Correlation(Positive/negative)(Is_Impact, Limited_by) Axis intersection angle error Degree of overlap Increase/decrease (Is_Impact, Limited_by) Shaving concave error Shaving concave error Increase/decrease (Is_Impact) Tooth profile error Fig. 7 Visualization model of knowledge graph of gear shaving error factors. Fig. 8 Results of information query on gear shaving error factors. Case analysis and application Case study verification When verifying the influence of the variations in the concave error during gear shaving on the tooth profile error, the fundamental parameters of the shaving cutter and the workpiece gear are selected as presented in Table 4 . The gear shaving parameters are chosen according to reference 45 as presented in Table 5 . By substituting the values of the processing parameters from Tables 4 and 5 into Eqs. ( 3 ) and ( 11 ), the calculated results for the shaving allowance \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\varDelta\:$$\end{document} and the gear shaving tooth profile cutting depth error \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{S}_{M}^{{\prime\:}}$$\end{document} are obtained, as shown in Table 5 . Table 4 Parameters of shaving cutter and workpiece gear. Parameters Number of teeth Normal modulus/mm Pressure angle/° Helix angle/° Tooth tip circle diameter/mm Displacement coefficient Material Shaving cutter 41 5.35 20° 11° 240.5 − 0.3744 W18Cr4V Workpiece gear 17 5.35 20° 0° 101.7 0.5485 20CrMnTi Table 5 The calculation values of \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{\varvec{S}}_{\varvec{M}}^{\varvec{{\prime\:}}}$$\end{document} and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\varDelta\:$$\end{document} under different gear shaving machining parameters. Parameters Degree of overlap ( \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\epsilon\:$$\end{document} ) Radial feed ( \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{f}_{r}/(mm/times)$$\end{document} ) Spindle speed ( \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:n/(\text{r}/\text{s})$$\end{document} ) Axial feed ( \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:f/(mm/stroke)$$\end{document} ) Axis intersection angle error ( \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\varDelta\:\sum\:/^\circ\:$$\end{document} ) Value 1.3 ~ 1.9 0.02 ~ 0.05 8 0.2 0.2°~0.5° \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{S}_{Mmin}^{{\prime\:}}$$\end{document} 5.97308 μm \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\varDelta\:$$\end{document} 0.01368 ~ 0.034202 mm Under the conditions that the gear shaving degree of overlap is maintained between 1.3 and 1.9 and the axis intersection angle error is kept within the range of 0.2° to 0.5°, the study explores the influence of different radial feed on the gear shaving tooth profile cutting depth error and the shaving allowance during the gear shaving process. The comparative results of the gear shaving tooth profile cutting depth error and the shaving allowance are illustrated in Fig. 9 . Fig. 9 Comparative analysis of the impact of \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{f}_{r}$$\end{document} on \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:{S}_{M}^{{\prime\:}}$$\end{document} and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\:\varDelta\:$$\end{document} . When the radial feed is at 20 ~ 50 μm, the gear shaving tooth profile cutting depth error is minimized, as shown in Fig. 9 (a). The gear shaving tooth profile cutting depth error directly reflects the middle-concave error in gear shaving, indicating that the middle-concave error is minimized under these conditions. The reason for this phenomenon is that too small a radial feed will result in insufficient depth of cut, and the shaving cutter will not be able to adequately correct the pre-machining errors on the gear tooth surface of the workpiece (e.g., trace amount of concavity remaining before shaving), resulting in the accumulation of tooth profile middle-concave error. In addition, too small a radial feed will reduce the effective contact area between the shaving cutter and the workpiece gear tooth surface, the cutting force is concentrated on a few cutting edges, resulting in uneven removal of material in the middle position of the workpiece gear tooth surface, which makes the tooth profile middle-concave error intensify. And too large radial feed will significantly increase the cutting force between the shaving cutter and the workpiece gear, shaving cutter in the high-pressure elastic deformation will occur, especially the tooth part of the cutter in the high-pressure role due to uneven force will be bending to the sides, the deformation of the teeth will lead to insufficient actual cutting depth of the cutting edge of the shaving cutter in the middle of the tooth surface of the workpiece gear, forming the middle of the tooth concave. At the same time, in the high-pressure cutting, shaving cutter and workpiece gear in the vicinity of the pitch circle engagement, at this time the lowest cutting speed (close to the pure rolling), normal cutting force is the largest, resulting in the workpiece gear near the pitch circle region is extruded deformation (elastic deformation is dominated by), the cutting is completed, the workpiece gear tooth surface of the middle position of the material due to the release of the cutting force and rebound, the actual removal of the amount of reduction, the formation of tooth profile in the concave. In addition, excessive radial feed accelerates the wear of the shaving cutter’s cutting edge, and the worn shaving cutter is unable to maintain an accurate tooth shape, further expanding the tooth profile middle-concave error. When the radial feed is at 20 ~ 50 μm, the shaving allowance is at 0.01368 ~ 0.034202 mm. According to the shaving allowance Table 1 , in Fig. 9 (b), when the radial feed is 20 ~ 43 μm, the shaving allowance is 0.01368 ~ 0.02941 mm, which obviously does not meet the reference value of shaving allowance; when the radial feed is 44 ~ 50 μm, it meets the reference value of shaving allowance. The reason is that the radial feed is too small, the shaving process cutting depth is insufficient, the actual cutting effect is weakened, resulting in tooth root, tooth top and other complex contour area because the cutting edge is not effective cutting, local residual margin is not completely removed and shaving before the remaining tooth pitch error, tooth ripple degree can’t be corrected, affecting the final tooth shape accuracy. At the same time, the radial feed is too small will appear shaving cutter only friction extrusion rather than cutting, will lead to the workpiece gear tooth surface hardening or plastic deformation, affecting the tooth surface accuracy. In addition, the radial feed is too small cutting force will be insufficient, the shaving cutter on the workpiece gear tooth middle position of the material extrusion effect is greater than the cutting effect, resulting in the middle of the tooth surface material buildup, the formation of tooth profile in the concave. In short, the radial feed is too small will lead to shaving residual removal is not complete (especially the root and top of the tooth area), processing efficiency plummeted, triggering tooth profile in the convex, pressure angle distortion and other tooth profile errors, and tooth quality deterioration, seriously reducing the accuracy of the tooth surface. Radial feed is too large, there will be a sharp increase in shaving cutting force, so that the shaving cutter and the workpiece gear mesh instability, resulting in shaving cutter deformation (the actual depth of cut is less than the theoretical value, especially in the root and the top of the tooth area of the margin is not effectively removed). At the same time, the cutting heat is concentrated and difficult to dissipate under large feed, which easily leads to tooth surface burns and processing vibration, making the tooth surface roughness deterioration, greatly reducing the precision of tooth shape. In addition, too large radial feed may lead to unbalanced cutting force on both sides of the shaving cutter, triggering pressure angle asymmetry error; radial feed is too large to exacerbate the axial cutting force, resulting in shaving cutter axial runout, tooth helix angle cyclic fluctuations, resulting in tooth direction error. In short, the radial feed is too large to lead to uneven removal of shaving allowance, triggering a significant increase in tooth profile errors (tooth concavity, pressure angle deviation and tooth direction error). Therefore, the reasonable choice of shaving allowance during shaving processing effectively solves the tooth profile error of the phenomenon of “incomplete shaving”. In summary, by jointly considering the intersection of the gear shaving tooth profile cutting depth error and shaving allowance, the reasonable range for the radial feed is determined to be 44 ~ 50 μm. Under these conditions, the tooth profile middle-concave error during gear shaving is significantly reduced, effectively minimizing the tooth profile error and improving tooth profile accuracy. Practical application of the knowledge graph for gear shaving error factors Design of a question-answering system based on knowledge graphs for gear shaving error factors Among the various applications of knowledge graphs, knowledge question answering (QA) is one of the core applications, which assists users in obtaining the desired answers from the knowledge graph through natural language dialogue 46 . For instance, Zhao et al. 47 . developed a QA system for a healthy diet knowledge graph by using template matching and a Naive Bayes model to identify the types of user questions and retrieve the corresponding answers from the knowledge graph. This system can effectively answer questions about dietary recommendations for certain diseases and the functions of various foods. The design of the QA system for gear shaving error factors comprises the following four components. First, correctly identifying the entity types in the question and distinguishing the user’s intent to classify the question. Second, parse the user’s question according to the question classification and generate query statements for the knowledge graph. Third, generate corresponding natural sentences based on the retrieved content and output them. The design framework of the knowledge QA system is shown in Fig. 10 . Fig. 10 Design framework of the knowledge QA system. When a user inputs a question statement, the Aho-Corasick Automaton (AC automaton) multi-pattern matching method is employed to expedite the identification of entities and their types within the user’s question. A domain-specific knowledge dictionary tree is constructed based on these entities, and the user’s input sentence is matched against this tree to extract the entities and their corresponding types embedded in the question. Additionally, the user’s question intent is discerned based on question feature words, which are words that represent the user’s question and are derived from a predefined set of feature words as well as user-defined words added due to the absence of feature words. Ultimately, the question is classified by integrating the aforementioned methodologies. Each type of question is defined with a template containing variables, enabling the generation of distinct Cypher statements tailored to different question types. Cypher, a declarative query language used in the Neo4j graph database, facilitates efficient querying, updating, and management of the knowledge graph. It excels in expressing highly complex database queries with ease. For instance, when a user inquires about questions of the type “what error factors are included in gear shaving error”, the template for generating Cypher query statements is configured as follows: MATCH(m: gear_shaving_errors)-[r: gear_shaving_errors_error_factors]-> (n: error_factors). Where m.name= ‘shaving_concave_error’ Return m.name, r.name, n.name. In the template, ‘shaving concave error’ refers to the gear shaving error identified from the user’s question. By querying the Cypher graph query language, the desired answers are obtained, and a template-based approach is employed to generate response statements. Different question types invoke different templates, and the corresponding responses are generated and delivered to the user. For instance, when answering the question of what error factors are included in gear shaving error, the template is set as “The error factors included in ‘shaving concave error’ are ‘radial feed speed’”. In this template, ‘shaving concave error’ represents the gear shaving error mentioned in the question, and ‘radial feed speed’ represents the corresponding error factor retrieved through the Cypher graph query. Implementation of a QA system based on the knowledge graph of gear shaving error factors The knowledge-based question-answering system was developed using Python language, with the backend using the Django framework and the frontend using the Vue framework. The backend interacts with the Neo4j database using the Py2neo package, while the frontend visualizes the knowledge graph using the Neovis.js package. Communication between the frontend and backend is facilitated by Axios. The system comprises five modules: the QA module, the frequently asked questions module, the feature word management module, the knowledge graph management module, and the visualization of QA results module. The QA module provides basic question answering functionality, similar to the search function in common APPs. The frequently asked questions module offers a reference list of the most frequently asked questions and their corresponding answers. The feature word management module supports user-defined feature words to accommodate different questioning habits, with the interface shown in Fig. 11 . The knowledge graph management module allows administrators to input Cypher statements for data maintenance in the knowledge graph, including the addition, deletion, and modification of entities. The visualization of QA results module is divided into two parts: first, the display of QA results, where users can directly input questions on the homepage, and the system returns all related results based on their needs, with supported question types listed in Table 6 ; second, feedback on QA results, enabling users to provide feedback on the quality of answers for subsequent data updates and improvement of the QA system’s response quality. For instance, when a user randomly inputs a question about the influence of shaving installation error on gear shaving error, the QA result visualization interface is shown in Fig. 12 . Fig. 11 Feature word management interface. Table 6 Question types of the QA system. Known entities Target entity of the question Shaving error Shaving concave error Tooth profile error Tooth tip convexity Shaving concave error Degree of overlap Degree of overlap Error factors Contact points Shaving concave error Shaving installation error Axis intersection angle error Machine-tool motion parameters Spindle speed Shaving cutting parameters Radial feed Modification coefficient Shaving concave error Modification coefficient Shaving meshing angle 15° Shaving meshing angle Shaving cutting dosage Shaving cutter speed Pitch-deviation error Tooth profile error Center-distance error Shaving installation error Asymmetric tooth profile Tooth profile error Shaving allowance Tooth profile error Shaving allowance Pre-shaving gear accuracy Induced curvature Shaving concave error Degree of overlap Shaving cutter parameters Fig. 12 Visualization interface of QA results. In summary, the implementation of the QA system based on the knowledge graph of gear shaving error factors better demonstrates the unified management of domain knowledge related to gear shaving error factors through the knowledge graph. It effectively addresses the issues of missing correlations among error factors and the silo effect, achieving the visualization of error factor knowledge. The visualization results in Fig. 12 present the error factors and their associated factors involved in installation errors during gear shaving, along with the mechanisms by which the joint effect of these factors contribute to shaving errors. Additionally, the system provides solutions to mitigate gear shaving errors caused by installation errors, enabling users to comprehensively and clearly understand the process by which this error source on the generation of concave error and tooth profile error in shaving. This allows the system to recommend reasonable machining parameter settings, avoiding gear shaving errors caused by incorrect installation parameters (such as axis intersection angle error). If gear shaving errors are inevitably present due to some reasons, the provided solutions can guide users to quickly analyze the causes of the errors and efficiently resolve them, thereby significantly improving gear production efficiency and enhancing the economic benefits for users or enterprises. However, the error factors selected in the construction of the knowledge graph of gear shaving error factors only consider the most influential ones on gear shaving errors, based on literature, experimental data, and data from enterprise quality inspection and process parameter adjustment. The consideration of error factors is not yet comprehensive, and future research should include all potential factors contributing to gear shaving errors to enhance the practicality and accuracy of the knowledge graph. Furthermore, this study focuses on helical gears, and the experimental results are only applicable to the production and machining of helical gears, as they are widely used due to their smooth transmission, low noise, and strong load-bearing capacity. Similarly, in future research, studies on gear shaving errors of other types of gears will be continued. Conclusions As a common error factor affecting both gear shaving tooth profile cutting depth error and shaving allowance, the radial feed exhibits an optimal range of 44 ~ 50 μm. Within this range, the gear shaving tooth profile cutting depth error is minimized while the shaving allowance meets process standards. Experimental trials demonstrate that workpiece gears processed under these conditions show simultaneous reductions in tooth profile middle-concave error and tooth profile error, leading to improved gear profile accuracy. The knowledge graph of gear shaving error factors, constructed using Neo4j graph database, integrates and shares previously fragmented data on tooth profile errors in gear shaving processes. This provides gear manufacturing professionals with more comprehensive, accurate, and timely information. The knowledge graph visually reveals complex hidden relationships among gear shaving error factors. By leveraging Neo4j’s powerful query language, Cypher, users can efficiently extract required information, perform relationship discovery, and conduct data analysis. This facilitates cross-domain knowledge collaboration and communication, enabling experts from different fields to work synergistically with enhanced efficiency. Furthermore, this knowledge graph of gear shaving error factors provides a crucial data foundation and knowledge support for the intelligent application of shaving processes. It is anticipated that, through the development of deep learning and reasoning mechanisms based on the gear shaving error factor knowledge graph, the level of intelligence in gear shaving processing can be significantly enhanced in future research.
