**Abstract**

For monitoring the progress of athletes in various sports and disciplines, several different approaches are nowadays available. Recently, miniature wearables have gained popularity for this task due to being lightweight and typically cheaper than other approaches. They can be positioned on the athlete's body, or in some cases, the devices are incorporated into sports requisites, like tennis racquet handles, balls, baseball bats, gloves, etc. Their purpose is to monitor the performance of an athlete by gathering essential information during match or training. In this chapter, the focus will be on the different possibilities of tennis game monitoring analysis. A miniature wearable device, which is worn on a player's wrist during the activity, is going to be presented and described. The smart wearable device monitors athletes' arm movements with sampling the output of the 6 DOF IMU. Parallel to that, it also gathers biometric information like pulse rate and skin temperature. All the collected information is stored locally on the device during the sports activity. Later, it can be downloaded to a PC and transferred to a cloud-based service, where visualization of the recorded data and more detailed game/training statistics can be performed.

**Keywords:** smart wearables, inertial sensing, tennis, biometric data acquisition, movement detection, sports tracking

## **1. Introduction**

The use of electronic devices in our daily lives is growing constantly; therefore, it is no real surprise that electronic wearable devices are nowadays a big hit. Smart jewelry, smartwatches, fitness trackers, etc. are getting smaller and more capable due to the improvement of sensors, batteries, and microprocessors. Wearable technology has been in use a long time by the military and medical professionals, but the market for smart wearables for private consumers has only recently started to grow. The market for smart wearables is on a rise. In the smart wearables segment, smartwatches are the most valuable, accounting for 60% of market value, followed by fitness and health trackers, smart jewelry and smart fashion [1]. Many solutions and products in the smart wearables industry are developed by young companies and start-ups, which are competing against large international companies for their piece of the smart wearables market. Smart wearables have found their use in several sports applications, for example, for athlete's performance monitoring in sports like swimming, boxing, golf, soccer, tennis, basketball, baseball, etc. Measuring performance, tracking motion, and monitoring biometric data usually includes many metrics (acceleration, temperature, angular speed, pulse rate, etc.). Sensor miniaturization, small power consumption, and low power wireless

communication technologies have enabled researchers and engineers to design miniature, lightweight wearable embedded devices that can be placed in a shoe, worn on a wrist, or are incorporated into the sports equipment (like racket handle). Such devices are also popular for fitness tracking, potential injury prevention, or health monitoring. For example, a miniature wearable device is used for linear and angular head accelerations monitoring in football for detecting the potentially dangerous head impacts. The device is mounted in the player's helmet, and it records the amplitude and frequency of the player's head impacts [2, 3]. A miniature swing tracker was presented in Lightman [2], which can be used for monitoring different swing metrics for baseball and softball. It can monitor information about power, speed, and hitting zone of the swings.

With the popularity of the smartwatches and other smart wearable devices with integrated sensors, there is less need for the application-specific hardware development for specific tasks. Smartwatches generally have built-in MEMS (microelectromechanical systems) accelerometers and gyroscopes, pulse-rate (PR) sensors, etc. Therefore, only software applications for these devices need to be developed. One of these applications was developed for aiding an athlete with baseball pitching action and tennis serve action [4]. The personal sport skill improvement support application is running on Sony's SmartWatch SWR50. Comparative research was made by using the proposed sport skill improvement support and very encouraging results were achieved. Similar to the abovementioned system, authors in Viana et al. [5] proposed an application called GymApp, which is a real-time physical activity trainer. It runs on Android-supported smartwatches, and it supervises physical activities, for example, in fitness. It has two modes of operation: training mode and practice mode. In training mode, an athlete is advised to perform an exercise with lighter weight and with the supervision of a fitness instructor, to guarantee the correctness of the performed exercise. The application then gathers sensory data and builds a model for the performed exercise (e.g., biceps curl). In the practice mode, the recorded sensory data are compared with the previously acquired data and similarity distance is calculated. By evaluation of the similarity distance result, the application estimates how many repetitions of the exercise were performed correctly.

Several systems were developed also for boxing. They provide punch analysis and type statistics. Usually, a small embedded device is fitted into the boxing glove where different punchers are detected and distinguished based on accelerometer data [6]. Small embedded devices for tracking, analysis, and statistics were proposed also for basketball and soccer. A shot/pass classification system for activity analysis during a match was presented by Schuldhaus et al. [7]. The proposed system uses a miniature IMU for movement tracking. They developed a low-cost embedded system for a shot and pass statistics, which is especially suitable for use during training and competition. A system for counting shots made or missed was proposed for basketball. It uses double sensor-node principle, where the first sensor is attached on the player's wrist. The wrist sensor records and detects each shot attempt. The second sensor is located on a basket's net where it monitors the statistics of made and missed shots [2].

