Spaces:
Paused

rruiqii commited on
Commit
f6cfdc5
·
2 Parent(s): a15bb3e79f1c3e

Merge branch 'main' of https://github.com/YR-1/GNN-web into rq-branch4

Browse files
README.md CHANGED
@@ -10,7 +10,7 @@ pinned: false
10
 
11
  # Project README
12
 
13
- ## What This Project Does
14
 
15
  This project is a web app that lets users upload ROI time-series data (.txt) and view a correlation matrix with stats and history.
16
 
 
10
 
11
  # Project README
12
 
13
+ ## What This Project Doessss
14
 
15
  This project is a web app that lets users upload ROI time-series data (.txt) and view a correlation matrix with stats and history.
16
 
backend/app/api/analytics.py CHANGED
@@ -44,7 +44,7 @@ MODEL_PERFORMANCE_SEEDS = [
44
  ("listsort_ageadj", "ListSort (Age Adjusted)", 0.882, 0.00041, 3.28, 1.2),
45
  ("pmat", "PMAT (Fluid Intelligence)", 0.844, 0.00073, 3.71, 2.4),
46
  ("picseq", "PicSeq (Picture Sequence Memory)", 0.806, 0.00124, 4.09, 3.1),
47
- ("emotsupp_unadj", "Emotion Support", 0.769, 0.00215, 4.85, 5.4),
48
  ("psqi", "PSQI (Sleep Quality)", 0.747, 0.00301, 5.13, 6.2),
49
  ]
50
 
 
44
  ("listsort_ageadj", "ListSort (Age Adjusted)", 0.882, 0.00041, 3.28, 1.2),
45
  ("pmat", "PMAT (Fluid Intelligence)", 0.844, 0.00073, 3.71, 2.4),
46
  ("picseq", "PicSeq (Picture Sequence Memory)", 0.806, 0.00124, 4.09, 3.1),
47
+ ("emotsupp_unadj", "EmotSupp (Emotional Support)", 0.769, 0.00215, 4.85, 5.4),
48
  ("psqi", "PSQI (Sleep Quality)", 0.747, 0.00301, 5.13, 6.2),
49
  ]
50
 
backend/app/services/database.py CHANGED
@@ -194,7 +194,7 @@ class SupabaseDbService:
194
  "listsort_ageadj": "listsort_fbnetgen_importance_top100.json",
195
  "pmat": "pmat_braingnn_importance_top100.json",
196
  "picseq": "picseq_fbnetgen_importance_top100.json",
197
- "emotion_recognition": "emotsupp_reggnn_importance_top100.json",
198
  "emotsupp_unadj": "emotsupp_reggnn_importance_top100.json",
199
  "psqi": "psqi_reggnn_importance_top100.json",
200
  }
@@ -653,11 +653,11 @@ async def get_dashboard_stats(user_id: str) -> Dict[str, Any]:
653
  "range": [50.0, 150.0],
654
  "defaultInsight": "Picture-sequence memory patterns reflect distributed episodic-memory and associative network coordination.",
655
  },
656
- "emotion_recognition": {
657
- "label": "Emotion Recognition",
658
- "shortLabel": "Emotion",
659
  "range": [0.0, 100.0],
660
- "defaultInsight": "Emotion recognition is associated with temporal-limbic and orbitofrontal coordination.",
661
  },
662
  "psqi": {
663
  "label": "PSQI (Sleep Quality)",
@@ -668,7 +668,7 @@ async def get_dashboard_stats(user_id: str) -> Dict[str, Any]:
668
  }
669
  metric_aliases = {
670
  "sustained_attention": "picseq",
671
- "emotsupp_unadj": "emotion_recognition",
672
  }
673
 
674
  uploads_resp = (
 
194
  "listsort_ageadj": "listsort_fbnetgen_importance_top100.json",
195
  "pmat": "pmat_braingnn_importance_top100.json",
196
  "picseq": "picseq_fbnetgen_importance_top100.json",
197
+ "emotsupp_unadj": "emotsupp_reggnn_importance_top100.json",
198
  "emotsupp_unadj": "emotsupp_reggnn_importance_top100.json",
199
  "psqi": "psqi_reggnn_importance_top100.json",
200
  }
 
653
  "range": [50.0, 150.0],
654
  "defaultInsight": "Picture-sequence memory patterns reflect distributed episodic-memory and associative network coordination.",
655
  },
656
+ "emotsupp_unadj": {
657
+ "label": "EmotSupp (Emotional Support)",
658
+ "shortLabel": "EmotSupp",
659
  "range": [0.0, 100.0],
660
+ "defaultInsight": "Perceived emotional support reflects default-mode and limbic coordination.",
661
  },
662
  "psqi": {
663
  "label": "PSQI (Sleep Quality)",
 
668
  }
669
  metric_aliases = {
670
  "sustained_attention": "picseq",
671
+ "emotsupp_unadj": "emotsupp_unadj",
672
  }
673
 
674
  uploads_resp = (
backend/static/brain_plots/emotsupp_importance_3d.html CHANGED
The diff for this file is too large to render. See raw diff
 
backend/static/brain_plots/emotsupp_importance_4panel.png CHANGED

Git LFS Details

  • SHA256: 123195be840cba54cbe6070c409360dc179147e1001ac264082625eb706e571e
  • Pointer size: 131 Bytes
  • Size of remote file: 644 kB

Git LFS Details

  • SHA256: 7b5aca3c475648530c0e5ecbf9018e3b8dd9dd3a7f3428831c8b24f44571d2fa
  • Pointer size: 131 Bytes
  • Size of remote file: 648 kB
frontend/app/(dashboard)/dashboard/page.tsx CHANGED
@@ -116,19 +116,19 @@ const DASHBOARD_METRICS: DashboardMetric[] = [
116
  ],
117
  },
