Abstract
An instrumented total hip replacement (THR) implant capable of remote and continuous monitoring would be an attractive prospect for a surgeon to conveniently track the recovery of their patients. Measuring the relative motion of the prosthesis components would provide insight into joint kinematics and contribute to the detection of adverse events including impingement and subluxation. The aim of this study was to develop a sensing system to measure the relative orientation and translation of the prosthesis components. A tri-axis magnetometer and a permanent magnet were integrated into clinically available THR components, forming a magnetic position and orientation sensing system. A robotic arm was used to articulate the components through controlled motion routines and record the orientation of the components. The output of the robot arm and a camera tracking system were used to validate the performance of the sensing system. The sensing system measured the relative orientation of the components to two degrees of freedom with an RMSE of <4.0° and measured the displacement of the femoral head during an impingement-driven subluxation motion with an RMSE of 0.2 mm. This proof-of-concept work has shown that magnetic sensing technology can track the position and orientation of THR components. With further development, this sensing method could feature within an instrumented THR implant.
1. Introduction
Total hip replacement (THR) is a widely used intervention for late-stage osteoarthritis. In 2023, over 100,000 THR surgeries were performed in England, Wales, and N. Ireland [1]. The frequency of THR surgery is increasing along with the need for implants to be reliable, have good survivorship, be cost effective, and enable surgeons to provide excellent outcomes in all cases to reduce the growing burden on clinicians, healthcare providers, and the economy.
A THR aims to return function back to the patient’s hip by restoring the joint’s natural centre of rotation, weight bearing capability, and ball-and-socket mobility. During THR surgery, the body’s damaged tissue is replaced with artificial components. A THR consists of a metal stem positioned in the central canal of the femur with an affixed femoral head, i.e., the ball. A metal shell component is fixed within the acetabulum of the pelvis and, typically, a liner made from a high-wear-resistant material (e.g., polyethylene) is positioned within the acetabular shell, thus replicating a socket. A diagram of a THR implanted within a human hip is shown in Figure 1.
Figure 1.
(a) Exploded diagram of typical hip replacement components reproduced with permission from OrthoInfo. © American Academy of Orthopaedic Surgeons. https://orthoinfo.org/ (accessed on 25 November 2025), (b) Diagram representing femoral stem tilt angle with respect to the acetabular components. (c) Diagram representing femoral stem azimuth angle with respect to the acetabular components. (d) Cross-section diagram showing the assembled total hip replacement components and the position of the disc magnet (8 × 2 mm) and magnetometer PCB.
Instrumented implants capable of in vivo sensing would allow for the continuous monitoring of patients post-operatively. Data collected from the implant could provide insight into the function of the implant in vivo and track the recovery of the patients [2,3]. The recent release of the Persona IQ® The Smart Knee® (Zimmer Biomet, Warsaw, IN, USA) replacement system has shown that a sensorised prosthesis for regular clinical use is feasible from a technical, regulatory, and business perspective [3,4]. However, to date, integrating sensing systems into THRs has focused on measuring joint reaction forces [5,6] and component loosening [7,8,9]. These systems were prototypes or only intended for research purposes. Tracking joint kinematics would allow for the collection of metrics such as joint range of motion and step count, which are commonly used to monitor post-operative recovery. Furthermore, measuring the components relative position and orientation would facilitate the detection of adverse events, for example, impingement and subluxation, and so give early indications of component damage or the need for clinical intervention.
Permanent magnets coupled with a magnetic field sensor can provide a contact-free method for position, proximity, and angle measurement. Magnetic position and orientation (MPO) systems have been used previously to measure linear displacement [10], one-degree-of-freedom (DoF) orientation [11], two-DoF orientation [12], three-DoF orientation [13,14,15], and a three-DoF tactile force sensor [16]. Arami et al. [17] developed an instrumented knee implant which featured three three-axis anisotropic magnetoresistance sensors embedded within the polyethylene insert and a permanent magnet positioned in the femoral component of the knee replacement. They used a neural network to map the sensor-recorded magnetic field data to 15 orientation states of combined flexion/extension and abduction/adduction rotation (sagittal plane angle range from 138° to 192° and coronal angle range from −8° to 4°). The system had a reported RMSE of 2.35° and 0.31° in flexion/extension and abduction/adduction, respectively. The use of an MPO sensing system as a method of providing contact-free position and angle measurement of THR components has not been explored.
Work lead by Michael Ortner including the publications [13,14,15] has shown that orientation tracking to three DoF can be achieved with a single 3-axis magnetic field sensor MPO sensing system. The application described in those studies was a custom-made joystick or multimedia control element; therefore, the design constraints were less rigid and the required sensing range and resolution was less than that required for the present application. A design specification of the present work dictated that there should be no alterations to the THR component geometries. Consequently, the method used by Ortner and colleagues to achieve orientation tracking to three degrees of freedom could not be replicated as it would have required positioning the magnet or sensor away from the central axis of the stem, i.e., embedded within the body of the femoral head or polyethylene liner. Therefore, an alternate method described by Lutz and Folletto [12], which can derive orientation to two DoF, was considered. Measuring the relative orientation of the THR components to two DoF would still provide clinical utility and was an intuitive method of visualising and describing the location of a component–component impingement point.
The aim of this study was to develop and integrate a magnetic position and orientation sensing system into a THR to measure the relative motion between the components and validate a proof-of-concept prototype in terms of measuring the femoral stem orientation to two DoF and detecting THR bearing surface separation during impingement-driven subluxation.
2. Materials and Methods
This methods section is separated into three parts. Firstly, the development of an MPO system for use in THRs to measure orientation to two DoF is considered. This includes details of how orientation to two DoF was defined, how the magnetic field sensor and magnet were integrated into the THR components, and how the size and shape of the magnet were selected. This section is concluded with descriptions of three methods for mapping the magnetic field readings read by the sensor to the position and orientation of the magnet and the protocol used to calibrate the magnetometer. The second section describes the experimental method used to validate the performance of the developed MPO and, finally, the third section presents a method for using the developed MPO to measure bearing surface separation and how that was validated experimentally.
2.1. Development of a Magnetic Position and Orientation Sensing System for Use in a Total Hip Replacement to Measure Orientation to Two DoF
A THR operates as a ball-and-socket joint to replicate the biomechanics of a human hip joint. In this study, the orientation of the THR components (i.e., the angle of the femoral stem neck with respect to the acetabular liner) was described to two DoF using tilt and azimuth angle. Tilt angle (Figure 1b) is the angle that the central axis of the stem’s neck rotates from the central axis of the acetabular components, and azimuth angle (Figure 1c) is the angle that the central axis of the stem’s neck rotates about the central axis of the acetabular components. The required sensing range was from 0° to 65° in the tilt angle direction and from 0° to 359° in the azimuth angle direction, as this was the maximum range of motion of the components. The required sensing resolution was set at 1° as this was deemed to be a clinically useful resolution level.
2.1.1. Integrating Magnet and Sensor into Total Hip Replacement Components
A three-axis magnetometer (mlx90393, Melexis, Ypres, Belgium) on a custom-made PCB board was potted into the introducer hole of a clinically available acetabular shell (56 mm outer diameter). A spigot stem component was 3D-printed (PLA) and matched the geometry of a clinically available stem taper and included a pocket on the face of the taper to hold a neodymium (N42) disc (8 mm × 2 mm) magnet (Magnet Experts Ltd., Tuxford, UK). The optimisation process used to select the 8 mm × 2 mm disc magnet is explained in the following section. A 36 mm metal femoral head was pressed onto the stem taper and a polyethylene liner was pressed into the acetabular shell. A cross-section diagram shows the magnet and sensor positioned in the assembled THR components (Figure 1d).
2.1.2. Optimisation of Magnet Size and Shape for Orientation Tracking to Two DoF
The sensitivity of an MPO sensing system is dependent on the step size between each state (which is a chosen system parameter) and the state separation (the extent to which the magnetic field values within the dataset are different). A system with a large state separation will be more adept at detecting changes in the position or orientation state of the magnet [15]. Malago et al. [15] evaluated the minimum state separation of an MPO system as a means of providing an estimation of the quality of a specific MPO implementation. They used this quality factor as a quantitative measure to guide the selection of the system parameters to optimise the performance of their MPO system.
Simulations of a magnet’s motion and magnetic field were produced based on the defined physical parameters of the system using Magpylib © Python package (Version: 4.0.0b2, Author: Michael Ortner). The library includes methods for translating and rotating magnet features and a sensor class that uses analytical equations to return the magnetic field vector at a specified location. The output of the simulation was a dataset of magnetic field values at the location of the sensor () at every orientation state (), i.e., tilt angle from 0° to 65° in steps of 1° and azimuthal angles from 0° to 359° in steps of 1°. The mean and minimum state separation of () was evaluated using the scipy.spatial.KDTree nearest neighbour algorithm [18], which is the same as that described by Maneewongvatana and Mount [19].
This procedure was repeated nine times for nine different simulated magnet shapes and sizes. The array of magnets investigated were all able to fit within the maximum magnet space (approx. 12 × 3 mm cylindrical region) and were selected from the stock of a supplier (Magnet Experts Ltd., Tuxford, UK). Additionally, three hypothetical (hyp) magnets were also added to the array that were of conceivable shape and magnetisation direction. The range of magnets was selected to cover a variety of shapes, sizes, and directions of the magnetisation vector.
2.1.3. Implementation of Numerical Methods to Map Magnetic Field Data to the Orientation and Position of a Permanent Magnet
Three unique tracking methods were investigated including look-up table, neural network, and responsivity tracking. Each was chosen as a method of mapping magnetic field data (produced from simulations or gathered experimentally) to the position and orientation of the magnet and, thus, the position and orientation of the THR components.
Look-Up Table
A look-up table is the simplest type of tracking method explored in this work. Lumetti et al. [14] used a look-up table as an inversion method for their three-DoF multimedia control joystick, which is a similar application to the present work. The computational efficiency of a look-up table will progressively decrease as the size of the table increases. This is due to the speed it takes to run the algorithm (i.e., search the dataset) and the memory space required to store the reference dataset Bn. The issue of operation speed and memory space may become more apparent with the addition of more DoF.
The look-up table method was realised using a custom Matlab (Matlab R2023a, Mathworks, Natick, MA, USA) function. The function takes in the sensed magnetic field value and subtracts it from all the magnetic field values in the reference Bn dataset, thus returning Bdiff (which is the same length as the Bn and Statesn arrays). The index of the minimum difference is then found and used to return to the corresponding position and orientation state stored in the Statesn array.
Neural Network
Fitting the data using a neural network produced a function to relate magnetic field data B_n to the desired position and orientation state, e.g., the tilt angle [θ] and azimuthal angle [ψ]. For tracking the neck of the stem orientation to two DoF, the Matlab (Matlab R2023a, Mathworks, Natick, MA, USA) NNFit toolbox was used to train the neural network using a Levenberg–Marquardt backpropagation algorithm for training [20]. The deep neural network structure included three hidden layers with 12, 12, and 12 neurons, respectively, and outputted tilt and azimuth angles. The dataset was randomly divided amongst training 70% (samples), validation 15% (samples), and testing 15% (samples). This implementation of a neural network is similar to that used by Jones et al. [16], who developed a magnetic-sensor-enabled soft tactile force sensor. The chosen settings matched those suggested as standard by the Matlab (Matlab R2023a, Mathworks, Natick, MA, USA) NNFit toolbox.
Responsivity Tracking
As the stem’s neck is tilted away from the central axis, the magnet is translated in the XY plane, which increases the sensed signal in the XY plane and correspondingly decreases the sensed signal in the Z direction. This relationship of magnetic field responsivity to magnet tilt angle has been used by Lutz and Foletto [12] to track the tilt angle of a joystick. They expressed responsivity as a ratio to mitigate the impact of changes in the distance between the magnet and the sensor (i.e., vertical play of the stem) over the lifetime of the joystick. They calculated their ratio using (1):
where , , and are the magnetic fields measure in the X, Y, and Z directions, respectively. An alternate method of calculating a responsivity ratio (a modification to the method described by Lutz and Foletto) was used in this work. The responsivity term is calculated using (2):
where is the magnetic field vector. The RratioBMagnitude value, evaluated (using simulated data) over the range of stem tilt angles from 0° to 66° (maximum tilt angle of the stem component), was found to have a more linear response for the present system when compared to the used by Lutz and Foletto. The simulated RratioBMagnitude values were stored in a look-up table with the corresponding tilt angle value.
The inverse tangent function has been suggested by Melexis for tracking the rotary position and heading of a magnet in a position sensor application [11]. The projection of the magnetic field vector on the XY sensing plane reflects the azimuthal angle of the joystick. Therefore, the azimuthal angle can be calculated using (3):
where, if the neck of the stem azimuthal angle is 0°, it is aligned with the positive x-axis and, when it is 90°, it is aligned with the positive y-axis. Using the responsivity ratio and trigonometric function is advantageous as it reduces memory on an embedded system and is computationally faster compared to look-up table functions.
2.1.4. Magnetometer Calibration
The magnetometer boards were wired to a Teensy 4.0 microcontroller (PJRC, Sherwood, OR, USA) and the sensor data were read in via an I2C serial connection. A dedicated library (Adafruit_MLX90393 library, Adadruit Industries, Brooklyn, NY, USA) was used to configure the sensors. This resulted in the sensor reporting magnetic field values at a measured frequency of 49 Hz and at an approximate sensitivity of 6.01 µT in the X and Y direction and 9.68 µT in the Z direction. A calibration algorithm described by [21] and implemented using the magcal function (Matlab R2023a, Mathworks, Natick, MA, USA), which was applied to the raw magnetic field readings to counteract the hard-iron and soft-iron interferences that typically interfere with magnetoresistive sensor readings.
2.2. Experimental Setup for Verification of Tracking Method Performance for Orientation Tracking to Two Degrees of Freedom
A UR3 robotic arm (Universal Robots, Odense, Denmark) was used to simultaneously manipulate the components and record the position and orientation of the femoral head as a ground truth measure. The robot arm was mounted on a custom aluminium extrusion base frame to ensure it was affixed to the table and would keep the robot arm stable during operation. The spigot neck feature was extended and included a flat base to allow for secure mounting to the robot tool flange. The femoral head component was then pressed onto the stem fully so that the top face of the magnet was coincident to the head taper face. The acetabular shell component was held in a 3D-printed (PLA) mount with a hemispherical recess the same dimension as the outer diameter of the shell component (56 mm). An acyclic sheet with a through hole smaller than the diameter of the face of the shell component but larger than the diameter of the face of the liner component was screwed in place on top of the mount and used to clamp the shell and liner into the mount. An image of the experimental setup is shown in Figure 2a. The head was positioned manually in the liner with the robot in Freedrive mode. Once the femoral head was located into the liner, the robot was then commanded to align the stem vertically (and so perpendicular to the face of the shell and liner) whilst keeping its position constant, ensuring the femoral head remained located in the liner. This was defined as the stem in the neutral position and was recorded onto the robot controller to keep component positioning consistent throughout testing. The robot arm was programmed to rotate the stem whilst the femoral head was located in the liner component, thus replicating the motion of a ball-and-socket joint. To test the performance of the MPO system measuring stem orientation to two DoF, the robot manipulated the stem from the neutral/vertical position to a tilted position and then rotated the stem through a full sweep of azimuthal angles from 0° to 355°. The azimuthal sweep was repeated for a range of tilt angles from 5° to 60° with steps of 5°. The experimental run was performed three times for each of the tracking methods (look-up table, neural network, and responsivity tracking).
Figure 2.
(a) Annotated image of the experimental test setup. (b) Image of the THR components recorded by the digital camera at the moment of initial component–component impingement. (c) Image of the THR components recorded by the digital camera at the moment of maximum bearing surface separation during a subluxation event.
The output of the MPO sensing system was recorded throughout the motion of the magnet and the robot arm recorded the femoral head position at their maximum sampling rates of 50 Hz and 125 Hz, respectively. At the start of each test run, the robot sent a trigger signal to a microcontroller, which meant the data from the two sources could be synched. To obtain datasets of the same size for statistical analysis, timestamps of the sensor data were matched to the closest timestamp of the robot data. The remaining robot data were omitted, leaving datasets of the same size.
To compare the sensing system tracking methods, the error between the robot-reported orientation (expected) and the sensing-system-predicted orientation (observed) was computed for each angle direction using (4). The sine and inverse sine functions were used to remove the effect of crossing the azimuth angle singularity 360°/0°. The RMSE (5) ± standard deviation (SD), minimum error, maximum error, and range of error were computed for all the data across the three repeats.
2.3. Measuring Bearing Contact Surface Separation During an Impingement-Driven Subluxation Event
An impingement-driven subluxation is created when the femoral head is levered out of the liner component with the component–component impingement point, acting as the fulcrum of the lever (Figure 2b,c). Subluxation can lead to liner damage, cause patient pain and discomfort, and be a precursor to dislocation [22,23]. An impingement-driven subluxation event was recreated using the robot arm to rotate the stem to an extreme angle beyond the normal working range of motion of the components, thus causing the components to impinge and the femoral head to lever out of the liner. A camera tracking system (CTS) consisting of a digital camera (Panasonic Lumix DMC-GF6K Panasonic, Osaka, Japan) and the Matlab (Matlab R2023a, Mathworks, Natick, MA, USA) Image Processing and Computer Vision toolbox was used to track the location of two colour markers that were positioned on the stem component. The position of the markers was then used to infer the location of the centre of the femoral head during the impingement-driven subluxation motion.
Copper foil was wrapped around the 3D-printed stem component and positioned around the region of the liner’s rim where the stem would contact if component impingement occurred, as shown in Figure 2a. This formed a continuity switch where contact between the copper foil on the stem and on the rim of the liner completed the electrical circuit. The continuity switch was used and recorded in the robot program to indicate that impingement contact had occurred and, therefore, when an impingement-driven subluxation event began and ended. The impingement-driven subluxation motion was performed with the stem being rotated to a maximum angle of 74°. The (CTS) recorded the position of the centre of the femoral head and the position and orientation of the reference magnet. These position and orientation data were inputted into the Magpylib © simulations to generate magnetic field data for a look-up table. Twenty-five values were recorded during the subluxation event and used to populate the look-up table. The range of positions in the Z direction prediction was from 0 mm to 3.14 mm, and the mean step size between values of effective resolution was 0.15 mm.
The impingement-driven subluxation motion test protocol began with the robot arm rotating the stem until the stem and liner components contacted (Figure 2b). The continuity switch was used to detect the component contact and triggered the robot arm to return. This recreated an impingement event but no bearing surface separation, so not an impingement-driven subluxation event. The stem was then rotated to three angles beyond the normal working range of the components (beyond a tilt angle of 64°), namely, 70°, 72°, and 74°. These angles were chosen as they created three distinct impingement-driven subluxation events with evenly distributed levels of femoral head displacement.
The recordings of the motion protocol were manually inspected frame by frame and the researcher judged the first occurrence of the femoral head moving out of the liner, which indicated the start of the impingement-driven subluxation. The camera recorded at a frame rate of 25 frames/s, which resulted in the CTS recording position and orientation at 25 Hz. To obtain datasets of the same size for statistical analysis, timestamps of the extracted CTS coordinate data were matched to the closest timestamps of the sensor and robot data. The remaining sensor and robot data were omitted, leaving datasets of the same size.
3. Results
3.1. Results from Optimisation Study That Informed Magnet Selection
The mean and minimum state separation (meanSS and minSS) values for the nine magnets investigated in the simulated optimisation study are shown in Table 1. The 8 × 2 mm disc magnet returned the greatest meanSS of 10.4 µT and minSS of 0.522 µT values. This magnet had the largest volume of the investigated magnets at 100.5 mm3 and the magnetised face of the magnet points towards the sensor, resulting in the maximum magnetic field value measured by the sensor of 1996.8 µT, which was the greatest out of all the other investigated magnets. Therefore, the 8 × 2 mm disc magnet was deemed the more optimal for this application and it was expected that it would result in the best sensing performance.
Table 1.
Summary of the nine magnets investigated and the meanSS and minSS values obtained in the simulated optimisation study, where N42 is the notation for the magnet material neodymium of grade 42, and Br (BRx, BRy, BRz) denotes the material remanence or magnetisation vector.
A plot of the magnetic field vector state separation values when tilt angle increases by 1°, starting at 0° for the 8 × 2 mm disc magnet configuration, is shown in Figure 3. The state separation when only the azimuthal angle state changes from 0° to 1° at every tilt angle state is also shown in Figure 3. At every tilt angle state, the state separation was constant across the full azimuthal angle range (from 0° to 359°). Overall, the change in tilt angle resulted in a greater state separation than change in the azimuth angle direction. Furthermore, when the tilt angle was <20°, the change in the azimuth angle had a state separation that was less than the sensitivity of the magnetic field sensor (9.68 µT). This suggests that there will be a higher level of error when the stem is in the low tilt angle orientation (<20°) as the sensing system will not be able to distinguish between the azimuth angle states.
Figure 3.
The magnetic field vector state separation when tilt state increases by 1° starting at 0° (RED) and when tilt angle is constant, and when the azimuthal angle state goes from 0° to 1° (GREEN); data shown are for the 8 × 2 mm disc magnet configuration.
3.2. Measuring Hip Replacement Component Orientation to Two Degrees of Freedom
The RMSE ± SD and minimum, maximum, and range of the error between the robot arm stem angle versus tracking-method-predicted angle over the three repeats of the three tracking methods are shown in Table 2. Error in the azimuthal angle was greater than in the tilt angle direction. Error in the azimuthal angle was greater in the low-tilt-angle region, i.e., <20°. Error in the tilt angle direction was greatest in low-tilt-angle region, i.e., <20°, and in the high-tilt-angle region, i.e., >45°. The performance of the responsivity tracking method and the look-up table method are comparable and, in general, performed better than the neural network method.
Table 2.
Root mean squared error, standard deviation, maximum, and minimum for actual robot stem angle versus tracking-method-predicted angle across all repeats (n = 3) for orientation tracking to two DoF motion study.
3.3. Measuring Bearing Surface Separation of Total Hip Replacement Components During an Impingement-Driven Subluxation Event
The MPO sensing system was able to distinguish between the different severity levels of an impingement-driven subluxation event and not report a false negative only when an impingement event occurred with no bearing surface separation. The plot of the CTS-recorded position and MPO-sensing-system-predicted position of the centre of the femoral head in the z-axis with respect to the joint centre of rotation is shown in Figure 4. The data shown are for all three repeats of the impingement-driven subluxation protocol in turn. The RMSE (±standard deviation) of the reported position over the full dataset for the CTS versus the MPO sensing system was 0.2 mm ± 0.2 mm.
Figure 4.
Plot of the reported centre of the femoral head position during the three repeats of the impingement-driven subluxation motion protocol by the camera tracking system and MPO sensing system.
4. Discussion
This novel magnetic position and orientation sensing system was able to measure the relative motions between the components and so derive the femoral stem’s neck orientation to two DoF and THR bearing surface separation during impingement-driven subluxation. The sensing system uses small form factor components and does not require contact with or alteration to the functional bearing surfaces.
The most comparable study to the present work is that published by Arami et al. [17,24,25]. They reported achieving an RMSE in flexion/extension and abduction/adduction of 2.35° and 0.31° over the angle ranges from 138° to 192° and from −8° to 4°, respectively. The difference in joint replacement being considered in Aramis’s study (total knee replacement) and the present work (total hip replacement) means a direct comparison of the results cannot be made. However, tilt angle, as described in this work, is the most comparable angle to the flexion/extension and abduction/adduction angles used in Arami’s work. The accuracy in the tilt angle direction achieved in this work (RMSE 1.0°) is an improvement on that achieved by Arami in flexion/extension but not abduction/adduction. There is scope for the methods described in the present study to be translated into a sensing system for use in a TKR prosthesis. Arami et al. were measuring over a smaller sensing range; therefore, there could be scope that, with additional tuning and optimisation, a similar level of accuracy to that reported by Arami et al. in abduction/adduction angle could be possible.
Presently, the sensing system only reports orientation to two DoF. However, hip joint rotation is typically described to three DoF as rotations in the planes of the body, namely sagittal plane flexion/extension (FE), coronal plane abduction/adduction (AA), and transverse plane internal and external rotation (IE). Therefore, measuring orientation to three DoF would bring more clinical utility to the sensing system. Future work can explore achieving orientation tracking to three DoF by reconsidering the method described by Ortner and colleagues [13,14,15]. This would require reconsidering the initial design specification to not make alterations to the THR component geometries and instead have the magnet or sensor embedded within the body of the femoral head or liner. However, this may result in poorer sensing performance (range, accuracy, and resolution) and may require additional magnetic field sensors.
Using the tilt and azimuth angle orientation notation created singularities in the azimuth angle, i.e., when the stem was in the neutral position and, secondly, when the stem crossed the azimuth angle value of 0°/360°. The results of the optimisation study showed that, when the stem is at a tilt angle of <20°, the sensitivity of the sensor is less than the state separation between the neighbouring azimuth angle states. These factors all contributed to high levels of error when the stem was in these regions. The optimisation of the spacing of the orientation states included in the sensing range could improve sensing performance, for example, by increasing the azimuth angle step size to >1° in the low-tilt-angle region (<20°) or evenly spacing the discrete orientation states by using an algorithm like that of the Fibonacci sphere algorithm. Overall sensing performance could be improved by configuring the magnetic field sensor to improve the resolution and sampling rate. More advanced look-up table methods could be investigated to improve performance, for example, curve fitting to the responsivity ratio values or the use of a parametric equation of a surface fitted to the Bn dataset. The comparatively poor performance of the neural network method suggests the model is not fully optimised. The training dataset size and the number and size of network layers were not altered and there was no examination into whether the model was over- or under-fitted. Future work can explore addressing these factors with the aim of improving the performance of the neural network, thus reducing the error of the orientation prediction.
When simulating an impingement-driven subluxation event, the robot arm did not apply force axially through the stem. This meant that the femoral head was not pushed up the far side of the cup of the liner, which typically happens during an impingement-driven subluxation event [26]. Therefore, a method of applying anatomically relevant forces through the implant components is needed to simulate a more biomechanically accurate impingement-driven subluxation event. This will likely be achieved by using validated in vitro experimental hip simulators [27] or using a more capable robotic arm like that used by [28,29]. Furthermore, when considering the physiological environment, the system will need to account for long-term changes in the position of the components, for example, because of implant precession, osseointegration of the prosthesis, and the evolution of the bone material around the implant, which will affect the achievable accuracy of the system.
An alternate method of integrating the sensing system components into the THR would be needed for in vivo use. However, before that can be considered, the integration of a magnet into an implanted THR may be hazardous to the patient if the patient comes into proximity with a high-powered magnet, e.g., an MRI scanner. Future work would need to involve computational and experimental studies investigating the safety of implanting a prosthesis with an embedded permanent magnet.
5. Conclusions
This work is the first to show that a magnetic position and orientation sensing system can be used within a THR to measure the kinematics of the implant components. The output of the sensing system can measure the orientation and position of the components to a clinically relevant level of accuracy (RMSE 1.0° and 4.0° in the tilt azimuth angle directions) and detect the occurrence of adverse events unique to THRs, i.e., impingement and impingement-driven subluxation.
This is a proof-of-concept prototype that is not validated or ready for use in an in vivo sensing-enabled THR prosthesis. To realise this, considerations will need to be made on safety, better integration into the implant for biocompatibility, power supply, and wireless communication. Future work will also need to include improving the functionality, for example, by extending the sensing capabilities of the system to capture the full three DoF of the stem and to extracting metrics to characterise common activities of daily living or adverse events that might occur within a THR, e.g., steps, cadence, unusual gait cycle pattern, or subluxation.
Author Contributions
Conceptualisation, O.G.V.; methodology, O.G.V. and M.P.S.; software, O.G.V. and M.P.S.; validation, O.G.V.; formal analysis, O.G.V.; investigation, O.G.V.; resources, P.R.C., R.W.K. and S.W.; data curation, O.G.V.; writing—original draft preparation, O.G.V.; writing—review and editing, P.R.C., G.H.I., R.W.K., M.P.S., T.N.B. and S.W.; visualisation, O.G.V.; supervision, P.R.C., G.H.I., R.W.K., T.N.B. and S.W.; project administration, S.W.; funding acquisition, S.W. All authors have read and agreed to the published version of the manuscript.
Funding
Oliver Vickers’ studentship was funded by the EPSRC Centre for Doctoral Training in Tissue Engineering and Regenerative Medicine—Innovation in Medical and Biological Engineering (Grant number EP/L014823/1) and further research funding was from the Engineering and Physical Science Research Council (EP/R003971/1).
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.
Conflicts of Interest
The authors declare no conflicts of interest. This article is a revised and expanded version of a paper entitled “A Non-Contact Method for Measuring Separation During Subluxation Events in Total Hip Replacements.”, which was presented at the 33rd Congress of the International Society for Technology in Arthroplasty, Maui, HI, USA, 31 August–3 September 2022 [30].
Abbreviations
The following abbreviations are used in this manuscript:
| CTS | Camera tracking system |
| DoF | Degrees of freedom |
| MPO | Magnetic position and orientation |
| RMSE | Root mean square error |
| SD | Standard deviation |
| THR | Total hip replacement |
References
- NJR. NJR 21st Annual Report. Available online: https://reports.njrcentre.org.uk/downloads (accessed on 14 July 2025).
- Vickers, O.G.; Culmer, P.R.; Isaac, G.H.; Kay, R.W.; Shuttleworth, M.P.; Board, T.; Williams, S. Is in Vivo Sensing in a Total Hip Replacement a Possibility? A Review on Past Systems and Future Challenges. Prog. Biomed. Eng. 2021, 3, 42004. [Google Scholar] [CrossRef]
- Cushner, F.; Schiller, P.; Gross, J.; Mueller, J.K.; Hunter, W. A Total Knee Arthroplasty Prosthesis Capable of Remote Patient Monitoring. Orthop. Proc. 2021, 103, 18. [Google Scholar]
- Zimmer Biomet. Persona IQ, The Smart Knee. Available online: https://www.zimmerbiomet.com/ (accessed on 14 July 2025).
- Bergmann, G.; Deuretzbacher, G.; Heller, M.; Graichen, F.; Rohlmann, A.; Strauss, J.; Duda, G.N. Hip Contact Forces and Gait Patterns from Routine Activities. J. Biomech. 2001, 34, 859–871. [Google Scholar] [CrossRef] [PubMed]
- Damm, P.; Graichen, F.; Rohlmann, A.; Bender, A.; Bergmann, G. Total Hip Joint Prosthesis for in Vivo Measurement of Forces and Moments. Med. Eng. Phys. 2010, 32, 95–100. [Google Scholar] [CrossRef] [PubMed]
- Marschner, U.; Grätz, H.; Jettkant, B.; Ruwisch, D.; Woldt, G.; Fischer, W.-J.; Clasbrummel, B. Integration of a Wireless Lock-in Measurement of Hip Prosthesis Vibrations for Loosening Detection. Sens. Actuators A Phys. 2009, 156, 145–154. [Google Scholar] [CrossRef]
- Sauer, S.; Kirsten, S.; Storck, F.; Grätz, H.; Marschner, U.; Ruwisch, D.; Fischer, W.-J. A Medical Wireless Measurement System for Hip Prosthesis Loosening Detection Based on Vibration Analysis. Sens. Transducers 2013, 18, 134. [Google Scholar]
- Ruther, C.; Gabler, C.; Ewald, H.; Ellenrieder, M.; Haenle, M.; Lindner, T.; Mittelmeier, W.; Bader, R.; Kluess, D. In Vivo Monitoring of Implant Osseointegration in a Rabbit Model Using Acoustic Sound Analysis. J. Orthop. Res. 2014, 32, 606–612. [Google Scholar] [CrossRef] [PubMed]
- Ortner, M.; Ribeiro, M.; Spitzer, D. Absolute Long-Range Linear Position System with a Single 3-D Magnetic Field Sensor. IEEE Trans. Magn. 2018, 55, 4000104. [Google Scholar] [CrossRef]
- Melexis. How to Use A Magnetometer in A Position Sensor Application. 2021. Available online: https://www.melexis.com/en/documents/documentation/application-notes/application-note-how-to-use-a-magnetometer-in-a-position-sensor-application (accessed on 25 November 2025).
- Lutz, C.; Foletto, A. Joystick with Allegro Position Sensor IC. 2019. Available online: https://www.allegromicro.com/en/insights-and-innovations/technical-documents/hall-effect-sensor-ic-publications/joystick-with-allegro-position-sensor-ic (accessed on 25 November 2025).
- Ermakova, A.; Ribeiro, M.; Spitzer, D.; Ortner, M. Analytical Development of a Four-Axis Magnetic Multimedia Control Element. IEEE Sens. J. 2018, 18, 7819–7825. [Google Scholar] [CrossRef]
- Lumetti, S.; Malagò, P.; Spitzer, D.; Zaruba, S.; Ortner, M. Computationally Efficient Magnetic Position System Calibration. Eng. Proc. 2020, 2, 72. [Google Scholar]
- Malagò, P.; Slanovc, F.; Herzog, S.; Lumetti, S.; Schaden, T.; Pellegrinetti, A.; Moridi, M.; Abert, C.; Suess, D.; Ortner, M. Magnetic Position System Design Method Applied to Three-Axis Joystick Motion Tracking. Sensors 2020, 20, 6873. [Google Scholar] [CrossRef] [PubMed]
- Jones, D.; Wang, L.; Ghanbari, A.; Vardakastani, V.; Kedgley, A.E.; Gardiner, M.D.; Vincent, T.L.; Culmer, P.R.; Alazmani, A. Design and Evaluation of Magnetic Hall Effect Tactile Sensors for Use in Sensorized Splints. Sensors 2020, 20, 1123. [Google Scholar] [CrossRef] [PubMed]
- Arami, A.; Simoncini, M.; Atasoy, O.; Hasenkamp, W.; Ali, S.; Bertsch, A.; Meurville, E.; Tanner, S.; Dejnabadi, H.; Leclercq, V. Instrumented Prosthesis for Knee Implants Monitoring. In Proceedings of the 2011 IEEE International Conference on Automation Science and Engineering, Trieste, Italy, 24–27 August 2011; IEEE: Piscataway, NJ, USA, 2011; pp. 828–835. [Google Scholar]
- Virtanen, P.; Gommers, R.; Oliphant, T.E.; Haberland, M.; Reddy, T.; Cournapeau, D.; Burovski, E.; Peterson, P.; Weckesser, W.; Bright, J. SciPy 1.0: Fundamental Algorithms for Scientific Computing in Python. Nat. Methods 2020, 17, 261–272. [Google Scholar] [CrossRef] [PubMed]
- Maneewongvatana, S.; Mount, D.M. Analysis of Approximate Nearest Neighbor Searching with Clustered Point Sets. arXiv 1999, arXiv:cs/9901013. [Google Scholar] [CrossRef]
- Mathworks. Levenberg-Marquardt Backpropagation. Available online: https://uk.mathworks.com/help/deeplearning/ref/trainlm.html (accessed on 25 November 2025).
- Ozyagcilar, T. Calibrating an Ecompass in the Presence of Hard and Soft-Iron Interference; Freescale Semiconductor, Ltd.: Austin, TX, USA, 2012; pp. 1–17. [Google Scholar]
- McGrory, B.J.; McGrory, C.P.; Barbour, L.; Barbour, B. Transient Subluxation of the Femoral Head after Total Hip Replacement. J. Bone Jt. Surg. Br. 2010, 92, 1522–1526. [Google Scholar] [CrossRef] [PubMed][Green Version]
- Brown, T.D.; Elkins, J.M.; Pedersen, D.R.; Callaghan, J.J. Impingement and Dislocation in Total Hip Arthroplasty: Mechanisms and Consequences. Iowa Orthop. J. 2014, 34, 1–15. [Google Scholar] [PubMed][Green Version]
- Arami, A.; Aminian, K.; Forchelet, D.; Renaud, P. Implantable and Wearable Measurement System for Smart Knee Prosthesis. In Proceedings of the 2014 IEEE Biomedical Circuits and Systems Conference (BioCAS) Proceedings, Lausanne, Switzerland, 22–24 October 2014; IEEE: Piscataway, NJ, USA, 2014; pp. 240–243. [Google Scholar][Green Version]
- Arami, A.; Simoncini, M.; Atasoy, O.; Ali, S.; Hasenkamp, W.; Bertsch, A.; Meurville, E.; Tanner, S.; Renaud, P.; Dehollain, C. Instrumented Knee Prosthesis for Force and Kinematics Measurements. IEEE Trans. Autom. Sci. Eng. 2013, 10, 615–624. [Google Scholar] [CrossRef]
- Usrey, M.M.; Noble, P.C.; Rudner, L.J.; Conditt, M.A.; Birman, M.V.; Santore, R.F.; Mathis, K.B. Does Neck/Liner Impingement Increase Wear of Ultrahigh-Molecular-Weight Polyethylene Liners? J. Arthroplast. 2006, 21, 65–71. [Google Scholar] [CrossRef] [PubMed]
- O’Dwyer Lancaster-Jones, O.; Williams, S.; Jennings, L.M.; Thompson, J.; Isaac, G.H.; Fisher, J.; Al-Hajjar, M. An in Vitro Simulation Model to Assess the Severity of Edge Loading and Wear, Due to Variations in Component Positioning in Hip Joint Replacements. J. Biomed. Mater. Res. B Appl. Biomater. 2018, 106, 1897–1906. [Google Scholar] [CrossRef] [PubMed]
- Herrmann, S.; Kaehler, M.; Grawe, R.; Kluess, D.; Woernle, C.; Bader, R. Physiological-like Testing of the Dislocation Stability of Artificial Hip Joints. In Proceedings of the New Trends in Mechanism and Machine Science: From Fundamentals to Industrial Applications; Springer: Berlin/Heidelberg, Germany, 2015; pp. 659–667. [Google Scholar]
- Daou, H.E.L.; Ng, K.C.G.; Van Arkel, R.; Jeffers, J.R.T.; y Baena, F.R. Robotic Hip Joint Testing: Development and Experimental Protocols. Med. Eng. Phys. 2019, 63, 57–62. [Google Scholar] [CrossRef] [PubMed]
- Vickers, O.G.; Culmer, P.R.; Isaac, G.H.; Kay, R.W.; Shuttleworth, M.P.; Board, T.; Williams, S. A Non-Contact Method for Measuring Separation During Subluxation Events in Total Hip Re-Placements. In Proceedings of the 33rd Congress of the International Society for Technology in Arthroplasty, Maui, HI, USA, 31 August–3 September 2022. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).