Gait data: step count and average waveform

I am currently evaluating DIAdem to determine if it will be usable for my task. I have human gait force/moment data to analyze. In particular, I am analyzing force data similar to force plate data. Data is anticipated to be collected over periods of days so they will be relatively large files. First, I need to segment the data according to activity (inactive, standing, walking, localized movement). I have figured out how to do this manually using flags and visual inspection. If I go forward with the software, I will want to automate this process but my current questions are regarding the analysis of the segmented data.
(1)    For the walking and localized movement segments, I want to know the number (count) of gait steps. One complete step is illustrated in the pdf between the two black solid lines. The gait movement typically has a double peak appearance but that is not always the case, sometimes it resembles a single peak. The peak search does not necessary give me what I want.
(2)    For the walking segment, I want an average gait step waveform. Take all the individual steps and display an average waveform (one complete step).
(3)    For each activity segment, I want to know the total duration for the activity. The sampling rate is not necessary constant and might fluctuate or change. Since the segmented time data references the relative time location, I haven’t been able to figure out how to represent the total time especially since the sample rate changes.
I have attached a sample of the data which includes the complete force data and manually segmented activity data. I am not experienced with VBscript writing. Suggestions/assistance with any of these tasks will be helpful or indication if any of these tasks are not feasible with DIAdem.
Thanks
Attachments:
Gait Waveform.pdf ‏39 KB
Trial Data.zip ‏1189 KB

Hi MJG3,
What you are trying to do is definitely possible with DIAdem and while it is a lot easier than it would be in other languages, it isn't necessarily simple - especially if you don't have much experience with VBscripting.  I took a look at the data that you attached and you will definitely need to create an algorithm to filter out each different section of your data to create separate graphs.  In order to actually create these graphs, it is probably easier to record a macro in the Scripting tab that creates a subset of data and then adds it to your report (or wherever you need it) than to write it from scratch.  Then, from there, I would use the algorithm you develop to determine where to put each data point.
As far as the actual algorithm goes, I have a general idea of how you might want to do this.  You could use a 'filter' (if/else if) statements that look at the following parameters to determine whether you are walking, standing, localized, or inactive.
If you are walking, it looks like you could use the frequency and amplitude of your signal to determine if you are walking (If Frequency > limit && Amp > limit2)
Next, I would check to see if you are standing by determining if the change in amplitude over a certain period of time is less than a certain amount but the amplitude is greater than a set limit. I might suggest using an offset of your localized data followed by an integral to get the area under the curve to determine the change.  
To determine if you are 'inactive', I would use the same parameters as standing but you would want to look below the set limit.
Finally, any data that is not accounted for is 'localized' which appears to be more random than the other three data sets. 
Of course, to do all of this you will need to take subsets of your data and scan each section x points at a time.  The number of points to look at is going to vary based on the rate that you are acquiring data, how fast you expect your subjects to walk, etc.  I would use something similar to this example in order to count the number of peaks from walking which would tell you the number of steps.
I wish you the best of luck on your project!
Regards, 
Trey C.

