Human activity (MATLAB) Essay Example



Table of Contents

31.0 Introduction

42.0 Methodology

63.0 Algorithm

74.0 Computer code

74.1 To normalize and to validate

84.2 To perform vibration

95.0 Recommendation and conclusion

106.0 References

117.0 Appendices

1.0 Introduction

Over the years, there is has been a change in technology in almost every field. The world of sport has not been left behind since automation and other high tech machines have been employed to help people with exercises. For instance; cameras are used in football games to assist referees to identify faults in the game (Ross, S. 2011, 24). This is done by the replay by the cameras. Also sensors are used in athletics to detect who crosses the line after the other. In the process one`s speed can be monitored electronically to tell the speed at which one is moving.

In crickets, replays in certain situations have been done to assist the umpires to make the right call. Those umpires who are not in the field are in the communication with wireless communication devices. Also there is another technology known as hawk eye (Ross, S. 2011, 29). This is a computer with very high speed connected to a camera whose function is to mainly track the trajectory made by the ball. This is a technology that has been employed in tennis and cricket. Hawk eye was used in the year 2015 in the rugby to assist the referee with decision making since it would enhance their accuracy (Magdalinski, T. 2009, 246).

Technology has also been used to assist in increasing the safety of the sportsmen. For example, balls kept to have the right pressure less it would kills someone after it has been hit hard by an opponent. In sky jumping right heights are also known so that those who sky dive do jump off at very high heights or very low height (Kerr, R. 2014, 356). In deep sea diving, there are certain depths that man cannot survive due the high hydraulic pressure technology used to monitor those depths.

In smart phones; applications have been made such as accelerometer to assist athletes know their speeds

2.0 Methodology

In this exercise the following human activity will be monitored to help come up with a very good and comprehensive conclusion about human activity;

  • Running pattern

  • Walking pattern

  • Idleness pattern

During those activity, vibration of made will be observed and recorded. The recorded data was then used draw graphs using mat lab application software.

The vibration app by diffraction limited was the application used to help determine and monitor human behavior.

Human body reacts different when carrying different activities. For example when one is at rest, the body would vibrate different from when they are running or resting (KERR, R. 2014, 376). The reason for the above is that more energy is needed when carrying out some activities compared to the others.

The application was installed on the phone of one of the test subjects. The application was made in such a manner that its orientation would be used to tell when one is standing or resting while lying down. To differentiate between running and walking, the rate of vibration would assist. When one is running, he or she would tend to shake more vigorously compare to when he or she is walking. When one is sitting, the vibrations are cut to almost zero only the heart beats could be detected.

In some instances activities such drinking, eating or writing would not make one shake or vibrate so much. Such activities for the purpose of the exercise could be classified as resting or idling. In some instance, when one is sleeping he or she could take breaths that are so deep that it could be mistaken for a walk. Such instances would still be classified as rest or idling.

The vibrations or the shaking would be observed and recorded in excel using the same application. Using mat lab, graphs would be drawn, to help distinguish the different behaviors. The graphs will then be discussed.

The frequencies for all this activities were set at given limit. For example while resting, the following could be happening; one could be sited, walking or lying down. The three activities have to be given a range of frequency say 10MHZ to 25MHz.while one walking the frequency have to be set a given range say 26MHz to 35MHz. As for running the frequency can be set to 36MHz and above.

The set frequency was to help sense when the activity is changed automatically with no one having to monitor those events. There could be an overlap frequencies for instance when one is walking fast, it could be mistaken for running at low speed.

The time speed spend in activity is recorded in excel and the data used for plotting several graphs in matlab.

3.0 Algorithm

Flow chart

Human activity (MATLAB)

The algorithm is quite simple. The only thing the sensor is doing is to detect a given range of frequencies and then classify them either as running, walking or resting and idling.

The application’s function is to show what activity is taking place and it records the time of activity. From the algorithm it can be seen that, for the frequency range between 10MHz to 25 MHz, the activity is classified as idling or rest, for frequency range more than 25 MHz but less or equal to 35 MHz they are classified as walking. For the frequencies more than 35 MHz the activity is classified as running. The application has been made to detect vibration and depending on the extent of vibration, the activity is determined (THOMPSON, G. 2001, 578). As for the activities whose frequencies overlapped with others, they were taken to be errors and could be ignored.

4.0 Computer code

  1. Pattern in vibrations are the first argument in the method ;(vibration)

  2. Valid pattern are as a result of action of passing pattern to normalize and validate; validate and normalize

  3. If the attribute which is hidden is set to be true, a return false is expected and the steps are terminated; hidden

  4. If the pattern is valid, vibration is performed; perform vibration

4.1 To normalize and to validate

  1. If the pattern detected is a list, then can proceed to next step. If otherwise

  1. empty the list and add a pattern to it

  2. then set the pattern to the list

  1. maximum length is implemented

  2. In the event that the length of the pattern tends to be greater than the maximum length, truncate.

  3. Let the implementation to be max duration. This is dependent for a single vibration entry.

  4. If the values for entry pattern are greater than the max length the value is to be set at max length.

  5. Then there is return pattern

4.2 To perform vibration

  1. During implementation, there may be a false return. That would make the steps to be terminated.

  2. When in another instance to perform vibration and the algorithm is running the following sub steps should be run

  1. Abort another instance of perform vibration, if there is any

  2. It then the pattern is empty, or it contains a single entry or there is no vibration on the device, return true and the steps can be terminated.

  3. A return true is expected and the step can be run continuously asynchronous.

  4. For each and every time, the following steps should be run

  1. When the index of time becomes even, the device is vibrated for a millisecond

  2. Otherwise, it should wait for time millisecond

5.0 Recommendation and conclusion

According to the exercise performed it can be shown that a person has different vibration frequencies when performing varies exercises (MIAH, A. 2002, 158). This information could be used to further research on various electronic devices which would aid in sports and athletics. This would be for the good of the sportsmen and those interested in such games.

6.0 References

KERR, R. (2014). Sport and technology: an actor-network theory perspective. [Place of publication not identified], Bloomsbury.

MAGDALINSKI, T. (2009). Sport, technology and the body: the nature of performance. London, Routledge.

MIAH, A. (2002). Sport technology: history, philosophy and policy. Amsterdam [u.a.], JAI.

ROSS, S. (2011). Sports technology. London, Evans.

THOMPSON, G. (2001). Sports technology. Southbank, Vic, Nelson Thomson Learning.

7.0 Appendices

Appendix 1

Human activity (MATLAB) 1

Appendix 2

Human activity (MATLAB) 2

Appendix 3

Human activity (MATLAB) 3

Appendix 4

Human activity (MATLAB) 4

Appendix 5

Human activity (MATLAB) 5

Appendix 6

Human activity (MATLAB) 6

Appendix 7

Human activity (MATLAB) 7

Appendix 8

Human activity (MATLAB) 8