Worm Gears Information Input in CAPP Using Neural Networks

In the field of mechanical transmission, worm gears are among the most critical components. Their manufacturing process is complex and heavily dependent on well-defined process planning. However, traditional manual process planning is time-consuming and error-prone, which calls for the development of Computer-Aided Process Planning (CAPP) systems tailored to worm gears. One of the core challenges in CAPP is the efficient and accurate input and recognition of part information from engineering drawings. With the advancement of computer hardware and software, especially in image processing and pattern recognition, scanning and recognition techniques have become increasingly popular. This paper presents a method for inputting worm gears part information based on feature description and neural network classification. By extracting feature vectors from scanned images and feeding them into an improved Back-Propagation (BP) neural network, the system can intelligently classify worm gears and retrieve corresponding standard process plans. The approach significantly improves the speed and standardization of process planning for worm gears.

I begin by analyzing the traditional methods for part information input. In many CAPP systems, the part information must be manually coded or interactively entered, which is tedious and prone to errors. The key issue is how to enable the computer to “understand” the part drawing. For worm gears, typical features include the number of starts (or teeth) of the worm, the pitch diameter, the thread profile, and the face width. For the worm wheel, features like the number of teeth, the module, and the outer diameter are essential. To represent these features in a machine-readable format, I adopt a feature-based description method. A feature is defined as a collection of shape and attribute information, such as holes, slots, steps, material, and precision. In the context of worm gears, I construct a feature matrix that numerically encodes the shape characteristics. For a worm, the feature vector can be expressed as:

$$
F_{\text{worm}} = [ z_1,\; d_{f1},\; t_{\text{ape}},\; L ]
$$

where:

  • \( z_1 \) is the number of starts (teeth) of the worm, commonly 1 to 4.
  • \( d_{f1} \) is the tip diameter of the worm.
  • \( t_{\text{ape}} \) is a binary code representing the tip shape: 1 for cylindrical, 0 for arc-shaped.
  • \( L \) is the length of the threaded portion of the worm.

For the worm wheel, the feature matrix is:

$$
F_{\text{wheel}} = [ z_2,\; d_{f2} ]
$$

where \( z_2 \) is the number of teeth (usually 27 to 80) and \( d_{f2} \) is the outer diameter of the wheel. Based on these feature matrices, each distinct worm gear part can be uniquely identified. Table 1 shows the correspondence between feature codes and the actual shape features for six typical parts in our system.

Table 1: Feature codes and shape features for worm gears
Feature Code Worm Shape Features Worm Wheel Shape Features
100000 \( F( z_1=2,\; d_{f1}=50,\; t_{\text{ape}}=1,\; L=60 ) \) –
010000 \( F( z_1=3,\; d_{f1}=55,\; t_{\text{ape}}=0,\; L=70 ) \) –
001000 \( F( z_1=1,\; d_{f1}=40,\; t_{\text{ape}}=0,\; L=45 ) \) –
000100 – \( F( z_2=45,\; d_{f2}=200 ) \)
000010 – \( F( z_2=60,\; d_{f2}=250 ) \)
000001 – \( F( z_2=50,\; d_{f2}=220 ) \)

This feature-based representation allows the computer to easily distinguish between different worm gears. However, the recognition of these features from a scanned drawing is not straightforward. The part drawing is first scanned and converted into a binary digital image (background 0, foreground 1). Then, image preprocessing such as smoothing, normalization, and compression is applied. The core of the recognition task is to extract a concentration feature vector that reflects both local and global structural characteristics of the image. I employ an improved BP neural network to perform the classification. The BP network is a multi-layer perceptron that learns through error back-propagation. To enhance convergence speed and avoid local minima, I incorporate a momentum term and adjust the cost function and activation function. The network architecture consists of an input layer (receiving the concentration feature vector), one or two hidden layers, and an output layer that produces a binary vector indicating the part class. Six types of worm gear parts were used as training samples. After training, the network was tested with 12 samples, including the original six and six noisy or slightly varied versions. The output results are summarized in Table 2.

Table 2: Recognition results of concentration feature vectors using improved BP network
Sample No. Output1 Output2 Output3 Output4 Output5 Output6
1 1.0000 0.0000 0.0000 0.0000 0.0000 0.0000
2 0.0000 1.0000 0.0000 0.0000 0.0000 0.0000
3 0.0000 0.0000 1.0000 0.0000 0.0000 0.0000
4 0.0000 0.0000 0.0000 1.0000 0.0000 0.0000
5 0.0000 0.0000 0.0000 0.0000 1.0000 0.0000
6 0.0000 0.0000 0.0000 0.0000 0.0000 1.0000
7 0.9905 0.0000 0.0000 0.0000 0.0000 0.0000
8 0.0000 0.9969 0.0000 0.0000 0.0000 0.0001
9 0.0000 0.0000 1.0000 0.0000 0.0000 0.0000
10 0.0000 0.0001 0.0000 0.9958 0.0000 0.0000
11 0.0000 0.0000 0.0000 0.0000 0.9997 0.0000
12 0.0000 0.0000 0.0103 0.0000 0.0000 1.0000

As seen in Table 2, the network correctly classified all 12 samples within an acceptable error range. For example, sample 7 (a variant of the first worm type) gave an output of 0.9905 for class 1 and near zero for others, indicating correct classification. The concentration feature vector proved effective in capturing the essential image features of worm gears. This step is crucial because once the part type is identified, the CAPP system can retrieve the corresponding standard process plan from a database.

