{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"markdown","source":"Published on March 09, 2023 by Marília Prata, mpwolke","metadata":{"_kg_hide-input":false}},{"cell_type":"code","source":"# This Python 3 environment comes with many helpful analytics libraries installed\n# It is defined by the kaggle/python Docker image: https://github.com/kaggle/docker-python\n# For example, here's several helpful packages to load\n\nimport numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\nimport seaborn as sns\nimport matplotlib.pyplot as plt\nimport plotly.express as px\nimport plotly.graph_objs as go\n\nimport dask.dataframe as dd\nimport dask.array as da\nfrom dask.diagnostics import ProgressBar\n\nimport matplotlib.pyplot as plt\nimport seaborn as sns\n\nimport plotly\n#plotly.offline.init_notebook_mode(connected=True)\nimport plotly.offline as pyo\npyo.init_notebook_mode()\n\nimport warnings\nwarnings.simplefilter(action='ignore', category=Warning)\n\n# Input data files are available in the read-only \"../input/\" directory\n# For example, running this (by clicking run or pressing Shift+Enter) will list all files under the input directory\n\nimport os\nfor dirname, _, filenames in os.walk('/kaggle/input'):\n    for filename in filenames:\n        print(os.path.join(dirname, filename))\n\n# You can write up to 20GB to the current directory (/kaggle/working/) that gets preserved as output when you create a version using \"Save & Run All\" \n# You can also write temporary files to /kaggle/temp/, but they won't be saved outside of the current session","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","_kg_hide-input":true,"_kg_hide-output":true,"execution":{"iopub.status.busy":"2023-03-09T22:03:59.842236Z","iopub.execute_input":"2023-03-09T22:03:59.842613Z","iopub.status.idle":"2023-03-09T22:04:00.042032Z","shell.execute_reply.started":"2023-03-09T22:03:59.842581Z","shell.execute_reply":"2023-03-09T22:04:00.040999Z"},"collapsed":true,"jupyter":{"outputs_hidden":true},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Competition Citation\n\n@misc{tlvmc-parkinsons-freezing-gait-prediction,\n    author = {Addison Howard, amit salomon, eran gazit, HCL-Jevster, Jeff Hausdorff, Leslie Kirsch, Maggie, Pieter Ginis, Ryan Holbrook, Yasir F Karim},\n    title = {Parkinson's Freezing of Gait Prediction},\n    publisher = {Kaggle},\n    year = {2023},\n    url = {https://kaggle.com/competitions/tlvmc-parkinsons-freezing-gait-prediction}\n}","metadata":{}},{"cell_type":"markdown","source":"![](https://yt3.googleusercontent.com/ytc/AL5GRJXRm6oz7WBvMb882i0ZbG0ufXwRYgSryUd4a9O2JA=s900-c-k-c0x00ffffff-no-rj)https://www.youtube.com/channel/UCEwLnD6-KxGvKqnohdQ8lCw","metadata":{}},{"cell_type":"markdown","source":"#Freezing of Gait (FoG)\n\n\"Freezing of gait is an abnormal gait pattern that can accompany Parkinson’s disease (PD) as well as other parkinsonian disorders in which there are sudden, short and temporary episodes of an inability to move the feet forward despite the intention to walk.\"\n\n\"In a sense, you’re stuck. This results in the characteristic appearance of the feet making quick stepping movements in place. However, while the feet remain in place, the torso still has forward momentum which makes falls unfortunately common in the context of freezing of gait.  For some, these episodes can simply be frustrating, annoying and perhaps embarrassing; for others freezing of gait can become incredibly disabling and lead to injury.\"\n\n\"Freezing of gait episodes tend to occur least often when walking on an unobstructed, straight path. Any deviation from that can induce freezing – for example, when you first try to start walking, when you go to make a turn, or try to navigate around obstacles or through narrow spaces – any of these can cause you to get “stuck.”\n\nhttps://www.apdaparkinson.org/article/freezing-gait-and-parkinsons-disease/","metadata":{}},{"cell_type":"markdown","source":"#The Dataset is huge. Start by one bite at a time.","metadata":{}},{"cell_type":"markdown","source":"#Defog Metadata","metadata":{}},{"cell_type":"code","source":"defog = pd.read_csv(\"/kaggle/input/tlvmc-parkinsons-freezing-gait-prediction/defog_metadata.csv\")\npd.set_option('display.max_columns', None)\ndefog.head()","metadata":{"execution":{"iopub.status.busy":"2023-03-09T21:49:38.115744Z","iopub.execute_input":"2023-03-09T21:49:38.116073Z","iopub.status.idle":"2023-03-09T21:49:38.147926Z","shell.execute_reply.started":"2023-03-09T21:49:38.116046Z","shell.execute_reply":"2023-03-09T21:49:38.146982Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Daily metadata","metadata":{}},{"cell_type":"code","source":"day = pd.read_csv(\"/kaggle/input/tlvmc-parkinsons-freezing-gait-prediction/daily_metadata.csv\")\npd.set_option('display.max_columns', None)\nday.head()","metadata":{"execution":{"iopub.status.busy":"2023-03-09T21:51:02.184385Z","iopub.execute_input":"2023-03-09T21:51:02.185717Z","iopub.status.idle":"2023-03-09T21:51:02.203475Z","shell.execute_reply.started":"2023-03-09T21:51:02.185657Z","shell.execute_reply":"2023-03-09T21:51:02.202414Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Tasks csv","metadata":{}},{"cell_type":"code","source":"tas = pd.read_csv(\"/kaggle/input/tlvmc-parkinsons-freezing-gait-prediction/tasks.csv\")\npd.set_option('display.max_columns', None)\ntas.head()","metadata":{"execution":{"iopub.status.busy":"2023-03-09T21:52:22.221964Z","iopub.execute_input":"2023-03-09T21:52:22.222322Z","iopub.status.idle":"2023-03-09T21:52:22.241093Z","shell.execute_reply.started":"2023-03-09T21:52:22.222291Z","shell.execute_reply":"2023-03-09T21:52:22.240141Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Subjects","metadata":{}},{"cell_type":"code","source":"subj = pd.read_csv(\"/kaggle/input/tlvmc-parkinsons-freezing-gait-prediction/subjects.csv\")\npd.set_option('display.max_columns', None)\nsubj.head()","metadata":{"execution":{"iopub.status.busy":"2023-03-09T21:53:50.853094Z","iopub.execute_input":"2023-03-09T21:53:50.853426Z","iopub.status.idle":"2023-03-09T21:53:50.874838Z","shell.execute_reply.started":"2023-03-09T21:53:50.853398Z","shell.execute_reply":"2023-03-09T21:53:50.873752Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Those distplots are easier even to non-coders to get \n\nMost part, between 60-80 Parkinson Disease manifests.","metadata":{}},{"cell_type":"code","source":"#Code by Puru Behl https://www.kaggle.com/accountstatus/mt-cars-data-analysis\n\nsns.distplot(subj['Age'])\nplt.axvline(subj['Age'].values.mean(), color='red', linestyle='dashed', linewidth=1)\nplt.title('Age Distribution');","metadata":{"execution":{"iopub.status.busy":"2023-03-09T22:56:44.505366Z","iopub.execute_input":"2023-03-09T22:56:44.506246Z","iopub.status.idle":"2023-03-09T22:56:44.715875Z","shell.execute_reply.started":"2023-03-09T22:56:44.506183Z","shell.execute_reply":"2023-03-09T22:56:44.714942Z"},"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#UPDRSIIIOn/UPDRSIIIOff \n\nUnified Parkinson's Disease Rating Scale score during on/off medication respectively.","metadata":{}},{"cell_type":"code","source":"#Code by Puru Behl https://www.kaggle.com/accountstatus/mt-cars-data-analysis\n\nsns.distplot(subj['UPDRSIII_On'], color = 'g')\nplt.axvline(subj['UPDRSIII_On'].values.mean(), color='red', linestyle='dashed', linewidth=1)\nplt.title('Unified Parkinson s Disease Rating Scale score ON');","metadata":{"_kg_hide-input":true,"execution":{"iopub.status.busy":"2023-03-09T23:04:44.172559Z","iopub.execute_input":"2023-03-09T23:04:44.172961Z","iopub.status.idle":"2023-03-09T23:04:44.390440Z","shell.execute_reply.started":"2023-03-09T23:04:44.172927Z","shell.execute_reply":"2023-03-09T23:04:44.389758Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#Code by Firat Gonen https://www.kaggle.com/frtgnn/elo-eda-lgbm/notebook \n\nplt.figure(figsize=(10, 6))\nplt.title('Unified Parkinson s Disease Rating Scale score OFF')\nsns.despine()\nsns.set_context(\"notebook\", font_scale=1.5, rc={\"lines.linewidth\": 2.5})\n\nsns.distplot(subj['UPDRSIII_Off'], hist=True, rug=False,norm_hist=True, color='yellow');","metadata":{"execution":{"iopub.status.busy":"2023-03-09T23:04:24.680856Z","iopub.execute_input":"2023-03-09T23:04:24.681226Z","iopub.status.idle":"2023-03-09T23:04:24.921657Z","shell.execute_reply.started":"2023-03-09T23:04:24.681195Z","shell.execute_reply":"2023-03-09T23:04:24.920404Z"},"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip install pywaffle","metadata":{"execution":{"iopub.status.busy":"2023-03-09T22:50:07.528947Z","iopub.execute_input":"2023-03-09T22:50:07.529615Z","iopub.status.idle":"2023-03-09T22:50:21.207860Z","shell.execute_reply.started":"2023-03-09T22:50:07.529569Z","shell.execute_reply":"2023-03-09T22:50:21.206559Z"},"_kg_hide-output":true,"collapsed":true,"jupyter":{"outputs_hidden":true},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"from pywaffle import Waffle\nimport random","metadata":{"execution":{"iopub.status.busy":"2023-03-09T22:52:06.760629Z","iopub.execute_input":"2023-03-09T22:52:06.761026Z","iopub.status.idle":"2023-03-09T22:52:06.777366Z","shell.execute_reply.started":"2023-03-09T22:52:06.760992Z","shell.execute_reply":"2023-03-09T22:52:06.776382Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"gender = subj[\"Sex\"].value_counts()","metadata":{"execution":{"iopub.status.busy":"2023-03-09T22:53:43.206737Z","iopub.execute_input":"2023-03-09T22:53:43.207145Z","iopub.status.idle":"2023-03-09T22:53:43.213814Z","shell.execute_reply.started":"2023-03-09T22:53:43.207111Z","shell.execute_reply":"2023-03-09T22:53:43.212516Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#It seems that the majority affected is male.","metadata":{}},{"cell_type":"code","source":"plt.figure(\n    FigureClass=Waffle,\n    rows=5,\n    columns=10,\n    values=gender,\n    title={'label': 'Gender Distribution', 'loc': 'left'},\n    labels=[\"{}({})\".format(a, b) for a, b in zip(gender.index, gender) ],\n    # Set the position of the legend\n    legend={'loc': 'upper left', 'bbox_to_anchor': (1, 1)},\n    dpi=100\n)\nplt.show()","metadata":{"execution":{"iopub.status.busy":"2023-03-09T22:54:17.085583Z","iopub.execute_input":"2023-03-09T22:54:17.085921Z","iopub.status.idle":"2023-03-09T22:54:17.223029Z","shell.execute_reply.started":"2023-03-09T22:54:17.085895Z","shell.execute_reply":"2023-03-09T22:54:17.221942Z"},"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Events","metadata":{}},{"cell_type":"code","source":"eve = pd.read_csv(\"/kaggle/input/tlvmc-parkinsons-freezing-gait-prediction/events.csv\")\npd.set_option('display.max_columns', None)\neve.head()","metadata":{"execution":{"iopub.status.busy":"2023-03-09T21:55:12.731967Z","iopub.execute_input":"2023-03-09T21:55:12.732330Z","iopub.status.idle":"2023-03-09T21:55:12.754545Z","shell.execute_reply.started":"2023-03-09T21:55:12.732300Z","shell.execute_reply":"2023-03-09T21:55:12.753393Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Transcranial Direct Current Stimulation for Freezing of Gait (TDCS-FOG)","metadata":{}},{"cell_type":"code","source":"tdc = pd.read_csv(\"/kaggle/input/tlvmc-parkinsons-freezing-gait-prediction/tdcsfog_metadata.csv\")\npd.set_option('display.max_columns', None)\ntdc.head()","metadata":{"execution":{"iopub.status.busy":"2023-03-09T21:56:35.813621Z","iopub.execute_input":"2023-03-09T21:56:35.814009Z","iopub.status.idle":"2023-03-09T21:56:35.831959Z","shell.execute_reply.started":"2023-03-09T21:56:35.813968Z","shell.execute_reply":"2023-03-09T21:56:35.831263Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#One single csv from the huge train collection","metadata":{}},{"cell_type":"code","source":"train = pd.read_csv(\"/kaggle/input/tlvmc-parkinsons-freezing-gait-prediction/train/defog/68e7e02a47.csv\")\npd.set_option('display.max_columns', None)\ntrain.head()","metadata":{"execution":{"iopub.status.busy":"2023-03-09T22:00:32.665905Z","iopub.execute_input":"2023-03-09T22:00:32.666262Z","iopub.status.idle":"2023-03-09T22:00:32.932987Z","shell.execute_reply.started":"2023-03-09T22:00:32.666232Z","shell.execute_reply":"2023-03-09T22:00:32.931992Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Freezing of gait (FOG) is characterized by Start and Turn hesitation\n\n\"Freezing of gait (FOG) is characterized by start and turn hesitation and is a common clinical feature in Parkinson's disease (PD). The sudden appearance of FOG can increase the risk of falls and reduce the quality of life.\"\n\nhttps://www.ncbi.nlm.nih.gov/pmc/articles/PMC3995388/#:~:text=Freezing%20of%20gait%20(FOG)%20is%20characterized%20by%20start%20and%20turn,reduce%20the%20quality%20of%20life.","metadata":{}},{"cell_type":"code","source":"#Code by Puru Behl https://www.kaggle.com/accountstatus/mt-cars-data-analysis\n\nsns.distplot(train['StartHesitation'])\nplt.axvline(train['StartHesitation'].values.mean(), color='red', linestyle='dashed', linewidth=1)\nplt.title('Start Hesitation Distribution');","metadata":{"execution":{"iopub.status.busy":"2023-03-09T22:46:59.857985Z","iopub.execute_input":"2023-03-09T22:46:59.858331Z","iopub.status.idle":"2023-03-09T22:47:00.829173Z","shell.execute_reply.started":"2023-03-09T22:46:59.858303Z","shell.execute_reply":"2023-03-09T22:47:00.828461Z"},"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#Code by Firat Gonen https://www.kaggle.com/frtgnn/elo-eda-lgbm/notebook \n\nplt.figure(figsize=(10, 6))\nplt.title('Walking Distribution')\nsns.despine()\nsns.set_context(\"notebook\", font_scale=1.5, rc={\"lines.linewidth\": 2.5})\n\nsns.distplot(train['Walking'], hist=True, rug=False,norm_hist=True, color='brown');","metadata":{"execution":{"iopub.status.busy":"2023-03-09T22:47:54.388775Z","iopub.execute_input":"2023-03-09T22:47:54.389141Z","iopub.status.idle":"2023-03-09T22:47:55.255912Z","shell.execute_reply.started":"2023-03-09T22:47:54.389108Z","shell.execute_reply":"2023-03-09T22:47:55.254970Z"},"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#Code by Firat Gonen https://www.kaggle.com/frtgnn/elo-eda-lgbm/notebook \n\nplt.figure(figsize=(10, 6))\nplt.title('Turn Distribution')\nsns.despine()\nsns.set_context(\"notebook\", font_scale=1.5, rc={\"lines.linewidth\": 2.5})\n\nsns.distplot(train['Turn'], hist=True, rug=False,norm_hist=True, color='orange');","metadata":{"execution":{"iopub.status.busy":"2023-03-09T22:48:52.825142Z","iopub.execute_input":"2023-03-09T22:48:52.825544Z","iopub.status.idle":"2023-03-09T22:48:53.506397Z","shell.execute_reply.started":"2023-03-09T22:48:52.825507Z","shell.execute_reply":"2023-03-09T22:48:53.505484Z"},"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#Code by Anmorgul https://www.kaggle.com/anmorgul/strange-pattern-cottonwood-willow\n#https://www.kaggle.com/code/mpwolke/roosevelt-forest-of-northern-colorado-charts\n\nfor i in range(4,5):\n    fig = px.scatter_3d(train, x='AccV', y='AccML', z='AccAP',\n                  color='Time', size_max=8, width=1000, height=800, opacity=0.9, template=\"plotly_dark\", title='Acceleration in units of g, from a lower-back sensor on three axes')\n    fig.update_layout(\n        font_size=8,\n        legend_font_size=16,)\n    \n    fig.show()     ","metadata":{"_kg_hide-input":true,"execution":{"iopub.status.busy":"2023-03-09T23:22:53.770326Z","iopub.execute_input":"2023-03-09T23:22:53.770770Z","iopub.status.idle":"2023-03-09T23:22:54.326974Z","shell.execute_reply.started":"2023-03-09T23:22:53.770733Z","shell.execute_reply":"2023-03-09T23:22:54.318756Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Read one singe Parquet file","metadata":{}},{"cell_type":"code","source":"ddf = dd.read_parquet(\"/kaggle/input/tlvmc-parkinsons-freezing-gait-prediction/unlabeled/48b636e0f5.parquet\")","metadata":{"execution":{"iopub.status.busy":"2023-03-09T22:04:19.682997Z","iopub.execute_input":"2023-03-09T22:04:19.684012Z","iopub.status.idle":"2023-03-09T22:04:19.786800Z","shell.execute_reply.started":"2023-03-09T22:04:19.683976Z","shell.execute_reply":"2023-03-09T22:04:19.785805Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"%%time\nlen(ddf)","metadata":{"execution":{"iopub.status.busy":"2023-03-09T22:05:05.425503Z","iopub.execute_input":"2023-03-09T22:05:05.425862Z","iopub.status.idle":"2023-03-09T22:05:07.804521Z","shell.execute_reply.started":"2023-03-09T22:05:05.425832Z","shell.execute_reply":"2023-03-09T22:05:07.803703Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#AccV, AccML, and AccAP\n\nAcceleration in units of g, from a lower-back sensor on three axes: V - vertical, ML - mediolateral, AP - anteroposterior.\n\nhttps://www.kaggle.com/competitions/tlvmc-parkinsons-freezing-gait-prediction/data","metadata":{}},{"cell_type":"code","source":"ddf.head()","metadata":{"execution":{"iopub.status.busy":"2023-03-09T22:05:25.535740Z","iopub.execute_input":"2023-03-09T22:05:25.536124Z","iopub.status.idle":"2023-03-09T22:05:43.275078Z","shell.execute_reply.started":"2023-03-09T22:05:25.536089Z","shell.execute_reply":"2023-03-09T22:05:43.273893Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"ddf.AccAP.describe().compute()","metadata":{"execution":{"iopub.status.busy":"2023-03-09T22:06:38.626717Z","iopub.execute_input":"2023-03-09T22:06:38.627161Z","iopub.status.idle":"2023-03-09T22:06:41.950547Z","shell.execute_reply.started":"2023-03-09T22:06:38.627129Z","shell.execute_reply":"2023-03-09T22:06:41.949357Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#https://www.kaggle.com/code/luxcem/dask-on-large-parquet-dataset/notebook\n\nddf.where(ddf.AccAP > 50).visualize()","metadata":{"execution":{"iopub.status.busy":"2023-03-09T22:08:01.787356Z","iopub.execute_input":"2023-03-09T22:08:01.788343Z","iopub.status.idle":"2023-03-09T22:08:01.982141Z","shell.execute_reply.started":"2023-03-09T22:08:01.788309Z","shell.execute_reply":"2023-03-09T22:08:01.980872Z"},"_kg_hide-output":true,"collapsed":true,"jupyter":{"outputs_hidden":true},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Time","metadata":{}},{"cell_type":"code","source":"#https://www.kaggle.com/code/luxcem/dask-on-large-parquet-dataset/notebook\n\nh, bins = da.histogram(ddf[[\"Time\"]].to_dask_array(), bins=(0, 1, 2, 5, 10, 20, 50, 100, 1000))","metadata":{"execution":{"iopub.status.busy":"2023-03-09T22:17:48.851175Z","iopub.execute_input":"2023-03-09T22:17:48.851561Z","iopub.status.idle":"2023-03-09T22:17:48.862458Z","shell.execute_reply.started":"2023-03-09T22:17:48.851530Z","shell.execute_reply":"2023-03-09T22:17:48.861507Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"with ProgressBar():\n    hd = h.compute()\n    bins = bins.compute()","metadata":{"execution":{"iopub.status.busy":"2023-03-09T22:17:53.415403Z","iopub.execute_input":"2023-03-09T22:17:53.415791Z","iopub.status.idle":"2023-03-09T22:18:01.937676Z","shell.execute_reply.started":"2023-03-09T22:17:53.415760Z","shell.execute_reply":"2023-03-09T22:18:01.937086Z"},"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"#https://www.kaggle.com/code/luxcem/dask-on-large-parquet-dataset/notebook\n\nplt.style.use('fivethirtyeight')\n\nsns.barplot(x=bins[1:], y=hd);","metadata":{"execution":{"iopub.status.busy":"2023-03-09T22:18:44.920887Z","iopub.execute_input":"2023-03-09T22:18:44.921268Z","iopub.status.idle":"2023-03-09T22:18:45.089378Z","shell.execute_reply.started":"2023-03-09T22:18:44.921233Z","shell.execute_reply":"2023-03-09T22:18:45.088619Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Acceleration in units of g, from a lower-back sensor on three axes: AP - anteroposterior","metadata":{}},{"cell_type":"code","source":"#https://www.kaggle.com/code/luxcem/dask-on-large-parquet-dataset/notebook\n\nwith ProgressBar():\n    sns.scatterplot(data=ddf, x=\"Time\", y=\"AccAP\")\n    plt.ylim(0, 50)","metadata":{"execution":{"iopub.status.busy":"2023-03-09T22:13:22.297443Z","iopub.execute_input":"2023-03-09T22:13:22.297869Z","iopub.status.idle":"2023-03-09T22:15:49.208210Z","shell.execute_reply.started":"2023-03-09T22:13:22.297836Z","shell.execute_reply":"2023-03-09T22:15:49.206969Z"},"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Acceleration in units of g, from a lower-back sensor on three axes: V - vertical","metadata":{}},{"cell_type":"code","source":"#https://www.kaggle.com/code/luxcem/dask-on-large-parquet-dataset/notebook\n\nwith ProgressBar():\n    sns.scatterplot(data=ddf, x=\"Time\", y=\"AccV\")\n    plt.ylim(0, 50)","metadata":{"execution":{"iopub.status.busy":"2023-03-09T22:19:49.210817Z","iopub.execute_input":"2023-03-09T22:19:49.211189Z","iopub.status.idle":"2023-03-09T22:22:44.280166Z","shell.execute_reply.started":"2023-03-09T22:19:49.211160Z","shell.execute_reply":"2023-03-09T22:22:44.279044Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Acceleration in units of g, from a lower-back sensor on three axes: ML - mediolateral,","metadata":{}},{"cell_type":"code","source":"#https://www.kaggle.com/code/luxcem/dask-on-large-parquet-dataset/notebook\n\nwith ProgressBar():\n    sns.scatterplot(data=ddf, x=\"Time\", y=\"AccML\")\n    plt.ylim(0, 50)","metadata":{"execution":{"iopub.status.busy":"2023-03-09T22:22:54.173494Z","iopub.execute_input":"2023-03-09T22:22:54.174764Z","iopub.status.idle":"2023-03-09T22:25:35.936121Z","shell.execute_reply.started":"2023-03-09T22:22:54.174703Z","shell.execute_reply":"2023-03-09T22:25:35.934515Z"},"_kg_hide-input":true,"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":"#Walking or Gait Difficulties\n\n\"A common, early symptom of Parkinson's disease is a decrease in the natural swing of one or both arms when walking. Later, steps may become slow and small, and a shuffling gait (festination) may appear.\"\n\nInformation is helpful to manage Parkinson Disease.\n\nhttps://www.apdaparkinson.org/what-is-parkinsons/symptoms/#:~:text=Walking%20or%20Gait%20Difficulties&text=A%20common%2C%20early%20symptom%20of,gait%20(festination)%20may%20appear.","metadata":{}},{"cell_type":"markdown","source":"#Acknowledgements:\n\nhttps://www.kaggle.com/code/luxcem/dask-on-large-parquet-dataset/notebook\n\nAnmorgul https://www.kaggle.com/anmorgul/strange-pattern-cottonwood-willow","metadata":{"execution":{"iopub.status.busy":"2023-03-09T22:31:29.528054Z","iopub.execute_input":"2023-03-09T22:31:29.528380Z","iopub.status.idle":"2023-03-09T22:31:29.555379Z","shell.execute_reply.started":"2023-03-09T22:31:29.528352Z","shell.execute_reply":"2023-03-09T22:31:29.553958Z"}}}]}