# Wavelengths for Optimal NIRS Device Functionality

As described in previous blog posts about Near Infrared Spectroscopy (NIRS), NIRS is a valuable tool to measure oxygen concentration in the body. It can be used on various parts of the body including the muscles and brain. These applications of NIRS to measure oxygen concentration is useful in metabolic kinetics research, diagnoses of disease conditions , and as an athletic performance measure. Recent advancements in NIRS technology have allowed for the development of portable NIRS devices that can be worn while exercising. In this post, I will be focusing on the use of NIRS technology for the measurement of muscle oxygenation.

The main benefit of NIRS is that it can measure oxygen concentration, as discussed above. In order to do this the use of spectroscopy methodology is used. Spectroscopy is when light of a specific wavelength is transmitted through a substance and the amount of light the substance absorbs is measured and called the absorbance. From the absorbance, the concentration of a solute can be determined using Beer-Lambert’s Law. The Beer-lambert’s Law relates the light intensity to the product of the molar absorptivity (ε, L/mol*m), the substance concentration (c, mol/L), and the path length  (L, m). Due to the path length not being perfectly defined, a modified version of the Beer-Lambert’s Law is used (Equation 1) that accounts for any scattering (g) of the light beam as it travels through the tissue. The initial intensity of the light (I) then is the sum of the light that is reflected, the light that is transmitted to the detector and the light that is scattered throughout the tissue.

log10(I0/I) = εcL+g     (1)

As I have outlined, the main function of NIRS for measuring muscle oxygenation is to be able to measure the absorbance of the hemoglobin in the blood. To do this the right wavelengths must be able to penetrate the body and get picked up by the detector where the absorbance can be measured. By solving the problem of what wavelength of light to use, the device can effectively function for its purpose and be reliable. The wavelength of light appropriate depends on what is being looked at. In the case of NIRS, the absorbance of hemoglobin in the blood is the target substance. When oxygen is bound to hemoglobin (oxyhemoglobin), the hemoglobin has a different absorbance value (Figure 1) than if there is no oxygen bound to it (deoxyhemoglobin). The question is: what is the appropriate wavelength to use? Figure 1. Absorbance curves for oxyhemoglobin (red) and deoxyhemoglobin (blue).

https://commons.wikimedia.org/wiki/File:Oxy_and_Deoxy_Hemoglobin_Near-Infrared_absorption_spectra.png

In order to work through and solve the problem of what wavelength to use, we must first consider what is known and what is unknown. Referring to Equation 1, the modified Beer-Lambert Law, the absorptivity is a known variable dependent on the solute looking at. Another known variable is the path length that can be determined by measuring the length between the light source or probe and the detector surface. That leaves the solute concentration and the scattering term as the unknowns. In order to solve the equation for concentration and determine the optimal wavelengths for NIRS device functionality, the scattering term needs to be eliminated from the equation. In order to do this, we need to realize that the scattering term is very variable; it depends on the subject, the location, and muscle the NIRS device is being used on. For the device to be used by a larger population the scattering term must be normalized and this is accomplished by finding the change in concentration. This is why concentrations are reported not in absolute concentrations but in relative measures, percentages. By subtracting two absorbances (change in absorbance), the scattering terms will cancel out assuming the scattering term is the same over one location. Now the equation for change in concentration is:

log10(I0/I) = εΔcL     (2)

Now when we account for the fact that NIRS measures not only oxyhemoglobin concentrations but also deoxyhemoglobin concentrations we need to expand our equation to account for both. That means that the change in concentration is the change in concentration of oxyhemoglobin and the change of concentration in deoxyhemoglobin.

log10(I0/I) = (εO2ΔcO2 + εHbΔcHb)L     (3)

When we add another unknown thought we need to generate another equation to be able to solve for the two unknown concentrations leaving us with the following equations, Equation 4. https://cdn.iopscience.com/images/0031-9155/51/5/N02/Full/pmb211409eqn04.gif

Now that we have equations where the subscripts λ1 and λ2 are the two wavelengths  and the subscripts O2 is for oxyhemoglobin and Hb is for deoxyhemoglobin. There is one unknown in each so we can now determine a wavelength that will be optimal for both oxyhemoglobin and deoxyhemoglobin so the NIRS device will be able to measure oxygen concentration in the muscles. Solving the equations so that one is sensitive to oxyhemoglobin, and one is more sensitive to deoxyhemoglobin, we come up with the optimal range of 0.7 um to 2.5 um. The near infrared region of light. This is reasonable and coincides with what research says that near infrared light is the optimal waveforms to have light waves penetrate the muscles and measure oxygen concentrations .

In this solution, we made the assumption that the scattering term was the same in the same location but that is not necessarily the truth. If the light was angled differently when it was absorbed, there could be different amounts of scatter even in the same location. Without this simplification, the equation would be much more complex because it would have to take into consideration all factors that affect the scattering of light waves in the tissue which would require frequent calibrations and mathematical adjustments. Now that we have answered the question of what wavelengths are optimal for the NIRS to measure oxyhemoglobin and deoxyhemoglobin concentrations we can start measuring concentration!

References:

  Adami A, Rossiter HB. Principles, insights, and potential pitfalls of the noninvasive determination of muscle oxidative capacity by near-infrared spectroscopy. J Appl Physiol (1985) 124: 245–248, 2018. doi:10.1152/japplphysiol.00445.2017. https://journals.physiology.org/doi/full/10.1152/japplphysiol.00445.2017

 L. Kocsis, P. Herman, and A. Eke, “The modified Beer–Lambert law revisited,” Physics in Medicine and Biology, vol. 51, no. 5, 2006.

# Sweat Sensor Channel Geometry

#### Identify

Soft microfluidics revolutionized the development of sweat sensors by providing increased flexibility so the device can be worn on the skin while an individual is exercising. The material selected for these sensors is important for the flexibility and comfort of these devices. Elastomers with a low modulus but high elasticity are typically chosen as they allow the user to easily move while still obtaining sufficient sweat collection by close contact and flexibility upon the skin . As these types of materials can more easily deform, it is important to consider the geometric design of these microfluidic channels. It is important the sweat sensor can withstand external forces or pressures, such as the individual touching the sensor, especially during exercise. These channels should not easily deform as significant deformation could greatly interfere with the volume of sweat collected, in addition to other measurements like sweat rate and the measured analyte concentrations.