Although smart wearable devices are nowadays being very popular and are in use by amateur and professional athletes a daily basis, the majority of the sports leagues still do no approve smart wearable devices for in-game use. A safety factor is also an issue, and on the other hand, some athletes expressed their concern about privacy matters. The International Tennis Federation (ITF) was one of the first Sports Federations, which allowed the use of smart wearables. From January 1, 2014, tennis players are allowed to wear sensors during the matches, and they can freely check important information during set breaks [8]. One of the sports

**57**

with IMU.

*Smart Wearables for Tennis Game Performance Analysis DOI: http://dx.doi.org/10.5772/intechopen.89544*

detection and parameter calculation in real time.

six-axis IMU with a measuring range of ±8 g m/s2

associations, that also approved the use of wearable biometric devices during the game, is Major League Baseball. In their case, players are allowed to wear a special biometric baseball sleeve, which can monitor strain on pitching arm, and a body

The way in which the smart wearable device is designed and the way it performs, it is especially suitable for swing-based sports, like golf or tennis. Although various systems and devices are commercially available, there is not much publicly available information on how they are constructed. In the area of tennis stroke recognition based on a visual approach, much has been previously published [10, 11]. For major tennis competitions, like Grand Slams and others, the ITF approved the use of a sophisticated video system, called Hawk-Eye. The system uses several calibrated high-speed video cameras, which are stationed around the court [12]. The drawback is that it is very expensive, and it takes a lot of time to set up and calibrate. Other systems and principles are more appropriate for everyday use, such as using a device

Similar systems, that are IMU based, are also available for other sports. Swing motion detection using an inertial-sensor-based portable instrument was proposed for golf [13]. The miniature device is mounted on a golf club to measure swing motion signals. Procedures for signal collection, signal pre-processing, and swing motion segmentation has been developed. Results show that the instrument can be a promising tool for serving as a training assistant tool for golfers. Authors in Jensen [14] presented a device for golf put analysis. The device uses a removable sensor, and it is built solely from off-the-shelf components. It supports automatic putt

Four different principles, that are used for smart embedded solutions integration, exist for tennis: (a) a device is placed in a tennis racket handle [15]; (b) a device is mounted on the racket strings (like a string vibration dampener); (c) a device is attached on the racket grip (at the bottom end); and (d) a device is worn on tennis player's wrist. The option with a sensor being integrated into the racket handle is also the most expensive because one must buy a special tennis racquet. Well-known tennis equipment manufacturer Babolat produces such rackets. The electronic device installed in the racket's handle monitors players' motion and swings. It connects with smart devices via Bluetooth for communication with a mobile app. The data from the device are then synchronized with the mobile app via Bluetooth. The mobile app is used for visualization of most common game statistics and some details regarding basic tennis strokes. The embedded electronics in the racquet handle uses IMU and piezoelectric sensors to detect the strokes [2].

Büthe et al. in their work proposed a system for complete movement monitoring during a tennis match [16]. The system uses three IMU devices. They are attached to each foot and to the tennis racquet. The proposed solution supports the detection and classification of leg and arm movements. Gesture recognition for the active arm based on the longest common subsequence (LCSS) is also supported. The proposed system was tested with four different players, where the results showed highly user-dependent performance. The proposed method achieved 87% recall and 89% precision for stroke detection. Regarding step recognition, the proposed algorithm was able to detect 76% of the steps. The step classification accuracy was 95%. Tennis serve analysis system with a wearable motion sensor was presented by Sharma et al. [17]. The player gets the feedback from the analytics engine for enhancing their serve performance while preventing potential injuries. Samsung smartwatch Gear S2 was used for sensing and hand movement tracking. It has

