Skip to content

Commit

Permalink
Merge pull request #4 from virtual-labs/testing
Browse files Browse the repository at this point in the history
Proceeding to main
  • Loading branch information
amritamindbrain authored Mar 3, 2021
2 parents d33617b + a6d2c40 commit bfbd8b7
Show file tree
Hide file tree
Showing 33 changed files with 350 additions and 49 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/deployment-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# The following job will pull phase3 lab management scipt and build the experiment
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '12'
check-latest: true
- run: |
git clone https://github.com/virtual-labs/ph3-lab-mgmt
cd ph3-lab-mgmt/ph3-beta-to-ui3.0-conv
make host-experiments
cd ../../
cd ph3-lab-mgmt
npm install
node exp.js
cd ../
git config --local user.email "admin@vlabs.ac.in"
git config --local user.name "vleadadmin"
git checkout --orphan gh-pages
Expand Down
6 changes: 5 additions & 1 deletion experiment/aim.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
### Aim of the experiment
• To understand and analyze the distribution of frequency in the EEG data at different time bins.

• To understand the signal processing algorithm-Fast Fourier Transform (FFT).

• To understand and analyze the average band power (alpha, beta, theta, gamma) of a given frequency band to the overall power of the signal.
2 changes: 1 addition & 1 deletion experiment/experiment-name.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
## Experiment name
## Power spectrum calculations using different windows
Binary file added experiment/images/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added experiment/images/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added experiment/images/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added experiment/images/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added experiment/images/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
91 changes: 78 additions & 13 deletions experiment/posttest.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,23 +88,88 @@
/////////////// Write the MCQ below in the exactly same described format ///////////////


const myQuestions = [{
question: "1.This is a sample question:", ///// Write the question inside double quotes
answers: {
a: "This is a sample answer A", ///// Write the option 1 inside double quotes
b: "This is a sample answer B", ///// Write the option 2 inside double quotes
const myQuestions = [



{
question: "1. Algorithm used for converting time series EEG data to power spectral density:", ///// Write the question inside double quotes

answers:
{
a: "ICA", ///// Write the option 1 inside double quotes
b: "Bandpass filter", ///// Write the option 2 inside double quotes
c: "IR filter", ///// Write the option 2 inside double quotes
d: "FFT", ///// Write the option 2 inside double quotes
},

correctAnswer: "d" ///// Write the correct option inside double quotes
},



{
question: "2. Power spectrum density indicates:", ///// Write the question inside double quotes

answers:
{
a: "Power distribution of EEG data series in time domain", ///// Write the option 1 inside double quotes
b: "Power distribution of EEG series in the frequency domain", ///// Write the option 2 inside double quotes
c: "Coherence of EEG series", ///// Write the option 2 inside double quotes
d: "None of the above", ///// Write the option 2 inside double quotes
},

correctAnswer: "b" ///// Write the correct option inside double quotes
},




{
question: "3. Unit for PSD measurement in EEG data:", ///// Write the question inside double quotes

answers:
{
a: "µVolts square per dB", ///// Write the option 1 inside double quotes
b: " µVolts sqaure per Hz", ///// Write the option 2 inside double quotes
c: "Volts sqaure per sec", ///// Write the option 2 inside double quotes
d: "µVolts", ///// Write the option 2 inside double quotes
},

correctAnswer: "b" ///// Write the correct option inside double quotes
},



{
question: "4. Which of the following is a real function of frequency ?", ///// Write the question inside double quotes

answers:
{
a: "PSD", ///// Write the option 1 inside double quotes
b: "FFT", ///// Write the option 2 inside double quotes
c: "PCA", ///// Write the option 2 inside double quotes
d: "None of the above", ///// Write the option 2 inside double quotes
},

correctAnswer: "a" ///// Write the correct option inside double quotes
},

{
question: "<img src='images/8.PNG'><br>Identify the location of Secondary electron detector", ///// Write the question inside double quotes
answers: {
a: "<img src='images/1b.png'>", ///// Write the option 1 inside double quotes
b: "<img src='images/1a.png'>", ///// Write the option 2 inside double quotes
c: "<img src='images/1c.PNG'>", },
correctAnswer: "c" ///// Write the correct option inside double quotes
},


{
question: "5. Power spectrum density method used for feature extraction of raw EEG signal", ///// Write the question inside double quotes

answers:
{
a: "Welch’s Method", ///// Write the option 1 inside double quotes
b: "K-nearest neighbors classifier", ///// Write the option 2 inside double quotes
c: "Bartlett method", ///// Write the option 2 inside double quotes
d: "None of the above", ///// Write the option 2 inside double quotes
},

correctAnswer: "a" ///// Write the correct option inside double quotes
},



Expand Down
51 changes: 51 additions & 0 deletions experiment/posttest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
**Post Test**
1. Algorithm used for converting time series EEG data to power spectral density

a) ICA

b) Bandpass filter

c) IR filter

**d) FFT**