It is important to first understand how externally applied forces influence the deflection of the microfluidic channels. We can then understand how the volume of these channels changes in response to applied forces which will allow us to select the optimal geometry that minimizes the change in volume to increase the accuracy of the device in realistic conditions . If we want to account for externally applied forces that might be applied to the sweat sensor during use, should we design narrow or broad channels? Should there be considerations for height? To understand these questions, we will need to understand how the width and height ratio of microfluidic channels influences the percentage of volume change within these channels.

#### Formulate

To solve this problem, we will assume that the applied pressure acts as a uniformly distributed vertical load across the channel width. For simplicity we will only be calculating the results for a single channel, but the principles could be used to calculate the entire surface of the sweat sensor. Since the channels of sweat sensors are often rectangular, we will model the sweat sensor as a rectangular beam that is fixed on both ends. Once the sweat sensor is placed onto the skin we are assuming it is permanently in place as any movement of the sensor would ruin the obtained results. We are also assuming the channel has uniform thickness. Figure 1. Cross section of microfluidic channel. For our calculations, L will be the width of the channel, h the height of the channel, and t the thickness of the channel. The channel length is a. Figure 2. Channel free body diagram. Free body diagram of a beam fixed at both ends with uniform distributed loading applied . L is the width of the channel.

#### Solve

The free body diagram of Figure 2 can be solved to find the vertical reaction forces at the fixed ends. By symmetry, the two vertical reaction forces are equal to the force of the distributed load which is the load times the length. Each vertical reaction force is equal to wL/2.

We can calculate the bending moment equation by making a cut in the beam to understand internal forces and moments and solve for the bending moment. Figure 3. Cut channel section. In this figure, w is the distributed load, N is the normal internal force, V is the internal shear force, Mx is the internal moment at an arbitrary cut, FAX and FAY are reaction forces at fixed end A, and MA is the fixed end moment at A. Mx is defined in the positive direction and x is an arbitrary length along the total width (L) of the beam.

##### Solve for the bending moment equation:

The sum of the moments equals 0 and any horizontal forces do not create a moment about point A. As shown in Figure 2, the moment about a fixed end for a uniform distributed load is equal to wL2/12. ##### Calculate deflection: ##### Calculate change in volume: Equation (6) gives us the relationship between the width (L) and the height (h) of the channel so we can understand how the channel geometry influences the change in volume of the channel with externally applied forces. A positive change in volume is reasonable as our deflection of the channel was positive as well. These results were also found in a study analyzing colorimetric sweat sensors that found that narrow channels had a smaller volume change compared to broad channels . There are several limitations to these calculations for practical applications. We analyzed the influence of deflection that caused a change in the height by vertical loading, but realistically the forces might have other components. Depending on how the sweat sensor adheres to the skin, the assumption of fixed ends may not always apply. There may also be instances in which the force applied is not uniformly distributed, but may act at a specific point.

Although the channel height is important to consider, the channel width is a much greater influence on the change in volume of the channel with deflection as it is raised to the fourth power. The height is only raised to the first power which has a less impact on the change in volume when considering external forces. We should aim to use narrow channels in the microfluidic channel design of our sweat sensor compared to broad channels as increasing the width increases the amount of deflection of the channel by equation (5) and produces a greater change in the volume of the channel.

#### References

. Koh A, Kang D, Xue Y, et al. A soft, wearable microfluidic device for the capture, storage, and colorimetric sensing of sweat. Sci Transl Med. 2016;8(366):366ra165-366ra165. doi:10.1126/scitranslmed.aaf2593

. Rogers, John, et al. Soft, wearable microfluidic systems capable of capture, storage, and sensing of biofluids. United States Patent WO2017218878 A1.  United States Patent and Trademark Office. 16 June 2017.

. Engineering Stack Exchange. Structural engineering – How to determine fixed end moment in beam? https://engineering.stackexchange.com/questions/15040/how-to-determine-fixed-end-moment-in-beam. Accessed May 14, 2020.

# Solving for Minimum Thickness of a Force Plate

Identify

Force plates are a popular way to measure the ground reaction forces generated by an athlete when running or jumping. It is important that the force plate is capable of withstanding these forces continuously by different athletes and be able to last a long time, as they tend to be expensive. A key factor in designing a force plate that meets these requirements is making sure that the plate itself has a thickness that is optimally measured. Some quantities that need to be taken into consideration when designing the geometry of a force plate are the maximum forces that could be acting on the plate and the material properties of the chosen material used in making the technology. Thickness is a crucial quantity in making sure that the force plate is resistant to fatigue.

Formulate

The average force plate is composed of AISI stainless steel 304, which has a modulus of elasticity of 193 x 10^3 MPa and a Poisson’s ratio of 0.29 . In order to accommodate force at maximum conditions, the force plate should be designed to withstand 5000 N. The geometry of the plate also needs to be taken into consideration. A standard size force plate manufactured by Bertec  is 16 in in width and 24 in in length. The last consideration that needs to be made is how much the force plate should be allowed to deform. In order to prevent fracture, the plate needs to be able to deform a small amount but not enough to alter force readings. For this calculation, we will assume that maximum deformation is 1 cm.

Solve

1. Solve for maximum stress applied to plate: σ = F/A = 5000 N / (0.4064 m x 0.6096 m)

σ = 20,182.3 Pa

2. Set up modulus of elasticity formula: E = σ/ε 

3. Insert into modulus equation: (1.93 x 10^11) = 20,182.3 / ε, ε1.05 x 10^-7

4. Plug into Poisson’s ratio equation: v = -ε(x)/ε(z), 0.29 = (1.05 x 10^-7) / (0.01/t)

From this, we find that t = 27,624.3 m which is an unreasonable value. This shows that there was an error in my calculation. Realistically, a force plate would have a thickness of roughly 2 in, such as the Bertec force plate.