(gyroscope). The IMU was sampled with the frequency of 100 Hz. For tests and experiments, a database of 1844 serves from various players (professionals,

(accelerometer) and ± 2296°/s

harness, which can detect and track players' movements on the pitch [9].

#### *Smart Wearables for Tennis Game Performance Analysis DOI: http://dx.doi.org/10.5772/intechopen.89544*

*Sports Science and Human Health - Different Approaches*

speed, and hitting zone of the swings.

statistics of made and missed shots [2].

communication technologies have enabled researchers and engineers to design miniature, lightweight wearable embedded devices that can be placed in a shoe, worn on a wrist, or are incorporated into the sports equipment (like racket handle). Such devices are also popular for fitness tracking, potential injury prevention, or health monitoring. For example, a miniature wearable device is used for linear and angular head accelerations monitoring in football for detecting the potentially dangerous head impacts. The device is mounted in the player's helmet, and it records the amplitude and frequency of the player's head impacts [2, 3]. A miniature swing tracker was presented in Lightman [2], which can be used for monitoring different swing metrics for baseball and softball. It can monitor information about power,

With the popularity of the smartwatches and other smart wearable devices with integrated sensors, there is less need for the application-specific hardware development for specific tasks. Smartwatches generally have built-in MEMS (microelectromechanical systems) accelerometers and gyroscopes, pulse-rate (PR) sensors, etc. Therefore, only software applications for these devices need to be developed. One of these applications was developed for aiding an athlete with baseball pitching action and tennis serve action [4]. The personal sport skill improvement support application is running on Sony's SmartWatch SWR50. Comparative research was made by using the proposed sport skill improvement support and very encouraging results were achieved. Similar to the abovementioned system, authors in Viana et al. [5] proposed an application called GymApp, which is a real-time physical activity trainer. It runs on Android-supported smartwatches, and it supervises physical activities, for example, in fitness. It has two modes of operation: training mode and practice mode. In training mode, an athlete is advised to perform an exercise with lighter weight and with the supervision of a fitness instructor, to guarantee the correctness of the performed exercise. The application then gathers sensory data and builds a model for the performed exercise (e.g., biceps curl). In the practice mode, the recorded sensory data are compared with the previously acquired data and similarity distance is calculated. By evaluation of the similarity distance result, the application estimates how many repetitions of the exercise were performed

Several systems were developed also for boxing. They provide punch analysis and type statistics. Usually, a small embedded device is fitted into the boxing glove where different punchers are detected and distinguished based on accelerometer data [6]. Small embedded devices for tracking, analysis, and statistics were proposed also for basketball and soccer. A shot/pass classification system for activity analysis during a match was presented by Schuldhaus et al. [7]. The proposed system uses a miniature IMU for movement tracking. They developed a low-cost embedded system for a shot and pass statistics, which is especially suitable for use during training and competition. A system for counting shots made or missed was proposed for basketball. It uses double sensor-node principle, where the first sensor is attached on the player's wrist. The wrist sensor records and detects each shot attempt. The second sensor is located on a basket's net where it monitors the

Although smart wearable devices are nowadays being very popular and are in use by amateur and professional athletes a daily basis, the majority of the sports leagues still do no approve smart wearable devices for in-game use. A safety factor is also an issue, and on the other hand, some athletes expressed their concern about privacy matters. The International Tennis Federation (ITF) was one of the first Sports Federations, which allowed the use of smart wearables. From January 1, 2014, tennis players are allowed to wear sensors during the matches, and they can freely check important information during set breaks [8]. One of the sports

**56**

correctly.

associations, that also approved the use of wearable biometric devices during the game, is Major League Baseball. In their case, players are allowed to wear a special biometric baseball sleeve, which can monitor strain on pitching arm, and a body harness, which can detect and track players' movements on the pitch [9].

The way in which the smart wearable device is designed and the way it performs, it is especially suitable for swing-based sports, like golf or tennis. Although various systems and devices are commercially available, there is not much publicly available information on how they are constructed. In the area of tennis stroke recognition based on a visual approach, much has been previously published [10, 11]. For major tennis competitions, like Grand Slams and others, the ITF approved the use of a sophisticated video system, called Hawk-Eye. The system uses several calibrated high-speed video cameras, which are stationed around the court [12]. The drawback is that it is very expensive, and it takes a lot of time to set up and calibrate. Other systems and principles are more appropriate for everyday use, such as using a device with IMU.

Similar systems, that are IMU based, are also available for other sports. Swing motion detection using an inertial-sensor-based portable instrument was proposed for golf [13]. The miniature device is mounted on a golf club to measure swing motion signals. Procedures for signal collection, signal pre-processing, and swing motion segmentation has been developed. Results show that the instrument can be a promising tool for serving as a training assistant tool for golfers. Authors in Jensen [14] presented a device for golf put analysis. The device uses a removable sensor, and it is built solely from off-the-shelf components. It supports automatic putt detection and parameter calculation in real time.

Four different principles, that are used for smart embedded solutions integration, exist for tennis: (a) a device is placed in a tennis racket handle [15]; (b) a device is mounted on the racket strings (like a string vibration dampener); (c) a device is attached on the racket grip (at the bottom end); and (d) a device is worn on tennis player's wrist. The option with a sensor being integrated into the racket handle is also the most expensive because one must buy a special tennis racquet. Well-known tennis equipment manufacturer Babolat produces such rackets. The electronic device installed in the racket's handle monitors players' motion and swings. It connects with smart devices via Bluetooth for communication with a mobile app. The data from the device are then synchronized with the mobile app via Bluetooth. The mobile app is used for visualization of most common game statistics and some details regarding basic tennis strokes. The embedded electronics in the racquet handle uses IMU and piezoelectric sensors to detect the strokes [2].

Büthe et al. in their work proposed a system for complete movement monitoring during a tennis match [16]. The system uses three IMU devices. They are attached to each foot and to the tennis racquet. The proposed solution supports the detection and classification of leg and arm movements. Gesture recognition for the active arm based on the longest common subsequence (LCSS) is also supported. The proposed system was tested with four different players, where the results showed highly user-dependent performance. The proposed method achieved 87% recall and 89% precision for stroke detection. Regarding step recognition, the proposed algorithm was able to detect 76% of the steps. The step classification accuracy was 95%.

Tennis serve analysis system with a wearable motion sensor was presented by Sharma et al. [17]. The player gets the feedback from the analytics engine for enhancing their serve performance while preventing potential injuries. Samsung smartwatch Gear S2 was used for sensing and hand movement tracking. It has six-axis IMU with a measuring range of ±8 g m/s2 (accelerometer) and ± 2296°/s (gyroscope). The IMU was sampled with the frequency of 100 Hz. For tests and experiments, a database of 1844 serves from various players (professionals,

amateurs, and children) was used. The videos and sensor data are synced timewise and further prepared for correctness validation of the developed algorithms. The tennis serve is partitioned into key phases (start, trophy pose, cocking position, impact, and finish), and later features like consistency, pronation, backswing type, and follow-through are derived from inertial sensor data. Quaternion distance is used for serve consistency evaluation between medoid (general swing model) and the individual stroke.

Authors in Connaghan [18] presented a multi-sensor tennis stroke classification. For tennis stroke recognition, they used a single IMU attached to a player's forearm. Experiments were made during a competitive match. A two-level classification method was used for tennis stroke classification. Firstly, non-stroke events are filtered and after that stroke candidates are classified into three most common tennis strokes: serve, backhand, and forehand. Experiments showed that sensor fusion approach yielded the best tennis stroke classification. Ninety percent accuracy was achieved.

Tennis ball speed estimation using a motion sensor was presented in [19]. TennisEye, as the authors call it, is a system with racket-mounted motion sensor. It senses linear and angular accelerations and sends them to the smartphone device via BLE (Bluetooth low energy) wireless connection. Tennis strokes are detected using a threshold-based method and divided into three categories: serve, groundstroke, and volley. Authors compared the performance of their system against Zepp [20], which is a similar device mounted on the racket handle. To estimate the serve ball speed, a regression model is proposed. For groundstroke or volley, two models are proposed: a regression model and a physical model. For estimating the ball speed for advanced players, authors use the physical model and regression model for beginners. Using the leave-one-out cross-validation test, the evaluation results show that TennisEye performs better than its competitor.

Tennis stroke detection and classification is motion detection and classification problem, which can be observed also as a hand-gesture classification case [21]. For this type of tasks, some popular methods are widely used, like hidden Marko models (HMM) or dynamic time warping (DTW) and similar (like QDTW) [22].

#### **2. Movement and biometric data acquisition**

In the following section, we will present a miniature wearable device for tracking tennis swings and strokes. The presented system supports athlete's arm movement tracking, where individual hand gestures can be detected (like strokes etc.), and biometric data monitoring like skin temperature and pulse rate (PR) or even pulse rate variability (PRV). This additional information can be helpful for estimating the physical and mental state of an athlete. The system can work in continuous sampling or in gesture recognition mode, depending on the firmware. The system is presented in **Figure 1**. The system for movement and biometric data acquisition is composed of two parts: (1) a smart wearable module for tracking movement and gathering biometric data and (2) cloud service for detailed data analysis and visualization. A PC or smartphone device with a special application is used to download the gathered information from the wearable device to the cloud via the Internet. The main parts of the system will be presented in more detail further below.

#### **2.1 Hardware design of the smart wearable device**

The main objective of the hardware design of the proposed wearable device was to develop a lightweight device for tracking a player's movement and sensing its biometric information. The device should be attached to the player's wrist, and it

**59**

**Figure 2.**

*Smart Wearables for Tennis Game Performance Analysis DOI: http://dx.doi.org/10.5772/intechopen.89544*

**Figure 1.**

*a cloud service via the Internet.*

should not influence the player's abilities for sports performance. One of the better places for device's attachment on the hand is right above the wrist (ulnar head), where there is enough soft tissue between the bones (the ulna and the radius) to successfully detect and measure pulse rate using photoplethysmography (PPG) method. The spot of attachment of the smart wearable device on the sportsman's forearm and the orientation of the individual IMU's axes are visible in **Figure 2**. The axes of the gyroscope are pointing in such a way that the angular rate is positive in a counter-clockwise direction if the accelerometer arrow is facing toward you.

*Architecture of the movement and biometric data acquisition system. The gathered information is uploaded to* 

We developed the wearable device with the wish for independent operation and the possibility to detect and classify basic strokes in real time. For this task to be successful, the sampling rate of the IMU unit must be high enough. We estimated that a sample rate of 1000 sps should suffice, after studying literature on racket body and racket strings vibration [23]. To be able to handle such amount of data, the wearable device must have large memory space to be able to store movement and biometric information reading for at least an average tennis match. An average tennis match lasts for about 2 h, and we rarely can see a match longer than 5 h. The record for the longest tennis match is held by Isner and Mahut. Their match lasted for 11 h and 5 min. It happened in Wimbledon in 2010. The percentage of total playing time for a tennis match is around 23–30% on clay and 10–15% on fast courts [24]. For maximum battery life, we implemented wired USB connection (instead of wireless, e.g., Bluetooth) for movement and biometric readings. The USB connection is also faster, and the USB connector can at the same time be used for battery charging. Detailed composition with the presentation of

individual subsystems of the smart wearable device is presented in **Figure 3**.

*Smart wearable device position and IMU orientation. The device is attached above the wrist.*

*Smart Wearables for Tennis Game Performance Analysis DOI: http://dx.doi.org/10.5772/intechopen.89544*

**Figure 1.**

*Sports Science and Human Health - Different Approaches*

show that TennisEye performs better than its competitor.

**2. Movement and biometric data acquisition**

**2.1 Hardware design of the smart wearable device**

the individual stroke.

amateurs, and children) was used. The videos and sensor data are synced timewise and further prepared for correctness validation of the developed algorithms. The tennis serve is partitioned into key phases (start, trophy pose, cocking position, impact, and finish), and later features like consistency, pronation, backswing type, and follow-through are derived from inertial sensor data. Quaternion distance is used for serve consistency evaluation between medoid (general swing model) and