2. Power spectrum density indicates

a) Power distribution of EEG data series in time domain

**b) Power distribution of EEG series in the frequency domain**

c) Coherence of EEG series

d) None of the above

3. Unit for PSD measurement in EEG data

a) µVolts square per dB

**b) µVolts sqaure per Hz**

c) Volts sqaure per sec

d) µVolts

4. Which of the following is a real function of frequency?

**a) PSD**

b) FFT

c) PCA

d) None of the above

5. Power spectrum density method used for feature extraction of raw EEG signal

**a) Welch’s Method**

b) K-nearest neighbors classifier

c) Bartlett method

d) None of the above
76 changes: 62 additions & 14 deletions experiment/pretest.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,23 +88,71 @@
/////////////// Write the MCQ below in the exactly same described format ///////////////


const myQuestions = [{
question: "1.This is a sample question:", ///// Write the question inside double quotes
answers: {
a: "This is a sample answer A", ///// Write the option 1 inside double quotes
b: "This is a sample answer B", ///// Write the option 2 inside double quotes
const myQuestions = [


{
question: "1. The brain electrical activity is represented as:", ///// Write the question inside double quotes

answers:
{
a: "ECG Signals", ///// Write the option 1 inside double quotes
b: "EMG Signals", ///// Write the option 2 inside double quotes
c: "EEG Signals", ///// Write the option 2 inside double quotes
d: "EOG Signals", ///// Write the option 2 inside double quotes
},
correctAnswer: "a" ///// Write the correct option inside double quotes

correctAnswer: "c" ///// Write the correct option inside double quotes
},

{
question: "<img src='images/8.PNG'><br>Identify the location of Secondary electron detector", ///// Write the question inside double quotes
answers: {
a: "<img src='images/1b.png'>", ///// Write the option 1 inside double quotes
b: "<img src='images/1a.png'>", ///// Write the option 2 inside double quotes
c: "<img src='images/1c.PNG'>", },
correctAnswer: "c" ///// Write the correct option inside double quotes
},


{
question: "2. The unwanted signals present in EEG signals is known as:", ///// Write the question inside double quotes

answers:
{
a: "Signals", ///// Write the option 1 inside double quotes
b: "Noise", ///// Write the option 2 inside double quotes
c: "PSD", ///// Write the option 2 inside double quotes
d: "None of the above", ///// Write the option 2 inside double quotes
},

correctAnswer: "b" ///// Write the correct option inside double quotes
},




{
question: "3. The EEG signal processing involves:", ///// Write the question inside double quotes

answers:
{
a: "Data Acquisition", ///// Write the option 1 inside double quotes
b: "Preprocessing", ///// Write the option 2 inside double quotes
c: "Feature extraction", ///// Write the option 2 inside double quotes
d: "All the above", ///// Write the option 2 inside double quotes
},

correctAnswer: "d" ///// Write the correct option inside double quotes
},



{
question: "4. EEG signals were measured in:", ///// Write the question inside double quotes

answers:
{
a: "Volts", ///// Write the option 1 inside double quotes
b: "Microvolts", ///// Write the option 2 inside double quotes
c: "Hertz", ///// Write the option 2 inside double quotes
d: "Millivolts", ///// Write the option 2 inside double quotes
},

correctAnswer: "b" ///// Write the correct option inside double quotes
},



Expand Down
39 changes: 39 additions & 0 deletions experiment/pretest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
1. The brain electrical activity is represented as:

a) ECG Signals

b) EMG Signals

**c) EEG Signals**

d) EOG Signals