References

 Engineering ToolBox, (2005). Stress, Strain and Young’s Modulus. [online] Available at: https://www.engineeringtoolbox.com/stress-strain-d_950.html

# Isokinetic Dynamometers: Getting Voltage from Muscle Force

One of the functions of an isokinetic dynamometer is to measure the amount of force the user of the machine is outputting. They do this in different ways, but one design goes as such:

1. User applies force to the machine at it’s load cell (such as extending their leg like in the image above) 2. The strain gauge in the load cell deforms from the force

3. The deformation of the strain gauge causes a change in it’s electrical resistance.
4. Using a Wheatstone bridge and voltmeter, the change in resistance can be measured.

So in the end, the computer program reads a voltage and from that determines the muscles force. It needs some sort of equation relate the two. We’ll walk through the steps in coming up with that equation.

1.  How does force deform the load cell?
When the user kicks his/her leg out against the machine, the load cell wants to stay in place, and the user isn’t able to accelerate the load cell no matter how hard they push. Since that force isn’t causing motion, it’s causing the load cell (and it’s strain gauge on the inside) to stretch a little bit, causing a CHANGE IN LENGTH. The load cell will follow the following response due to the stress it feels during the exercise: The materials chosen for the load cell will be such that the maximum force expected to be experienced by the machine would keep the plot in the linear, elastic region. In this region the load cell can elastically return to it’s original length when the force is removed and doesn’t permanently deform.

1. We can determine the STRESS the load cell experiences if we control the LOAD CELL AREA. The MUSCLE FORCE is variable and depends on the user (see equation in plot)
2. We can solve for STRAIN by using young’s modulus to relate STRESS to STRAIN
STRAIN=STRESS/YOUNG’S MODULUS
3. We can get CHANGE IN LENGTH if we know STRAIN and the ORIGINAL LENGTH Of the strain guage.
CHANGE IN LENGTH=STRAIN*ORIGINAL LENGTH
4. All together, the CHANGE IN LENGTH is given by this equation: 2. How does deformation affect resistance of the strain gauge?
The load cell deforming causes the strain gauge to deform the same amount. Let’s assume the strain guage is a cylindrical wire.

As long as the cross sectional area and resistivity of the wire are controlled, we can solve for the change in length to get the strain gauge’s electrical resistance.

3.  How is change in resistance measured?
For this, a wheatstone bridge is used. Using the voltage divider rule we are able to know what the voltage at both sides of the path in the wheatstone bride above are. Using a voltmeter, we can read the difference in voltage across the two paths. The resistors R1,2,3 are all constants chosen by the designer. Only the strain gauge resistance is variable which scales based on the muscle force applied.

Everything in this equation is constant besides muscle force. The material properties and sizes are all determined by the materials and dimensioning of the designer. Remember that we assumed that the cross sectional area of the wire remains constant. In actuality it thins a little as the wire is elongated, which would cause a a greater increase in the change in resistance than if it was constant. This greater increase in resistance would give us a smaller voltage readout.

Also, as the machine is used over time it’s material properties will degrade and some of the constants will shift, so calibration of this equation over time will be necessary for accurate results. But this gives us the fundamental equation to measure force using a dynamometer.

I hope that was easy to follow along. Of course, feel free to reach out in the comments below if you have any questions.

# Solving Heart Rate Data Inaccuracies

Identify

Heart rate monitors are useful for athletes, researchers, and clinicians as a method of assessing fitness and cardiovascular health. Heart rate is a basic measure that clinicians use to monitor patients and typically do so with electrocardiogram (ECG). ECG is not as easy to measure upon movement and often requires larger, non-portable measurement devices. For athletes who seek to measure heart rate during exercise, these heart rate monitors are found in the form of a watch or chest strap. Despite its wide-use and high level of reporting, user activity can affect heart rate monitor accuracy. For LED heart rate monitors, where a light is emitted onto the user’s skin as opposed to electrodes that rest on the surface of the skin in ECG, position of the device on the body (Figure 1) and user activity can potentially affect the heart rate data. The issue of erroneous data is especially prevalent for multisport athletes who engage in activities that require different body positions and movements. Obtaining consistent heart rate data collection and analysis is essential for being able to compare data across activities. For example, an athlete may have a reported average heart rate over a cycling activity as 110bpm and 140bpm during a running activity. Is this difference is due to different intensities for each activity or is it due to inconsistencies in data collection due to different noise factors dependent on activity?

Being able to identify characteristic noise frequencies based on user activity and monitor placement can greatly benefit athletes. This will allow users to either change the placement of the device based on their activity or, more favorably, input the activity to the device prior to data collection, allowing the device to prepare different filtering techniques based on expected noise for that particular activity. Applying these filters to the device would enhance heart rate monitor design and better ensure accurate data.

Formulate

Before solving this problem, a basic understanding of heart rate monitors is necessary. LED heart rate monitors emit a green light to the user’s skin. Some of this light is absorbed, and some is reflected back into a receiver within the device. The absorption can be modeled using the Beer-Lambert law, A =  ε𝓁c, where absorbance (A) is equal to absorptivity (ε), beam length (𝓁), and concentration of absorbing species  (c) .

The intensity of the light, based on absorbance, is evaluated by a photodiode in the receiver and is transformed into a photoplethysmogram (PPG) signal by the device’s processor. This PPG signal contains cardiac, respiratory, and motion data, as well as noise. Filters act to remove non-cardiac components from the PPG signal  – this is where heart rate data error can occur if not enough noise is removed (Figure 2). Since motion is a noise component in the PPG signal, heart rate data can be influenced by monitor position and user activity . To assess potential discrepancies in heart rate data based on monitor position and user activity, two heart rate monitors can be worn in different locations during various activities (Figure 1). In data collection, it is important to know heart rate data for each of these monitor placements over time at rest and during different activities. It is also important to use a ECG monitor as a reference (i.e a verified, widely-used chest strap) to know what heart rate data should be.

Assumptions made in solving this issue is that light intensity emitted from the heart rate monitor device is consistent throughout an activity, all activities, and between devices. Another assumption is that user intensity for each activity is the same such that heart rate increases are due to monitoring differences rather than increased workout intensity. PPG signal will also be assumed to only have components of cardiac (i.e. heart rate) signals and non-cardiac noise signals. These assumptions allow for heart rate output due to device position and activity to be determined.

Solve

Solving the problem of heart rate monitor outputs varying based on user activity and device position first requires an understanding of which device placements respond to different activities. This data is collected from users wearing monitors in different positions and engaging in different activities. It has been determined that wrist-based measurements respond better to walking and running activities than forearm measurements while forearm measurements respond better to cycling activities than wrist measurements (Figure 3). Both respond well to rest . Next, an analysis of the PPG signal generated for each device placement and each activity can be completed. This allows for the determination of frequencies that are characteristic of noise in each of these activities. For example, since cycling creates more noise in wrist measurements than forearm measurements, the PPG signals of each of these measurements can be compared to determine what is present in the wrist signal that is not present in the forearm signal. This discrepancy, say frequency A, is noise generated in wrist measurements due to cycling motion.

Performing this analysis on a large data set of heart rate measurements over different device placements and user activities allows for the identification of noise frequencies characteristic of certain user activities. In designing a heart rate monitor device, these frequencies can be programmed to be filtered out based on the activity being completed. For example, a user can select “cycling” on their wrist based heart rate monitor prior to beginning exercise and the device will then apply the filter to remove frequency A noise from the data, producing heart rate data just as accurate as a forearm monitor. Designing devices such that noise can be correctly identified and removed will allow multisport athletes to gain reliable heart rate data regardless of activity and without having to move their device on their arm.

This solution is reasonable, however determining exact frequencies characteristic of certain activities would require large data sampling since there is much individual variation in heart rate. Limitations stem from assumptions mentioned above, as user intensity is often not constant across activities and emitted light intensity may change throughout an activity as the device moves closer and farther from the user’s skin due to motion.

References

       P. R. MacDonald and C. J. Kulach, “Heart Rate Monitoring with Time Varying Linear Filtering,” US 9801587 B2, 2017.

       J. Parak and I. Korhonen, “Evaluation of wearable consumer heart rate monitors based on photopletysmography,” 2014 36th Annu. Int. Conf. IEEE Eng. Med. Biol. Soc. EMBC 2014, pp. 3670–3673, 2014, doi: 10.1109/EMBC.2014.6944419.

       J. L. Cheng, J. R. Jeng, and Z. W. Chiang, “Heart rate measurement in the presence of noises,” 2006 Pervasive Heal. Conf. Work. PervasiveHealth, 2006, doi: 10.1109/PCTHEALTH.2006.361651.

       D. F. Swinehart, “The Beer-Lambert law,” J. Chem. Educ., vol. 39, no. 7, pp. 333–335, 1962, doi: 10.1021/ed039p333.

# Identify, Formula, Solve: Patient Positioning and ADP

#### Identify the Problem

Air Displacement Plethysmography (ADP) is a simple, formula-based approach used to determine one’s body composition. Body composition is used to determine physiological health risks of individuals that may be related to weight. It is very important that all results presented by ADP are accurate, in order to ensure that the patient and clinician are receiving correct information regarding the patient’s health.

Raw body volume can easily be determined by measuring the amount of air displaced from the chamber, but there are other factors that can affect body volume measurements that must be accounted for. It’s incredibly important that all potential sources of error are minimized to ensure for the most accurate calculations of body composition. Sources of isothermal air within the measurement chamber can lead to an underestimation of body volume because isothermal air is more compressible than air in adiabatic conditions. This underestimation in volume can lead to an overestimation in body density and an overestimation of percent fat.  One source of isothermal air is air that is on or near skin and clothing, which is represented by Surface Area Artifact (SAA). This accounts for a small constant, k, as well as the body surface area of the individual. Another source of isothermal air is thoracic gas volume (VTG), which is measured at mid-exhalation through pulmonary plethysmography or it is estimated by ADP. Research has shown that 40% of VTG has an impact on body volume.  Here is the formula for the corrected body volume determined through ADP:

VBcorrected = VBraw – SAA + .4*TVG

Another design aspect of the device that has speculated to alter calculations is patient positioning. The current testing procedure requires subjects to sit up straight in the measurement chamber, but what if they were bent over? How would the change in position change body composition calculations? The aspect of patient positioning could affect VTG because individuals in the bent over position may show different breathing patterns, which would impact VTG. A study that analyzed the effects of body positioning on ADP measurements found that there was a slight difference in VTG between individuals sitting in the straight up and bent over positions, so we will be using some of their data in this problem. 

Here is the engineering problem I propose: Using the densitometric principles of ADP, hand calculate the % body fat of an individual sitting straight up, and then calculate the % body fat of the same individual in the bent over position. Does the position of the patient have a significant impact on % body fat calculations?

#### Formulate Problem

We want to assume mostly adiabatic conditions within the measurement chamber. This means Poisson’s Law should be used to determine the volume of air within the chamber. The formula below, initial conditions of the chamber, and the given values below should be used to calculate the volume of air in the chamber. Initial conditions are those of an empty chamber, and then an individual sits in the chamber, which changes the pressure and volume in the chamber. 450L is the volume of air in an empty chamber and the change in pressure is caused the presence of a body in the chamber and the pressure values remain in the acceptable range for ADP.  Y represents the specific heat capacity of the air within the chamber at the designated temperature.  All pressure and volume values were estimated based on typical characteristics and conditions of ADP. [3,4]

(P1V1)^Y = (P2V2)^Y

P1 = 75 kPa, P2 = 88.4 kPa, V1 = 450 L, V2 = ?, Y= 1.401 @ 25°C

For the sake of this problem, let’s assume that surface area artifact can be ignored. The formula for SAA is SAA= k x BSA, where k is a constant derived by a manufacturer and BSA is body surface area. A typical value used for k is -4.7 x 10-5. Since this value is very small, it will result in a surface area artifact that is also very small. [1,2] Therefore, the new formula for corrected body volume is:

VBcorrected = VBraw + .4*TVG

We also want to assume for the presence of some isothermal air within the chamber that is caused by thoracic gas volume in each scenario. An ADP related study looked at the difference in VTG between a person sitting straight up and a person bent over in a chamber.  We can use their average determined values here in our problem.

