📊 Chapter 3: Digital Biomarkers and Monitoring

WIA-MENTAL-003 | 弘익人間

Understanding Digital Biomarkers

Digital biomarkers represent a paradigm shift in mental health monitoring. Unlike traditional biomarkers requiring laboratory tests or clinical visits, digital biomarkers are objective, quantifiable behavioral and physiological data collected passively through smartphones, wearables, and other connected devices. They enable continuous, real-world monitoring of mental health status, providing insights impossible to capture through periodic clinical assessments.

The FDA defines digital health technologies (DHTs) including digital biomarkers as "objective, quantifiable physiological and behavioral data that are collected and measured by means of digital devices." For depression detection, these biomarkers capture the behavioral and physiological manifestations of depressive states in everyday life.

Biomarker Type Data Sources Key Indicators Correlation with Depression Collection Method
Activity Patterns Accelerometer, GPS, screen time Step count, movement intensity, sedentary time r = -0.42 to -0.58 Passive smartphone/wearable sensing
Sleep Architecture Wearables, sleep apps, screen activity Duration, fragmentation, timing, REM cycles r = -0.35 to -0.52 Passive wearable monitoring
Social Interaction Call logs, text messages, social media Communication frequency, duration, reciprocity r = -0.38 to -0.47 Passive communication metadata
Linguistic Patterns Text messages, social media, voice Emotion words, pronouns, absolutist language r = 0.45 to 0.62 NLP analysis of digital communications
Voice Acoustics Phone calls, voice assistants Pitch, speed, pause duration, volume r = -0.41 to -0.55 Audio analysis algorithms
Screen Usage Smartphone usage logs Usage duration, app types, timing patterns r = 0.28 to 0.39 Passive usage tracking
Heart Rate Variability Wearable sensors HRV metrics, circadian patterns r = -0.25 to -0.38 Continuous PPG sensor monitoring
Location Entropy GPS, WiFi, cell tower data Location diversity, routine disruption r = -0.32 to -0.44 Passive location tracking

Passive vs. Active Digital Biomarkers

Digital biomarkers fall into two categories based on collection methodology:

Passive Biomarkers

Collected automatically without user action, passive biomarkers provide continuous, objective data representing natural behavior. Examples include:

Advantages: No burden on users, captures natural behavior, continuous data, high compliance, minimal recall bias

Challenges: Privacy concerns, requires device integration, battery consumption, data interpretation complexity

Active Biomarkers

Require user engagement such as completing assessments or tasks. Examples include:

Advantages: Direct symptom assessment, standardized clinical measures, user awareness and engagement

Challenges: Compliance burden, survey fatigue, response biases, not truly continuous

Smartphone-Based Behavioral Monitoring

Smartphones have become ubiquitous personal sensing platforms, with over 6.8 billion smartphone users globally. Their rich sensor arrays—accelerometers, GPS, microphones, cameras, and usage logs—enable comprehensive behavioral phenotyping for depression detection.

Activity and Movement Patterns

Physical inactivity is both a symptom and risk factor for depression. Smartphone accelerometers provide continuous activity monitoring, capturing:


