0todd0000 / spm1d

One-Dimensional Statistical Parametric Mapping in Python
GNU General Public License v3.0
61 stars 21 forks source link

Kinematic, kinetic and EMG data #126

Closed gabrielmoisan closed 3 years ago

gabrielmoisan commented 4 years ago

Hi Todd, I am having trouble with a reviewer, clearly not a fan of SPM in the analysis of biomechanical data. I don't know how to answer his concerns in a satisfactory way. He is insistent and not satisfied by my answers. Can you help me? I used non-parametric permutations (Nichols and Holmes) to compare joint angles and moments and EMG (6 muscles) during shod and barefoot walking (stance phase only).

Reviewer's comment: An issue related to this statistical analysis is permutation inference expects independence assumption, but it can be relaxed if the joint probability does not change with permutation. Data in the time series provided by joint angles and moments, and muscle activation is not independent, therefore it is not clear why this analysis should be applied to this data. Then, in my opinion, if I can not believe the data analysis is correct, I can not endorse the discussion based on it. I need the authors to better explain their approach, and mostly show me how to overcome my concerns.

He also suggests to use ANCOVA with walking speed as a covariant. Am I wrong by saying that ANCOVA has not been validated yet in SPM?

Thanks a lot for you time, Gabriel Moisan PhD Université du Québec à Trois-Rivières, Canada

gabrielmoisan commented 4 years ago

Hi again, just to be sure, what are the statistical tests behind these two: -spm1d.stats.nonparam.ttest_paired(yA, yB)

0todd0000 commented 4 years ago

Hi Gabriel,

This is a very tough question! There are many aspects to consider, and it will be difficult to address them all. I will address the main issue of the reviewer's comment here, because it directly pertains to the title of this issue: "Kinematic, kinetic and EMG data".

If you have other questions about spm1d (e.g. permutation, ANCOVA), please ask them as separate issues. (We are trying to keep this forum as modular as possible, so that other users can find answers efficiently. It's better to submit N questions as N separate issues than to include N questions in one issue.)

Regarding the main reviewer concern: I don't think the reviewer is criticizing SPM (at least in the comment you sent). I think instead the reviewer's comment pertains to a specific issue that is largely independent of SPM:

The reviewer's comment suggests that many dependent variables (DVs) were analyzed, and that separate analyses were conducted for each DV. This is a problem, not only for SPM, but for any analyses; it is generally invalid to collect and separately analyze many DVs because many of those DVs are correlated (e.g. EMG levels and external forces are generally positively correlated). This correlation implies that the joint probability (between multiple DVs) must be considered when making inferences about multiple-DV effects.

The reviewer's comment implies that separate analysis of DVs (using t tests) is not valid in general, and I'd tend to agree. It would be better to conduct multivariate analyses, and not to use t tests.

However, one rebuttal you could make is that separate analyses with a Bonferroni correction for N tests (across the N DVs) is more conservative than multivariate techniques, so any discovered effects (after a Bonferroni correction) would certainly appear in a multivariate analysis. This rebuttal assumes that you have applied a Bonferroni (or other) correction across your N tests.

If you wish to follow-up about the multivariate DV issue, please do so below. If you wish to discuss other aspects of spm1d or SPM, including ANCOVA, please create new issues.

Todd

gabrielmoisan commented 4 years ago

Hi Todd, Thank you for the answer. I am a little confused to be honest. When I look at the biomechanics literature (walking studies), I don't see a lot of multivariate analyses. Are we all doing wrong analyses? The objective of my project is to compare shod vs barefoot walking at comfortable and fast speeds. Basically, 16 t-tests at confortable walking speed and 16 t-tests at fast walking speed (shod vs barefoot) which is the way most locomotion researchers does it. I did not use a Bonferroni correction as it would be very severe. Instead, I discuss this limitation in the interpretation of the results in the discussion section of the manuscript. Am I wrong in doing these analyses? Is there a way to convince the reviewer that it is a legitimate way to analyze our data?

If you suggest multivariate analyses, can you point towards the right direction (first time with multivariate here!). What kind of analyses do you recommend to implement in SPM?

Thanks a lot! Coming from a clinical background, you are of great help!

0todd0000 commented 4 years ago

When I look at the biomechanics literature (walking studies), I don't see a lot of multivariate analyses.

I agree. In my view, this is a major problem in the literature.

Are we all doing wrong analyses?

"Wrong" is a strong word and also somewhat misleading. In reality the quality of analyses is much more nuanced, for a variety of reasons. For example:

I did not use a Bonferroni correction as it would be very severe. Instead, I discuss this limitation in the interpretation of the results in the discussion section of the manuscript. Am I wrong in doing these analyses? Is there a way to convince the reviewer that it is a legitimate way to analyze our data?

If you suggest multivariate analyses, can you point towards the right direction (first time with multivariate here!). What kind of analyses do you recommend to implement in SPM?

spm1d currently supports the following multivariate procedures:

The first three are the multivariate versions of t tests.

gabrielmoisan commented 4 years ago

Hi Todd, Thanks so much for your time, I really appreciate it. For what I understand from your comment, I think I am better suited with MV analyses. I read your 2014 paper in Gait Posture and it really helped me understand.

I have follow-up questions in order to make sure to correctly implement the Hotelling's paired T2 in SPM. I have kinematics, kinetics and EMG variables (total of 16 variables) of 21 individuals during two experimental conditions (shod and barefoot) and two speeds (slow and fast). I don't want to compare to data at different walking speed (slow vs fast speed)

How many Hotelling's tests should I do? I see two possible options: Option 1: -Create a total of four 21 x 101 x 16 matrices (with all the kinematics/kinetics and EMG variables). 1= slow speed condition 1, 2= slow speed condition 2, 3= fast speed condition 1, 4=fast speed condition 2. -Implement two Hotelling's paired T2 in SPM (1 vs 2 and 3 vs 4)

Option 2 -Separate the kinematics (21 x 101 x 6), kinetics (21 x 101 x 6) and EMG (21 x 101 x 4) data in different matrices (total of 12 matrices) -Same comparisons as Option 1 but with 6 Hotelling's paired T2 instead of 2.

I hope I don't ask too much. I really appreciate your time. Gabriel

0todd0000 commented 4 years ago

Option 1 will be difficult because the (co-)variance estimation will likely be a problem.

So I think Option 2 is better, but I'd suggest another possibility: group by joint. Joint reaction forces, for example, have three components that describe the same physical property (i.e., a single three-dimensional force), so it make physical sense to group these three DVs (or actually, one multivariate DV). It makes less sense to group moments (or forces) across joints.

Note: SPM only solves one problem: DVs which vary over a continuous n-dimensional continuum (e.g. 1-dimensional time). It does not solve the inter-joint problem. As far as I know there is no statistical theory that can accurately model biomechanical systems involving multiple multivariate DVs at different joints and/or across different structures. So my only suggestion would be to try DV groupings in a way that makes most physical sense, then correct for multiple tests across the different DV groupings. Perhaps even try a variety of groupings to check whether the results are sensitive to particular groupings.

More generally, this is a matter of DV definition. If one does not clearly define the DV(s) of interest prior to the experiment, then it can become difficult to objectively choose appropriate DVs and/or analyses after the experiment has been conducted.

gabrielmoisan commented 4 years ago

Thank you so much Todd! I really appreciate your time and I learn a lot from you!