-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuntitled.dio
1 lines (1 loc) · 12.3 KB
/
untitled.dio
1
<mxGraphModel dx="786" dy="582" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" background="#ffffff"><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="59" value="" style="endArrow=classic;html=1;" parent="1" edge="1"><mxGeometry width="50" height="50" relative="1" as="geometry"><mxPoint x="790" y="120" as="sourcePoint"/><mxPoint x="170" y="420" as="targetPoint"/><Array as="points"><mxPoint x="890" y="100"/><mxPoint x="790" y="310"/><mxPoint x="660" y="380"/><mxPoint x="510" y="420"/></Array></mxGeometry></mxCell><mxCell id="8" value="" style="endArrow=classic;html=1;entryX=0;entryY=0.5;exitX=1;exitY=0.5;" parent="1" target="9" edge="1"><mxGeometry width="50" height="50" relative="1" as="geometry"><mxPoint x="190.5882352941178" y="134.58823529411768" as="sourcePoint"/><mxPoint x="360" y="140" as="targetPoint"/></mxGeometry></mxCell><mxCell id="9" value="<div><span style="font-size: 10px"><b>bioread function</b></span></div><b><font style="font-size: 10px">readacqknowledge(&lt;file&gt;)</font></b><div><span style="font-size: 10px"><b>in Neurokit</b></span></div>" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1"><mxGeometry x="310" y="80" width="210" height="40" as="geometry"/></mxCell><mxCell id="10" value="<font><b><font style="font-size: 11px">Parse </font></b><span style="font-size: 10px">ECG, RSP, EDA and PPG based on TTL</span></font>" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1"><mxGeometry x="350" y="190" width="160" height="80" as="geometry"/></mxCell><mxCell id="12" value="" style="endArrow=classic;html=1;exitX=0.167;exitY=0.954;exitPerimeter=0;entryX=0.25;entryY=0;" parent="1" source="9" target="10" edge="1"><mxGeometry width="50" height="50" relative="1" as="geometry"><mxPoint x="270" y="250" as="sourcePoint"/><mxPoint x="405.57142857142856" y="200.14285714285717" as="targetPoint"/><Array as="points"><mxPoint x="370" y="170"/></Array></mxGeometry></mxCell><mxCell id="13" value="" style="endArrow=classic;html=1;exitX=0.58;exitY=0.017;exitPerimeter=0;" parent="1" source="10" edge="1"><mxGeometry width="50" height="50" relative="1" as="geometry"><mxPoint x="479.25" y="170" as="sourcePoint"/><mxPoint x="607" y="120" as="targetPoint"/><Array as="points"><mxPoint x="522" y="120"/></Array></mxGeometry></mxCell><mxCell id="21" value="if bloc00" style="text;html=1;resizable=0;points=[];align=center;verticalAlign=middle;labelBackgroundColor=#ffffff;" parent="13" vertex="1" connectable="0"><mxGeometry x="0.0017" y="-19" relative="1" as="geometry"><mxPoint x="23" y="-41" as="offset"/></mxGeometry></mxCell><mxCell id="14" value="" style="endArrow=classic;html=1;exitX=1;exitY=0.25;" parent="1" source="10" edge="1"><mxGeometry width="50" height="50" relative="1" as="geometry"><mxPoint x="524.4285714285714" y="191" as="sourcePoint"/><mxPoint x="610" y="200" as="targetPoint"/></mxGeometry></mxCell><mxCell id="15" value="extract template and add to Cardiac_Cycles dataframe, i.e. quality model" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1"><mxGeometry x="610" y="80" width="175" height="60" as="geometry"/></mxCell><mxCell id="16" value="<h1>Block Diagram of preprocessing</h1><p>Description: from original data folder, call .acq files</p>" style="text;html=1;strokeColor=none;fillColor=none;spacing=5;spacingTop=-20;whiteSpace=wrap;overflow=hidden;rounded=0;" parent="1" vertex="1"><mxGeometry x="1" y="10" width="479" height="80" as="geometry"/></mxCell><mxCell id="17" value="<font style="font-size: 9px">Give path ; name of file should be sub/date/experiment</font>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" parent="1" vertex="1"><mxGeometry x="200" y="140" width="130" height="20" as="geometry"/></mxCell><mxCell id="18" value="<font style="font-size: 10px">outputs a panda dataframe</font>" style="text;html=1;resizable=0;points=[];autosize=1;align=left;verticalAlign=top;spacingTop=-4;" parent="1" vertex="1"><mxGeometry x="357" y="125" width="130" height="20" as="geometry"/></mxCell><mxCell id="26" value="Else" style="text;html=1;resizable=0;points=[];autosize=1;align=left;verticalAlign=top;spacingTop=-4;" parent="1" vertex="1"><mxGeometry x="531" y="185" width="40" height="10" as="geometry"/></mxCell><mxCell id="27" value="<b><font style="font-size: 20px">ECG PREPROCESSING</font></b>" style="rounded=1;whiteSpace=wrap;html=1;gradientColor=#ffffff;shadow=1;" parent="1" vertex="1"><mxGeometry x="610" y="170" width="550" height="70" as="geometry"/></mxCell><mxCell id="31" value="" style="endArrow=none;dashed=1;html=1;" parent="1" edge="1"><mxGeometry width="50" height="50" relative="1" as="geometry"><mxPoint x="960" y="320" as="sourcePoint"/><mxPoint x="960" y="240" as="targetPoint"/></mxGeometry></mxCell><mxCell id="32" value="<b>Linear interpolation</b><div> for large and instantaneous amplitude modulation</div>" style="shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;shadow=1;dashed=1;dashPattern=1 2;gradientColor=#ffffff;rounded=1;comic=0;" parent="1" vertex="1"><mxGeometry x="814" y="320" width="310" height="70" as="geometry"/></mxCell><mxCell id="34" value="" style="endArrow=none;dashed=1;html=1;exitX=0.421;exitY=-0.021;exitPerimeter=0;" parent="1" source="38" edge="1"><mxGeometry width="50" height="50" relative="1" as="geometry"><mxPoint x="880" y="470" as="sourcePoint"/><mxPoint x="964" y="393" as="targetPoint"/></mxGeometry></mxCell><mxCell id="37" value="" style="endArrow=none;dashed=1;html=1;entryX=0.476;entryY=1.015;entryPerimeter=0;exitX=0.5;exitY=0;exitPerimeter=0;" parent="1" source="45" target="38" edge="1"><mxGeometry width="50" height="50" relative="1" as="geometry"><mxPoint x="881.1764705882354" y="653.4117647058824" as="sourcePoint"/><mxPoint x="910" y="550" as="targetPoint"/></mxGeometry></mxCell><mxCell id="38" value="<b>4th order central-moment filter</b><div>Remove gradient artifact</div>" style="shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;shadow=1;dashed=1;dashPattern=1 2;gradientColor=#ffffff;rounded=1;strokeWidth=2;" parent="1" vertex="1"><mxGeometry x="850" y="470" width="270" height="80" as="geometry"/></mxCell><mxCell id="43" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;exitX=0;exitY=0.5;entryX=0;entryY=0.5;jettySize=auto;orthogonalLoop=1;" parent="1" source="27" target="27" edge="1"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="49" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;exitX=0.5;exitY=1;exitPerimeter=0;jettySize=auto;orthogonalLoop=1;" parent="1" source="45" target="48" edge="1"><mxGeometry relative="1" as="geometry"/></mxCell><mxCell id="45" value="<div><b style="font-size: 15px"><br></b></div><b style="font-size: 15px">Bandpass filter&nbsp;</b><span>[3, 45]Hz</span>" style="shape=mxgraph.flowchart.extract_or_measurement;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=3;shadow=1;dashed=1;dashPattern=1 2;" parent="1" vertex="1"><mxGeometry x="766" y="650" width="314" height="100" as="geometry"/></mxCell><mxCell id="48" value="<u>Pekkanen segmenter | Kathirvel, 2001, 2011</u><div><br></div><div><b>FOGD - SHANNON ENVELOPPE</b></div>" style="shape=mxgraph.flowchart.paper_tape;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=2;shadow=1;gradientColor=#ffffff;gradientDirection=east;" parent="1" vertex="1"><mxGeometry x="290" y="640" width="290" height="110" as="geometry"/></mxCell><mxCell id="50" value="At this point, signal is stabilized and maximally denoised - further transformations are needed" style="text;html=1;resizable=0;points=[];autosize=1;align=left;verticalAlign=top;spacingTop=-4;" parent="1" vertex="1"><mxGeometry x="480" y="785" width="510" height="10" as="geometry"/></mxCell><mxCell id="51" value="<span style="letter-spacing: 0px">(e.g. bloc00, bloc 01, bloc 02)</span>" style="shape=mxgraph.flowchart.multi-document;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=#000000;strokeWidth=2;rounded=1;shadow=1;comic=0;" parent="1" vertex="1"><mxGeometry x="265" y="310" width="245" height="60" as="geometry"/></mxCell><mxCell id="53" value="<span>Outputs a&nbsp;</span><u>segmented</u><span>&nbsp;panda dataframe&nbsp; - Store in meta-deta folder</span>" style="text;html=1;resizable=0;points=[];autosize=1;align=left;verticalAlign=top;spacingTop=-4;" parent="1" vertex="1"><mxGeometry x="312" y="281" width="370" height="10" as="geometry"/></mxCell><mxCell id="55" value="" style="endArrow=classic;html=1;exitX=0;exitY=0.5;exitPerimeter=0;" parent="1" source="48" edge="1"><mxGeometry width="50" height="50" relative="1" as="geometry"><mxPoint x="141" y="675" as="sourcePoint"/><mxPoint x="110" y="600" as="targetPoint"/><Array as="points"><mxPoint x="200" y="700"/><mxPoint x="130" y="680"/><mxPoint x="110" y="640"/></Array></mxGeometry></mxCell><mxCell id="57" value="<span>&lt;Raw-signals-exp&gt;.acq</span>" style="shape=note;whiteSpace=wrap;html=1;rounded=1;shadow=1;comic=0;strokeWidth=2;gradientColor=#ffffff;" parent="1" vertex="1"><mxGeometry x="10" y="85" width="180" height="100" as="geometry"/></mxCell><mxCell id="60" value="<div><b>sklearn fn</b></div><b>QUALITY-MODEL</b>" style="ellipse;whiteSpace=wrap;html=1;rounded=1;shadow=1;comic=0;strokeWidth=2;gradientColor=#ffffff;" parent="1" vertex="1"><mxGeometry x="885" y="60" width="120" height="80" as="geometry"/></mxCell><mxCell id="62" value="" style="endArrow=none;html=1;" parent="1" edge="1"><mxGeometry width="50" height="50" relative="1" as="geometry"><mxPoint x="30" y="600" as="sourcePoint"/><mxPoint x="200" y="600" as="targetPoint"/></mxGeometry></mxCell><mxCell id="63" value="" style="endArrow=none;html=1;" parent="1" edge="1"><mxGeometry width="50" height="50" relative="1" as="geometry"><mxPoint x="30" y="520" as="sourcePoint"/><mxPoint x="200" y="520" as="targetPoint"/></mxGeometry></mxCell><mxCell id="64" value="<b><font style="font-size: 15px">Candidate R-Peaks</font></b>" style="text;html=1;resizable=0;points=[];autosize=1;align=left;verticalAlign=top;spacingTop=-4;" parent="1" vertex="1"><mxGeometry x="30" y="550" width="150" height="20" as="geometry"/></mxCell><mxCell id="66" value="" style="endArrow=classic;startArrow=classic;html=1;" parent="1" edge="1"><mxGeometry width="50" height="50" relative="1" as="geometry"><mxPoint x="190" y="560" as="sourcePoint"/><mxPoint x="170" y="460" as="targetPoint"/><Array as="points"><mxPoint x="270" y="550"/><mxPoint x="300" y="520"/><mxPoint x="290" y="480"/><mxPoint x="280" y="460"/></Array></mxGeometry></mxCell><mxCell id="69" value="<b>Correct R-Peaks function</b>" style="text;html=1;resizable=0;points=[];autosize=1;align=left;verticalAlign=top;spacingTop=-4;" parent="1" vertex="1"><mxGeometry x="327" y="515" width="160" height="10" as="geometry"/></mxCell><mxCell id="70" value="Quality model fit&nbsp;" style="ellipse;shape=cloud;whiteSpace=wrap;html=1;rounded=1;shadow=1;comic=0;strokeWidth=2;gradientColor=#ffffff;" parent="1" vertex="1"><mxGeometry x="10" y="370" width="160" height="150" as="geometry"/></mxCell><mxCell id="71" value="" style="shape=flexArrow;endArrow=classic;html=1;fillColor=#ffffff;exitX=0.458;exitY=0.084;exitPerimeter=0;" parent="1" source="70" edge="1"><mxGeometry width="50" height="50" relative="1" as="geometry"><mxPoint x="50" y="380" as="sourcePoint"/><mxPoint x="84" y="310" as="targetPoint"/></mxGeometry></mxCell><mxCell id="73" value="<b>GRAPHICAL OUTPUT:&nbsp;</b><div>Plot template of cardiac-cycles, superimposed on quality model + Tachogram</div><div><b>Save Dataframe with features</b></div>" style="shape=card;whiteSpace=wrap;html=1;rounded=1;shadow=1;comic=0;strokeWidth=2;gradientColor=#ffffff;" parent="1" vertex="1"><mxGeometry x="20" y="210" width="170" height="100" as="geometry"/></mxCell></root></mxGraphModel>