Towards Secure Fitness Framework Based on IoT-Enabled Blockchain Network Integrated with Machine Learning Algorithms
Abstract
:1. Introduction
- The main aim of this research is to propose an enhanced smart contract based intelligent fitness service in blockchain networks.
- The proposed intelligent service model is based on an enhanced smart contract enabled relationship and a real-time inference engine that is used to infer new knowledge from the IoT environment and store the mined knowledge into the blockchain ledger.
- The proposed system is based on a permissioned blockchain model, where the IoT device information is secured and only authorized users can access the system logs and transaction history.
- The proposed blockchain model is a lightweight solution where the interactive client application uses the RESTful API to communicate between the IoT devices and blockchain network. The inclusion of RESTful API improves the system performance by providing the data offloading computation functionality.
- The proposed work also develops a prototype application for an intelligent fitness service, which demonstrates the strength of the proposed IoT blockchain architecture.
- The intelligent fitness service investigates the fitness data to recommend the diet and workout plan to the trainee.
- FInally, the robustness and effectiveness of the intelligent fitness service is evaluated using the Hyperledger Caliper in terms of latency, throughput, and resource utilization. The obtained results speak about the efficiency of the proposed system.
2. Literature Review
2.1. Blockchain and Artificial Intelligence in IoT
Name | Year | Smart Contract | Technological Aspects | Consensus | Access Policy | Crypto-Currency | Functionality |
---|---|---|---|---|---|---|---|
Rathore et al. [34] | 2019 | Yes | Blockchain+AI | Complete Nodes | Not Defined | Yes | BlockDeepNet |
Rathore et al. [47] | 2019 | Yes | Blockchain+AI | Complete Nodes | Premissionless | No | Security Architecture for IoT Network in Smart City |
Salah et al. [44] | 2019 | Not Defined | Blockchain+AI | Complete Nodes | Premissioned/ Permissionless | Not Defined | Healthcare, Microgrid, Farming, Ocean exploration, Banking |
Atlam et al. [35] | 2018 | Not Defined | IoT+AI | Complete Nodes | Not Defined | Not Defined | IoT Platform |
Wright et al. [43] | 2018 | Yes | Blockchain+IoT +Edge Computing | Complete Nodes | Premissionless | No | IoT Platform |
Qian et al. [45] | 2018 | No | Blockchain+IoT | Complete Nodes | Not Defined | No | Security Architecture for IoT Network |
Kshetri et al. [46] | 2017 | No | Blockchain+IoT | Complete Nodes | Not Defined | No | IoT Platform |
Proposed Solution | 2020 | Yes | Blockchain+AI +IoT+ Inference Engine | Arbitrary Nodes | Permissioned | No | Intelligent Fitness Service Based on IoT Blockchain Platform |
2.2. Blockchain in Fitness
Authors | Year | Approach | Platform | Objective | Limitations |
---|---|---|---|---|---|
Joseph Fargnoli and Chelsey Clime | 2018 | Run2Play [50] | Ethereum | Store health fitness data and incentivize user with RUNtoken. Gaming application based on augmented reality utilizing RUNCoin proof-of-fitness, and proof-of-stake in order to reward users for fitness activity. | Low Scalability. Hosted on public server. Required high computation. |
Martin Holt | 2017 | Movement [51] | Ethereum | Incentivize users for physical activities, such as jogging, running, using a treadmill and any outside physical activity | Low Efficiency. Less secure. Low scalability. Required mining |
Jaroslav Štreit | 2016 | Truegym [52] | Ethereum | Truegym is Ethereum based uses machine-learning approach that analyze fitness data acquired from trainer and devices to recommend training plan for every user. Incentivize users with TGC Token as a reward in exchange for physical activity. | Low Efficiency. Less Secure. Low scalability. Required mining |
Kristopher Floyd | 2018 | TeamMate [54] | Ethereum | Store healthcare data such as vital sign and fitness data such as users physical activities. Incentivize user with TMT token through consensus algorithm via smart contract. | High energy consumption. Less secure. Low Scalability. Required mining |
Bryan Seiler | 2018 | Fitrova [55] | Ethereum | Fitness application aims to store fitness user data. Develop FRV a token which provides concise and clear payment, secure and lightweight payment transferring platform. | Low throughput. High energy consumption. Less secure. low scalability |
Drake Blankenship | 2018 | The Hustle [53] | Ethereum | Promoting wellness, health and fitness. Incentivize user for staying healthy. | High latency. Low efficiency. High power consumption. low scalability. |
Daniel Sanchez | 2019 | 180NF [56] | Stellar | Recommend wellness, workout, diet and nutrition. Scheduling personalized exercise and training. Incentivize user with a token in exchange of data. | Less Scalability. low throughput. High power consumption. |
Robert Maxwell | 2017 | FIT Token [57] | Ethereum | Blockchain-based sport and fitness an application that allows the user to use FIT token to buy memberships and make a booking at sport and fitness entertainment. | Required high energy consumption for token mining. less scalable. low performance efficiency. |
Jean-Michel Alfieri | 2019 | StepChain | Ethereum | A responsive fitness application reward users in exchange for physical activities and calories burned. Acquired data from built-in smartphone sensors. Introduced StepCoins.Track fitness progress. | Required high mining cost. less scalable. Less secure. High latency. |
Proposed System | 2020 | Intelligent Fitness Service | Hyperledger Fabric | Intelligent fitness service based on smart contract enabled inference engine. The real-time inference engine derived new body composition function from the user and device network. The blockchain platform also recommend diet plan, and fitness plan for trainee. Moreover, the system also predict the future diet plan and workout plan. | Limited network size. |
3. Proposed Relationship and Inference Mechanism of Smart Contract Based on User and IoT Device Profile
3.1. Intelligent Service Model Based on Enhanced Smart Contract
3.2. Intelligent Service Architecture Based on Enhance Smart Contract
3.3. Interaction Model of Proposed Intelligent IoT Blockchain Platform
3.4. Execution Flow of Proposed Intelligent IoT Blockchain Platform
4. Intelligent Fitness Service Model Based on Relationship and Inference Engine
5. Development of Intelligent Fitness Services Based on Enhanced Smart Contract Enabled Relationship and Inference Engine in IoT Network
5.1. Use-Case Implementation and Deployment
5.2. Smart Contract Modeling of the Case Study
5.3. Execution Procedure of the Case Study
6. Predictive Analytics Model for Secure Fitness Service
7. Performance Analysis
7.1. Security Analysis
- Key Attack: the secure fitness framework uses the encryption based on elliptic curve that is used to create the key pair which is difficult to compute by the attacker. The private key generation by solving elliptic curve mechanism requires high computation power, which is difficult for the intruder. The private key is normally distributed among every node for each session agreement.
- False Data Injection Attack: in the proposed blockchain framework, the consensus mechanism is carried out before record validation. Every node verifies and authenticates the integrity of fitness record after successful consensus mechanism.
- Man in Middle Attack: the fitness framework assures and safeguards bilateral authentication and authorization between nodes, as a temporary private key is used for every session agreement, which avoids man in the middle attack.
- Replay Attack: in proposed fitness framework, a separate private key is used for session agreement among nodes. The separate private key prevents the replay attack.
7.2. Performance Evaluation
7.3. Simulation Results
8. Significance and Comparison
9. Conclusions and Future Direction
Author Contributions
Funding
Conflicts of Interest
References
- Frank, L.; Engelke, P.; Schmid, T. Health and Community Design: The Impact of the Built Environment on Physical Activity; Island Press: Washington, DC, USA, 2003. [Google Scholar]
- Belza, B.; Walwick, J.; Schwartz, S.; LoGerfo, J.; Shiu-Thornton, S.; Taylor, M. pEER REvIEWED: Older Adult perspectives on physical Activity and Exercise: Voices From Multiple cultures. Prev. Chronic Dis. 2004, 1, 4. [Google Scholar]
- Bouchard, C.; Blair, S.N.; Haskell, W.L. Physical Activity and Health; Human Kinetics: Champaign, IL, USA, 2012. [Google Scholar]
- Kruk, J. Physical activity in the prevention of the most frequent chronic diseases: An analysis of the recent evidence. Asian Pac. J. Cancer Prev. 2007, 8, 325. [Google Scholar] [PubMed]
- Kelly, S.J.; Ismail, M. Stress and type 2 diabetes: A review of how stress contributes to the development of type 2 diabetes. Annu. Rev. Public Health 2015, 36, 441–462. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Gholap, N.; Davies, M.; Patel, K.; Sattar, N.; Khunti, K. Type 2 diabetes and cardiovascular disease in South Asians. Prim. Care Diabetes 2011, 5, 45–56. [Google Scholar] [CrossRef] [PubMed]
- Saghiri, A.M.; Vahdati, M.; Gholizadeh, K.; Meybodi, M.R.; Dehghan, M.; Rashidi, H. A framework for cognitive Internet of Things based on blockchain. In Proceedings of the 2018 4th International Conference on Web Research (ICWR), Tehran, Iran, 25–26 April 2018; pp. 138–143. [Google Scholar]
- Ongaro, D.; Ousterhout, J. In search of an understandable consensus algorithm. In Proceedings of the 2014 {USENIX} Annual Technical Conference ({USENIX}{ATC} 14), Philadelphia, PA, USA, 19–20 June 2014; pp. 305–319. [Google Scholar]
- Castro, M.; Liskov, B. Practical Byzantine Fault Tolerance; OSDI: New Orleans, LA, USA, 1999; Volume 99, pp. 173–186. [Google Scholar]
- Vukolić, M. The quest for scalable blockchain fabric: Proof-of-work vs. BFT replication. In International Workshop on Open Problems in Network Security; Springer: Berlin/Heidelberg, Germany, 2015; pp. 112–125. [Google Scholar]
- Milutinovic, M.; He, W.; Wu, H.; Kanwal, M. Proof of luck: An efficient blockchain consensus protocol. In Proceedings of the 1st Workshop on System Software for Trusted Execution, Trento, Italy, 14–16 December 2016; pp. 1–6. [Google Scholar]
- Alsunaidi, S.J.; Alhaidari, F.A. A survey of consensus algorithms for blockchain technology. In Proceedings of the 2019 International Conference on Computer and Information Sciences (ICCIS), Sakaka, Saudi Arabia, 3–4 April 2019; pp. 1–6. [Google Scholar]
- Mizrahi, I.; Rosenfeld, M. Proof of Activity: Extending Bitcoin’s Proof of Work via Proof of Stake. IACR Cryptol. Eprint Arch. 2014, 42, 34–37. [Google Scholar]
- Bartoletti, M.; Lande, S.; Podda, A.S. A proof-of-stake protocol for consensus on bitcoin subchains. In Proceedings of the International Conference on Financial Cryptography and Data Security, Sliema, Malta, 3–7 April 2017; pp. 568–584. [Google Scholar]
- Courtois, N.T. On the longest chain rule and programmed self-destruction of crypto currencies. arXiv 2014, arXiv:1405.0534. [Google Scholar]
- Nakamoto, S. Bitcoin: A Peer-to-Peer Electronic Cash System. 2008. Available online: https://bitcoin.org/bitcoin.pdf (accessed on 24 February 2020).
- Tang, S.; Shelden, D.R.; Eastman, C.M.; Pishdad-Bozorgi, P.; Gao, X. A review of building information modeling (BIM) and the internet of things (IoT) devices integration: Present status and future trends. Autom. Constr. 2019, 101, 127–139. [Google Scholar] [CrossRef]
- Alam, T. Blockchain and its Role in the Internet of Things (IoT). arXiv 2019, arXiv:1902.09779. [Google Scholar] [CrossRef]
- Lee, I.; Lee, K. The Internet of Things (IoT): Applications, investments, and challenges for enterprises. Bus. Horizons 2015, 58, 431–440. [Google Scholar] [CrossRef]
- Jamil, F.; Hang, L.; Kim, K.; Kim, D. A novel medical blockchain model for drug supply chain integrity management in a smart hospital. Electronics 2019, 8, 505. [Google Scholar] [CrossRef] [Green Version]
- Jamil, F.; Ahmad, S.; Iqbal, N.; Kim, D.H. Towards a Remote Monitoring of Patient Vital Signs Based on IoT-Based Blockchain Integrity Management Platforms in Smart Hospitals. Sensors 2020, 20, 2195. [Google Scholar] [CrossRef] [Green Version]
- Vermesan, O.; Friess, P. Internet of Things: Converging Technologies for Smart Environments and Integrated Ecosystems; River Publishers: Gistrup, Denmark, 2013. [Google Scholar]
- West, D.M. How 5G technology enables the health internet of things. Brookings Cent. Technol. Innov. 2016, 3, 1–20. [Google Scholar]
- Zhang, Y.; Sun, L.; Song, H.; Cao, X. Ubiquitous WSN for healthcare: Recent advances and future prospects. IEEE Internet Things J. 2014, 1, 311–318. [Google Scholar] [CrossRef]
- Hussain, F. Internet of everything. In Internet of Things; Springer: Berlin/Heidelberg, Germany, 2017; pp. 1–11. [Google Scholar]
- Jamil, F.; Iqbal, M.A.; Amin, R.; Kim, D. Adaptive thermal-aware routing protocol for wireless body area network. Electronics 2019, 8, 47. [Google Scholar] [CrossRef] [Green Version]
- Jamil, F.; Kim, D.H. Improving Accuracy of the Alpha–Beta Filter Algorithm Using an ANN-Based Learning Mechanism in Indoor Navigation System. Sensors 2019, 19, 3946. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Ahmad, S.; Jamil, F.; Khudoyberdiev, A.; Kim, D. Accident risk prediction and avoidance in intelligent semi-autonomous vehicles based on road safety data and driver biological behaviours. J. Intell. Fuzzy Syst. 2020, 38, 4591–4601. [Google Scholar] [CrossRef]
- Kranz, M. Building the Internet of Things: Implement New Business Models, Disrupt Competitors, Transform Your Industry; John Wiley & Sons: Hoboken, NJ, USA, 2016. [Google Scholar]
- Jamil, F.; Iqbal, N.; Imran; Ahmad, S.; Kim, D. Peer-to-Peer Energy Trading Mechanism based on Blockchain and Machine Learning for Sustainable Electrical Power Supply in Smart Grid. IEEE Access 2021, 1. [Google Scholar] [CrossRef]
- Ahmad, S.; Jamil, F.; Iqbal, N.; Kim, D. Optimal Route Recommendation for Waste Carrier Vehicles for Efficient Waste Collection: A Step Forward Towards Sustainable Cities. IEEE Access 2020, 8, 77875–77887. [Google Scholar] [CrossRef]
- Iqbal, N.; Jamil, F.; Ahmad, S.; Kim, D. Toward Effective Planning and Management Using Predictive Analytics Based on Rental Book Data of Academic Libraries. IEEE Access 2020, 8, 81978–81996. [Google Scholar] [CrossRef]
- Chung, C.M.; Chen, C.C.; Shih, W.P.; Lin, T.E.; Yeh, R.J.; Wang, I. Automated machine learning for Internet of Things. In Proceedings of the 2017 IEEE International Conference on Consumer Electronics-Taiwan (ICCE-TW), Taipei, Taiwan, 12–14 June 2017; pp. 295–296. [Google Scholar]
- Rathore, S.; Pan, Y.; Park, J.H. BlockDeepNet a Blockchain-based secure deep learning for IoT network. Sustainability 2019, 11, 3974. [Google Scholar] [CrossRef] [Green Version]
- Atlam, H.F.; Walters, R.J.; Wills, G.B. Intelligence of things: Opportunities challenges. In Proceedings of the 2018 3rd Cloudification of the Internet of Things (CIoT), Paris, France, 2–4 July 2018; pp. 1–6. [Google Scholar]
- Lee, S.W.; Prenzel, O.; Bien, Z. Applying human learning principles to user-centered IoT systems. Computer 2013, 46, 46–52. [Google Scholar]
- Khan, P.W.; Byun, Y. A Blockchain-Based Secure Image Encryption Scheme for the Industrial Internet of Things. Entropy 2020, 22, 175. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Griggs, K.N.; Ossipova, O.; Kohlios, C.P.; Baccarini, A.N.; Howson, E.A.; Hayajneh, T. Healthcare blockchain system using smart contracts for secure automated remote patient monitoring. J. Med. Syst. 2018, 42, 130. [Google Scholar] [CrossRef] [PubMed]
- Jamil, F.; Kim, D. Payment Mechanism for Electronic Charging using Blockchain in Smart Vehicle. Korea 2019, 30, 31. [Google Scholar]
- Jamil, F.; Iqbal, N.; Ahmad, S.; Kim, D.H. Toward accurate position estimation using learning to prediction algorithm in indoor navigation. Sensors 2020, 20, 4410. [Google Scholar] [CrossRef] [PubMed]
- Xu, G.; Liu, Y.; Khan, P.W. Improvement of the DPoS Consensus Mechanism in Blockchain Based on Vague Sets. IEEE Trans. Ind. Informatics 2019, 16, 4252–4259. [Google Scholar] [CrossRef]
- Khan, P.W.; Byun, Y.C. Smart Contract Centric Inference Engine For Intelligent Electric Vehicle Transportation System. Sensors 2020, 20, 4252. [Google Scholar] [CrossRef]
- Wright, K.L.; Martinez, M.; Chadha, U.; Krishnamachari, B. SmartEdge: A smart contract for edge computing. In Proceedings of the 2018 IEEE International Conference on Internet of Things (iThings) and IEEE Green Computing and Communications (GreenCom) and IEEE Cyber, Physical and Social Computing (CPSCom) and IEEE Smart Data (SmartData), Halifax, NS, Canada, 30 July–3 August 2018; pp. 1685–1690. [Google Scholar]
- Salah, K.; Rehman, M.H.U.; Nizamuddin, N.; Al-Fuqaha, A. Blockchain for AI: Review and open research challenges. IEEE Access 2019, 7, 10127–10149. [Google Scholar] [CrossRef]
- Qian, Y.; Jiang, Y.; Chen, J.; Zhang, Y.; Song, J.; Zhou, M.; Pustišek, M. Towards decentralized IoT security enhancement: A blockchain approach. Comput. Electr. Eng. 2018, 72, 266–273. [Google Scholar] [CrossRef]
- Kshetri, N. Can blockchain strengthen the internet of things? IT Prof. 2017, 19, 68–72. [Google Scholar] [CrossRef] [Green Version]
- Rathore, S.; Kwon, B.W.; Park, J.H. BlockSecIoTNet: Blockchain-based decentralized security architecture for IoT network. J. Netw. Comput. Appl. 2019, 143, 167–177. [Google Scholar] [CrossRef]
- Elliott, M.; Eck, F.; Khmelev, E.; Derlyatka, A.; Fomenko, O. Physical activity behavior change driven by engagement with an incentive-based app: Evaluating the impact of Sweatcoin. JMIR mHealth uHealth 2019, 7, e12445. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Derlyatka, A.; Fomenko, O.; Eck, F.; Khmelev, E.; Elliott, M.T. Bright spots, physical activity investments that work: Sweatcoin: a steps generated virtual currency for sustained physical activity behaviour change. Br. J. Sport. Med. 2019, 53, 1195–1196. [Google Scholar] [CrossRef] [PubMed]
- Anthony, J. Run2Play. 2018. Available online: https://www.run2play.com/wp-content/uploads/2018/06/Run2Play_Whitepaper_June-12-2018.pdf (accessed on 14 August 2020).
- Holt, M. Movement App: Perfect App for Active Lifestyle. 2017. Available online: https://icobench.com/ico/movement-app (accessed on 14 August 2020).
- Štreit, J. Truegym: Increasing Workout Effectivity. 2016. Available online: https://truegym.io/wp-content/uploads/2018/08/True-Gym-Whitepaper-EN-v2.pdf (accessed on 14 August 2020).
- Blankenship, D. The Hustle App: Promoting Health, Fitness and Wellness. 2018. Available online: https://www.hustletoken.org/read/HUSL-English-Whitepaper4.1.0e.pdf (accessed on 14 August 2020).
- Floyd, K. TeamMate: Gamified Fitness Data. 2018. Available online: https://icobench.com/ico/teammate (accessed on 14 August 2020).
- Seiler, B. Fitrova: Revolutionizing the Health and Fitness Industry. 2018. Available online: https://icobench.com/ico/fitrova (accessed on 14 August 2020).
- Sanchez, D. 180NF: 180º Nutrition and Fitness App. 2019. Available online: https://icobench.com/ico/180nf (accessed on 14 August 2020).
- Maxwell, R. FIT Token: Fitness and Sport Centers. 2018. Available online: https://icobench.com/ico/fit-token (accessed on 14 August 2020).
- Sukhwani, H.; Wang, N.; Trivedi, K.S.; Rindos, A. Performance modeling of hyperledger fabric (permissioned blockchain network). In Proceedings of the 2018 IEEE 17th International Symposium on Network Computing and Applications (NCA), Cambridge, MA, USA, 1–3 November 2018; pp. 1–8. [Google Scholar]
Consensus Type | Consensus Algorithm | Node Management | Mining Based on | Energy Consumption | Transaction Fee | Validation Speed (s) | Transaction per Second | Applications |
---|---|---|---|---|---|---|---|---|
Voting-based consensus Algorithm | Raft [8] | Private Blockchain | Random timer | Yes | No | 0 s to 10 s | 10,000 tps | Smart Contracts |
PBFT [9,10] | Private Blockchain | Mathematical process | Yes | No | 0 s to 10 s | 2000 tps | Smart Contracts | |
Proof-based consensus algorithm | PoL [11] | Consortium Blockchain | Prioritized | Yes | Yes | 15 s | 1000 tps | Crypto-currency |
PoI [12] | Consortium Blockchain | Random value | Yes | Yes | 30 s to 1 min | 500 tps | IoT application | |
PoA [13] | Public Blockchain | Hashing | Partial | Yes | 30 s | 800 tps | Crypto-currency | |
PoS [14,15] | Public Blockchain | Staked owned | Partial | Yes | 100 s | 1000 tps | Smart contracts, Crypto-currency | |
DPoS [12] | Public Blockchain | Staked owned | Partial | Yes | 100 s | 1000 tps | Bit-shares Crypto-currency | |
PoW [16] | Public Blockchain | Hashing | No | Yes | 100 s | 100 tps | Smart contracts, Crypto-currency |
Type | Range |
---|---|
Under weight | BMI < 18.5 |
Normal weight | 18.5 ≤ BMI ≤ 24.9 |
Over weight | 25 ≤ BMI ≤ 29.9 |
Obesity | 30 ≤ BMI ≤ 35 |
Type | Gender | Range |
---|---|---|
Athletes | Male | 6% ≤ BFP ≤ 13% |
Female | 14% ≤ BFP ≤ 20% | |
Average | Male | 18% ≤ BFP ≤ 24% |
Female | 25% ≤ BFP ≤ 31% | |
Obese | Male | BFP > 25% |
Female | BFP > 32% |
Module | Component | Description |
---|---|---|
Intelligent Fitness service | CPU | Intel(R) Core(TM) i5-8500 CPU @3.00 CHz |
Operating System | Ubuntu Linux 18.04 LTS | |
Docker Engine | Version 18.06.1-ce | |
Docker-Composer | Version 1.13.0 | |
IDE | Composer Playground | |
Programming Language | Node.js | |
Hyperledger Fabric | Version 1.2 | |
Node Version | 8.11.4 | |
Database | Couch DB | |
Memory | 12 GB | |
Fitness IoT Server | Hardware | Arduino Uno |
Server | CoAP Server | |
Library/Framework | Californium CoAP, Http URL Connection | |
Programming Language | Arduino | |
Operating System | Ubuntu Linux 18.04 LTS | |
IoT Gateway | Hardware | Raspberry Pi-4 |
Server | CoAP Server | |
Library/Framework | Californium CoAP, Http URL Connection | |
Fitness Blockchain Web Application | Operating System | Window 10 |
Browser | Chrome, Firefox, IE | |
Programming Language | HTML, CSS, JavaScript, Node.js | |
Library/Framework | Notify.js, Californium CoAP, JQuery, Bootstrap | |
Predictive Analytics Model | Operating System | Microsoft Windows 10 |
CPU | Intel(R) Core(TM) i5-8500 CPU @3.00 CHz | |
Main Memory | 16GB RAM | |
Core Programming Language | Python | |
IDE | PyCharm Professional 2020 | |
ML Algorithm | 1. Deep Neural Network 2. Support Vector Regressor |
Type | Component | Description |
---|---|---|
Transaction | Update Exercise Type | Update the past visit workout plan in record (exercise type, reps) |
Update workout Plan Rep | Update the past visit workout plan in record (exercise type, reps) | |
Sensor Reading | Acquired data from IoT fitness devices | |
Fat Free Mass | Compute the Fat-Free Mass based on body measurement | |
Body Fat Percentage | Compute the Body Fat Percentage based on body measurement | |
Body Mass Index | Compute the Body Mass Index based on body measurement | |
Waist Hip Ratio | Compute the Waist Hip Ratio based on body measurement | |
Basal Metabolism Rate | Compute the Basal Metabolism Rate based on body measurement | |
Update Diet Information | Update the Diet information array in record (date, diet products, time) | |
Share Record With Trainer | Set the record access permission to a specific Trainer | |
Share Record With Trainee | Set the record access permission to a specific Trainee | |
Historical Inferred knowledge | Compute the inferred knowledge based on historical data(device and user profile) | |
Assets | Features | Historical inferred knowledge deduce form historical data. |
workout plan | Record of weekly workout plan of trainee | |
Device | Iot fitness devices used for acquiring values | |
Diet Plan | Record of weekly diet plan of trainee | |
Goal | Record of the goal computed based on reading acquired from IoT fitness devices. | |
Body Measurement | Record of the body measurement values taken from IoT fitness devices | |
Fitness Record | Record the details of the personalized fitness record of trainee along with assigned trainer. | |
Participants | Trainer | Update the Personalized fitness record. Pay membership bills |
Trainee | Update the Personalized fitness record. Create, update the fitness record(fitness devices, diet plan, and workout plan). | |
Admin | Create, update the trainee appointment. Create, update the membership bills. Create, update the fitness records. Send the membership bills to trainee. |
Action | Verb | Media-Type | URI |
---|---|---|---|
Fitness Device Management | ALL | Application/JSON | /api/Devices |
Fitness Record Management | ALL | /api/fitnessRecord | |
Diet Plan Management | ALL | /api/DietPlan | |
Workout Plan Management | ALL | /api/workoutPlan | |
Body Measurement | GET | /api/bodyMeasurement | |
Fat Free Mass | GET | /api/FFM | |
Body Mass Index | GET | /api/BMI | |
Waist Hip Ratio | GET | /api/WHR/ | |
Basal Metabolic Rate | GET | /api/BMR | |
Fitness Device Reading | GET, POST | /api/FitnessReading | |
Historian Record | GET | /api/system/historian | |
Fetch All Identities | GET | /api/system/identities | |
Issue Identity to Participant | POST | /api/system/identities/issue | |
Blockchain Network Test | GET | /api/system/ping |
Case ID | Trainee ID # | Body Composition Function Reading | Recommendation | |||||
---|---|---|---|---|---|---|---|---|
FFM | BFP | BMI | BMR | WHR | Diet Plan | Workout Plan | ||
1 | Trainee 1 | 26 | 28 | 32 | 1842 | 1.9 | Diet Plan 2 | Workout Plan 2 |
2 | Trainee 2 | 21 | 23 | 22 | 1648 | 0.97 | Diet Plan 1 | Workout Plan 1 |
3 | Trainee 3 | 11 | 10 | 20 | 1552 | 0.98 | Diet Plan 3 | Workout Plan 3 |
4 | Trainee 4 | 30 | 29 | 33 | 1792 | 1.5 | Diet Plan 2 | Workout Plan 2 |
5 | Trainee 5 | 29 | 27 | 35 | 1997 | 1.2 | Diet Plan 2 | Workout Plan 2 |
Classifiers (%) | Accuracy (%) | Precision (%) | Recall (%) | F-Measure (%) |
---|---|---|---|---|
DT | 85.4 | 84.2 | 81.6 | 82.8 |
LR | 89.3 | 83.1 | 84.3 | 85.3 |
SVM | 92.1 | 86.5 | 86.2 | 87.2 |
K-NN | 84.2 | 84.0 | 80.4 | 82.2 |
Component | Description |
---|---|
Docker Engine | Version 18.06-ce |
CLI Tool | Node-gyp |
Docker-Composer | Version 1.130 |
Node | v8.11.4 |
Type | Name | CPU | CPU | Memory | Memory | Traffic | Traffic |
---|---|---|---|---|---|---|---|
(max%) | (avg%) | (max) | (avg) | In | Out | ||
Process | local-client.js | 11.75 | 5.25 | 74.2 MB | 72.0 MB | 472 KB | 142.3 KB |
Docker | peer1.Trainer.com | 11.92 | 5.58 | 79.5 MB | 76.7 MB | 465.4 KB | 139.9 KB |
Docker | peer0.Trainee.com | 10.65 | 6.53 | 412.4 MB | 411.4 MB | 1.7 MB | 923.4 KB |
Docker | peer0.Trainer.com | 9.88 | 6.08 | 411.2 MB | 410.1 MB | 1.7 MB | 919.6 KB |
Docker | peer1.Trainee.com | 0.00 | 0.00 | 8.6 MB | 8.6 MB | 0 B | 0 B |
Docker | orderer.com | 4.52 | 1.39 | 23.5 MB | 20.9 MB | 1.2 MB | 2.3 MB |
Docker | ca_nodeGym | 0.00 | 0.00 | 10.0 MB | 10.0 MB | 546 B | 0 B |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 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 (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Jamil, F.; Kahng, H.K.; Kim, S.; Kim, D.-H. Towards Secure Fitness Framework Based on IoT-Enabled Blockchain Network Integrated with Machine Learning Algorithms. Sensors 2021, 21, 1640. https://doi.org/10.3390/s21051640
Jamil F, Kahng HK, Kim S, Kim D-H. Towards Secure Fitness Framework Based on IoT-Enabled Blockchain Network Integrated with Machine Learning Algorithms. Sensors. 2021; 21(5):1640. https://doi.org/10.3390/s21051640
Chicago/Turabian StyleJamil, Faisal, Hyun Kook Kahng, Suyeon Kim, and Do-Hyeun Kim. 2021. "Towards Secure Fitness Framework Based on IoT-Enabled Blockchain Network Integrated with Machine Learning Algorithms" Sensors 21, no. 5: 1640. https://doi.org/10.3390/s21051640
APA StyleJamil, F., Kahng, H. K., Kim, S., & Kim, D. -H. (2021). Towards Secure Fitness Framework Based on IoT-Enabled Blockchain Network Integrated with Machine Learning Algorithms. Sensors, 21(5), 1640. https://doi.org/10.3390/s21051640