Comments (6)
Hi 👋 Thanks for reaching out and opening your first issue here! We'll try to come back to you as soon as possible. ❤️
from neurokit.
Sorry, I'm not sure I understood your question
from neurokit.
Sorry, I'm not sure I understood your question
I mean that for the same input resp signal, sig_0, under 2 Conditions, has different number of feature.
Condition 1:
when I call nk.rsp_analyze() firstly, it can extract 28 features.
Condition 2:
When I first call nk.rsp_analyze() using a longer signal sig_1, 37 features can be extracted.
that is OK, because some of features need a longer input signal.
My question is,
after calling nk.rsp_analyze() using sig_1, calling nk.rsp_analyze() using sig_0(using in Condition 1),
37 features are extracted, but in Condition1, only 28 features are extracted.
9 extra features are the same to those features extracted from sig_1.
from neurokit.
My question is, after calling nk.rsp_analyze() using sig_1, calling nk.rsp_analyze() using sig_0(using in Condition 1), 37 features are extracted, but in Condition1, only 28 features are extracted. 9 extra features are the same to those features extracted from sig_1
I'm really sorry but I still have trouble to understand what your question is
from neurokit.
My question is, after calling nk.rsp_analyze() using sig_1, calling nk.rsp_analyze() using sig_0(using in Condition 1), 37 features are extracted, but in Condition1, only 28 features are extracted. 9 extra features are the same to those features extracted from sig_1
I'm really sorry but I still have trouble to understand what your question is
Now, let's try another way.
Could you please try this code in one terminal and let me know your result?
input signal:
sig_0: resp signal, length is 7104, sampling rate is 64Hz
sig_1: resp signal, length is 11520, sampling rate is 64Hz
code:
sig_0_processed, info = nk.rsp_process(sig_0, 64)
feature_0 = nk.rsp_analyze(sig_0_processed, 64)
print(feature_0)
this is my result.
sig_1_processed, info = nk.rsp_process(sig_1, 64)
feature_1 = nk.rsp_analyze(sig_1_processed, 64)
print(feature_1)
this is my result.
feature_0_new = nk.rsp_analyze(sig_0_processed, 64)
print(feature_0_new)
this is my result.
Just compare feature_0 with features_0_new.
You will find this results are different.
If your results are not like this, please let me know, thank you!
from neurokit.
I can't run this because I don't have the same data as you, and depending on the breathing rate it will detect a different number of cycles which can influence what is then computed.
If your question is whether it is normal to have a different number of features, as you mentioned it is likely to be related to the length of the signal. If you try with same length signals you should obtain the same amount of features.
In any case, I wouldn't worry too much and just use the "common" features if you want to compare the various signals
from neurokit.
Related Issues (20)
- Who works DWT in ecg_delinate() ?? HOT 3
- Help with the function ecg_delinate() HOT 1
- Simple Question on Upsampling after Processing HOT 2
- Issue computing ApEn with scikit-learn version 1.3.1 HOT 5
- Issue on page /_modules/neurokit2/ppg/ppg_peaks.html HOT 2
- welch() got an unexpected keyword argument 'average' HOT 2
- ecg_analyze() bug HOT 6
- bio_process() and ecg_peaks() giving different HRV results by same "neurokit" method. HOT 8
- nk.hrv throw a TypeError: 'list' object is not callable HOT 6
- Missing runtime dependency "requests" in 0.2.7 HOT 4
- `mne[data]` is not a thing anymore
- B HOT 1
- epochs_start param of function epochs_create() unable to take in a list HOT 5
- KeyError with signal_interpolate when not providing fill_values HOT 1
- Getting respiration amplitudes separately (one by one) HOT 2
- how to do Spectral Analysis for ppg and ecg #17 HOT 2
- Any plans to support ICP and its derived scores? HOT 3
- why always miss the first R peak while using the "ecg_findpeaks" function HOT 5
- Accelerated Visibility-Graph-Based Peak detector HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neurokit.