Skip to content

Repository files navigation

Personality Spectrum DFT Analyzer

An interactive tool that applies a Discrete Fourier Transform (DFT) to a spectrum of personality orders indexed from −n to +n, and maps the result through the Hopf fibration η: S³ → S² for topological visualization.


Input Model

Each personality dimension is assigned a Likert score on a five-point scale:

Five-point Likert scale

Scores 1–5 are mapped to personality orders k ∈ {−n, …, 0, …, +n}, forming a discrete signal x[k].


Schizoaffective Symptom Dimensions (Hopf S³ Mode)

The Hopf S³ mode uses the following five schizoaffective symptom categories as named personality orders:

Schizoaffective disorder symptom types

Order k Dimension Color
−3 Negative Symptoms #ce93d8
−2 Hallucinations #4dd0e1
−1 Delusions #009688
0 Disorganized Thinking #ffb300
+1 Depressive Episodes #90a4ae
+2 Manic Episodes #ab47bc
+3 Cognitive Impairment #4fc3f7

Mathematical Pipeline

Step 1 — DFT of the Personality Spectrum

X[m] = Σ_{k=0}^{N-1} x[k] · e^{−i 2π mk / N}

Each coefficient X[m] captures the strength and phase of the m-th oscillation pattern across the personality spectrum.

Step 2 — Mapping to S³ via Hopf Fibration

Each personality order score x[k] maps to a unit complex number on S¹:

z_k = e^{i · 2π(x[k]−1)/4} ∈ S¹ ⊂ ℂ

Adjacent pairs (z_k, z_{k+1}) are normalized to a point on S³ ⊂ ℂ²:

q_k = (z_k, z_{k+1}) / ‖(z_k, z_{k+1})‖ ∈ S³

The Hopf map η projects each S³ point to S²:

η(q_k) = (2Re(z̄_k z_{k+1}), 2Im(z̄_k z_{k+1}), |z_k|² − |z_{k+1}|²) ∈ S²

Step 3 — Wedge Sum Topology

Each personality order defines a circle S¹_k. The wedge sum ⋁_k S¹_k identifies all base points at the neutral score:

Wedge sum topology — four-petal bouquet

X ∨ Y = (X ⊔ Y) / ∼     (x₀ ∼ y₀)
H₁(⋁_k S¹_k) ≅ ℤᴺ

Step 4 — Homotopy Lifting on S²

The S² base space is computed via the homotopy lifting property:

Homotopy lifting commutative diagram

H(z_k, t) = e^{i·t·α_k}    t ∈ [0, 1]

Path γ_k(t) = η(H(z_k, t), H(z_{k+1}, t)) on S²

At t=0 all base points are at the south pole. At t=1 they reach their final positions determined by the personality scores.


Visualization Panels

Panel What it shows
Hopf Fiber Torus Villarceau circles on the torus — each fiber is a great circle on S³ stereographically projected to ℝ³. Drag to rotate.
S² Base Space Homotopy lifting paths γ_k(t) on S². Use the t-scrubber to animate.
Wedge Sum Bouquet Petal radius = raw x[k] score. Animated breathing pulse.
Symptom Radar Raw x[k] scores (solid) vs. DFT magnitude

Visual Target

The Hopf fiber torus canvas is modelled after this rainbow spiral torus, where each hue band corresponds to a personality dimension:

Rainbow Hopf torus reference


Modes

Mode Input type
Discrete Integer Likert sliders (1–5) per order, with scale-type selector
Continuous Drawable waveform canvas per order over 64 time samples with calendar date range
Survey JSON questionnaire loader with preset OCEAN / Dark Triad / MBTI questionnaires
Real ℝ Continuous real-valued slider per order (configurable range ±1 to ±100)
Hopf S³ Schizoaffective symptom dimensions mapped to Hopf fibration geometry

Tech Stack

React 19 · TypeScript · Tailwind CSS 4 · Recharts · Framer Motion · Canvas 2D API

About

An interactive tool that applies Discrete Fourier Transform to a personality spectrum defined by symmetric Likert-scale orders from -n to +n, visualizing both the input personality spectrum and the DFT frequency output. · Built with Manus

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages