Project

General

Profile

3 Methodology » History » Version 7

« Previous - Version 7/42 (diff) - Next » - Current version
Ana Sofia Sousa, 11/01/2024 20:08


3 Methodology

3.1. App Structure

3.1.1. Use Cases Diagram

In the Figure bellow is the developed Use Cases Diagram that represents the possible interactions of different actors (User, Vital Jacket, Data System and Doctor) within the system. This diagram shows the requirements for the development of the app.


Figura 3.1.1.1. Use Cases Diagram.

3.2. Algorithms Step Counting

Having the values from the accelerometer which has a FREQUENCY OF __, the acceleration from the 3 axis in condensed in the acceleration magnitude:

mag = sqrt(x^2+y^2+z^2)

Then, in order to remove the gravitational acceleration, the average acceleration is subtracted:

netmag = mag - avgmag

so the netmag represents only the acceleration regarding movement. The algorithm works as follows:
The time-netmag graph is divided in dynamic 3-sample windows. The values of these samples are tracked and if they are in crescent order, the system registers the first sample as the start of a step. When a value is detected above a pre-defined OR DYNAMIC threshold, all values above that threshold are saved in a vector, PeakVector. When the values of netmag drop below the threshold, the system uses a 2-samples window to track the slope of the magnitude. If the second value is greater than the first, it is considered the start of a new step, thus ending the previous one. Since the PeakVector contains all the values that fall above the step threshold, the maximum value should represent the real peak.

3.3. Design and Functionalities

UseCasesDiagram.png View (283 KB) Ana Sofia Sousa, 12/01/2024 17:58

ActivityDiagram.png View (71 KB) Ana Sofia Sousa, 12/01/2024 22:23

bluetoothText.jpg View (8.36 KB) Ana Sofia Sousa, 12/01/2024 22:41

intermediate.jpg View (127 KB) Ana Sofia Sousa, 12/01/2024 22:41

login.jpg View (78.4 KB) Ana Sofia Sousa, 12/01/2024 22:41

Notification1.jpg View (13.7 KB) Ana Sofia Sousa, 12/01/2024 22:41

Notification2.jpg View (16.9 KB) Ana Sofia Sousa, 12/01/2024 22:43

Notification3.jpg View (17.2 KB) Ana Sofia Sousa, 12/01/2024 22:43

profile.jpg View (100 KB) Ana Sofia Sousa, 12/01/2024 22:43

settings.jpg View (75.5 KB) Ana Sofia Sousa, 12/01/2024 22:43

signup.jpg View (93.4 KB) Ana Sofia Sousa, 12/01/2024 22:43

Statistics.jpg View (86.3 KB) Ana Sofia Sousa, 12/01/2024 22:43

connectedText.jpg View (8.28 KB) Ana Sofia Sousa, 12/01/2024 23:05

home.jpg View (81.4 KB) Ana Sofia Sousa, 12/01/2024 23:05

confetti.jpg View (81.7 KB) Ana Sofia Sousa, 12/01/2024 23:06

calendar.jpg View (87.6 KB) Ana Sofia Sousa, 12/01/2024 23:06

calendar2.jpg View (80.7 KB) Ana Sofia Sousa, 12/01/2024 23:06

calendar1.jpg View (89 KB) Ana Sofia Sousa, 12/01/2024 23:07