Similar Messages

  • Will deleting a TV Show delete additional data, played counts and such?

    In order to free up space on my HDD, which is full again, I was considering deleting some TV Shows, but I don't want to lose the play count information and such, will deleting the TV Shows do this?

    Ratings, play counts, date added, last skipped, playlist membership, currently playback position, checked status and a bunch of other properties are only ever stored in the library rather than the file's tag. Program title, show name, season number and most of the other things you can edit with Get Info. are stored in the file, if  the format is capable of recording the metadata.
    Perhaps, when iCloud is fully rolled out, changes to this volatile metadata will get synced via your iTunes account to all your devices. I can't recall if it was demonstrated in the keynote, but I'm sure someone has proposed the idea that you could start watching a movie on your iPad, pause it, then resume later from the same point on your computer without any effort.
    tt2

  • Health. Polar M400 steps and iphone step counter both being added.

    HHealth app prioritising is not working.   I am unable to disable iPhone step counter and it is adding to my polar hrm watch - M400.   I wear my watch all the time but do not carry my iPhone 6 plus all day.   For instance I do not have it with me while working out on a treadmill.   How can I stop Health app from using my iPhone data?   I have tried to see if all the data is visible and see a blank screen.  It is very frustrating and Apple needs to fix this.

    Bump

  • Apple watch and iPhone show different step counts

    When I look at the activity app on my watch and on my phone, they show a different number of steps. For the most part i've been walking with both my phone and watch, so I'm wondering why the number doesn't sync between the two. Obviously on the phone its including some additional steps that it is counting that the watch didn't get. I have not calibrated it yet (doing a workout with the GPS on the phone). When I look at the raw data int he Health app, the phone is obviously counting a couple more steps each time. Is this something other people are encountering or will it fix once I've calibrated it?

    I have the same issue, but my iPhone actually has fewer steps counted. I did a dumb test to count steps myself and looks like my iPhone has more accurate steps. The thing bothering me most is the Health app picks steps from iphone and watch. It doesn't recognize sometimes the data is duplicated.

  • How to Plot number and string in one row (data logger counter) ?

    hi all i made data log quantity using Digital Counter via modbus to monitoring quantity and reject that has and Name Operator, Machine and Part Number.
    i have problem about plot the number & string in one row, as shown on the picture below :
    how to move that string on one row ? i attach my vi.
    Thanks~
    Attachments:
    MODBUS LIB Counter.vi ‏39 KB

    Duplicate and answered - http://forums.ni.com/t5/LabVIEW/How-to-Plot-number-and-string-in-one-row-data-logger-counter-via/m-p...

  • Although my ipod shows the number of steps, calories, and time, it no longer is saving it to the history. also when I open the history it takes me to May 2010 instead of the current date. Any ideas on how to get it to start recording the history again?

    Although my ipod shows the number of steps, calories, and time, it no longer is saving it to the history. Also when I open the history it takes me to May 2010 instead of the current date. Any ideas on how to get it to start recording the history again?

    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable                     
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar
    The missing apps could have been done by setting the Restrictions that can hid those apps. If the backup was made with those retrictions set the the Restrictions are also restored.
    Thus, if you get it to work restore to factory settings/new iPod, not from backup                               
    You can redownload most iTunes purchases by:        
      Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • I have to average data of 1min and then log into text file

    For my application i have to average data of 1min and then log into text file. please guide me on this . To transfer the data i am using notifier.
    Prashant Soni
    LabVIEW Engineer

    hi prashant,
      Check this attachment..I just implemented my idea    in this one.
    Thanks and regards,
    srikrishnaNF
    Attachments:
    Example_VI_BD.png ‏12 KB

  • Moving average price  based on date range, site and article.

    Hi ABAPers,
    I am working on SKU wise sales report. Based on user input of date range ,site and article I fetch data from VBRP table i.e., (billing data from stores) . I have searched a lot to find MAP but dint get convincing solution.
    I tried to get data from MBEW-VERPR but that doesnot give MAP for a given date. I also tried with condition record table and KONP table but not helpful.
    I also got to know about s031 and LIS configuration I am not sure whether functional consultant should do the changes.
    Kindly help me in obtaining the MAP for particular bill date, article and site(store).
    Regards,
    Dep

    You can found the moving average price in MBEW (current) and MBEWH (history table)
    The first goods movement after the period closing program updates the period in MBEW and writes the data of the previous period to table MBEWH
    - If you actually need map on a daily (or less) basis, you will have to calculate it from MBEW, MBEWH, MSEG and BSIM (...)
    - You could also look for the actual cost in MSEG related to records of VBRP.
    Regards,
    Raymond

  • Where is play count and watched/unwatched data stored?

    Where is play count and watched/unwatched data stored?
    Is it on file or somewhere else?

    I don't know where play count is stored, but, when using list view for songs
    Go to menue toolbar item 'View' - on the drop down list that appears choose 'View Options...'
    In the window that opens up check the box next to Play Count
    now iTunes will keep track of how many times you play each song.
    But, if you follow the same menue path while movies are in list view mode, the play count option does not appear to exist for movies, although date last played is an option.
    If you don't check the box in view options, I don't think iTunes will keep track of song play count. The only data from past use of any individual item iTunes can show is probably limited to that items' metadata that you can see using the 'get info' option for any selected item.

  • 64 channel 1450 Hz data logging with PCI-6033E card, on-line averaging and viewing the raw and averaged signal in CWGraphs.

    I'm acquiring 64 channels at sampling rate of about 1450kHz continuously and showing the data second by second in a CWGraph. Now, I would like to add an on-line averaging for all of those 64 channels and show it in another CWGraph. The averaging should occur with respect of external trigger and the sample should consist of about 100ms prestimulus and 500ms poststimulus period. Has anybody been handling this sort of things? How it's solved with ComponentWorks and Visual Basic?
    I'm using double Pentium 700MHz processors and NI-DAQ PCI-6033E card.

    1. To get started with external triggering check out the examples in the Triggering folder that install with CW under MeasurementStudio\VB\Samples\DAQ\Triggering.
    2. Create a prestimulus buffer that always contains the latest 100 ms of data. Just modify the CWAI1_AcquiredData event to transfer ScaledData (the data acquired) to your prestimulus buffer. See how there will always be a prestimulus buffer of data regardless of trigger state?
    3. On the trigger, you can use the same CWAI1_AcquiredData event to route the data into poststimulus buffer and average the 2.
    I see something like this:
    if no trigger
    100 ms of data to prestimulus buffer
    if trigger
    500 ms of data to poststimulus buffer
    averaging and display function
    reset trigger and buffers
    good luck
    ben schulte
    application engineer
    national instruments
    www.ni.com/ask

  • How to count days between two dates excluding saterady and sunday

    Hi all
    iam working on oracle sql/plsql.
    In my application , i need to caliculate leave days between two dates excluding saterady and sunday
    Please tell me the solution if any one knows
    thanks in advance ,
    balu

    More modern version:
    WITH date_tab AS
    (SELECT TO_DATE ('&from_date', 'dd-MON-yyyy')
    + LEVEL
    - 1 business_date
    FROM DUAL
    CONNECT BY LEVEL <=
    TO_DATE ('&to_date', 'dd-MON-yyyy')
    - TO_DATE ('&from_date', 'dd-MON-yyyy')
    + 1)
    SELECT business_date
    FROM date_tab
    WHERE TO_CHAR (business_date, 'DY') NOT IN ('SAT', 'SUN');Thank you,
    Tony Miller
    Webster, TX
    Never Surrender Dreams!
    JMS
    If this question is answered, please mark the thread as closed and assign points where earned..

  • How can i select the step count of a recursive CTE ?

    I want to select the step count of this query (which one is do fiirst and continue + 1)  from query below
    ;WITH EmpCTE( BomID , empid, mgrid,BomMgrId, lvl, Qty , FLG)
    AS
      SELECT     BomID , empid , mgrid, 0 as BomMgrId , 0, Qty , FLG
      FROM Employees
      WHERE empid = 1
      UNION ALL
      SELECT   E.BomID , E.empid, E.MgrId, M.BomID as BomMgrId , M.lvl+1 , E.Qty , E.FLG 
      FROM Employees AS E
        JOIN EmpCTE AS M
          ON E.mgrid = M.empid
    SELECT BomID , empid, BomMgrId as mgrid , FLG , qty , lvl FROM EmpCTE  WHERE  FLG is null 

    Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules (you have no idea).
    Temporal data should use ISO-8601 formats. Code should be in Standard SQL as much as possible and not local dialect. 
    This is minimal polite behavior on SQL forums. 
    What you did post is a common design error made by people who do not understand how sets work. This is not RDBMS! It is a sequential file system, kludged in SQL using the recursive CTE that hides the cursors and loops. 
    >> I want to select the step count of this query (which one is do first and continue + 1)  from query below <<
    Step? A set has no concept of ordering. Your question is like asking about the gills on a dog in a veterinarian forum.  
    An SQL programer would have a table (set) with the name Personnel. This is a higher level abstraction. But you have Employees, a sequential file or list. 
    Managers and subordinates are not attributes as you show them. There is a relationship among employees. You have a non-normalized model that mixes relationship and entities together in violation of basic data modeling. 
    We also do not use flags in SQL; that was assembly language.
    Please follow Netiquette and  post the specs and DDL , so we can replace it with a nested sets mode. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Health App: Basic Step Counting?

    Do I need any external hardware to have my steps or runs measured in the health app? I can't seem to set anything up...

    I have iPhone 5s iOS 8.0.2 and the steps are being counted for me. I have no other hardware for step counting.
    Open health app and check health data tab -> fitness -> steps or walking + running distance
    Though, if you are dissatisfied, you might search for something additional in app store.

  • Health step counter all messed up

    Health still records my data points (although strangely--it has a data point for 6000+ steps this morning, which is wrong, as I just woke up, and it records all other data in tiny chunks, like 6 steps at a time), but it no longer shows a daily average or daily steps.  It just has 0 for everything unless you go to the data screen.
    It used to record my steps, still in the tiny increments, and display daily totals and averages and daily distances.  After downloading iOS 8.0.1 and restoring to iOS 8.0.0 yesterday, it apparently no longer does the totals, and apparently is messed up if it thinks i walked 6447 steps this morning.
      Any insight?  I liked it keeping track of all my steps.

    Health still records my data points (although strangely--it has a data point for 6000+ steps this morning, which is wrong, as I just woke up, and it records all other data in tiny chunks, like 6 steps at a time), but it no longer shows a daily average or daily steps.  It just has 0 for everything unless you go to the data screen.
    It used to record my steps, still in the tiny increments, and display daily totals and averages and daily distances.  After downloading iOS 8.0.1 and restoring to iOS 8.0.0 yesterday, it apparently no longer does the totals, and apparently is messed up if it thinks i walked 6447 steps this morning.
      Any insight?  I liked it keeping track of all my steps.

  • Cisco UCCX 10.6 Get XML Document Data XPath count() function

    Hi
    I'd like to retrieve the number of XML nodes in a document to make a script more efficient.
    e.g. with this XML, I'd like to know how many <message> nodes there are:
    <messages>
    <message>contentA</message>
    <message>contentA</message>
    <message>contentA</message>
    </messages>
    I've tried iNodeCount = Get XML Document Data (inputXMLfile, "count(//messages/message)")
    If I try this in an XPath expression tester then I get the result I'm expecting - an integer of 3. However, in UCCX this produces the error "Can not convert #NUMBER to a NodeList!"... What am I doing wrong?
    Thanks

    Hi, 
    you may want to use a Set or a Do step to execute Java code. 
    First, reference the XML file (within the repository) by calling DOC[myFile.xml] and of course, assigning this value to a Document type variable, e.g.: 
    Set myDocument = DOC[myFile.xml]
    Then add a Do step that actually does the XPath part of the job. 
    There's a nice step by step explanation of it here: http://viralpatel.net/blogs/java-xml-xpath-tutorial-parse-xml/
    Remember, you can get the Inputstream object of the myDocument variable using the getInputStream() method on it.
    G.