Authors in Connaghan [18] presented a multi-sensor tennis stroke classification. For tennis stroke recognition, they used a single IMU attached to a player's forearm. Experiments were made during a competitive match. A two-level classification method was used for tennis stroke classification. Firstly, non-stroke events are filtered and after that stroke candidates are classified into three most common tennis strokes: serve, backhand, and forehand. Experiments showed that sensor fusion approach yielded the best tennis stroke classification. Ninety percent accuracy was achieved. Tennis ball speed estimation using a motion sensor was presented in [19]. TennisEye, as the authors call it, is a system with racket-mounted motion sensor. It senses linear and angular accelerations and sends them to the smartphone device via BLE (Bluetooth low energy) wireless connection. Tennis strokes are detected using a threshold-based method and divided into three categories: serve, groundstroke, and volley. Authors compared the performance of their system against Zepp [20], which is a similar device mounted on the racket handle. To estimate the serve ball speed, a regression model is proposed. For groundstroke or volley, two models are proposed: a regression model and a physical model. For estimating the ball speed for advanced players, authors use the physical model and regression model for beginners. Using the leave-one-out cross-validation test, the evaluation results

Tennis stroke detection and classification is motion detection and classification problem, which can be observed also as a hand-gesture classification case [21]. For this type of tasks, some popular methods are widely used, like hidden Marko models (HMM) or dynamic time warping (DTW) and similar (like QDTW) [22].

