Skip to main content

Intracranial EEG Reveals the Hidden Neural Architecture of Human Empathy: A New Perspective on Brain Network Dynamics

  Research Paper: Intracranial EEG Signals Disentangle Multi-Areal Neural Dynamics of Vicarious Pain Perception Authors: Huixin Tan, Xiaoyu Zeng, Jun Ni, Kun Liang, and colleagues Published: 2024 Journal: Nature Communications, Volume 15, Article 5203 DOI: https://doi.org/10.1038/s41467-024-49541-1 Introduction: How Does the Brain Experience Someone Else's Pain? Have you ever wondered why watching another person experience pain can generate an emotional response within your own brain? Why do we sometimes feel discomfort, sadness, or even pain when witnessing someone else's suffering? This phenomenon is known as empathy for pain , or vicarious pain perception. Empathy is one of the most sophisticated functions of the human nervous system. It involves the integration of sensory information, emotional processing, cognitive interpretation, and motivational responses. Although previous neuroimaging studies identified several brain regions associated with empathy, unders...

Classification and Logistic Regression

1. Classification Problem

  • Definition: Classification is a supervised learning task where the output variable y is discrete-valued rather than continuous.
  • In particular, consider binary classification where y∈ {0,1} (e.g., spam detection: spam =1, not spam =0).
  • Each training example is a pair (x(i), y(i)), where x(i)∈Rd is a feature vector, and y(i) is the label.

2. Why Not Use Linear Regression for Classification?

  • Linear regression tries to predict continuous values, which is problematic for classification as the prediction can be outside [0,1].
  • For example, predicting y≈1.5 or −0.2 is meaningless when y is binary.
  • Instead, we want the output hθ​(x) to be interpreted as the probability that y=1 given x.

3. Logistic Regression Model

Hypothesis:

hθ​(x)=g(θTx)=1+e−θTx1​,

where:

  • g(z)=1+e−z1​ is the sigmoid function, which maps any real value to the interval (0, 1).
  • θ∈Rd+1 are parameters (including intercept term).
  • hθ​(x) can be interpreted as the estimated probability P(y=1∣x;θ).

Decision Boundary:

  • Predict y=1 if hθ​(x)≥0.5; otherwise, predict y=0.
  • The decision boundary corresponds to θTx=0, which is a linear boundary in input space.

4. Loss Function and Cost Function

Probability Model:

  • Logistic regression models conditional probability directly:

P(y=1∣x;θ)=hθ​(x),P(y=0∣x;θ)=1−hθ​(x).

  • Equivalently, likelihood for data point (x(i),y(i)):

p(y(i)∣x(i);θ)=(hθ​(x(i)))y(i)(1−hθ​(x(i)))1−y(i).

Cost (Loss) Function:

  • Use negative log-likelihood (cross-entropy loss) as cost per example:

J(i)(θ)=−[y(i)loghθ​(x(i))+(1−y(i))log(1−hθ​(x(i)))].

  • Overall cost function (average over n examples):

J(θ)=n1​∑i=1n​J(i)(θ).

  • This loss is convex in θ, enabling efficient optimization.

5. Training Logistic Regression