Maybe you are looking for

  • Is there a way to automatically move mail from one folder to another?

    Is there a way to periodically, automatically, move mail from one folder to another? For example, I'd like to move mail from one of my IMAP/Archives folders to my MyMac/Archive folder and I'd like this to happen without intervention. Can this be done

  • One Time Vendor/Customer Accounts

    Hi All, Can anybody explain the part in quotes. For all customers or vendors with whom you rarely do business, a special customer and a special vendor master record should be created. Those master records are for One-Time-Accounts. "In contrast to ot

  • QT Reference is not too different from QT

    Hi I just exported a QT Reference movie of my timeline (4 minutes long). And I noticed that it was 408 MB in size. It seemed to take a while to encode, too - like 3-4 minutes. When I exported a normal QT movie (by checking 'Make Movie Self-Contained'

  • ALV scroll event ?

    Hello, I need to display a long list using a ALV display.  For each line, there are data to be fetched from multiple tables so this can take quite long to accomplish.  To avoid having users to wait while gathering the data for the whole list I would

  • Effective value comparison of StringBuilder objects

    Hi there, I got questions in comments of the code. Can anyone help? public class StringBuilderTest {      public static void main(String[] args) {           StringBuilder sb = new StringBuilder("abc");           StringBuilder sb1 = new StringBuilder(