Giter Site home page Giter Site logo

Comments (6)

welcome avatar welcome commented on June 2, 2024

Hi 👋 Thanks for reaching out and opening your first issue here! We'll try to come back to you as soon as possible. ❤️ kenobi

from neurokit.

DominiqueMakowski avatar DominiqueMakowski commented on June 2, 2024

Sorry, I'm not sure I understood your question

from neurokit.

Hannahhanhan555 avatar Hannahhanhan555 commented on June 2, 2024

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.
img_v2_3be7e7c5-0a49-4087-9974-2b209fa6549g

from neurokit.

DominiqueMakowski avatar DominiqueMakowski commented on June 2, 2024

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.

Hannahhanhan555 avatar Hannahhanhan555 commented on June 2, 2024

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.

image

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.

image

feature_0_new = nk.rsp_analyze(sig_0_processed, 64)
print(feature_0_new)

this is my result.

image

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.

DominiqueMakowski avatar DominiqueMakowski commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.