Artificial Neural Network Assisted Modelling of Tangent Galvanometer Measurements for the Determination of Horizontal Component of Earth's Magnetic Field
Organizations: School of Physical Sciences, National Institute of Science Education and Research, Jatni, Odisha 752050, India · Faculty of Engineering and Technology, Sri Sri University, Cuttack, Odisha 754006, India
Abstract
The Tangent Galvanometer (TG) is a standard undergraduate laboratory experiment for estimating the horizontal component of Earth's magnetic field (BH) by measuring the angle of deflection of a magnetic needle corresponding to the current flowing through a circular coil. In this study, an artificial neural network (ANN) is used as a complementary data-driven model to predict the value of BH. A dataset comprising 225 observations obtained using 50-turn and 500-turn coils was used for developing the ANN model. After quality control, 223 observations were retained and divided into training (70%), validation (15%), and testing (15%) subsets. The model was optimized using a feed-forward neural network with Tanh activation. Three different models (Models A, B, and C) with different input variables were compared for optimum performance. Model C used five input variables: current, deflection angle, tan(theta), magnetic field produced by the coil, and number of turns. The addition of tan(theta) produced a substantial improvement in prediction performance, which was further improved by including the magnetic field produced by the coil. Model C gave the best test performance, with R2 = 0.99053, RMSE = 0.54076 microT, and MAE = 0.32940 microT. The experimental and ANN-predicted values of BH were also compared with an adopted local geomagnetic reference value of 39.0 microT. The mean experimental and ANN-predicted values were 37.38898 microT and 37.32161 microT, respectively. The results demonstrate the usefulness of ANN as a complementary tool for analyzing experimental variability and nonlinear relationships in an undergraduate physics laboratory experiment.
Figures & tables
| Subset | Nominal proportion | Purpose |
|---|---|---|
| Training | 70% | Parameter optimization and model fitting |
| Validation | 15% | Architecture selection and early stopping |
| Testing | 15% | Held-out final model evaluation |
| Feature | Role | Nature |
|---|---|---|
| Current, | ANN input | Measured experimental variable |
| Average deflection, | ANN input | Measured experimental variable |
| ANN input | Derived from measured | |
| Induced field, | ANN input | Derived physical field |
| No. of turns, | ANN input | Experimental variable |
| ANN output | Experimentally calculated target |
| Coil | No. of observations | Mean current (mA) | Minimum current (mA) | Maximum current (mA) |
|---|---|---|---|---|
| 50-turn | 113 | 84.17080 | 12.32 | 353.70 |
| 500-turn | 110 | 8.48073 | 1.26 | 22.35 |
| Activation | Hidden layers | Best epoch | Validation | Test | Test RMSE ( T) | Test MAE ( T) |
|---|---|---|---|---|---|---|
| Tanh | 1 | 2500 | 0.96480 | 0.98640 | 0.64800 | 0.47446 |
| Tanh | 2 | 1063 | 0.97558 | 0.98776 | 0.61471 | 0.36821 |
| Tanh | 3 | 1996 | 0.97782 | 0.99053 | 0.54076 | 0.32940 |
| Tanh | 4 | 746 | 0.97333 | 0.98939 | 0.57228 | 0.25399 |
| Tanh | 5 | 1216 | 0.97703 | 0.98789 | 0.61159 | 0.29483 |
| ReLU | 1 | 2498 | 0.93270 | 0.95460 | 1.18398 | 0.87702 |
| Model | Feature representation | Test | Test RMSE ( T) | Test MAE ( T) | Test MSE ( T 2 ) |
|---|---|---|---|---|---|
| A | 0.89220 | 1.82445 | 0.96491 | 3.32860 | |
| B | 0.98721 | 0.62834 | 0.46561 | 0.39482 | |
| C | 0.99053 | 0.54076 | 0.32940 | 0.29242 |
| Dataset | RMSE ( T) | MAE ( T) | MSE ( T 2 ) | ||
|---|---|---|---|---|---|
| Training | 155 | 0.98564 | 0.68693 | 0.28522 | 0.47187 |
| Validation | 34 | 0.97782 | 0.89941 | 0.38595 | 0.80894 |
| Testing | 34 | 0.99053 | 0.54075 | 0.32940 | 0.29241 |
| Coil | Mean current (mA) | Minimum current (mA) | Maximum current (mA) | RMSE ( T) | MAE ( T) | ||
|---|---|---|---|---|---|---|---|
| 50-turn | 113 | 84.17080 | 12.32 | 353.70 | 0.99678 | 0.30629 | 0.21591 |
| 500-turn | 110 | 8.48073 | 1.26 | 22.35 | 0.98495 | 0.70073 | 0.44289 |
| Method | Mean ( T) | MAE to ( T) | RMSE to ( T) | MAPE (%) |
|---|---|---|---|---|
| Experimental | 37.38898 | 5.09088 | 5.92924 | 13.05354 |
| ANN | 37.32161 | 5.10273 | 5.92381 | 13.08393 |