2. The unwanted signals present in EEG signals is known as:

a) Signals

**b) Noise**

c) PSD

d) None of the above

3. The EEG signal processing involves:

a) Data Acquisition

b) Preprocessing

c) Feature extraction

**d) All the above**

4. EEG signals were measured in

a) Volts

**b) Microvolts**

c) Hertz

d) Millivolts
10 changes: 9 additions & 1 deletion experiment/procedure.md
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
### Procedure

• User can upload the raw EEG data in EDF format in the GUI platform.

• The platform allows the user to choose different time windows for power spectrum analysis.

• The user can visualize the spectral density data for the respective time windows.

• GUI allows to compute the average band power of a specific frequency.

10 changes: 9 additions & 1 deletion experiment/references.md
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
### Link your references in here
1. Al-Fahoum, A. S., & Al-Fraihat, A. A. (2014). Methods of EEG signal features extraction using linear analysis in frequency and time-frequency domains. International Scholarly Research Notices, 2014.

2. Ahirwal, M. K., & Londhe, N. (2012). Power spectrum analysis of EEG signals for estimating visual attention. International Journal of computer applications, 42(15), 22-25.

3. Sałabun, W. (2014). Processing and spectral analysis of the raw EEG signal from the MindWave. Przeglad Elektrotechniczny, 90(2), 169-174.

4. Ktonas, P. Y., & Gosalia, A. P. (1981). Spectral analysis vs. period-amplitude analysis of narrowband EEG activity: a comparison based on the sleep delta-frequency band. Sleep, 4(2), 193-206.

5. https://www.sciencedirect.com/topics/biochemistry-genetics-and-molecular-biology/power-spectrum
Binary file added experiment/simulation/Amritalogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 1 addition & 13 deletions experiment/simulation/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
<!DOCTYPE html>
<html>
<head>
<!-- Add CSS at the head of HTML file -->
<link rel="stylesheet" href="./css/main.css">
</head>
<body>
<!-- Your code goes here-->

<!-- Add JS at the bottom of HTML file -->
<script src="./js/main.js"></script>
</body>
</html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>React App</title><link href="./static/css/2.5adb35ca.chunk.css" rel="stylesheet"><link href="./static/css/main.7729c9fb.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,i,a=r[0],l=r[1],c=r[2],f=0,p=[];f<a.length;f++)i=a[f],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&p.push(o[i][0]),o[i]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(s&&s(r);p.length;)p.shift()();return u.push.apply(u,c||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var l=t[a];0!==o[l]&&(n=!1)}n&&(u.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},o={1:0},u=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/js/"+({}[e]||e)+"."+{3:"3ed54e96"}[e]+".chunk.js"}(e);var l=new Error;u=function(r){a.onerror=a.onload=null,clearTimeout(c);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;l.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",l.name="ChunkLoadError",l.type=n,l.request=u,t[1](l)}o[e]=void 0}};var c=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=this["webpackJsonpbiosignals-vlab"]=this["webpackJsonpbiosignals-vlab"]||[],l=a.push.bind(a);a.push=r,a=a.slice();for(var c=0;c<a.length;c++)r(a[c]);var s=l;t()}([])</script><script src="./static/js/2.da05054b.chunk.js"></script><script src="./static/js/main.78cc4262.chunk.js"></script></body></html>
4 changes: 4 additions & 0 deletions experiment/simulation/static/css/2.5adb35ca.chunk.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions experiment/simulation/static/css/main.7729c9fb.chunk.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions experiment/simulation/static/js/2.da05054b.chunk.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions experiment/simulation/static/js/3.3ed54e96.chunk.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bfbd8b7

Please sign in to comment.