In the following section, we will present a miniature wearable device for tracking tennis swings and strokes. The presented system supports athlete's arm movement tracking, where individual hand gestures can be detected (like strokes etc.), and biometric data monitoring like skin temperature and pulse rate (PR) or even pulse rate variability (PRV). This additional information can be helpful for estimating the physical and mental state of an athlete. The system can work in continuous sampling or in gesture recognition mode, depending on the firmware. The system is presented in **Figure 1**. The system for movement and biometric data acquisition is composed of two parts: (1) a smart wearable module for tracking movement and gathering biometric data and (2) cloud service for detailed data analysis and visualization. A PC or smartphone device with a special application is used to download the gathered information from the wearable device to the cloud via the Internet. The main parts of the system will be presented in more detail further below.

The main objective of the hardware design of the proposed wearable device was to develop a lightweight device for tracking a player's movement and sensing its biometric information. The device should be attached to the player's wrist, and it

**58**

*Architecture of the movement and biometric data acquisition system. The gathered information is uploaded to a cloud service via the Internet.*

should not influence the player's abilities for sports performance. One of the better places for device's attachment on the hand is right above the wrist (ulnar head), where there is enough soft tissue between the bones (the ulna and the radius) to successfully detect and measure pulse rate using photoplethysmography (PPG) method. The spot of attachment of the smart wearable device on the sportsman's forearm and the orientation of the individual IMU's axes are visible in **Figure 2**. The axes of the gyroscope are pointing in such a way that the angular rate is positive in a counter-clockwise direction if the accelerometer arrow is facing toward you.