class ActivityBiomarkerExtractor:
    """Extract depression-relevant features from accelerometer data"""
    
    def __init__(self, sampling_rate=50):
        self.sampling_rate = sampling_rate
        
    def calculate_daily_features(self, accel_data, timestamps):
        """
        Calculate daily activity features from raw accelerometer data
        
        Parameters:
        - accel_data: numpy array of shape (n_samples, 3) for x, y, z axes
        - timestamps: datetime array aligned with accel_data
        
        Returns:
        - Dictionary of activity features
        """
        import numpy as np
        from scipy import signal
        
        # Calculate movement magnitude
        magnitude = np.sqrt(np.sum(accel_data**2, axis=1))
        
        # Step detection using peak finding
        steps = self._detect_steps(magnitude)
        
        # Activity intensity levels
        sedentary_threshold = 0.2  # g-force threshold
        light_threshold = 0.5
        moderate_threshold = 1.0
        
        sedentary_time = np.sum(magnitude < sedentary_threshold) / self.sampling_rate / 60  # minutes
        light_activity = np.sum((magnitude >= sedentary_threshold) & (magnitude < light_threshold))
        moderate_activity = np.sum((magnitude >= light_threshold) & (magnitude < moderate_threshold))
        vigorous_activity = np.sum(magnitude >= moderate_threshold)
        
        # Circadian activity pattern
        hourly_activity = self._calculate_hourly_activity(magnitude, timestamps)
        peak_activity_hour = np.argmax(hourly_activity)
        
        return {
            'total_steps': len(steps),
            'sedentary_minutes': sedentary_time,
            'light_activity_minutes': light_activity / self.sampling_rate / 60,
            'moderate_activity_minutes': moderate_activity / self.sampling_rate / 60,
            'vigorous_activity_minutes': vigorous_activity / self.sampling_rate / 60,
            'peak_activity_hour': peak_activity_hour,
            'activity_entropy': self._calculate_entropy(hourly_activity),
            'movement_variability': np.std(magnitude)
        }
    
    def _detect_steps(self, magnitude):
        """Detect steps using peak detection algorithm"""
        from scipy.signal import find_peaks
        
        # Filter signal for step detection
        filtered = self._bandpass_filter(magnitude, 0.5, 3.0)
        
        # Find peaks with minimum prominence and distance
        peaks, _ = find_peaks(
            filtered,
            prominence=0.1,
            distance=int(0.3 * self.sampling_rate)  # Minimum 0.3s between steps
        )
        
        return peaks
    
    def calculate_weekly_patterns(self, daily_features):
        """
        Calculate weekly-level features indicating depression risk
        """
        steps_per_day = [day['total_steps'] for day in daily_features]
        
        return {
            'mean_daily_steps': np.mean(steps_per_day),
            'step_variability': np.std(steps_per_day),
            'low_activity_days': sum(1 for s in steps_per_day if s < 2000),
            'activity_trend': self._calculate_trend(steps_per_day),  # Declining = negative
            'mean_sedentary_hours': np.mean([day['sedentary_minutes']/60 for day in daily_features])
        }
        

Sleep Monitoring

Sleep disturbances affect 80-90% of individuals with depression. Smartphone-based sleep monitoring uses movement sensors and screen activity to estimate:

Sleep Metric Measurement Method Depression Association Clinical Significance
Sleep Duration Screen off + accelerometer stillness U-shaped: both <6h and >9h associated with depression Duration outside 6.5-8.5h range flags risk
Sleep Onset Time First sustained period of stillness Later onset (>midnight) correlates r=0.31 with depression Delayed sleep phase common in depression
Sleep Fragmentation Number of movement episodes during sleep >15 wake episodes per night indicates insomnia Fragmentation predicts next-day mood (r=-0.42)
Sleep Regularity Standard deviation of sleep/wake times Irregular schedules (SD>2h) increase risk 2.1x Circadian disruption mechanism
Wake After Sleep Onset Total movement time during sleep period >60 minutes WASO indicates sleep maintenance insomnia Early morning awakening common in depression

Wearable Device Integration

Wearable devices like smartwatches and fitness trackers provide physiological monitoring capabilities beyond smartphone sensors. Modern wearables track heart rate, heart rate variability, blood oxygen, skin temperature, and detailed sleep architecture.

Heart Rate Variability (HRV)

HRV measures variation in time intervals between heartbeats, reflecting autonomic nervous system function. Depression is associated with reduced HRV, indicating decreased parasympathetic (rest-and-digest) activity and increased sympathetic (fight-or-flight) activity.

HRV as Depression Biomarker

Meta-analysis of 18 studies (n=1,820 participants) found:

Advanced Sleep Monitoring

Wearable devices with optical heart rate sensors can estimate sleep stages (light, deep, REM) using heart rate and movement patterns. Depression shows characteristic sleep architecture changes:

Social Interaction Digital Phenotyping

Social withdrawal is a core feature of depression. Smartphone communication metadata (not content, preserving privacy) reveals social interaction patterns:

弘益人間 (Hongik Ingan)

"Benefit All Humanity"

Digital biomarkers democratize mental health monitoring by transforming everyday devices into clinical-grade sensing platforms. This technology brings continuous, objective mental health assessment to billions of smartphone users worldwide, regardless of access to healthcare facilities or specialist providers. By detecting depression through passive, privacy-preserving behavioral monitoring, we can identify at-risk individuals before crises occur, extending the benefit of early intervention to all of humanity.

Location and Mobility Patterns

GPS and location data reveal mobility patterns that correlate with depression. While privacy-sensitive, when collected with informed consent, location entropy provides valuable insights:

Location Entropy and Diversity