VTGstraight = 4.517 L, VTGbent = 4.445 L

Here is some more information and assumptions needed to solve the problem:

• The mass of the individual is 74kg and the same individual is tested in both cases
• Assume the subject has consistent breathing rates during testing
• Assume the temperature within ADP remains at 25°C 
• Assume the change in positioning does not impact body volume
• Body Density = Body Mass / Body Volume 
• Use Siri’s Equation (below) to determine body fat % in both cases 
• % fat mass= [(4.95/Density)-4.5]*100
• Assume the patient is in the positions according to the figure below. “A” represents the subject bent over and “B” represents the patient sitting straight up. #### Solve the Problem

1.   Determine the volume of air within the measurement chamber when a subject enters the     chamber using Poisson’s Law.

(P1V1)^Y = (P2V2)^Y

P1 = 75 kPa, P2 = 88.4 kPa, V1 = 450 L , V2 = ?= 1.401 @ 25°C

(75*450)^1.401 = (88.4*V2)^1.401

33750 = 88.4V2

V2 = 381.88 L

2. Find the air displaced from the measurement chamber and equate it to raw body volume.

V1 – V2 = Vdisplaced = VBraw

450 L – 381.88 L = 68.2 L = Vdisplaced = VBraw

3.  Find the corrected body volume of the individual in each position.

Bent: VBcorrected = VBraw + .4*TVG = 68.2 L + (.4*4.445 L) = 69.978 L

Straight: VBcorrected = VBraw + .4*TVG = 68.2 L + (.4*4.517 L) = 70.007 L

4. Find the body density of the individual in each position.

Bent: BD=BM/BV= 74 kg / 69.978L = 1.0574 kg/L

Straight: BD=BM/BV= 74 kg / 70.007 = 1.0570 kg/L

5. Use Siri’s Equation to find the % fat mass of the individual in each position.

Bent: % fat mass= [(4.95/Density)-4.5]*100 = [(4.95/1.0574)-4.5]*100 = 18.13 % fat mass

Straight: % fat mass= [(4.95/Density)-4.5]*100 = [(4.95/1.057)-4.5]*100 = 18.31 % fat mass

The percent body mass for the individual in the bent position is 18.13% and the percent body mass for the individual in the straight position in 18.31%. There is a small difference between the two positions, which does support the findings of the study that the values were based off of. However, it is still important that the sitting position of the individual is standardized across all testing procedures to decrease variability in testing results. Limitations of the results include not accounting for surface area artifact and estimations of VTG using ADP technology.

#### References:

1. David A Fields, Michael I Goran, Megan A McCrory, Body-composition assessment via air-displacement plethysmography in adults and children: a review, The American Journal of Clinical Nutrition, Volume 75, Issue 3, March 2002, Pages 453–467, https://doi.org/10.1093/ajcn/75.3.453
2. Peeters M. W. (2012). Subject positioning in the BOD POD® only marginally affects measurement of body volume and estimation of percent body fat in young adult men. PloS one, 7(3), e32722. https://doi.org/10.1371/journal.pone.0032722
3. COSMED. The World’s Gold Standard for Fast, Accurate and Safe Body Composition Assessment. COSMED USA Inc., 2019. https://www.cosmed.com/hires/Bod_Pod_Brochure_EN_C03837-02-93_A4_print.pdf
4. Engineering ToolBox, (2003). Specific Heat Ratio of Air

# Calorie Counting Using Pedometers

Identify

Pedometers can be beneficial in increasing physical activity by providing real-time feedback to users. Step count, distance traveled, and calories burned are often recorded by pedometers, allowing users to set the fitness goals and see if they are achieving them. Accelerometer pedometers are shown to be more accurate in counting steps than traditional mechanical pedometers, Distance traveled is based on the stride length of the user and step count, which can be calculated using the data collected by the pedometer. Some pedometers also provide a number for calories burned, but how accurate is this value and how is it calculated? The accuracy of this quantity may be beneficial for users who are basing their daily caloric intake on the amount of calories they believe they have burned. The current formula used to determine calories burned is: total calories burned = Duration (in minutes)*(MET*0.0175*weight in kg). MET is a value based on the intensity of the exercise being performed, as can be seen in the chart depicted on the Hospital for Special Surgery website . How to accurately measure calories burned using a pedometer has not been determined. Heart rate can be a good way to determine intensity of exercise but not all pedometers include heart rate monitors. Some pedometers use the calculated speed of the user and their weight to estimate calories burned . Studies have shown that calories burned is often underestimated when using a pedometer. Compared to metabolic data collected during exercise from VO2, the pedometer calorie count, that utilized weight, number of steps, stride length, and speed of the user, was lower . The solution I propose is to implement a peak detection system that takes into account the amplitude of the acceleration waveform to correlate this to METs and calories burned.

Formulate

Most accelerometer pedometers utilize an adaptive peak detection system to distinguish extraneous movements from steps. A peak detection system is implemented to determine if a peak in the acceleration waveform should actually count as a step. An amplitude for the peak and a time threshold for the wave are used to determine if the movement qualifies as a step. When the required conditions are met, the step is counted and the system begins to search for the next peak in the acceleration data . However, other than determining if the threshold value is met, the amplitude of the peak is not utilized. I propose that using the amplitude could provide a more accurate way of determining the intensity of the movement and could be applied to the calculation of calories burned. Although this will not be completely accurate, I believe that this would improve on the current method used in some pedometers to calculate calories burned. Pedometers that have heart rate monitors can use this data to more accurately predict energy expenditure but pedometers that do not often use crude calculations such as calories/kg/hr = 1.25 x speed (km/h) or calories/hr = 1 x weight (kg) while resting . If the amplitude data can be stored and processed, this information could be correlated to METs, which may improve accuracy in energy expenditure data. Figure 1. Sample magnitude values that are found using data collected from the x, y, and z axis of the accelerometer during movement.

Solve