We developed the wearable device with the wish for independent operation and the possibility to detect and classify basic strokes in real time. For this task to be successful, the sampling rate of the IMU unit must be high enough. We estimated that a sample rate of 1000 sps should suffice, after studying literature on racket body and racket strings vibration [23]. To be able to handle such amount of data, the wearable device must have large memory space to be able to store movement and biometric information reading for at least an average tennis match. An average tennis match lasts for about 2 h, and we rarely can see a match longer than 5 h. The record for the longest tennis match is held by Isner and Mahut. Their match lasted for 11 h and 5 min. It happened in Wimbledon in 2010. The percentage of total playing time for a tennis match is around 23–30% on clay and 10–15% on fast courts [24]. For maximum battery life, we implemented wired USB connection (instead of wireless, e.g., Bluetooth) for movement and biometric readings. The USB connection is also faster, and the USB connector can at the same time be used for battery charging. Detailed composition with the presentation of individual subsystems of the smart wearable device is presented in **Figure 3**.

**Figure 2.** *Smart wearable device position and IMU orientation. The device is attached above the wrist.*

#### **Figure 3.**

*Block representation of the smart wearable device with connections to individual subsystems.*

The physical presentation of the smart wearable device is depicted in **Figure 4**. The device is implemented on a four-layer FR4 PCB (printed circuit board) with 1 mm thickness. The physical dimensions are 20 × 29.5 × 7.2 mm (W × L × H) including the battery. It weighs 5.8 g, and because of its miniature size, it can easily be placed under a sweatband. The top layer of the PCB is populated by a microcontroller, IMU unit, FLASH memory, and battery charger. On the bottom side, the power supply, temperature sensor, and the LEDs for pulse rate sensing are placed. Opposite to the USB connector, the RGB LED and the push button are placed. The heart of the smart wearable module is a low power high-performance 8/16-bit RISC microcontroller. It supports 128 kB of FLASH memory, 8 kB of SRAM memory, and 2 kB of EEPROM. It can run with 32 MHz clock (it has an internal calibrated clock source), and it supports various peripheral and communicational interfaces (ADC, SPI, I2C, USB etc.).

To detect and sense tennis strokes, a MEMS inertial measurement unit is used. It incorporates a three-axis accelerometer and a gyroscope, and together, they form a 6-DOF unit (DOF—degrees of freedom). Linear accelerations are measured by

**61**

**2.2 PC application and cloud service**

*Smart Wearables for Tennis Game Performance Analysis DOI: http://dx.doi.org/10.5772/intechopen.89544*

MEMS digital accelerometer. It supports measuring ranges from ±2 to ±16 G, and it supports 16-bit resolution of output readouts. For angular velocity sensing, MEMS digital gyroscope is used. It supports angular several measuring ranges, from ±125 to ±2000 dps and 16-bit resolution. Due to the integrated 8 kB FIFO memory, burst mode reading of the measured data is possible. This type of readout also helps to reduce the power consumption of the device. For communication with the microcontroller, the SPI digital bus is used. The accelerometer is capable of maximum 6664 sps data rate, and the gyroscope is capable of 1666 sps data rate. Current consumption of the IMU unit is 0.9 mA in normal operation mode and 1.2 mA in high-performance mode. It is placed in a miniature LGA-16L package and because of its miniature dimensions, it is

For sensing the pulse rate of a player wearing the smart wearable device, a pulse rate sensor with integrated analog front-end part is implemented. It has a low-noise receiver with an integrated ADC for reflected signal detection and a LED transmitter. For pulse-rate measurement, it uses a photoplethysmography (PPG). More

To measure the skin temperature during the sports activity, a contactless temperature sensing is used. The principle is based on IR (infrared) thermopile sensor, which measures the temperature of the surface by detecting the passive infrared radiation with a wavelength from 4 to 16 μm. The accuracy of the used thermopile temperature sensor is ±1°C in the temperature range between 0 and +65°C. Similar integrated circuits are used also in medical contactless temperature measuring devices. The temperature sensor also supports calibration. For this, it has NV-MEM (non-volatile memory), which is used for storing the calibration coefficients. Calibration is necessary in the case when the default emissivity factor is not correct. For storing the recorded accelerometer and gyro information, external NV-MEM

is used with the capacity of 512 Mbits. It is used also for storing the temperature measurements and saving the timestamp data. The memory is large enough to store approximately 1.5 h of non-stop sports activity. When in stroke detection mode (only stroke actions are detected, timestamped, and recorded), it can store approximately 8000 events. This is enough for storing almost 6 h of an average tennis play,

As already mentioned, a USB is used for the connection between the smart wearable module and a personal computer. The connector used must be water-proof due to the exposure to moisture and sweat. For battery management, a dedicated integrated circuit is used. It charges the batter to correct levels, and it also monitors and protects the battery from getting too discharged. This can happen because we use Li-Po battery type, which is sensitive to discharge voltages below 2.7 V (can get damaged). The batter has a capacity of 155 mAh. The charging current is set to 100 mA, which suffices for the battery to be fully charged in approximately 1.5 h. For more efficient power consumption and achieving longer battery autonomy, power supply switches are implemented. They are used to cut off power to individual subsystems and can reduce the overall current consumption of the smart module. Power switches are P-type MOS-FET transistor with low serial resistance. They are used to distribute power to the IMU unit, PPG measuring subcircuit, the temperature measuring subcircuit, and the external FLASH memory. More about the miniature wearable movement and biometric data acquisition device can be found in [28].

For downloading recorded data from the smart wearable device, a custom PC application was developed. The USB reader is also capable of erasing the module (it erases the internal memory for storing the recorded info), for clock

where an average of 20 strokes per player per minute is considered [27].

ideal for implementation in the presented smart wearable device.

about the PPG method is presented in Refs [25, 26].

**Figure 4.** *The physical implementation of the smart wearable module (top and bottom sides of the PCB).*

#### *Smart Wearables for Tennis Game Performance Analysis DOI: http://dx.doi.org/10.5772/intechopen.89544*

*Sports Science and Human Health - Different Approaches*

**60**

**Figure 4.**

SPI, I2C, USB etc.).

**Figure 3.**

*The physical implementation of the smart wearable module (top and bottom sides of the PCB).*

The physical presentation of the smart wearable device is depicted in **Figure 4**. The device is implemented on a four-layer FR4 PCB (printed circuit board) with 1 mm thickness. The physical dimensions are 20 × 29.5 × 7.2 mm (W × L × H) including the battery. It weighs 5.8 g, and because of its miniature size, it can easily be placed under a sweatband. The top layer of the PCB is populated by a microcontroller, IMU unit, FLASH memory, and battery charger. On the bottom side, the power supply, temperature sensor, and the LEDs for pulse rate sensing are placed. Opposite to the USB connector, the RGB LED and the push button are placed. The heart of the smart wearable module is a low power high-performance 8/16-bit RISC microcontroller. It supports 128 kB of FLASH memory, 8 kB of SRAM memory, and 2 kB of EEPROM. It can run with 32 MHz clock (it has an internal calibrated clock source), and it supports various peripheral and communicational interfaces (ADC,

*Block representation of the smart wearable device with connections to individual subsystems.*

To detect and sense tennis strokes, a MEMS inertial measurement unit is used. It incorporates a three-axis accelerometer and a gyroscope, and together, they form a 6-DOF unit (DOF—degrees of freedom). Linear accelerations are measured by

MEMS digital accelerometer. It supports measuring ranges from ±2 to ±16 G, and it supports 16-bit resolution of output readouts. For angular velocity sensing, MEMS digital gyroscope is used. It supports angular several measuring ranges, from ±125 to ±2000 dps and 16-bit resolution. Due to the integrated 8 kB FIFO memory, burst mode reading of the measured data is possible. This type of readout also helps to reduce the power consumption of the device. For communication with the microcontroller, the SPI digital bus is used. The accelerometer is capable of maximum 6664 sps data rate, and the gyroscope is capable of 1666 sps data rate. Current consumption of the IMU unit is 0.9 mA in normal operation mode and 1.2 mA in high-performance mode. It is placed in a miniature LGA-16L package and because of its miniature dimensions, it is ideal for implementation in the presented smart wearable device.

For sensing the pulse rate of a player wearing the smart wearable device, a pulse rate sensor with integrated analog front-end part is implemented. It has a low-noise receiver with an integrated ADC for reflected signal detection and a LED transmitter. For pulse-rate measurement, it uses a photoplethysmography (PPG). More about the PPG method is presented in Refs [25, 26].

To measure the skin temperature during the sports activity, a contactless temperature sensing is used. The principle is based on IR (infrared) thermopile sensor, which measures the temperature of the surface by detecting the passive infrared radiation with a wavelength from 4 to 16 μm. The accuracy of the used thermopile temperature sensor is ±1°C in the temperature range between 0 and +65°C. Similar integrated circuits are used also in medical contactless temperature measuring devices. The temperature sensor also supports calibration. For this, it has NV-MEM (non-volatile memory), which is used for storing the calibration coefficients. Calibration is necessary in the case when the default emissivity factor is not correct.

For storing the recorded accelerometer and gyro information, external NV-MEM is used with the capacity of 512 Mbits. It is used also for storing the temperature measurements and saving the timestamp data. The memory is large enough to store approximately 1.5 h of non-stop sports activity. When in stroke detection mode (only stroke actions are detected, timestamped, and recorded), it can store approximately 8000 events. This is enough for storing almost 6 h of an average tennis play, where an average of 20 strokes per player per minute is considered [27].

As already mentioned, a USB is used for the connection between the smart wearable module and a personal computer. The connector used must be water-proof due to the exposure to moisture and sweat. For battery management, a dedicated integrated circuit is used. It charges the batter to correct levels, and it also monitors and protects the battery from getting too discharged. This can happen because we use Li-Po battery type, which is sensitive to discharge voltages below 2.7 V (can get damaged). The batter has a capacity of 155 mAh. The charging current is set to 100 mA, which suffices for the battery to be fully charged in approximately 1.5 h.

For more efficient power consumption and achieving longer battery autonomy, power supply switches are implemented. They are used to cut off power to individual subsystems and can reduce the overall current consumption of the smart module. Power switches are P-type MOS-FET transistor with low serial resistance. They are used to distribute power to the IMU unit, PPG measuring subcircuit, the temperature measuring subcircuit, and the external FLASH memory. More about the miniature wearable movement and biometric data acquisition device can be found in [28].

#### **2.2 PC application and cloud service**

For downloading recorded data from the smart wearable device, a custom PC application was developed. The USB reader is also capable of erasing the module (it erases the internal memory for storing the recorded info), for clock

**Figure 5.**

*PC application graphical user interface (left) and cloud service graphical web interface (right).*

synchronization, uploading the data to the cloud, and for eventual firmware upgrades. When the wearable module is connected to the PC, it is detected as a generic HID device. The graphical user interface of the PC application is presented in **Figure 5** (left side).

When the recorded smart wearable data is uploaded to the cloud, it is visualized and processed. Due to the larger processing power being available and bigger memory space, more complex analyses on the recorded data are possible. Comparison of individual athletes is also possible. Because data from several different players and from different events can be stored in the cloud, big data analytics can be performed, and even more, information can be extracted. The visual representation of the proposed cloud service web interface is depicted in **Figure 5** (right side).