class LocationBiomarkers:
    """Extract depression-relevant features from GPS location data"""
    
    def calculate_location_entropy(self, gps_points):
        """
        Calculate Shannon entropy of visited locations
        Lower entropy = less location diversity = potential depression indicator
        """
        import numpy as np
        from sklearn.cluster import DBSCAN
        
        # Cluster GPS points to identify distinct locations
        clustering = DBSCAN(eps=0.1, min_samples=5)  # ~100m radius clusters
        location_clusters = clustering.fit_predict(gps_points)
        
        # Calculate location visit frequency
        unique_locations, visit_counts = np.unique(location_clusters, return_counts=True)
        probabilities = visit_counts / np.sum(visit_counts)
        
        # Shannon entropy
        entropy = -np.sum(probabilities * np.log2(probabilities + 1e-10))
        
        return {
            'location_entropy': entropy,
            'unique_locations': len(unique_locations),
            'primary_location_percentage': np.max(probabilities) * 100,
            'location_diversity_score': len(unique_locations) / len(gps_points)
        }
    
    def calculate_home_time(self, gps_points, timestamps):
        """Calculate percentage of time spent at home location"""
        # Identify home location (most frequent location during 10pm-6am)
        night_points = [p for p, t in zip(gps_points, timestamps) 
                       if 22 <= t.hour or t.hour <= 6]
        home_location = self._identify_cluster_center(night_points)
        
        # Calculate time at home
        at_home = [self._distance(p, home_location) < 0.1 for p in gps_points]  # 100m radius
        home_time_percentage = sum(at_home) / len(at_home) * 100
        
        return home_time_percentage
        

Research findings on location patterns and depression:

Multimodal Biomarker Integration

The most accurate depression detection systems integrate multiple biomarker types, leveraging their complementary strengths. Single biomarkers typically achieve AUC of 0.65-0.75, while multimodal approaches reach AUC >0.85-0.90.

Study Biomarkers Combined Sample Size Single Modality AUC Multimodal AUC Improvement
Saeb et al. (2015) GPS + Phone Usage n=40 0.72 0.86 +19%
Farhan et al. (2016) Activity + Social + Location n=48 0.68 0.82 +21%
Jacobson et al. (2020) Sleep + Activity + HRV n=265 0.71 0.88 +24%
Harrigian et al. (2020) Text + Metadata + Timing n=496 0.75 0.89 +19%
Xu et al. (2021) Voice + Text + Facial + Sensors n=189 0.79 0.93 +18%

Key Takeaways

  1. Digital Biomarkers Enable Continuous Monitoring: Unlike episodic clinical assessments, digital biomarkers provide continuous, real-world behavioral and physiological data from smartphones and wearables, capturing dynamic depression patterns.
  2. Multiple Validated Biomarker Categories Exist: Evidence-based biomarkers include activity patterns (r=-0.42 to -0.58), sleep architecture, social interaction frequency (r=-0.38 to -0.47), linguistic patterns (r=0.45 to 0.62), voice acoustics, and HRV.
  3. Passive Collection Reduces Burden: Passive biomarkers collected automatically from device sensors minimize user burden, increase compliance, and capture natural behavior without recall bias or survey fatigue.
  4. Activity and Sleep are Strong Indicators: Physical activity reduction (2,500-4,000 fewer steps/day) and sleep disturbances (duration, fragmentation, timing) show robust associations with depression and enable early detection.
  5. Multimodal Integration Improves Accuracy: Combining multiple biomarker types increases depression detection AUC from 0.65-0.75 (single modality) to 0.85-0.93 (multimodal), with improvements of 18-24%.
  6. HRV Reflects Autonomic Dysfunction: Heart rate variability measured by wearables shows reduced values in depression (d=-0.34), predicts onset (HR=1.32), and improves combined models when integrated with behavioral biomarkers.
  7. Privacy-Preserving Methods Enable Adoption: Effective biomarkers can be extracted from metadata and sensor data without accessing message content, call audio, or identifying location details, balancing utility with privacy protection.

Review Questions

  1. Define digital biomarkers and explain how they differ from traditional clinical biomarkers. What advantages do they offer for depression monitoring?
  2. Compare passive and active digital biomarkers. What are the tradeoffs between these approaches in terms of user burden, data quality, and compliance?
  3. Describe the relationship between physical activity patterns and depression. What specific activity metrics show the strongest correlations?
  4. Explain how smartphone accelerometers can be used to estimate sleep quality and identify sleep disturbances associated with depression.
  5. What is heart rate variability (HRV) and why is it a relevant biomarker for depression? What do the research findings show about HRV and depression?
  6. How can communication metadata (without accessing content) provide insights into social withdrawal in depression? What metrics are most informative?
  7. Explain the concept of location entropy. Why does location diversity decrease in depression, and what are the privacy considerations in using location data?
  8. Why does multimodal biomarker integration achieve higher accuracy than single biomarker approaches? Provide specific examples from research studies showing the magnitude of improvement.