In order to implement the peak magnitude system, the magnitude of all 3 axes could be found prior to filtering. Using the equation mag = sqrt(x^2+y^2+z^2), the overall magnitude of acceleration could be found for each movement. This data can then be filtered and smoothed returning a similar pattern as seen in figure 1 . A peak detection system functions by analyzing time periods and determining where the peak falls within that interval. When a peak is detected that fulfills the magnitude threshold and time threshold, the pedometer tracks a step. If the magnitude of the peak can be stored, this could be used to determine the MET value of an activity. METs range from 1 – 23, 1 occurring when you are sitting at rest and 23 occurring during extremely vigorous exercise, such as running at a 4:30 mile pace . Figure 2. Sample block diagram created in Simulink that could be used to calculate calories burned based on assigned MET values relating to different magnitudes of acceleration.

A block diagram, as seen in figure 2, could be used to correlate the magnitude to the intensity of exercise. This potential solution to the inaccuracies of energy expenditure calculated by pedometers still has some limitations. One limitation being that not all intense exercises will generate high acceleration values despite the large caloric expenditure. For example, squatting a one rep max may require a great deal of energy, but the pedometer may not pick it up as movement and therefore would not count it as a step. This is an example of where heart rate monitors may be beneficial in determining energy expenditure. Similarly, exercising on a stationary bike may be very intense but not trigger any steps to be counted if the pedometer is worn on the wrist and therefore would not be counted in the overall calorie burn for the user. This assumption that acceleration correlates directly to exercise intensity may accurately apply in all cases, but it could still improve the overall calculation of calories burned.

References:

1. Women’s Sports Medicine Center, Hospital for Surgery. (2009). Burning Calories with Exercise: Calculating Estimated Energy Expenditure. Retrieved from https://www.hss.edu/conditions_burning-calories-with-exercise-calculating-estimated-energy-expenditure.asp.
2. Zhao, N. (2010). Full-Featured Pedometer Design Realized with 3-Axis Digital Accelerometer. Analog Dialogue, 44(6)
3. Smith, K., Egercic, L., Bramble, A., Secich, J. (2017) Reliability and validity of the Omron HJ-720 ITC pedometer when worn at four different locations on the body, Cogent Medicine, 4:1
5. Alabadleh, Ahmad & Hawari, Eshraq & Alkafaween, Esra’a & Alsawalqah, Hamad. (2017). Step Detection Algorithm For Accurate Distance Estimation Using Dynamic Step Length. 324-327.

# The path of least impedance

Identify

I am sure most of you are familiar with the term Body Mass Index (BMI), and some of you may have even received one. Also, I am sure most of you are familiar with the controversy regarding the accuracy of BMIs. Unfortunately, BMI results do not accurately reflect the body fat percentage of certain populations, such as athletes and the elderly, because muscle mass is not taken into account . For example, an athlete with significant muscle mass would report as overweight and an older individual lacking muscle mass would report as underweight . In hopes of correcting the inaccuracies stemming from BMI calculations, bioelectrical impedance analysis (BIA) became a popular method for measuring body fat mass and body fat percentage.

With BIA, a small, alternating current is sent throughout the body and the impedance of electrical current to fat, water, and muscle content is recorded . Fattier tissues will reduce the speed of electrical current whereas hydrated and muscular tissues will not . Assuming that the body exists as a conductive cylinder uniform in material and density, allows for these impedance measurements to be easily converted into body composition measurements . However, due to these assumptions, inaccuracies persist and an advantage of BIA over BMI remains unclear. BIA has the potential of providing more accurate and reliable results, but that must start with correcting the issues that result from its assumptions, more specifically its assumption that the body exists as a conductive cylinder.

Preliminary bioelectrical impedance analyzers made use of a one-cylinder model to make body composition measurements . Unfortunately this method led to the underestimation of total body water, thus, leading to inaccurate results of body fat mass and lean body mass (Figure 1) . To improve upon this issue, the 5-cylinder model was developed which makes cylinders out of the arms, legs, and trunk (Figure 1) . In addition, the 5-cylinder model was able to expand upon its predecessor by providing detailed reports of each body part’s composition and whole-body composition .

In Calculus we learned that when approximating the area under the curve our estimation yields better results when we add more rectangles with smaller widths. Analogous to the previous scenario, our body composition measurements would prove to be more accurate by increasing the number of cylinders our body could model. Instead of using one cylinder, it may be more beneficial to have 5 cylinders.

Formulate

To measure impedance among 5 cylinders requires more electrodes than the four that come with conventional BIA (Figure 2) . Moreover, for the 5-cylinder model, all alternating current is supplied between the right ankle and right wrist . To measure the potential difference of the upper limbs, lower limbs, and trunk, the electrodes are placed between the right and left wrist, right and left ankle, and left ankle and wrist, respectively . All electrodes pairs are then attached to a four-channel, battery operated impedance instrument that reports the resistance, reactance, phase angle, and impedance .

In order to calculate impedance, the resistance, R, reactance, Xc, and phase angle must be known (Equation 1) . Resistance is reflective of electrolyte-containing total body water in which lean muscles tend to have low resistance and fattier tissues tend to have a high resistance . Reactance is reflective of body cell mass in which a higher proportion of cells gives rise to low reactance and a lower proportion of cells gives rise to a high reactance . The phase angle readout is a component of the impedance instrument that allows for differentiation between resistance and reactance .

Z^2 = R^2 + Xc^2                        Equation 1

Now that we know how to calculate impedance, we must now relate impedance to total body water (TBW) shown in Equation 2 .

TBW = L^2/Z                            Equation 2

L: length of cylinder

Z: impedance of cylinder

To make use of these equations while maintaining full transparency, we must clarify the assumptions. Therefore, we assume:

1. The supplied current follows the path of least resistance.
2. The body is made up of segmental conductive cylinders .
3. The total body water occupies a cylinder of length, L, and is uniform in resistivity (Equation 2) .

By assuming the path of least resistance we can exclude extraneous and complex equations that would otherwise be needed to solve for resistance. Secondly, by assuming segmental conductive cylinders, we can analyze a body part’s contribution to whole body impedance. Lastly, by assuming what is shown in Equation 2 we can again exclude extraneous and complex equations that would otherwise be needed to solve for TBW.

Solve

