-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue running toolbox #25
Comments
I seem to be having similar issues - I get empty results when I run raw ECG. But even when I input my own RR data it does not work properly/I am not able to obtain the RR peaks from the toolbox using raw ECG. I keep getting this error: AF analysis completed for subject 1 In Main_HRV_Analysis (line 194) Not sure what is wrong here. What does your RR output look like, does it capture the whole QRS complex (I have seen this in the Basic demo?) and does it have to be a specific length? For example, is 100 RR data points too short to be analyzed by the toolbox? Also What does your t variable look like? I am confused by this because RR data is not uniformly sampled so how is there a time value/how is that obtained? At one point it worked but it gave a mostly empty csv file with a column of 3's under tdflag and fdflag? Not sure what these even mean. Any ideas? Thanks!! |
Hello, I apologized if my English is a little hard to understand but.. I'm not really sure if the length matter..but I know that in the toolbox code, it does take in the length to generate the number of windows needed. Using raw ECG signal as an input: Using RR intervals + time as an input: Example: If I figured something out or found the way to fix this, I'll let you know. |
Hello,
Length of the signals matter: if it is shorter than the length of the analysis window it will result in an error
Thus, if your ECG signal is short this will result in not enough points to compute the parameters within the window. (Window length can be changes as all the other parameters)
Readme file contains the description of each output parameter including tdflg and fdflg.
The reason why the output file has empty column values is that for that analysis window the SQI (signal quality) was to low (on average) or AF was detected. If you use directly the RR intervals without also using the SQI (which are generated by Note that: empty values when SQI is too low (or AF is present) is intentional, do not try to modify the code. If you like to set a different threshold for the SQI then change the corresponding parameters in Please, read the README file, paper, and comments in the InitializeHRVparams |
Thank you both for your input, help, and advice! Because the demo data was working fine for me, I came to realize that the issue was with my raw data. When my data was not filtered I would get 2's in my td and flag columns meaning:
Thus, changing the threshold may also help, but I don't know how much you can play around with this without influencing the accuracy of the results? Any guidance/guidelines (I don't think I see an in the README)? It seems that empty results also occur when the data is not long enough, so you have to play around a little bit with the window size parameters. Please let me know if you have any questions/additional suggestions! |
Describe the bug
Hello, so I have tested the demo and it works but I'm having a problem where when I try to run the tool box using raw ECG signal, I couldn't get the time domain indicators from the toolbox. .csv file were empty but only show the window t_start and t_end. The only way for me to do this is to pass in raw signal using 'ECGWaveform', get the RR intervals and it's time from your toolbox, save it into a file then run the toolbox again using 'RRIntervals' and it gave me the indicators just fine. I'm not sure if this is the ideal way to run this.
I wrote a new script containing these code for getting rr intervals and its time
then there's another script after I saved rr intervals and its time from your toolbox
I want to be able to just run the toolbox once and generate the indicators for me without me having to save rr intervals and its time. I wonder what is the correct way to do this? Also for InitializeHRVparams('Demo'), I want to use the default values and not change anything is this correct?
The text was updated successfully, but these errors were encountered: