{
  "id": 10815,
  "title": "Understanding the data",
  "url": "/competitions/seizure-prediction/discussion/10815",
  "author_name": "",
  "post_date": "2014-11-01T12:21:08.530Z",
  "votes": null,
  "comment_count": 9,
  "views": 2058,
  "content": "<p>It's not clear to me what the values for the electrodes represent. This is what Kaggle says about the data: &quot;Intracranial EEG was recorded from dogs with naturally occurring epilepsy using an ambulatory monitoring system. <em><strong>EEG was sampled from 16 electrodes at 400 Hz, and recorded voltages were referenced to the group average.</strong></em>&quot;&nbsp;</p>\n<p>After some research, I think I understand what sampled at 400 Hz means, but I am still unclear about the recorded voltages referenced to the group averages.</p>\n<p>I would like to know what is meant by a value of -26 for eletrode NVC1202_32_002_Ecog_c002 for Dog_1?<br><br></p>\n<p>Any guidance or references to resources would be greatly appreciated.</p>\n<p>Thanks. </p>",
  "messages": [
    {
      "id": "57161",
      "postDate": "11/01/2014 12:21:08",
      "content": "<p>It's not clear to me what the values for the electrodes represent. This is what Kaggle says about the data: &quot;Intracranial EEG was recorded from dogs with naturally occurring epilepsy using an ambulatory monitoring system. <em><strong>EEG was sampled from 16 electrodes at 400 Hz, and recorded voltages were referenced to the group average.</strong></em>&quot;&nbsp;</p>\n<p>After some research, I think I understand what sampled at 400 Hz means, but I am still unclear about the recorded voltages referenced to the group averages.</p>\n<p>I would like to know what is meant by a value of -26 for eletrode NVC1202_32_002_Ecog_c002 for Dog_1?<br><br></p>\n<p>Any guidance or references to resources would be greatly appreciated.</p>\n<p>Thanks. </p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "57166",
      "postDate": "11/01/2014 17:03:15",
      "content": "<p>Hi,</p>\n<p>When we record the EEG there should be reference. Typically the referential voltage will be the EAR electrode for&nbsp;human scalp and depth EEG. Sometimes for artifact correction we average the EEG data across all the channels and subtracts the averaged data from individual data.</p>\n<p>For example if X1, X2, X3 are the original data recorded. Then with group averaged reference the new voltage will be</p>\n<p>Xn1 = (X1 - (X1+X2+X3)/3)</p>\n<p>Xn2 = &nbsp;(X2&nbsp;- (X1+X2+X3)/3) etc</p>\n\n<p>I am not sure about what you meant by -26. Hope I am clear</p>\n\n\n\n<p>Ho</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "57172",
      "postDate": "11/01/2014 18:50:05",
      "content": "<p>Hi Balu,</p>\n<p>Thanks for your reply.</p>\n<p>The -26 that I was referring to is the first value for the column NVC1202_32_002_Ecog_c002 (it's a column for me because I transposed it).</p>\n<p>Is that -26 value the (voltage - the average(voltage) for NVC1202_32_002_Ecog_c002)?</p>\n<p>thanks,</p>\n<p>C</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "57177",
      "postDate": "11/02/2014 05:17:30",
      "content": "<p>[quote=Balu Krishnan;57166]</p>\n<p>Hi,</p>\n<p>When we record the EEG there should be reference. Typically the referential voltage will be the EAR electrode for&nbsp;human scalp and depth EEG. Sometimes for artifact correction we average the EEG data across all the channels and subtracts the averaged data from individual data.</p>\n<p>For example if X1, X2, X3 are the original data recorded. Then with group averaged reference the new voltage will be</p>\n<p>Xn1 = (X1 - (X1+X2+X3)/3)</p>\n<p>Xn2 = &nbsp;(X2&nbsp;- (X1+X2+X3)/3) etc</p>\n<p>I am not sure about what you meant by -26. Hope I am clear</p>\n<p>Ho</p>\n<p>[/quote]</p>\n\n<p>Is the mean on each file or mean on all types of files of one subject?</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "57197",
      "postDate": "11/02/2014 16:44:48",
      "content": "<p>It is the mean on each file (i.e. every 10 minutes of data segment).. Just to make sure I explain it clearly</p>\n<p>Suppose there are only 4 channels in Dog_1 and the time series for channel is given as</p>\n<p>X1: X1(1), X2(2)..............X1(N)</p>\n<p>X2: X2(1), X2(2) .............X2(N) &nbsp;and so forth</p>\n<p>then the average reference will be</p>\n<p>XAVG : (X1(1)+X2(1)..X4(1))/4 , &nbsp; &nbsp;(X1(2)+X2(2)...X4(2))/4 ....... and so forth.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "57203",
      "postDate": "11/02/2014 18:10:03",
      "content": "<p>[quote=Balu Krishnan;57197]</p>\n<p>It is the mean on each file (i.e. every 10 minutes of data segment).. Just to make sure I explain it clearly</p>\n<p>Suppose there are only 4 channels in Dog_1 and the time series for channel is given as</p>\n<p>X1: X1(1), X2(2)..............X1(N)</p>\n<p>X2: X2(1), X2(2) .............X2(N) &nbsp;and so forth</p>\n<p>then the average reference will be</p>\n<p>XAVG : (X1(1)+X2(1)..X4(1))/4 , &nbsp; &nbsp;(X1(2)+X2(2)...X4(2))/4 ....... and so forth.</p>\n<p>[/quote]</p>\n<p>From&nbsp;your example,&nbsp;if original data is</p>\n<p>X1:60, 60, 60, 60</p>\n<p>X2:20, 20, 20, 20</p>\n<p>X3:0, &nbsp; 0, &nbsp; &nbsp;0, &nbsp; &nbsp;0</p>\n<p>X4:0, &nbsp;40, &nbsp;0, &nbsp;40</p>\n<p>will become:</p>\n<p>X1:40, &nbsp;30, &nbsp; 40, 30 &nbsp;</p>\n<p>X2:0, &nbsp;-10, &nbsp; &nbsp;0, &nbsp; -10</p>\n<p>X3:-20, -30, -20 ,-30</p>\n<p>X4:-20, 10, &nbsp;-20 &nbsp;,10</p>\n\n<p>Is it correct?</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "57204",
      "postDate": "11/02/2014 18:12:49",
      "content": "<p>Yes. You are correct</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "57206",
      "postDate": "11/02/2014 18:39:00",
      "content": "<p>[quote=Balu Krishnan;57204]</p>\n<p>Yes. You are correct</p>\n<p>[/quote]</p>\n\n<p>Seems after averaging, my DC channel got distorted.</p>\n<p>&nbsp;60,60,60,60 become 40,30,40,30</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "57209",
      "postDate": "11/02/2014 19:05:01",
      "content": "<p>Hi Balu, Steven:</p>\n<p>The explanations and examples from both of you have helped me greatly. Just want to be sure I understand. </p>\n<p>A sample of the the channels for Dog_1 are below. And what would be considered a record, in database parlance, is taking the first time interval for each channel such that:</p>\n<p>NVC1202_32_002_Ecog_c001 = [60, 60, 60, 60]</p>\n<p>NVC1202_32_002_Ecog_c002 = [20, 20, 20, 20]</p>\n<p>NVC1202_32_002_Ecog_c003 = [0, 0, 0, 0]</p>\n<p>NVC1202_32_002_Ecog_c004 = [0, 40, 0, 40]</p>\n<p>The average cut across channels:</p>\n<p>( NVC1202_32_002_Ecog_c001[0] + NVC1202_32_002_Ecog_c002[0] + NVC1202_32_002_Ecog_c003[0] + NVC1202_32_002_Ecog_c004[0] ) / 4 = 20</p>\n<p>so they become:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Time Interval 0</p>\n<p>NVC1202_32_002_Ecog_c001[0]&nbsp; =&nbsp;&nbsp; [40]</p>\n<p>NVC1202_32_002_Ecog_c002[0]&nbsp; = &nbsp;&nbsp; [0]</p>\n<p>NVC1202_32_002_Ecog_c003[0]&nbsp; = &nbsp; [-20]</p>\n<p>NVC1202_32_002_Ecog_c004[0]&nbsp; =&nbsp;&nbsp; [-20]</p>\n\n<p>Is that right?</p>\n<p>Thanks,</p>\n<p>C</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "57572",
      "postDate": "11/10/2014 02:31:26",
      "content": "<p>1) I cannot reconcile the proposed normalization with data: If a mean is subtracted from entries, then the sum of mean-adjusted numbers should be zero. I have tried different summations (across rows, columns, whole matrix) and none of them is zero!</p>\n<p>&nbsp;2) Any reason all data are integers? I do not have MATLAB and I am just wondering if I have made an error while importing data into python ...</p>",
      "rawMarkdown": "",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 57166,
      "author_name": "balukrishnan",
      "author_url": "",
      "post_date": "11/01/2014 17:03:15",
      "content": "<p>Hi,</p>\n<p>When we record the EEG there should be reference. Typically the referential voltage will be the EAR electrode for&nbsp;human scalp and depth EEG. Sometimes for artifact correction we average the EEG data across all the channels and subtracts the averaged data from individual data.</p>\n<p>For example if X1, X2, X3 are the original data recorded. Then with group averaged reference the new voltage will be</p>\n<p>Xn1 = (X1 - (X1+X2+X3)/3)</p>\n<p>Xn2 = &nbsp;(X2&nbsp;- (X1+X2+X3)/3) etc</p>\n\n<p>I am not sure about what you meant by -26. Hope I am clear</p>\n\n\n\n<p>Ho</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 57172,
      "author_name": "chuzzelwit",
      "author_url": "",
      "post_date": "11/01/2014 18:50:05",
      "content": "<p>Hi Balu,</p>\n<p>Thanks for your reply.</p>\n<p>The -26 that I was referring to is the first value for the column NVC1202_32_002_Ecog_c002 (it's a column for me because I transposed it).</p>\n<p>Is that -26 value the (voltage - the average(voltage) for NVC1202_32_002_Ecog_c002)?</p>\n<p>thanks,</p>\n<p>C</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 57177,
      "author_name": "stevendu",
      "author_url": "",
      "post_date": "11/02/2014 05:17:30",
      "content": "<p>[quote=Balu Krishnan;57166]</p>\n<p>Hi,</p>\n<p>When we record the EEG there should be reference. Typically the referential voltage will be the EAR electrode for&nbsp;human scalp and depth EEG. Sometimes for artifact correction we average the EEG data across all the channels and subtracts the averaged data from individual data.</p>\n<p>For example if X1, X2, X3 are the original data recorded. Then with group averaged reference the new voltage will be</p>\n<p>Xn1 = (X1 - (X1+X2+X3)/3)</p>\n<p>Xn2 = &nbsp;(X2&nbsp;- (X1+X2+X3)/3) etc</p>\n<p>I am not sure about what you meant by -26. Hope I am clear</p>\n<p>Ho</p>\n<p>[/quote]</p>\n\n<p>Is the mean on each file or mean on all types of files of one subject?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 57197,
      "author_name": "balukrishnan",
      "author_url": "",
      "post_date": "11/02/2014 16:44:48",
      "content": "<p>It is the mean on each file (i.e. every 10 minutes of data segment).. Just to make sure I explain it clearly</p>\n<p>Suppose there are only 4 channels in Dog_1 and the time series for channel is given as</p>\n<p>X1: X1(1), X2(2)..............X1(N)</p>\n<p>X2: X2(1), X2(2) .............X2(N) &nbsp;and so forth</p>\n<p>then the average reference will be</p>\n<p>XAVG : (X1(1)+X2(1)..X4(1))/4 , &nbsp; &nbsp;(X1(2)+X2(2)...X4(2))/4 ....... and so forth.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 57203,
      "author_name": "stevendu",
      "author_url": "",
      "post_date": "11/02/2014 18:10:03",
      "content": "<p>[quote=Balu Krishnan;57197]</p>\n<p>It is the mean on each file (i.e. every 10 minutes of data segment).. Just to make sure I explain it clearly</p>\n<p>Suppose there are only 4 channels in Dog_1 and the time series for channel is given as</p>\n<p>X1: X1(1), X2(2)..............X1(N)</p>\n<p>X2: X2(1), X2(2) .............X2(N) &nbsp;and so forth</p>\n<p>then the average reference will be</p>\n<p>XAVG : (X1(1)+X2(1)..X4(1))/4 , &nbsp; &nbsp;(X1(2)+X2(2)...X4(2))/4 ....... and so forth.</p>\n<p>[/quote]</p>\n<p>From&nbsp;your example,&nbsp;if original data is</p>\n<p>X1:60, 60, 60, 60</p>\n<p>X2:20, 20, 20, 20</p>\n<p>X3:0, &nbsp; 0, &nbsp; &nbsp;0, &nbsp; &nbsp;0</p>\n<p>X4:0, &nbsp;40, &nbsp;0, &nbsp;40</p>\n<p>will become:</p>\n<p>X1:40, &nbsp;30, &nbsp; 40, 30 &nbsp;</p>\n<p>X2:0, &nbsp;-10, &nbsp; &nbsp;0, &nbsp; -10</p>\n<p>X3:-20, -30, -20 ,-30</p>\n<p>X4:-20, 10, &nbsp;-20 &nbsp;,10</p>\n\n<p>Is it correct?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 57204,
      "author_name": "balukrishnan",
      "author_url": "",
      "post_date": "11/02/2014 18:12:49",
      "content": "<p>Yes. You are correct</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 57206,
      "author_name": "stevendu",
      "author_url": "",
      "post_date": "11/02/2014 18:39:00",
      "content": "<p>[quote=Balu Krishnan;57204]</p>\n<p>Yes. You are correct</p>\n<p>[/quote]</p>\n\n<p>Seems after averaging, my DC channel got distorted.</p>\n<p>&nbsp;60,60,60,60 become 40,30,40,30</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 57209,
      "author_name": "chuzzelwit",
      "author_url": "",
      "post_date": "11/02/2014 19:05:01",
      "content": "<p>Hi Balu, Steven:</p>\n<p>The explanations and examples from both of you have helped me greatly. Just want to be sure I understand. </p>\n<p>A sample of the the channels for Dog_1 are below. And what would be considered a record, in database parlance, is taking the first time interval for each channel such that:</p>\n<p>NVC1202_32_002_Ecog_c001 = [60, 60, 60, 60]</p>\n<p>NVC1202_32_002_Ecog_c002 = [20, 20, 20, 20]</p>\n<p>NVC1202_32_002_Ecog_c003 = [0, 0, 0, 0]</p>\n<p>NVC1202_32_002_Ecog_c004 = [0, 40, 0, 40]</p>\n<p>The average cut across channels:</p>\n<p>( NVC1202_32_002_Ecog_c001[0] + NVC1202_32_002_Ecog_c002[0] + NVC1202_32_002_Ecog_c003[0] + NVC1202_32_002_Ecog_c004[0] ) / 4 = 20</p>\n<p>so they become:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Time Interval 0</p>\n<p>NVC1202_32_002_Ecog_c001[0]&nbsp; =&nbsp;&nbsp; [40]</p>\n<p>NVC1202_32_002_Ecog_c002[0]&nbsp; = &nbsp;&nbsp; [0]</p>\n<p>NVC1202_32_002_Ecog_c003[0]&nbsp; = &nbsp; [-20]</p>\n<p>NVC1202_32_002_Ecog_c004[0]&nbsp; =&nbsp;&nbsp; [-20]</p>\n\n<p>Is that right?</p>\n<p>Thanks,</p>\n<p>C</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 57572,
      "author_name": "rezamahani",
      "author_url": "",
      "post_date": "11/10/2014 02:31:26",
      "content": "<p>1) I cannot reconcile the proposed normalization with data: If a mean is subtracted from entries, then the sum of mean-adjusted numbers should be zero. I have tried different summations (across rows, columns, whole matrix) and none of them is zero!</p>\n<p>&nbsp;2) Any reason all data are integers? I do not have MATLAB and I am just wondering if I have made an error while importing data into python ...</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "57161": "",
    "57166": "",
    "57172": "",
    "57177": "",
    "57197": "",
    "57203": "",
    "57204": "",
    "57206": "",
    "57209": "",
    "57572": ""
  },
  "source": "meta"
}