With this segmented approach, we can better estimate lean body mass (LBM) and fat mass (FM) by recording the individual lengths and resistivities of upper limb, lower limb, and trunk cylinders (Equation 3). Whereas for a one-cylinder model, the entire body was assumed to have one resistivity, which is inherently untrue considering the trunk and limbs distribute lean muscle and fat differently . Unfortunately, even through a segmented approach of solving for TBW, reliability of Equation 2 is questionable which continues into Equation 3 . Studies have shown that impedance, Z, contributes little to solving for lean body mass (LBM). Moreover, changes in impedance showed little to no change in LBM .

TBW = Lᵤₗ^2/Zᵤₗ + Lₗₗ^2/Zₗₗ + Lₜ^2/Zₜ                Equation 3

ul: upper limb

ll: lower limb

t: trunk

Despite its reliability being under question, we continue to make use of assumptions to simplify equations while maintaining some degree of accuracy. Moreover, now that we know TBW, we can solve for LBM and fat mass (FM) through the empirical estimations shown in Equation 5 and Equation 4 . These empirical estimations are based on observations of human biological phenomena where on average a human’s lean body mass contains 73% of their total body water . Because we are not all the same, deviations from Equation 4 do exist, which is a limitation of using empirical calculations.

LBM = TBW/0.73                        Equation 4

FM = Body Mass – LBM                    Equation 5

Although the segmental approach improves accuracy in comparison to the one-cylinder model, discrepancies still exist through the use of assumptions and empirical estimations. To further improve upon BIA, it is important that we rid of all empirical estimations and analyze impedance solely on the person. Fortunately, companies like InBody have made strides in improving this technology by minimizing the use of empirical estimations .

References

1. Assessing Your Weight and Health Risk. NIH. Website. https://www.nhlbi.nih.gov/health/educational/lose_wt/risk.htm. Accessed May 1, 2020.
2. Grossi, M., Ricco, B. Electrical impedance spectroscopy (EIS) for biological analysis and food characterization: a review. J Sens Sens Syst. 2017; 6: 303-325. https://doi.org/10.5194/jsss-6-303-2017.
3. Bioelectrical Impedance Analysis (BIA). Science for Sport. Website. https://www.scienceforsport.com/bioelectrical-impedance-analysis-bia/. Published May 20, 2018. Accessed February 27, 2020.
4. Dehghan, M., Merchant A.T. Is bioelectrical impedance accurate for use in large epidemiological studies? Nutr J. 2008; 7: 36. doi: 10.1186/1475-2891-7-26
5. Revolutionizing BIA Technology with InBody. InBody. Website. https://inbodyusa.com/general/technology/. Accessed May 12, 2020.
6. Organ LW, Bradham GB, Gore DT, Lozier SL. Segmental bioelectrical impedance analysis: theory and application of a new technique. Journal of Applied Physiology. 1994 Jul; 77(1): 98-112.
7. Bioelectrical Impedance Analysis (BIA) and Body Composition Analyse. DANTEST Media Inc. Website. http://www.dantest.com/dtr_bioscan_bia.htm. Accessed May 12, 2020.

# Whole Body Air Displacement Plethysmographic- Problem

PROBLEM

In order for whole body air displacement plethysmographic machines such as the BodPod to function optimally (so that viable data can be collected), it is crucial that laminar flow is maintained throughout the machine’s ventilation system at all times. Imagine that you are an engineer (imagine that!)  tasked with manufacturing the tube components for the Bod Pod.

If the flow rates in the inlet and outlet tubes are equal, the volumetric  flow rate of air in the tubing system will be 0.25 cubic meters/second , and the BodPod functions in laminar/laminar-like conditions, what are the ideal dimensions for the diameters of the inlet and outlet tubes in the Bod Pod?

Assumptions

• Flow rates are equal in the inlet and outlet tubes
• The tubes are cylindrical
• Laminar flow is maintained at all times
• Pressure changes are negligible
• Air circulating inside the BodPod has similar thermodynamic/kinematic properties ambient air at room temperature
• Temperature conditions of the device are identical to those at room-temperature

A link has been included to a power point presentation that contains diagrams that will aid readers in solving this problem: Figure 1: Schematic of Adult-Sized Bod Pod and circuitry components that will be used as a reference for this problem.

BACKGROUND KNOWLEDGE/ ASSUMPTIONS

According to the 4th page of the patent filed by the manufacturer, Life Instruments Inc., it is okay to assume laminar conditions inside the tubing ventilation due to the fact that flow rate inside the inlet and outlet tubes are always set to values of low magnitudes. Literature in courses such as Signals and Systems show that low flow rates result in low generation of acoustic noise by  air circulation systems.

I was unsuccessful in locating some sort of testing standard that establishes set values for the volumetric flow rates of air in laminar conditions. There appears to be any information pertaining to any testing protocols the manufacturer used for design verification purposes in the original 510(k) form filed with the FDA. To establish an appropriate flow rate value for this test question, I searched for similar problems online. In short, the values for the volumetric flow rate of air (Q) ranged from 0.1 to 0.8 cubic meters/second in my searches. I decided to use a value of 0.25 cubic meters/second in this problem. By assuming that the values for Q are equal for both tubes, it is possible to design both tubes with an equal diameter. Thus, along with other reasons that will be outlined later in this section, all the solver is required to do to calculate the correct value in this problem is to use one equation.

Normally, pressure fluctuations trigger changes in tubings and pipes create flow gradients in closed ventilation systems. Because of this, mathematical expressions such a Boyle’s Law and Bernoulli’s equations are used to solve changes in volume and volumetric flow when pressure fluctuations occur. According to page 4 of the patent filed for the Bod Pod, the authors state that the use of pressure transducers which are coupled to the inlet and outlet tubes helps monitor any pressure changes that occurs in the tubing; automatically adjusting the pressure settings in the tubes to more optimal levels through negative feedback. This is done in order to maintain a constant flow rate (and thus, laminar flow throughout the circulation system). Later on in section 4 of the patent,  the manufacturers also state that constant air flow can be maintained with the addition of rotary pumps to the circulation system (which are not actively displayed in any of the figures included).

