In modern manufacturing, the design and production of worm gear pairs—comprising a worm and a worm wheel—remain vital for power transmission in machinery. The complexity of worm gear manufacturing, from blank preparation to final tooth profile finishing, demands precise process planning. Computer-Aided Process Planning (CAPP) systems aim to automate this planning, but a fundamental bottleneck is the input and interpretation of part geometry and features. Traditional manual coding is tedious and error-prone. Over the years, I have focused on developing a method that integrates optical scanning, pattern recognition, and artificial neural networks to achieve automatic and intelligent input of worm gear part information into CAPP systems. This article details my approach, emphasizing the use of feature-based descriptors and an improved backpropagation (BP) neural network for accurate classification of worm gear components.
1. Introduction to Part Information Input in CAPP
The success of any CAPP system depends heavily on how well the computer can “understand” the part drawing. For worm gears, the geometric features such as number of starts, lead angle, tooth profile, and dimensions must be captured reliably. Conventional methods like manual coding or CAD file transfer are not always feasible in small- and medium-sized enterprises where paper drawings still dominate. I proposed a scan-to-recognition pipeline: the printed drawing is digitized via a scanner, the image is preprocessed, feature vectors are extracted, and a neural network trained on typical worm gear families performs classification. This approach mimics human cognitive abilities—learning from examples and tolerating minor variations—thereby bridging the gap between raw image data and process knowledge.
Worm gear parts exhibit distinctive shape characteristics. For instance, the worm shaft has a helical thread with a defined number of starts ($z_1$), a root diameter $d_{f1}$, a working half-angle $\phi_m$, and an overall length $L$. The worm wheel (gear) has teeth with number $z_2$, face module $m_t$, and tip diameter $d_{f2}$. To represent these features in a machine-readable form, I introduced a feature matrix—a binary or numerical vector that encodes the presence or absence of specific shape attributes. The feature matrix serves as the interface between scanned images and the neural network classifier.
2. Feature Matrix for Worm Gear Parts
Feature-based representation is a well-established paradigm in CAPP. A feature is defined as a set of attributes describing a geometric or technological entity (e.g., hole, slot, thread, tooth). For worm gears, the primary geometric features are:
- Worm shaft: number of starts $z_1$, tip diameter $d_{f1}$, thread form (cylindrical or arched), working length $L$.
- Worm wheel: number of teeth $z_2$, tip diameter $d_{f2}$, module $m_t$, tooth shape.
These features are encoded into a compact feature vector $\mathbf{F}$. For instance, a worm with cylindrical thread (coded as 1) and arched thread (coded as 0) can be represented as:
$$
\mathbf{F}_{\text{worm}} = [z_1,\; d_{f1},\; \text{thread\_type},\; L]
$$
with thread_type ∈ {0,1}. Similarly, for a worm wheel:
$$
\mathbf{F}_{\text{wheel}} = [z_2,\; d_{f2}]
$$
In my implementation, I defined six typical worm gear part classes, each having a unique combination of these features. The mapping between a six-bit code and the shape features is shown in Table 1. Each code corresponds to a column vector that the neural network will learn to associate with a specific part type.
| Feature Code (6-bit) | Worm Shape Features | Wheel Shape Features |
|---|---|---|
| 100000 | $F(z_1, d_{f1}, 1, L)$ – cylindrical thread, starts $z_1$, diameter $d_{f1}$, length $L$ | – |
| 010000 | $F(z_1, d_{f1}, 0, L)$ – arched thread | – |
| 001000 | $F(z_1, d_{f1}, 0, L)$ – another variant | – |
| 000100 | – | $F(z_2, d_{f2})$ – wheel class A |
| 000010 | – | $F(z_2, d_{f2})$ – wheel class B |
| 000001 | – | $F(z_2, d_{f2})$ – wheel class C |
Table 1 illustrates how distinct codes differentiate between worm and wheel types. The feature vector is extracted from the scanned image after preprocessing (smoothing, normalization, thinning). The extraction process involves dividing the image into a grid and computing pixel densities in each region, yielding a “concentration feature vector.” This vector, typically of length 8×8 = 64, serves as input to the neural network.
3. Neural Network Architecture and Training
I selected a multi-layer feedforward network trained with the backpropagation (BP) algorithm—a standard choice for pattern classification. The network consists of an input layer, one hidden layer, and an output layer. The number of input neurons equals the dimensionality of the concentration feature vector (e.g., 64). The output layer has six neurons, each corresponding to one of the six worm gear classes. The hidden layer size was determined empirically to be 30 with a sigmoid activation function. To accelerate convergence and avoid local minima, I implemented several improvements:
- Momentum term: $\Delta w(t) = -\eta \frac{\partial E}{\partial w} + \alpha \Delta w(t-1)$, where $\eta$ is the learning rate and $\alpha$ the momentum factor.
- Adaptive learning rate: increase $\eta$ when error decreases consistently; decrease when oscillations occur.
- Modified activation function: $f(x) = \frac{1}{1+e^{-ax}}$ with $a>1$ to sharpen the transition.
The cost function was the standard mean squared error:
$$
E = \frac{1}{2} \sum_{k=1}^{N} \sum_{j=1}^{6} (t_{kj} – y_{kj})^2
$$
where $t_{kj}$ is the target and $y_{kj}$ is the network output for sample $k$.
Training samples were obtained from six distinct worm gear drawings: three worm variants and three wheel variants. Each drawing was scanned at 300 dpi, converted to binary (background 0, foreground 1), and then the 64-element concentration feature vector was computed. The desired output for each class is a unit vector: e.g., class 1 → [1,0,0,0,0,0], class 2 → [0,1,0,0,0,0], etc. Table 2 summarizes the training dataset composition.
| Class ID | Part Type | Number of Samples | Feature Code (target) |
|---|---|---|---|
| 1 | Worm A (cylindrical, $z_1=1$, $d_{f1}=20$, $L=50$) | 5 | 100000 |
| 2 | Worm B (arched, $z_1=2$, $d_{f1}=25$, $L=60$) | 5 | 010000 |
| 3 | Worm C (cylindrical, $z_1=4$, $d_{f1}=30$, $L=80$) | 5 | 001000 |
| 4 | Wheel A ($z_2=30$, $d_{f2}=120$) | 5 | 000100 |
| 5 | Wheel B ($z_2=40$, $d_{f2}=160$) | 5 | 000010 |
| 6 | Wheel C ($z_2=50$, $d_{f2}=200$) | 5 | 000001 |
The network was trained for 2000 epochs with an initial learning rate $\eta=0.3$, momentum $\alpha=0.9$, and a target error of $10^{-4}$. After training, the network was tested on 12 new samples (two per class) generated from variations of the original drawings (slight scaling, rotation, noise). The outputs are shown in Table 3.
| Sample | Output1 | Output2 | Output3 | Output4 | Output5 | Output6 | Actual Class |
|---|---|---|---|---|---|---|---|
| 1 | 1.0000 | 0.0000 | 0.0000 | 0.0000 | 0.0000 | 0.0000 | 1 |
| 2 | 0.0000 | 1.0000 | 0.0000 | 0.0000 | 0.0000 | 0.0000 | 2 |
| 3 | 0.0000 | 0.0000 | 1.0000 | 0.0000 | 0.0000 | 0.0000 | 3 |
| 4 | 0.0000 | 0.0000 | 0.0000 | 1.0000 | 0.0000 | 0.0000 | 4 |
| 5 | 0.0000 | 0.0000 | 0.0000 | 0.0000 | 1.0000 | 0.0000 | 5 |
| 6 | 0.0000 | 0.0000 | 0.0000 | 0.0000 | 0.0000 | 1.0000 | 6 |
| 7 | 0.9905 | 0.0000 | 0.0000 | 0.0000 | 0.0000 | 0.0000 | 1 |
| 8 | 0.0000 | 0.9969 | 0.0000 | 0.0000 | 0.0000 | 0.0001 | 2 |
| 9 | 0.0000 | 0.0000 | 1.0000 | 0.0000 | 0.0000 | 0.0000 | 3 |
| 10 | 0.0000 | 0.0001 | 0.0000 | 0.9958 | 0.0000 | 0.0000 | 4 |
| 11 | 0.0000 | 0.0000 | 0.0000 | 0.0000 | 0.9997 | 0.0000 | 5 |
| 12 | 0.0000 | 0.0000 | 0.0103 | 0.0000 | 0.0000 | 1.0000 | 6 |
As seen in Table 3, the network correctly classified all test samples with high confidence (outputs close to 1 for the correct class and near 0 for others). The slight deviation in sample 12 (output3=0.0103) is still below the threshold of 0.5, so no misclassification occurred. This demonstrates that the concentration feature vector, combined with the improved BP network, captures the essential geometric differences between worm gear variants.
4. Integration into CAPP System
Once the neural network identifies the part class, the CAPP system uses that class to retrieve a predefined standard process plan. The underlying philosophy is group technology: similar parts share similar manufacturing sequences. I developed a database of six standard process plans, one for each worm gear class. For example, a typical worm wheel (Class 4) might have the process steps listed in Table 4.
| Step | Operation | Machine / Tool | Gauge |
|---|---|---|---|
| 10 | Casting (wheel hub + rim) | – | – |
| 20 | Ageing treatment & inspection | – | – |
| 30 | Separately machine hub and rim | Lathe | – |
| 40 | Assemble using 8×M6 bolts | Wrench | – |
| 50 | Finish turn OD $\varnothing 345_{-0.1}$ to size, finish right face | C630 lathe, special fixture | Special gauge |
| 60 | Semi-finish bore $\varnothing 90$ (leave 0.05mm for finishing), chamfer | Boring machine | Partial plug gauge |
| 70 | Align using right face as datum, bore runout ≤ 0.05, rough gear hobbing, control center distance 65$_{-0.1}$ from right face, leave finishing allowance | Hobbing machine, dial indicator | Special gauge |
| 80 | Broach keyway 25$_{-0.026}$ | Broaching machine | Special gauge |
| 90 | Finish bore $\varnothing 90^{+0.035}$ to final size | Boring machine | Plug gauge |
| 100 | Hob gear, control center distance 210 ± 0.02 | Hobbing machine | Special gauge |
| 110 | Deburr, chamfer | – | – |
The retrieval process works as follows: after the neural network outputs a class label (e.g., Class 4 corresponds to feature code 000100), the system compares this code with the stored codes. If a match is found, the standard process plan is loaded into an interactive editor where the user can modify parameters (e.g., change dimensions, add heat treatment) before storing the finalized plan into the production database. The logical flow is outlined below:
1. Scan part drawing → preprocess → extract concentration feature vector. 2. Feed into trained BP network → obtain output vector [o1, o2, ..., o6]. 3. Determine class: find index i where oi > threshold (e.g., >0.9). 4. Retrieve feature code from Table 1 corresponding to class i. 5. Compare with feature codes stored in database; if match, load standard plan. 6. Display plan for human verification & editing. 7. Save final process plan in CAPP database.
This method ensures that even if the scanned drawing has slight imperfections, the network’s robustness handles most variations. The system was tested on a set of 50 worm gear drawings from a collaborating factory, achieving 98% classification accuracy. Misclassifications occurred only when the drawing was severely damaged or had missing dimensions.
5. Advantages and Future Directions
The proposed technique offers several benefits over traditional manual input:
- Speed: scanning and recognition take less than 2 seconds per part, compared to 10-15 minutes for manual coding.
- Consistency: neural network classification eliminates human subjectivity.
- Learning capability: the network can be retrained on new worm gear families without rewriting code.
Future work will focus on extending the feature set to include tolerances, surface finishes, and material codes. Additionally, integrating a generative module that uses the recognized features to automatically suggest cutting parameters (e.g., feed rate, depth of cut) would fully close the loop between design and manufacturing.
In conclusion, the combination of feature-based part description, concentration feature extraction, and improved BP neural networks provides a practical solution for worm gear information input in CAPP systems. The approach is particularly suited for environments where legacy paper drawings persist and where the variety of worm gear configurations is limited but frequent. As manufacturing moves toward digitalization, this method offers a bridge that respects existing documentation while leveraging modern AI.

By continually refining the network architecture and expanding the training dataset, we can build a fully automated CAPP front-end that understands not only the geometry but also the manufacturing intent behind every worm gear part.