The overall CAPP system for worm gears operates on the principle of similarity: similar parts have similar process plans. The system first divides all worm gear parts into several part families. For each family, a standard process plan is compiled and stored in the database. When a new part is to be processed, its drawing is scanned, features are extracted, and the neural network classifies it. The classification output is compared with the feature code matrix (as in Table 1) to confirm the part family. If the part belongs to an existing family, the system retrieves the standard plan; otherwise, it exits or prompts manual intervention. The retrieved plan can be edited interactively by the user, and then saved for future use. The flow chart of this process is shown below (embedded image).

The process begins with scanning the worm gear drawing. The digital image undergoes preprocessing and feature extraction to form a concentration feature vector. This vector is fed into the trained BP network, which outputs a six-element vector (for six types). The output is compared with the feature matrix codes. For instance, if the output vector is [1,0,0,0,0,0] corresponding to the first row in Table 1, the part is identified as a worm with specific parameters. Then, based on the feature matrix values, the system checks the exact type (e.g., worm type A). If a match is found, the system queries the database for the standard process plan of that type. Otherwise, it may generate a new plan by analogy or ask the user. Finally, the plan is presented to the user for optional modification and then stored. A typical standard process plan for a worm wheel (product type 000001, material HT150) is shown in Table 3.

Table 3: Standard process plan for a worm wheel (example)
Step Process Content Equipment/Tools Gauges
10 Casting of wheel hub and rim Foundry equipment –
20 Aging treatment; inspection Heat treatment furnace Hardness tester
30 Separate machining of hub and rim Lathe, milling machine Vernier caliper
40 Assembly: fasten with 8-M6 bolts Wrench, torque meter –
50 Finish turning outer diameter ø345-0.1 to size; finish turn right face Lathe C630, special fixture Special gauge
60 Semi-finish boring ø90 bore, leave 0.05 mm allowance; chamfer Boring machine Plug gauge (incomplete form)
70 Align bore ø90 (runout ≤0.05); rough hobbing of teeth, control center distance 65-0.1; leave allowance for finish hobbing Hobbing machine, dial indicator Special gauge, height gauge
80 Broaching keyway 25-0.026 Broaching machine Keyway gauge
90 Finish boring inner bore ø90+0.035 to size Boring machine Plug gauge
100 Finish hobbing of teeth; control center distance 210±0.02 Hobbing machine Center distance gauge
110 Deburring; chamfering Hand tools –

This plan was derived from expert experience and stored in the database. When a new worm wheel with similar features is identified, the system retrieves this plan and allows the user to adjust parameters such as dimensions or tolerances. The use of neural network classification significantly reduces manual coding effort and improves the accuracy of part family identification. In practice, the system has been tested with a variety of worm gears, and the generated process plans match or exceed the quality of manually prepared ones. The combination of feature-based description and neural network recognition provides a robust method for worm gears CAPP.

To further quantify the performance, I define the recognition rate as the percentage of correctly classified samples over total test samples. Using the improved BP network, the recognition rate reached 100% on the test set of 12 samples (with tolerance). The network’s ability to generalize to slightly distorted or noisy images demonstrates its robustness for real-world industrial drawings. The concentration feature vector, which integrates pixel density distributions in localized regions, proves effective for worm gears because the thread profiles and tooth shapes create distinct density patterns. Future work may extend this approach to other rotational parts like bevel gears or helical gears, but the specific geometry of worm gears requires careful feature engineering. The system currently handles six types, but it can be scaled by adding more output neurons and retraining.

The mathematical formulation of the improved BP network includes the following key equations. Let the input vector be \( \mathbf{x} \in \mathbb{R}^n \), the hidden layer output \( \mathbf{h} \in \mathbb{R}^p \), and the output layer \( \mathbf{y} \in \mathbb{R}^m \). The weights between input and hidden layer are \( \mathbf{W}^{(1)} \), and between hidden and output \( \mathbf{W}^{(2)} \). The activation function is the sigmoid \( f(z) = 1/(1+e^{-z}) \). For the forward pass:

$$
h_j = f\left( \sum_{i=1}^n w_{ji}^{(1)} x_i + b_j^{(1)} \right), \quad j=1,\dots,p
$$

$$
y_k = f\left( \sum_{j=1}^p w_{kj}^{(2)} h_j + b_k^{(2)} \right), \quad k=1,\dots,m
$$

The cost function is the mean squared error:

$$
E = \frac{1}{2} \sum_{k=1}^m (t_k – y_k)^2
$$

where \( t_k \) is the target. Weight updates include a momentum term \( \alpha \):

$$
\Delta w_{kj}^{(2)}(t+1) = -\eta \frac{\partial E}{\partial w_{kj}^{(2)}} + \alpha \Delta w_{kj}^{(2)}(t)
$$

Similarly for other layers. The momentum term helps accelerate convergence and avoids local minima. The concentration feature vector itself is computed by dividing the normalized binary image into a grid of cells and counting the number of foreground pixels in each cell, then normalizing to form a vector. For a 64×64 image and a 8×8 grid, the feature vector has 64 dimensions. This simple yet effective representation works well for worm gears due to their periodic thread patterns.

In conclusion, the integration of scanning, feature extraction, and neural network classification provides an efficient solution for worm gears part information input in CAPP. The method reduces manual intervention, improves consistency, and leverages the adaptability of neural networks. The improved BP network, combined with the concentration feature vector, reliably classifies worm gears into predefined families. The CAPP system then retrieves and customizes standard process plans, leading to faster and more standardized manufacturing of worm gears. This approach can be adapted to other families of mechanical parts, provided that distinctive features are identified and appropriate training data are available. The successful implementation on worm gears demonstrates the potential of neural network-based pattern recognition in industrial process planning systems.

Scroll to Top