The manufacturer’s statements in the patent confirm the presence of temperature-sensing circuitry in the inlet and outlet tubes that control the internal temperature of the environment inside the tubing and the pod itself. Thus, any temperature fluctuations that could create flow gradients in the device’s tubing are negligible since they are always corrected in  rapid fashion. This also eliminates the need for Fourier’s law to solve the value of Q in this problem.

Assuming that the tubing is cylindrical eliminates the need to solve for any hydrodynamic radius  values(which are used in equations associated with fluid flow in which tubes/pipes are any shape that is non-cylindrical).

By assuming that the air inside the device’s circulation system behaves in a similar fashion to ambient air, and that the conditions inside the circulation system are similar to those at room-temperature and that the device is used in STP conditions, it is possible to estimate the value of the kinematic viscosity of air (which is needed to solve the value for the diameter of the tubing using the Reynolds number equation along with the value of the flow rate given in the problem description and the upper-limit value of the Reynolds number associated with laminar flow).

SOLUTION

In order to solve for the value of the tube diameter, the solver must utilize the following equation:

Re = QD/v ,

Re = reynolds number

Q = volumetric flow rate of air

D = pipe bore or tube diameter

v = kinematic viscosity

Reynolds number flow rate equation-16umdck  <— Click the link to view a more detailed image of the equation

NOTE: Pipe bore is equivalent to the diameter of the tube, and this equation is applicable to both pipe and duct installations.

First, the value of Q is already provided in the description. So the reader is already provided one unknown.

Second, the reader is told in the problem description and background section to assume laminar conditions in the circulation system. The Reynolds number value used in this problem is 2300, which is the established upper limit for laminar flow. All values at or below this number is considered laminar flow.

Third, since the reader is told to assume that the air circulating through the inlet and outlet tubes are similar in kinematic/thermodynamic behavior to ambient air at room temperature, the reader can assume that air inside the circulation system has the same kinematic viscosity as ambient air at room temperature. This value is 1.494 x 10-5 meters ^2/ second.

At this point, the only unknown that the reader is left with is the value of D, or the tube diameter. After plugging all the known values into the above-aforementioned equation and solving for the value of D algebraically, the reader should arrive at a diameter value of approximately  0.13708 meters.

REFERENCES

 Engineers Edge. “Kinematic Viscosity Table Chart of Liquids” (2019). Machinery’s Handbook, 29th edition.  Retrieved from

https://www.engineersedge.com/fluid_flow/kinematic-viscosity-table.htm

 Foster, Trevon. “Laboratory Flow Meters: Flow Measurements In the Lab” (2015). Titan Enterprises, Ltd. Retrieved from

https://www.flowmeters.co.uk/laboratory-flow-meters-flow-measurement-in-the-lab/

# Resistance Temperature Detector Calibration for Sweat Sensors

Glucose and Lactate are two analytes in sweat that would be highly desirable to apply sweat sensing technology to, each for their own individual reasons. Since the biosensing technology typically used to detect these analytes utilizes enzymatic reactions, temperature of the sample being tested must be taken into consideration when interpreting results due to its effects on enzymatic activity. Therefore, temperature sensors are an essential component of any sweat sensor that aims to give reliable feedback on either/both of these analytes. Multiple temperature sensing technologies exist, but a simple, commonly used technology is resistance temperature detectors (RTDs). These simple circuits use a Wheatstone bridge with a pure metal resistor that is exposed to the sample being tested. That resistor has a temperature-dependent resistance, and its resistance affects the voltage output of the Wheatstone bridge. In order to calibrate your sensor (a necessary process to ensure it gives accurate results), you must be able to use voltage outputs of known temperatures to identify the relationship between voltage and temperature. This problem will help us learn to do so.

Problem Statement

The Wheatstone bridge shown below (figure 2.) has four resistors, three of equal resistance R=10Ω and one temperature-varying platinum resistor RT. A voltage VE=1V is provided to the system by a battery as shown. Vo is defined as the voltage difference between points a and b, and is given by the general Wheatstone bridge equation provided below (figure 1.). Resistance RT is given by RT = R0(1+α(T-T0), where α is the temperature coefficient of platinum, α= 0.00385/°C. Given that R0= 10Ω and T0=0°C…

a. Write an equation for Vo in terms of T

b. Find Vo at T=20°C, T=30°C, and T=40°C

c. Devices aren’t always exact. Your RTD is giving values of Vo(20)=19.0mV, Vo(30)=28.3mV, and Vo(40)=37.2mV. Plot these values and find a line of best fit for your RTD (assuming linear relationship*)

d. Find the voltage Vo that would be expected at T=37°C

*Assumptions:

• Linear relationship between Vo and T- RTDs display much more linear behavior than thermocouples. They are not exactly linear, but for the purposes of this problem and learning how to calibrate, it is a fair assumption. It will cause the most error in the middle of our range of estimation, due to the parabolic nonlinearity of the true relationship between Vo and T. 

Solution

The algebra for solutions to parts a, b, and d of the problem are provided in figure 3. The plot for part c, created in Excel, is provided in figure 4. This plot was created by creating a column of temperature data and a column of the corresponding voltage data given in the problem statement for part c, highlighting those two columns, and creating a scatter plot. A line of best fit was added to the plot, and the equation for the line was displayed on the graph itself. Excel makes linear approximations for data sets like these very easy. While the linear approximation may not be the best fit for our data set, it appears to be very accurate, with an Rvalue of 0.9998. Our final answer for Vo at 37°C makes sense, given that 34.45mV is between the values for 30°C and 40°C, 28.3mV  and 37.2mV, respectively, and closer to that of 40°C. The linear approximation we made is a limitation of this solution. For a sweat sensing technology that gives medically relevant feedback to the user, we would want our analyte sensing results to be as accurate as possible, which would involve a curve-fitting technique as opposed to a linear approximation for our RTD. With the linear calibration we performed, we could use the values of Vo received from our RTD to determine the temperature of samples between 20-40°C with a pretty high level of accuracy.

References

 Trump, B. (2011). Analog linearization of resistance temperature detectors. Retrieved from http://www.ti.com/analog-circuit/aaj-article.html