PROJECT TITLE A thesis submitted in partial fulfillment of the requirements for the award of the degree of B.Tech. in BRANCH NAME By NAME 1 (ROLL NUMBER) NAME 2 (ROLL NUMBER) DEPARTMENT OF DEPARTMENT NAME NATIONAL INSTITUTE OF TECHNOLOGY TIRUCHIRAPPALLI-620015 MAY 2017
BONAFIDE CERTIFICATE This is to certify that the project titled PROJECT NAME is a bonafide record of the work done by NAME 1 (ROLL NUMBER) NAME 2 (ROLL NUMBER) in partial fulfillment of the requirements for the award of the degree of Bachelor of Technology in BRANCH NAME of the NATIONAL INSTITUTE OF TECHNOL- OGY, TIRUCHIRAPPALLI, during the year 2016-2017. PROJECT GUIDE NAME Project Guide HOD NAME Head of the Department Project Viva-voce held on Internal Examiner External Examiner i
ABSTRACT Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum Keywords: Lorem ipsum dolor sit amet ii
ACKNOWLEDGEMENT We would like to thank the following people for their support and guidance without whom the completion of this project in fruition would not be possible. PROJECT GUIDE NAME, our project guide, for helping us and guiding us in the course of this project. HEAD OF DEPARTMENT NAME, the Head of the Department, Department of DE- PARTMENT NAME. Our internal reviewers, REVIEWER NAME 1, REVIEWER NAME 2, REVIEWER NAME 3 for their insight and advice provided during the review sessions. We would also like to thank our individual parents and friends for their constant support. iii
TABLE OF CONTENTS Title Page No. ABSTRACT.................................... ii ACKNOWLEDGEMENT............................. iii TABLE OF CONTENTS............................. iv LIST OF TABLES................................. v LIST OF FIGURES................................ vi 1 Introduction.................................. 1 1.1 Section Title................................ 1 1.1.1 Subsection Title.......................... 1 2 Review Of Literature............................. 3 2.1 An Example On How To Add Pictures.................. 3 2.2 Fixed Image................................ 3 2.3 Example on Table Usage......................... 5 References..................................... 6 Appendices..................................... 7 A Code Attachments............................... 8 iv
List of Tables 2.1 Sensor Specifications........................... 5 v
List of Figures 2.1 NodeMCU Chip Diagram......................... 4 2.2 Inertial Measurement Unit........................ 4 vi
Chapter 1 Introduction 1.1 Section Title Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum 1.1.1 Subsection Title Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum As metioned in the article by Akram et al. [1] and the article by Xi et al. [2] we have... Sub Sub Section Title Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud 1
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum 2
Chapter 2 Review Of Literature 2.1 An Example On How To Add Pictures Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum Example of using a label to refer to a Figure 2.1 2.2 Fixed Image Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum I want my image fixed here 3
Figure 2.1: NodeMCU Chip Diagram Figure 2.2: Inertial Measurement Unit 4
2.3 Example on Table Usage Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum To refer to the table use the same 2.1 MPU 9150 Inertial Measurement Unit Acceleration Range: 2G Gyroscope Range: 250 degrees/second Magnetometer Range: 1200 micro Teslas Communication Protocol: I2C NodeMCU Processor Dual-Core 80 Mhz Processor 4MB Flash Memory 802.11 b/g/n connectivity Table 2.1: Sensor Specifications 5
Bibliography [1] Duc A. Tran Akram Bayat, Marc Pomplun. A study on human activity recognition using accelerometer data from smartphones. Procedia Computer Science, 34:450 457, 2014. [2] X. Long, B. Yin, and R. M. Aarts. Single-accelerometer-based daily physical activity classification. 2009 Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Sept 2009. 6
Appendices 7
Appendix A Code Attachments A.1 Lorem Ipsum Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum 1 d e f g e t p a r a m e t e r s ( data, c h u n k s i z e =410) : 2 # S t o r e t h e a c t i v i t y l a b e l t o add l a t e r 3 a c t i v i t y = d a t a [ A c t i v i t y ] 4 5 D e f i n e a d i c t i o n a r y of f u n c t i o n s. S e t s of r e a d i n g s w i l l be a g g r e g a t e d as p e r t h e s e f u n c t i o n s 6 7 f u n c d i c t = { 8 min : np. min, 9 max : np. max, 10 d i f f : lambda x : np. max ( x ) np. min ( x ), 11 s t d : np. s t d, 12 i q r : s t a t s. i q r, 13 rms : lambda x : np. s q r t ( np. mean ( np. s q u a r e ( x ) ) ), 14 mad : lambda x : x. mad ( ), 15 mediad : mediad 16 } 17 a g g r e g a t i o n s = { 18 X : f u n c d i c t, 19 Y : f u n c d i c t, 20 Z : f u n c d i c t 21 } 22 d a t a g r o u p s = [ ] 23 24 Transform t h e d a t a s e t i n t o r o l l i n g windows of 410 r e a d i n g s each and s t o r e them i n a Pandas d a t a group. 25 8
26 f o r i i n r a n g e ( i n t ( d a t a. shape [ 0 ] / ( c h u n k s i z e / 2 ) ) 1) : 27 temp = d a t a. i l o c [ i n t ( i ( c h u n k s i z e / 2 ) ) : i n t ( ( i +2) ( c h u n k s i z e / 2 ) ) ] 28 temp [ k ] = i 29 d a t a g r o u p s. append ( temp ) 30 d a t a g r o u p s = pd. c o n c a t ( d a t a g r o u p s ). groupby ( k, a s i n d e x = F a l s e ) 31 #Run t h e a g g r e g a t i o n s on a l l d a t a groups 32 s t a t s d a t a = d a t a g r o u p s. agg ( a g g r e g a t i o n s ) 33 s t a t s d a t a. columns = [. j o i n ( c o l ). s t r i p ( ) f o r c o l i n s t a t s d a t a. columns. v a l u e s ] 34 a c t i v i t y = a c t i v i t y. r e s e t i n d e x ( drop =True ) 35 #Add a c t i v i t y l a b e l 36 s t a t s d a t a = pd. c o n c a t ( [ s t a t s d a t a, a c t i v i t y [ : l e n ( s t a t s d a t a ) ] ], a x i s =1) 37 d e l s t a t s d a t a [ k ] 38 r e t u r n s t a t s d a t a 9