·         Use methods such as gradient descent or more advanced optimization (Newton's method, quasi-Newton) to minimize cost J(θ).

·         The gradient of the cost function is:

∇θ​J(θ)=n1​∑i=1n​(hθ​(x(i))−y(i))x(i).

  • Update rule in gradient descent:

θ:=θ−α∇θ​J(θ),

where α is the learning rate.


6. Multi-class Classification

·         When y∈{1,2,...,k} for k>2, logistic regression generalizes to multinomial logistic regression or Softmax regression.

·         Model outputs hˉθ​(x)∈Rk called logits.

·         The Softmax function converts logits into probabilities:

P(y=j∣x;θ)=∑s=1k​exp(hˉθ​(x)s​)exp(hˉθ​(x)j​)​.

  • Loss for example (x(i),y(i)) is the negative log-likelihood:

J(i)(θ)=−logP(y(i)∣x(i);θ).


7. Discriminative vs. Generative Classification Algorithms

  • Discriminative algorithms (like logistic regression) model p(y∣x) directly or learn a direct mapping from x to y.
  • Generative algorithms model the joint distribution p(x,y)=p(x∣y)p(y).
  • Example: Gaussian Discriminant Analysis (GDA).
  • Logistic regression is an example of a discriminative approach focusing purely on p(y∣x).

8. Linear Hypothesis Class and Decision Boundaries

  • Logistic regression hypothesis class:

H={hθ​:hθ​(x)=1{θTx≥0}​},

which are classifiers with linear decision boundaries.

  • More generally, hypothesis classes can be extended to neural networks or other complex architectures.

9. Perceptron Learning as Contrast to Logistic Regression

·         Perceptron also uses a linear classifier but with a different loss and update rule.

·         Logistic regression provides probabilistic outputs and optimizes a convex cost function, generally yielding better statistical properties.


10. Practical Considerations

  • Feature scaling often improves numerical stability.
  • Regularization (e.g., L2) is frequently added to cost to prevent overfitting.
  • Logistic regression handles input features linearly; non-linear boundaries require feature engineering or kernel methods.

Summary:

Logistic regression is a fundamental classification algorithm that models the conditional probability of the positive class using a sigmoid of a linear function of input features. It is trained via maximizing likelihood (or minimizing cross-entropy loss) and extends naturally to multi-class problems via Softmax. It is a discriminative model focusing directly on p(y∣x) and yields linear decision boundaries. It contrasts with generative models by its direct approach to classification.

 

Comments

Popular posts from this blog

Intracranial EEG Reveals the Hidden Neural Architecture of Human Empathy: A New Perspective on Brain Network Dynamics

  Research Paper: Intracranial EEG Signals Disentangle Multi-Areal Neural Dynamics of Vicarious Pain Perception Authors: Huixin Tan, Xiaoyu Zeng, Jun Ni, Kun Liang, and colleagues Published: 2024 Journal: Nature Communications, Volume 15, Article 5203 DOI: https://doi.org/10.1038/s41467-024-49541-1 Introduction: How Does the Brain Experience Someone Else's Pain? Have you ever wondered why watching another person experience pain can generate an emotional response within your own brain? Why do we sometimes feel discomfort, sadness, or even pain when witnessing someone else's suffering? This phenomenon is known as empathy for pain , or vicarious pain perception. Empathy is one of the most sophisticated functions of the human nervous system. It involves the integration of sensory information, emotional processing, cognitive interpretation, and motivational responses. Although previous neuroimaging studies identified several brain regions associated with empathy, unders...

Microscopic Structure of Bone

The microscopic structure of bone tissue reveals a hierarchical organization that contributes to its strength, flexibility, and functionality. The key components of the microscopic structure of bone include: 1.     Osteon (Haversian System) : o     The basic structural unit of compact bone tissue. o     Consists of concentric lamellae (layers) of bone matrix surrounding a central Haversian canal. o     The Haversian canal contains blood vessels, nerves, and lymphatics that supply nutrients and remove waste products from bone cells. o     Osteocytes are housed in lacunae within the lamellae and communicate with each other and with blood vessels through canaliculi (tiny channels). 2.     Lamellae : o     Layers of bone matrix that make up the concentric rings within an osteon. o     Collagen fibers in the lamellae provide tensile strength and flexibility to bone tissue. ...

Classification and Regression

  Classification Definition: Classification is the supervised learning task of predicting a categorical class label from input data. Each example in the dataset belongs to one of a predefined set of classes. Characteristics: Outputs are discrete. The goal is to assign each input to a single class. Classes can be binary (two classes) or multiclass (more than two classes). Examples: Classifying emails as spam or not spam (binary classification). Classifying iris flowers into one of three species (multiclass classification). Types of Classification: Binary Classification: Distinguishing between exactly two classes. Multiclass Classification: Distinguishing among more than two classes. Multilabel Classification: Assigning multiple class labels to each instance. Key Concepts: The class labels are discrete and come from a finite set . Often expressed as a yes/no question in binary classification (e.g., “Is ...

Cone Waves in Different Neurological Conditions

Cone waves are primarily considered a normal variant in EEG recordings, typically observed in infants through mid-childhood during non-rapid eye movement (NREM) sleep. While cone waves themselves do not indicate specific neurological conditions, they can be seen in various clinical contexts. Here are some examples of neurological conditions where cone waves may be observed: 1.      Developmental Disorders : o   Cone waves may be present in children with developmental disorders or delays, as they are more commonly seen in younger individuals. o Observing cone waves in the EEG of children with developmental conditions should be interpreted in conjunction with other clinical findings and assessments. 2.    Sleep Disorders : o   Cone waves are typically seen during NREM sleep, and alterations in sleep architecture or disruptions in sleep patterns may influence their appearance. o   In individuals with sleep disorders or disturbances, such as inso...

Elements Selection Techniques

Element selection techniques play a crucial role in determining how individual elements or units are chosen from the population to form a sample. Here are some common element selection techniques used in sampling: 1.     Unrestricted Sampling : §   In unrestricted sampling, each element in the population has an equal chance of being selected for the sample. This approach is commonly used in simple random sampling, where every element is selected independently of other elements. 2.     Restricted Sampling : §   Restricted sampling involves imposing certain restrictions or conditions on the selection of sample elements. This can include stratification, clustering, or other criteria that guide the selection process. Restricted sampling techniques include: §   Stratified Sampling: The population is divided into homogeneous subgroups (strata), and samples are selected from each stratum to ensure representation of different characteristics. § ...