key: cord-0073632-31pj5zoo authors: Cheng, Long title: Implementation of Snow and Ice Sports Health and Sports Information Collection System Based on Internet of Things date: 2022-01-07 journal: J Healthc Eng DOI: 10.1155/2022/7411955 sha: 4461d53131be94fbe1ad1ea43f1b9424c9fe97ac doc_id: 73632 cord_uid: 31pj5zoo The promotion of ice and snow sports not only provides professional athletes for the Winter Olympics but also acts as appreciative mass bases for ice and snow sports. The appearance of ice and snow sports will bring a new consumption pattern and develop a new ice and snow industry. In this paper, an Internet of Things (IoT)-based sports information collection system which is specifically designed and developed for the healthcare domain specifically in the snow and ice sports is proposed. The physiological parameters such as body temperature, ECG, blood pressure, blood sugar, and blood oxygen saturation are captured through various monitoring devices. These physiological parameters are transmitted to the mobile device by the wireless module and mobile device that receives and displays these physiological parameters. A complete hardware design of the whole ice and snow sports health and sports information acquisition system, which is based on the Internet of Things, is given, and then, there is the overall design scheme of the system, such as adopted modular design for the system, attitude measurement unit, UWB positioning unit, data storage, and communication unit, respectively. The measurement results of the professional medical equipment are compared with those of acquisition equipment in real environment of ice and sports. These results have verified accuracy of data collected by acquisition equipment and meet the design requirements of the proposed system. With the enhancement of people's health awareness, national fitness has become a necessary means for healthy China. As a way of national fitness, ice and snow sports bring you a new experience in a new form of sports [1] . For ordinary athletes, real-time monitoring of their health and exercise status can help people adjust their exercise intensity or amount in time according to their daily exercise situation, so as to avoid physical discomfort caused by excessive or too little exercise and remind themselves to improve their exercise status in a timely manner and maintain a healthy body and a healthy life [2] . Maintaining a healthy body requires not only reasonable diet, but also scientific exercise habits [3] . A large number of studies have proved that regular aerobic exercise is beneficial to human health and can improve the exercise ability and physical quality of human body. In terms of health results and effectiveness of intervention programs, accurate quantification of physical exercise and physical health is very important [4] [5] [6] . Document [7] proposed the design and implementation of mobile medical monitoring client on Android platform. Document [8] designed and implemented a set of mobile Internet multiparameter health monitoring service systems to realize multiparameter measurement. Literature [9, 10] puts forward an open and reconfigurable wireless sensor network, which can transmit ECG, blood oxygen saturation SpO2, pulse wave, and other data amounts to remote service stations with different equipment configurations according to different diseases at different stages. Literature [11] uses piezoresistive triaxle acceleration sensor to measure the relationship between human motion acceleration and energy consumption. e acceleration of human body in daily activities such as sitting and walking can be measured, and then the relationship between acceleration value and energy consumption of human body movement can be obtained through experiments. Literature [12] proposes the fact that the acceleration sensor is fixed on the leg and the acceleration sensor can automatically detect the posture when the fibular nerve is stimulated and then analyze the walking posture of people. e system developed in [13, 14] can collect and analyze the movement posture of runners and give visual warning to incorrect movement forms. Literature [15] considers the complexity of athletes' sports process and establishes an accurate and flexible motion capture system, which can customize large sports venues covering multiple athletes and small movements of individual athletes, and is widely used in basketball, running, golf, high jump, and other sports, collecting athletes' sports information and providing objective data support for coaching courses. In this paper, an Internet of ings (IoT) enabled sports information collection or capturing system, which is specifically designed and developed for the healthcare domain particularly in the snow and ice sports, is presented. For this purpose, various physiological parameters which are used during the experimental setup are body temperature, ECG, blood pressure, blood sugar, and blood oxygen saturation are captured through various monitoring devices. e major scientific contributions of this paper are provided as follows: (i) A technology based automatic monitoring system for sports (ii) An Internet of ings enabled system which has the capacity of automatically monitoring the health status of various players in ice and snow sports (iii) A sophisticated mechanism, for both software and hardware related to health examination in the market at present, proposed to evaluate the effectiveness of the proposed mechanism in resolving the aforementioned issues (iv) Design and development of a health management system which includes the communication protocol for the wireless transmission of data from sensor, mobile devices, and cloud server devices. e rest of the paper is arranged according to the following agenda items. In the subsequent section, that is, Section 2, the proposed Internet of ings-based monitoring system is presented along with the overall framework. System for ICE and Snow Sports 2.1. Overall System Framework. e physiological signal acquisition module and Bluetooth wireless communication module are integrated to complete data acquisition and transmission. e mobile program is developed based on Android platform, and the cloud server uses Apache and Nginx to build a high performance server. e overall framework design is shown in Figure 1 . Hardware acquisition equipment includes many modules such as blood pressure, blood oxygen, and ECG, which are responsible for the acquisition of user-related parameters. According to the data collection characteristics of the collection module, the transmission protocol of the module is designed, so that the wireless collection equipment can complete the mutual data transmission with the upper computer equipment [16] . At the same time, the upper computer completes the noise removal and display processing of the collected related data and displays the processed data visually in real time. e cloud service platform receives the data sent by the mobile device and WIFI module via HTTP protocol and, at the same time, establishes a user-friendly WEB interactive page and designs related functions such as personal registration, login, and information consultation. e Redis and MySQL databases are used to store the data sent by the mobile platform. e combination of the two databases can persist and extract the physiological parameters of users and cope with the frequent insertion and extraction of data. Finally, through the microservice framework with DUBBO as the core, the mutual call between internal and external systems is solved, which alleviates the pressure of high performance of the server to a certain extent and completes the related tasks of snow and ice sports health and sports information collection system. Real-time recording and saving of users' sports information not only are the needs of users themselves, but also help coaches to check the athletes' sports information and give some guidance according to their feedback information in time. With the increase of users, the amount of data in the system will also increase, which requires the effective management of users' movement information, so it is valuable to design a reasonable database to manage users' information [17, 18] . According to relevant rules, the logical relationship between database entities can be determined, which is the basis of database design. According to the three aspects of the system function, it can be concluded that the entities in the system are administrator entity, coach entity, and athlete entity. E-R diagram is used to describe the entity of athletes as shown in Figure 2 . e database includes five tables: general user information table, administrator information table, coach information table, feedback information table, and sports information table. In this paper, SQL server is chosen as the development environment for database design. First, tables and database diagrams are established, and then the database is read and written. Database operations use ADO.NET components, which, as a part of the. NET framework, provide classes for database operations. ADO.NET has two ways to read and write data: one is to use data providers; second is to use dataset. e data acquired by dataset from the database is stored in the local memory, so it is necessary to keep the connection with the database all the time [19] . When an application needs data, it can directly read and modify the data from the dataset in memory and then write the modified data back to the database. In this paper, aiming at XP system, firstly IIS is installed in the local computer, then a new virtual host is created, and finally a website is added to the virtual host. Acquisition System. According to the requirements of the practical application of the system, the hardware structure of the system is designed. e hardware design of the system is mainly divided into the hardware design of attitude measurement unit, UWB indoor positioning unit, and data storage and communication unit [20] . Attitude measurement unit is the core measurement unit, and data storage and communication unit is the core communication unit. ese two units are particularly important for human motion information acquisition system. UWB indoor positioning unit is an auxiliary function expansion unit. Combining this unit with attitude measurement unit can improve the positioning accuracy of the system and further improve the accuracy of motion information acquisition, which is of great significance in practical sports applications. e hardware structure diagram of the system is shown in Figure 3 . Attitude measurement unit is the most important part of the system, which mainly includes MEMS sensors such as MEMS accelerometer, MEMS gyroscope and MEMS magnetometer, and microprocessor chip. In view of the possible miniaturization or high precision in practical application and the difference of installation and wearing position, two kinds of attitude measurement units are designed, namely, miniature attitude measurement unit and multifunctional attitude measurement unit. e multifunctional attitude measurement unit has low requirements on volume, so MEMS sensors with higher accuracy can be selected. In order to achieve better expansion functions, microprocessor chips with stronger computing power, larger Flash storage space, and more peripheral interfaces can be selected. In this case, the MEMS sensor of the multifunctional attitude measurement unit selects three-axis accelerometer ADXL355, three single-axis gyroscopes ADXRS453, and three-axis magnetometer AK09970N, while the processor chip selects STM32F407VGT6. e hardware design of this scheme is shown in Figure 4 . e three MEMS sensors selected by the unit all support SPI communication, and the three-axis accelerometer ADXL355 and the single-axis gyroscope ADXRS453 have the same communication timing and phase. ese two MEMS sensors can be directly connected with the SPI interface on the microprocessor chip. By using the chip selection signal, the time-sharing multiplexing function of the three MEMS sensors to SPI bus can be realized, thus realizing the high-speed collection function of the output of the three MEMS sensors, so that the microprocessor chip can process the data in real time. e UWB positioning unit is an auxiliary unit in the system, which can be selected when it is necessary to realize indoor and outdoor high-precision positioning functions. e unit mainly includes UWB chip, microprocessor chip, and communication antenna. e UWB chip is mainly responsible for sending and receiving data through the communication antenna, while the microprocessor chip is mainly responsible for calculating the distance and relative position between units by using UWB positioning algorithm, thus realizing indoor positioning function [21] . Using UWB technology, indoor and outdoor positioning functions can be realized. In order to achieve higher positioning accuracy, it is necessary to have certain preconditions; that is, there must be a certain number of UWB positioning base stations with known coordinate positions. Set in the three-dimensional spatial coordinate system o − xyz, the coordinates of the three positioning base sta- , and the coordinates of the mobile tag are T(x, y, z); the locating base station B 1 detects the included angle between the mobile tag T signal and the z axis that is θ 1 , and the locating base station B 2 detects the included angle between the mobile tag T signal and the x axis that is θ 2 . e location base station B 3 detects the included angle between the T signal of the mobile tag and the y axis that is θ 3 . e geometric relationship between three positioning base stations and mobile tags can be obtained by using the above three-angle information. Equations established by geometric relations are shown in the following formula: Assuming that the real position coordinate of the mobile tag T is (x, y, z) and the estimated coordinate obtained by the positioning algorithm is (x, y, z), the mean square error (MSE) and root mean square error (RMSE) can be expressed as (2) Formula (2) can be used to estimate the position coordinates of mobile tags in three-dimensional space. In the UWB positioning unit, MPU9250, a nine-axis motion sensor, is also selected as an auxiliary chip, which can realize the function of real-time judgment of the motion state of the unit. When the unit is set as a motion tag instead of a base station, if the nine-axis motion sensor MPU9250 detects the unit that is in a static state, the microprocessor chip will correspondingly send instructions to change the working state of the UWB chip in the unit, thereby reducing the working power consumption of the unit. e data storage and communication unit is mainly responsible for storing and sending the attitude and motion information collected by each attitude measurement unit. e unit is mainly divided into an attitude data storage unit and a Bluetooth communication unit according to different practical application requirements. e attitude data storage unit can store the attitude and motion information collected by the attitude measurement unit into the memory card when the amount of data is too large or real-time calculation is unnecessary, and offline data processing can be performed at this time. In the ice and snow sports health and sports information collection system based on Internet of ings, besides the attitude measurement unit which is responsible for collecting attitude and sports information, it also needs the data storage and communication unit to realize the functions of sending and storing the attitude and sports information collected by the attitude measurement unit. is unit can reduce the computational burden of microprocessor chip in the attitude measurement unit and avoid the impact on the real-time performance of information acquisition of the attitude measurement unit. e unit is mainly divided into two parts, namely, an offline data storage unit and a Bluetooth remote communication unit. e structural design of the data storage and communication unit is shown in Figure 5 . Data acquisition nodes mainly include receiving data memory commands, collecting sensor data regularly and storing it in off-chip Flash, and uploading data. Considering the convenience of program development, the embedded software of data acquisition node does not introduce realtime operating system but adopts bare-metal program. Baremetal programs are generally composed of a while loop in a main function and various interrupt service programs. e CPU executes the code in the while loop most of the time. When an interrupt event occurs, the CPU turns to execute the interrupt service program. If the command to start collecting is received, the sensor data will be collected and stored in the off-chip Flash. After completing the acquisition and storage of one frame of data, it will be judged whether the command to end the acquisition sent by the data storage has been received, and if so, the acquisition will be stopped; otherwise, the acquisition will continue. After the acquisition is stopped, the data acquisition node will receive the upload command, read the sensor data from the off-chip Flash, and upload it to the data memory. Inertial sensor unit provides two different ways to acquire sensor data: single register mode and burst register mode. Because this design only needs the data of acceleration, gyroscope, and magnetometer, and the data of all readable registers can be read once in burst mode, the single register mode is adopted. e read operation in single register mode requires two 16-bit SPI cycles. e address of the register to be read is input in the first cycle, and the value of the register to be read in the first cycle is output in the second cycle. Figure 6 shows the read operation of three consecutive registers. Figure 7 . e initialization of the system after power-on mainly includes the initialization of the port and register of the MCU itself and the initialization of the Bluetooth module. Because the master and slave of the signal acquisition unit are completed by 8-bit single chip microcomputer, and the time requirement of signal acquisition is high, no complex algorithm is involved in the program of the signal acquisition unit, and the signal filtering process is completed by the data processing link. e data acquisition node starts the timer, and the timing time is 5 ms. If the response signal is not received within 5 ms, the previous data packet will be retransmitted. If the data receiving success command returning from the data memory is received, the new data packet is read from Flash and uploaded until all the collected data are uploaded. If the data is received by the data memory, but the return response signal is lost, the data will be received repeatedly, which will not affect the analysis result, because the data packets with the same data packet number will be ignored in the calculation process of gait parameters. e data processing unit mainly completes the following functions: after receiving acceleration data, the signal acquisition unit digitally filters it and uses reasonable algorithms to analyze and process the data to obtain relevant conclusions; Communication with the host computer, etc., and its software flow chart is shown in Figure 8 . In the system initialization, the ARM7 chip itself and related peripheral devices are initialized to ensure that each link is in normal working condition. After the initialization of the system, query and wait for the signal acquisition unit to upload the ready signal. If the system waiting time is exceeded, the system will try to communicate with the acquisition unit again. If the communication fails, the system will enter the standby state. After the system completes initialization, the user can set relevant functions and parameters through the function buttons of the data processing unit, and the system will save the current settings. If the functions are not set, the system defaults to the last settings. e main significance of setting functions and parameters lies in the fact that acceleration sensors may be applied in different occasions, such as action normative judgment, movement speed measurement, and displacement measurement. e accuracy and algorithm will be different for different applications, so it is necessary to set functions and parameters. In this system, the method of amplitude limiting filtering is adopted, that is, the two adjacent sampling values are subtracted, and the increment (expressed in absolute value) is calculated and then compared with the maximum allowable difference (determined by the actual situation of the collected object) ΔY of the two samples. If it is less than or equal to ΔY, the current sampling value is taken. If it is greater than ΔY, the last sampling value is still taken as the current sampling value. at is, In different sports events, the acceleration changes of limb movements monitored by them may have great differences, and the acceleration and the rate of change of acceleration during movement at different test points of limbs are also different. e value of ΔY also changes, so the value of ΔY is obtained according to a large number of experiments and can be input through the keyboard when setting the system functions. In the ice and snow sports health and sports information collection system based on the Internet of ings, for example, we need to obtain the final results of the measuring equipment, while the pulse wave signal and ECG signal may be interfered in the transmission process, resulting in incorrect measurement results. erefore, in order to measure the accuracy and reliability of the results, it is necessary to do noise processing on the transmission waveform. At the end of 20th century, Professor Norden E. Huang and others put forward the concept of Intrinsic Mode Function (IMF). EMD can be used to decompose signals to obtain a series of IMF. Every IMF must meet two requirements: (1) e number of zeros and poles in IMF components is equal or at most different by 1 (2) e signal is symmetric about time axis EMD is a processing method that decomposes the nonstationary pulse wave signal into several IMF component signals. EMD decomposition steps are as follows: (1) Find all local maxima and minima of signal x(t) and use cubic spline function to find the local mean of upper envelope e max and lower envelope e min . (2) All data centers contained in the two envelopes are marked m(t). In actual operation, the standard deviation S (s � 0.2 or 0.3) is taken as the standard to stop the cycle. (4) rough the above process, the IMF1 component C 1 � h 1k (t) and the remaining items after separating the IMF1 component are obtained: Journal of Healthcare Engineering (5) Continue to filter r 1 (t) according to the above steps and then get IMF2, IMF3... until r i (t) shows a monotonic trend or the value of r i (t) is very small; then stop the filter. After the above five steps, the original signal can be reconstructed as follows: EMD algorithm can deal with the adaptive denoising of nonstationary signals well and has better effect than Fourier transform and wavelet transform in nonstationary signal processing. e processing mode of the upper computer of the sports health and sports information acquisition system is mainly the following process: the thread in charge of receiving waveform data in the upper computer receives the data and transmits it to the relevant waveform noise processing thread according to the waveform data category. When the noise thread is processed, the mobile client will display the processed data waveform on the interface, and the receiving thread in the cloud server will also display the waveform data on the WEB interface in real time and, at the same time, persist the processed noise waveform data in the database for subsequent query and diagnosis. e processing diagram is shown in Figure 9 . Use hardware to connect devices and check the time taken for successful connection after the simultaneous connection of multiple Bluetooth devices. Because the equipment used and the experimental process are basically similar to those in the previous section, you can see whether this connection is successful or not and the time elapsed from triggering the connection to the successful connection program in Android devices. ere are 100 groups of experiments in this experiment, including the total number of Bluetooth connections, Bluetooth connection time, total time of multiple Bluetooth connections, and average connection success time. e experimental data is shown in Figure 10 . It can be seen from Figure 10 that the number of connections can only be seven and the time for seven Bluetooth connections is gradually increasing. When connecting the eighth Bluetooth, the system will disconnect a Bluetooth that was successfully connected before and connect the eighth Bluetooth device at the same time, which takes a long time. Similarly, when the number of Bluetooth connections is seven, it takes 7.6 s in total and 1.13 s per connection on average. Time consuming is within the acceptable range, and multiple Bluetooth connections can be guaranteed at the same time. Journal of Healthcare Engineering different; on the other hand, there is a big difference between the values of normal people and patients measured by health collection equipment. If these two aspects can be ensured within the error range, then this experiment can show that the measurement accuracy of wireless acquisition equipment is true and effective. Criterion uses variance to determine the degree of stability. is test mainly depends on whether the measurement of acquisition equipment is stable. is experiment is a total of 100 times. e parameters tested include body temperature, blood sugar, blood pressure, heart rate, and blood oxygen. Blood sugar is measured on an empty stomach, while others are measured in a normal state. Figures 11 and 12 show the measurement results of five kinds of measuring devices 100. It can be seen from the figures that the difference of multiple measurements is not very large. Table 1 shows the variance of 100 measurement results of the same equipment. If the variance is smaller, the measured data is relatively stable. From the table, it can be seen that the variance of 100 measurement results of all measuring equipment is less than 0.5 and the one with higher volatility belongs to blood pressure, which may be due to body movement during the measurement. erefore, this experiment can show that the wireless acquisition equipment runs stably and can provide good measurement services. Attitude measurement unit is the most critical part of the snow and ice sports health and sports information collection system based on Internet of ings, and the performance of attitude measurement unit directly affects the functions of the whole system. e MEMS accelerometer and MEMS gyroscope in the attitude measurement unit are independently calibrated by using a high-precision three-axis turntable, and the static and dynamic measurement accuracy of the calibrated attitude measurement unit are tested and verified. In order to ensure the measurement accuracy of the system, MTi-G-710 inertial unit of Xsense Company is selected as a comparative reference to test the dynamic performance of the attitude measurement unit. e output data of MTi-G-710 can include accelerometer output, gyroscope output, and attitude angle output. In order to verify the dynamic attitude estimation accuracy of attitude measurement unit, the attitude angle is used as the comparison data, and the MTi-G-710 and attitude measurement unit output pitch angle, roll angle, and azimuth angle data under the same movement condition. e comparison test results are shown in Figures 13-15 . rough the static measurement accuracy test of the attitude measurement unit in the ice and snow sports health and sports information acquisition system based on the Internet of ings and the dynamic accuracy test compared with MTi-G-710 inertial group, the characteristics of small size and high accuracy of the attitude measurement unit are fully reflected, and the test results are consistent with the MATLAB simulation results, which fully verifies the effectiveness of the omnidirectional attitude estimation algorithm. e location algorithm based on UWB technology is given above, and a UWB location unit based on DW1000 chip is designed. is part will test the location accuracy of UWB location unit. In the test, Chan's algorithm based on TDOA is used to calculate the coordinate position of mobile tag. In the actual test process, because the real-time motion trajectory of UWB positioning unit is difficult to measure, several discrete points with known coordinates of relative positioning base stations are selected as test points to test the positioning accuracy of UWB positioning unit. From Figure 16 , we can analyze the positioning errors of UWB in five positioning base stations more intuitively. From the figure, we can see that the positioning errors of UWB in z axis direction are obviously suppressed, while the errors in other two coordinate axes and distance errors are suppressed, and the errors in x axis direction and y axis direction can be controlled within 0.2 m. Based on the above results, the accuracy of using Chan's algorithm based on TDOA to realize UWB positioning function is verified. By increasing the number of positioning base stations, the positioning accuracy of the system is effectively improved, and the information collection accuracy of the ice and snow sports health and sports information collection system based on Internet of ings is fully guaranteed. Move tag serial number Under the background of China's health strategy, snow and ice sports are proposed because health is the product of social development at a certain stage. With the improvement of people's living standards, people will pay more and more attention to health. is paper mainly completes the research of snow and ice sports health and sports information collection system based on the Internet of ings, including the related integration of wireless communication module and collection equipment, the design of wireless transmission protocol and related analysis, and program design of mobile platform and high performance cloud server. In order to solve the problem that MEMS sensors are easily affected by ambient temperature, temperature compensation is carried out for MEMS sensors. According to the requirement of UWB positioning, the common UWB positioning algorithms are analyzed, and their positioning accuracy is verified by simulation; thus the main algorithms in the snow and ice sports health and sports information collection system based on Internet of ings are given. e motion information collected by the system can reflect the characteristics of each action, which is convenient for subsequent identification and analysis. rough the test, the system has a good ability of collecting human motion information. Although the ice and snow sports health and sports information collection system based on Internet of ings is running normally at present, there are still some shortcomings in the design and processing process, which need to be improved and solved later. ere are some differences in the accuracy of physiological signal processing. Because the amount of data processed is a small sample, a large amount of hospital data may be needed to improve the accuracy of the algorithm. e data used to support the findings of this study are included within the article. e author declares that he has no conflicts of interest. Design and data analysis of sports information acquisition system based on internet of medical things A micropower motion artifact estimator for input dynamic range reduction in wearable ECG acquisition systems Ideation as an intellectual information acquisition and use context: investigating game designers' information-based ideation behavior Risk as a predictor of online competitive information acquisition Sports and health big data system based on 5G network and Internet of ings system Design and implementation of intelligent traffic and big data mining system based on internet of things Key events in the formation of present-day English Research on monitoring system of building slope deformation based on internet of things A hierarchical information acquisition system for AUV assisted internet of underwater things Design and implementation of beach sports big data analysis system based on computer technology Design and implementation of a multi-function home automation system based on internet of things (IoT) Design and implementation of an internet-of-things roadside parking system based on raspberry pi 3 and Bluetooth low energy mesh sensor network An E-health system for monitoring elderly health based on internet of things and fog computing Remote diagnostic and detection of coronavirus disease (COVID-19) system based on intelligent healthcare and internet of things Design of traffic emergency response system based on internet of things and data mining in emergencies Design of industrial internet of things system based on machine learning and artificial intelligence technology Implementation of recognition and healthcare service system based on finger vein Early warning system to protect commercial and residential place -based on the internet of things Medical equipment comprehensive management system based on cloud computing and internet of things Intelligent monitoring system of residential environment based on cloud computing and internet of things Design of mine safety dynamic diagnosis system based on cloud computing and internet of things technology