118
  {
119
- id: 'emotion_recognition',
120
- label: 'Emotion Recognition',
121
- shortLabel: 'Emotion',
122
  range: [0, 100],
123
  average: 77,
124
  trend: 4.2,
125
- accent: '#EF4444',
126
- accentSoft: '#FEE2E2',
127
  distribution: [29, 36, 42, 48, 54, 60, 66, 71, 77, 81, 84, 88, 91, 94, 97],
128
  cohortSplit: [72.8, 80.9],
129
  confidence: 0.88,
130
  reliability: 'Moderate-high confidence',
131
- insight: 'Emotion-recognition strength aligns with temporal-limbic and orbitofrontal coordination across participants.',
132
  topRegions: [
133
  { name: 'Amygdala', contribution: 91 },
134
  { name: 'Temporal Cortex', contribution: 84 },
@@ -165,7 +165,7 @@ const METRIC_VISUALS: Record<string, Pick<DashboardMetric, 'accent' | 'accentSof
165
  listsort_ageadj: { accent: '#3B82F6', accentSoft: '#DBEAFE' },
166
  pmat: { accent: '#8B5CF6', accentSoft: '#EDE9FE' },
167
  picseq: { accent: '#EC4899', accentSoft: '#FCE7F3' },
168
- emotion_recognition: { accent: '#EF4444', accentSoft: '#FEE2E2' },
169
  psqi: { accent: '#F97316', accentSoft: '#FFEDD5' },
170
  }
171
 
 
116
  ],
117
  },
118
  {
119
+ id: 'emotsupp_unadj',
120
+ label: 'EmotSupp (Emotional Support)',
121
+ shortLabel: 'EmotSupp',
122
  range: [0, 100],
123
  average: 77,
124
  trend: 4.2,
125
+ accent: '#ef4444',
126
+ accentSoft: '#fee2e2',
127
  distribution: [29, 36, 42, 48, 54, 60, 66, 71, 77, 81, 84, 88, 91, 94, 97],
128
  cohortSplit: [72.8, 80.9],
129
  confidence: 0.88,
130
  reliability: 'Moderate-high confidence',
131
+ insight: 'Perceived emotional support reflects default-mode and limbic-prefrontal coordination linked to social cognition.',
132
  topRegions: [
133
  { name: 'Amygdala', contribution: 91 },
134
  { name: 'Temporal Cortex', contribution: 84 },
 
165
  listsort_ageadj: { accent: '#3B82F6', accentSoft: '#DBEAFE' },
166
  pmat: { accent: '#8B5CF6', accentSoft: '#EDE9FE' },
167
  picseq: { accent: '#EC4899', accentSoft: '#FCE7F3' },
168
+ emotsupp_unadj: { accent: '#EF4444', accentSoft: '#FEE2E2' },
169
  psqi: { accent: '#F97316', accentSoft: '#FFEDD5' },
170
  }
171
 
frontend/app/(dashboard)/history/page.tsx CHANGED
@@ -4,7 +4,7 @@ import Link from 'next/link'
4
  import { useRouter } from 'next/navigation'
5
  import { useEffect, useMemo, useState } from 'react'
6
  import { createPortal } from 'react-dom'
7
- import { AlertTriangle, ArrowUpDown, Check, ChevronDown, Download, MoreVertical, Search, SlidersHorizontal, Trash2, X } from 'lucide-react'
8
  import { api } from '@/lib/api'
9
  import type { AnalysisResponse, HistoryItem } from '@/lib/types'
10
  import { useAnalysisStore } from '@/lib/store'
 
4
  import { useRouter } from 'next/navigation'
5
  import { useEffect, useMemo, useState } from 'react'
6
  import { createPortal } from 'react-dom'
7
+ import { AlertTriangle, ArrowUpDown, Check, ChevronDown, Download, MoreVertical, Search, Trash2, X } from 'lucide-react'
8
  import { api } from '@/lib/api'
9
  import type { AnalysisResponse, HistoryItem } from '@/lib/types'
10
  import { useAnalysisStore } from '@/lib/store'
frontend/lib/model-performance-data.ts CHANGED
@@ -53,7 +53,7 @@ export const modelPerformanceData: ModelPerformance[] = [
53
  },
54
  {
55
  id: 'emotsupp_unadj',
56
- behavioralScore: 'Emotion Support',
57
  correlation: 0.769,
58
  pValue: 0.00215,
59
  mse: 4.85,
 
53
  },
54
  {
55
  id: 'emotsupp_unadj',
56
+ behavioralScore: 'EmotSupp (Emotional Support)',
57
  correlation: 0.769,
58
  pValue: 0.00215,
59
  mse: 4.85,
frontend/lib/score-registry.ts CHANGED
@@ -83,7 +83,7 @@ export const SCORE_REGISTRY: ScoreDefinition[] = [
83
  },
84
  {
85
  id: 'emotsupp_unadj',
86
- name: 'Emotion Support',
87
  shortName: 'Emotion',
88
  category: 'emotion',
89
  description: 'Ability to receive emotional support from others.',
 
83
  },
84
  {
85
  id: 'emotsupp_unadj',
86
+ name: 'EmotSupp (Emotional Support)',
87
  shortName: 'Emotion',
88
  category: 'emotion',
89
  description: 'Ability to receive emotional support from others.',