<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.0 20040830//EN" "journalpublishing.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="2.0" xml:lang="en" article-type="research-article"><front><journal-meta><journal-id journal-id-type="nlm-ta">J Med Internet Res</journal-id><journal-id journal-id-type="publisher-id">jmir</journal-id><journal-id journal-id-type="index">1</journal-id><journal-title>Journal of Medical Internet Research</journal-title><abbrev-journal-title>J Med Internet Res</abbrev-journal-title><issn pub-type="epub">1438-8871</issn><publisher><publisher-name>JMIR Publications</publisher-name><publisher-loc>Toronto, Canada</publisher-loc></publisher></journal-meta><article-meta><article-id pub-id-type="publisher-id">v27i1e71658</article-id><article-id pub-id-type="doi">10.2196/71658</article-id><article-categories><subj-group subj-group-type="heading"><subject>Original Paper</subject></subj-group></article-categories><title-group><article-title>Fourier Transform Analysis of GPS-Derived Mobility Patterns for Diagnosis and Mood Monitoring of Bipolar and Major Depressive Disorders: Prospective Study</article-title></title-group><contrib-group><contrib contrib-type="author"><name name-style="western"><surname>Lee</surname><given-names>Ting-Yi</given-names></name><degrees>MEd</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Chen</surname><given-names>Ching-Hsuan</given-names></name><degrees>MSc, MD</degrees><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Liu</surname><given-names>Chih-Min</given-names></name><degrees>MD, PhD</degrees><xref ref-type="aff" rid="aff3">3</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Chen</surname><given-names>I-Ming</given-names></name><degrees>MD, PhD</degrees><xref ref-type="aff" rid="aff3">3</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Chen</surname><given-names>Hsi-Chung</given-names></name><degrees>MD, PhD</degrees><xref ref-type="aff" rid="aff3">3</xref><xref ref-type="aff" rid="aff4">4</xref><xref ref-type="aff" rid="aff5">5</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Wu</surname><given-names>Shu-I</given-names></name><degrees>MD, PhD</degrees><xref ref-type="aff" rid="aff6">6</xref><xref ref-type="aff" rid="aff7">7</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Hsiao</surname><given-names>Chuhsing Kate</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="aff" rid="aff8">8</xref></contrib><contrib contrib-type="author" corresp="yes"><name name-style="western"><surname>Kuo</surname><given-names>Po-Hsiu</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="aff" rid="aff3">3</xref><xref ref-type="aff" rid="aff9">9</xref><xref ref-type="aff" rid="aff10">10</xref></contrib></contrib-group><aff id="aff1"><institution>Institute of Epidemiology and Preventive Medicine, College of Public Health, National Taiwan University</institution><addr-line>Room 521, No. 17, Xuzhou Road</addr-line><addr-line>Taipei</addr-line><country>Taiwan</country></aff><aff id="aff2"><institution>Department of Obstetrics and Gynecology, Taipei City Hospital Heping Fuyou Branch</institution><addr-line>Taipei</addr-line><country>Taiwan</country></aff><aff id="aff3"><institution>Department of Psychiatry, National Taiwan University Hospital</institution><addr-line>Taipei</addr-line><country>Taiwan</country></aff><aff id="aff4"><institution>Department of Psychiatry, Center of Sleep Disorders, National Taiwan University Hospital</institution><addr-line>Taipei</addr-line><country>Taiwan</country></aff><aff id="aff5"><institution>College of Medicine, National Taiwan University</institution><addr-line>Taipei</addr-line><country>Taiwan</country></aff><aff id="aff6"><institution>Department of Psychiatry, Mackay Memorial Hospital</institution><addr-line>Taipei</addr-line><country>Taiwan</country></aff><aff id="aff7"><institution>Department of Medicine, MacKay Medical College</institution><addr-line>New Taipei City</addr-line><country>Taiwan</country></aff><aff id="aff8"><institution>Institute of Health Data Analytics and Statistics, College of Public Health, National Taiwan University</institution><addr-line>Taipei</addr-line><country>Taiwan</country></aff><aff id="aff9"><institution>Department of Public Health, College of Public Health, National Taiwan University</institution><addr-line>Taipei</addr-line><country>Taiwan</country></aff><aff id="aff10"><institution>Psychiatric Research Center, Wan Fang Hospital</institution><addr-line>Taipei</addr-line><country>Taiwan</country></aff><contrib-group><contrib contrib-type="editor"><name name-style="western"><surname>Cardoso</surname><given-names>Taiane de Azevedo</given-names></name></contrib></contrib-group><contrib-group><contrib contrib-type="reviewer"><name name-style="western"><surname>Benrimoh</surname><given-names>David</given-names></name></contrib><contrib contrib-type="reviewer"><name name-style="western"><surname>Odezuligbo</surname><given-names>Ikenna</given-names></name></contrib></contrib-group><author-notes><corresp>Correspondence to Po-Hsiu Kuo, PhD, Institute of Epidemiology and Preventive Medicine, College of Public Health, National Taiwan University, Room 521, No. 17, Xuzhou Road, Taipei, 10055, Taiwan, 886 2 33668015; <email>phkuo@ntu.edu.tw</email></corresp></author-notes><pub-date pub-type="collection"><year>2025</year></pub-date><pub-date pub-type="epub"><day>15</day><month>7</month><year>2025</year></pub-date><volume>27</volume><elocation-id>e71658</elocation-id><history><date date-type="received"><day>23</day><month>01</month><year>2025</year></date><date date-type="rev-recd"><day>06</day><month>05</month><year>2025</year></date><date date-type="accepted"><day>07</day><month>05</month><year>2025</year></date></history><copyright-statement>&#x00A9; Ting-Yi Lee, Ching-Hsuan Chen, Chih-Min Liu, I-Ming Chen, Hsi-Chung Chen, Shu-I Wu, Chuhsing Kate Hsiao, Po-Hsiu Kuo. Originally published in the Journal of Medical Internet Research (<ext-link ext-link-type="uri" xlink:href="https://www.jmir.org">https://www.jmir.org</ext-link>), 15.7.2025. </copyright-statement><copyright-year>2025</copyright-year><license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (<ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link>), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in the Journal of Medical Internet Research (ISSN 1438-8871), is properly cited. The complete bibliographic information, a link to the original publication on <ext-link ext-link-type="uri" xlink:href="https://www.jmir.org/">https://www.jmir.org/</ext-link>, as well as this copyright and license information must be included.</p></license><self-uri xlink:type="simple" xlink:href="https://www.jmir.org/2025/1/e71658"/><abstract><sec><title>Background</title><p>Mood disorders, including bipolar disorder (BP) and major depressive disorder (MDD), are characterized by significant psychological and behavioral fluctuations, with mobility patterns serving as potential markers of emotional states.</p></sec><sec><title>Objective</title><p>This study explores the diagnostic and monitoring capabilities of Fourier transform, a frequency-domain analysis method, in mood disorders by leveraging GPS data as an objective measure.</p></sec><sec sec-type="methods"><title>Methods</title><p>A total of 62 participants (BP: n=20, MDD: n=27, and healthy controls: n=15) contributed 5177 person-days of data over observation periods ranging from 5 days to 6 months. Key GPS indicators&#x2014;location variance (LV), transition time (TT), and entropy&#x2014;were identified as reflective of mood fluctuations and diagnostic differences between BP and MDD.</p></sec><sec sec-type="results"><title>Results</title><p>Fourier transform analysis revealed that the maximum power spectra of LV and entropy differed significantly between BP and MDD groups, with patients with BP exhibiting greater periodicity and intensity in mobility patterns. Notably, participants with BP demonstrated consistent periodic waves (eg, 1-d, 4-d, and 9-d cycles), while such patterns were absent in those with MDD. In addition, after adjusting for age, gender, and employment status, only the power spectrum of LV remained a significant predictor of depressed mood (odds ratio [OR] 0.9976, 95% CI 0.9956&#x2010;0.9996; <italic>P</italic>=.02). Daily GPS data showed stronger correlations with ecological momentary assessment (EMA)&#x2013;reported mood states compared to weekly or monthly aggregations, emphasizing the importance of day-to-day monitoring. Depressive states were associated with reduced LV (OR 0.975, 95% CI 0.957&#x2010;0.993; <italic>P</italic>=.008) and TT (OR 0.048, 95% CI 0.012&#x2010;0.200; <italic>P</italic>&#x003C;.001) on weekdays, and lower entropy (OR 0.662, 95% CI 0.520&#x2010;0.842; <italic>P</italic>=.001) on weekends, indicating that mobility features vary with social and temporal contexts.</p></sec><sec sec-type="conclusions"><title>Conclusions</title><p>This study underscores the potential of GPS-derived mobility data, analyzed through Fourier transform, as a noninvasive and real-time diagnostic and monitoring tool for mood disorders. The findings suggest that the intensity of mobility patterns, rather than their frequency, may better differentiate BP from MDD. Integrating GPS data with EMAs could enhance the precision of clinical assessments, provide early warnings for mood episodes, and support personalized interventions, ultimately improving mental health outcomes. This approach represents a promising step toward digital phenotyping and advanced mental health monitoring strategies.</p></sec></abstract><kwd-group><kwd>ecological momentary assessment</kwd><kwd>digital phenotyping</kwd><kwd>mobility</kwd><kwd>mood disorder</kwd><kwd>major depressive disorder</kwd><kwd>bipolar disorder</kwd></kwd-group></article-meta></front><body><sec id="s1" sec-type="intro"><title>Introduction</title><p>Among global health priorities, mood disorders, particularly major depressive disorder (MDD), and bipolar disorder (BP), have gained increasing attention. Clinical diagnosis and treatment for these disorders traditionally rely on patient visits, which often provide only sporadic data, making it challenging for clinicians to fully grasp the patient&#x2019;s condition [<xref ref-type="bibr" rid="ref1">1</xref>]. Factors such as cognitive impairment and age can further affect the reliability of subjective measurements. This underscores the potential of digital phenotyping tools for objective measurement. In Taiwan, smartphone ownership has reached nearly 90%, presenting an opportunity to use mobile devices as digital mental health tools in recent years. GPS technology, specifically, allows for the passive tracking of individuals&#x2019; mobility behaviors, offering a novel means to identify psychological disorders [<xref ref-type="bibr" rid="ref2">2</xref>]. GPS-based monitoring captures clinical symptoms by analyzing movement patterns across various locations [<xref ref-type="bibr" rid="ref3">3</xref>]. These trajectories can provide insights into behavioral patterns, identifying primary locations such as home, work, or social venues, thereby gaining insights into patients&#x2019; behavioral patterns [<xref ref-type="bibr" rid="ref4">4</xref>].</p><p>While subjective questionnaires such as the Hamilton Rating Scale for Depression (HAM-D), Beck Depression Inventory (BDI), Patient Health Questionnaire-4 (PHQ-4), and Beck Anxiety Inventory (BAI) are widely used, they only capture average emotional states over 1 to 2 weeks. This retrospective approach introduces temporal biases and overlooks daily emotional fluctuations [<xref ref-type="bibr" rid="ref1">1</xref>]. Studies have shown correlations between increased mobility as captured by GPS and reduced depressive symptoms [<xref ref-type="bibr" rid="ref5">5</xref>], suggesting that GPS-derived features such as location variance (LV), speed mean (SM), transition time (TT), and entropy can reflect emotional states [<xref ref-type="bibr" rid="ref6">6</xref>]. Entropy-related variables showed the strongest correlation with depression. Within the distance dimension, LV demonstrated a significant negative correlation with depression [<xref ref-type="bibr" rid="ref7">7</xref>]. However, there remains a lack of clarity regarding which time frames and GPS indicators are most relevant for emotional symptom evaluation.</p><p>Understanding the differences in GPS indicators between patients with BP and MDD is crucial. While many studies have examined the relationship between GPS indices and depression status&#x2014;focusing on either BP [<xref ref-type="bibr" rid="ref8">8</xref>] or MDD [<xref ref-type="bibr" rid="ref9">9</xref>] &#x2014;most have relied on time-domain analyses of long-term GPS data [<xref ref-type="bibr" rid="ref10">10</xref>-<xref ref-type="bibr" rid="ref12">12</xref>]. However, fewer studies have explored the potential of frequency-domain methods, such as Fourier transforms or wavelet analyses. Frequency-domain techniques excel in characterizing periodic mobility patterns and offer superior discriminative power for identifying distinct features of mobility [<xref ref-type="bibr" rid="ref13">13</xref>]. For instance, comparative analyses of time, frequency, and wavelet features across various activities have demonstrated that frequency-domain features generally outperform others [<xref ref-type="bibr" rid="ref14">14</xref>]. Past research has mostly focused on frequency domain analysis of human activity recognition or physiological signal analysis, such as gait analysis, and motion pattern recognition, including wavelet analysis, Fourier transform, and power spectral density. Wavelet transform excels in extracting time-frequency features, particularly for nonstationary signals like speech and EEG, offering enhanced performance through multiresolution analysis [<xref ref-type="bibr" rid="ref15">15</xref>], while power spectral density is widely used in activity recognition (eg, distinguish fall events from other intense activities) and heart rate variability analysis [<xref ref-type="bibr" rid="ref16">16</xref>]. On the other hand, Fourier transform is ideal for analyzing steady-state and periodic activities, showing superior classification accuracy, especially in noisy conditions [<xref ref-type="bibr" rid="ref17">17</xref>]. This highlights Fourier transform as a robust method for characterizing short-duration stationary signals, with proven efficacy in distinguishing physical activities like level walking, stair ascent, and stair descent. Despite its advantages, the application of frequency-domain methods to reflect participants&#x2019; mobility periodicity and stability remains limited in current research.</p><p>Ecological momentary assessment (EMA) provides a robust alternative for longitudinal and continuous mood monitoring. EMA involves real-time, repeated self-reports of experiences, enabling the tracking of mood fluctuations with high temporal resolution [<xref ref-type="bibr" rid="ref18">18</xref>]. Both patients with BP and MDD, even during euthymic states, may experience residual symptoms, which can lead to emotional instability even in the absence of major episodes. Interestingly, GPS-derived mobility patterns show a stronger relationship with depressive symptoms on weekends compared to weekdays [<xref ref-type="bibr" rid="ref19">19</xref>]. This distinction may stem from the influence of social roles and expectations, which significantly shape mobility patterns. For instance, working professionals and students typically commute to work or school on weekdays, establishing predictable routines. However, on weekends, individuals may exhibit reduced mobility, particularly if they feel down or experience depressive symptoms, highlighting the importance of considering temporal and social contexts in understanding mood-related changes in mobility.</p><p>Integrating EMA with GPS mobility patterns could enable detailed insights into short-term mood changes, particularly for BP and MDD, which share depressive features but differ in clinical presentation. For example, BP includes manic episodes, whereas MDD does not. Patients with BP may exhibit more frequent mobility fluctuations compared to patients with MDD. Research has highlighted the potential of GPS patterns in predicting daily depressive states, with features such as LV, TT, and entropy showing greater relevance on specific days [<xref ref-type="bibr" rid="ref1">1</xref>].</p><p>This study aims to evaluate the relationship between GPS mobility indicators, clinical symptoms, and EMA-reported mood states using Fourier transform analysis. We hypothesize that patients with BP may exhibit more frequent mobility fluctuations compared to patients with MDD, and the maximum power spectrum is more effective than the frequency period in distinguishing between BP and MDD diagnoses, providing valuable insights for earlier diagnosis and intervention. In addition, we will explore the impact of varying time spans on the accuracy and relevance of GPS-based emotional assessments.</p></sec><sec id="s2" sec-type="methods"><title>Methods</title><sec id="s2-1"><title>Participants</title><p>We conducted a prospective study over a 6-month period to explore GPS-derived mobility patterns as markers using Fourier transform for frequency-domain analysis to differentiate diagnosis for mood disorders. The study recruited a sample of 62 participants, comprising healthy control (HC; n=15), BP (n=20), and MDD (n=27; see <xref ref-type="fig" rid="figure1">Figure 1</xref>). Patients were recruited from the psychiatric departments of 3 hospitals (National Taiwan University Hospital, Mackay Memorial Hospital, and Taiwan Adventist Hospital) in Taipei, Taiwan, targeting individuals diagnosed with MDD and BP. Patients were recruited through clinical referrals from psychiatrists in both outpatient and inpatient settings, ensuring accurate diagnostic information. The sample comprised patients referred consecutively from outpatient clinics who attended routine follow-up visits and those in partial remission from inpatient units from March 2020 to November 2023. HC were recruited from the same hospital catchment areas by inviting well individuals (visitors and passersby) to participate. HC were screened for the absence of psychiatric disorders using standardized diagnostic interviews. All participants underwent structured clinical interviews conducted by trained research staff to confirm eligibility and gather additional data. Inclusion criteria for patients were as follows: (1) confirmation of MDD or BP according to the <italic>Diagnostic and Statistical Manual of Mental Disorders, Fifth Edition,</italic> criteria, aged between 20 and 65; (2) absence of substance-induced mood disorders, intellectual impairment, and schizophrenia; (3) experienced at least 2 episodes of depressive or manic episodes from the interview questionnaires using the modified Chinese version of the Schedule for Affective Disorders and Schizophrenia-Lifetime (SADS-L) [<xref ref-type="bibr" rid="ref20">20</xref>] to ensure the validity of the diagnosis, as previously recommended by [<xref ref-type="bibr" rid="ref21">21</xref>]; (4) Young Mania Rating Scale (YMRS) scores &#x003C;16 and HAM-D scores &#x003C;16, ensuring that they were not in an acute phase of illness [<xref ref-type="bibr" rid="ref22">22</xref>,<xref ref-type="bibr" rid="ref23">23</xref>]. This increases the likelihood of stable follow-up over 6 months. In addition, patients in an acute state who require hospitalization in Taiwan are typically not allowed to use mobile phones, meaning their motility patterns would not reflect the daily life of outpatients or individuals in a more stable condition. In addition, the inclusion criteria for HC were: (1) general population aged between 20 and 65, (2) no history of psychiatric disorders or intellectual developmental disorders, and (3) non-night shift workers.</p><fig position="float" id="figure1"><label>Figure 1.</label><caption><p>Flow chart of the study period. BP: bipolar disorder; HC: healthy control; MDD: major depressive disorder.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v27i1e71658_fig01.png"/></fig></sec><sec id="s2-2"><title>Ethical Considerations</title><p>This study was approved by the institutional review boards of National Taiwan University Hospital (IRB 201811087RINA), and all patients gave written informed consent. The GPS data collected via mobile devices were encrypted at the collection point, ensuring that the recorded data did not contain the original latitude and longitude coordinates. Furthermore, the GPS data were inaccessible on the device itself, and additional encryption protocols safeguarded the data during transmission. The decryption of the data was only possible upon reaching the researchers, at which point the original GPS coordinates could be retrieved. Participants received a monetary compensation of approximately US $22 after completion of the EMA survey answers.</p></sec><sec id="s2-3"><title>Beiwe Data Acquisition</title><p>We utilized the Beiwe application on each participant&#x2019;s smartphone for 6 months to conduct GPS surveys. The follow-up period for this study lasted 6 months, during which passive data (eg, GPS data) and active data (eg, daily mood EMA to assess emotional fluctuations) were collected through the Beiwe app management platform. During the follow-up period, some participants withdrew from the study and provided only limited recorded data. Ultimately, data of 62 participants, totaling 6330 person-days, were included in the final analysis. Beiwe is a mobile app developed by the Onnela team at Harvard University [<xref ref-type="bibr" rid="ref24">24</xref>]. Through collaboration, we designed the Chinese version of the software (see Figure S1 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>) to record participants&#x2019; objective data, facilitating dynamic data collection. The goal of collecting this data is to contribute to clinical research understanding the correlation between emotional changes and various mobility patterns in daily life. Regarding the recording of mobility ranges, we employed anonymized information using map coordinates as records. This approach ensures that sensitive information such as location types or the number of floors entered and exited is not disclosed, thereby preserving individual privacy. The confidentiality of relevant information is strictly maintained in accordance with the terms outlined in the informed consent. These data are solely intended for academic research purposes and will not be used for any commercial activities, emphasizing the confidentiality and security of the information collected. Implementation challenges for studies of this nature include 3 main aspects: data feature extraction, data granularity, and data sparsity, encompassing issues of data accuracy, sparsity, and compliance [<xref ref-type="bibr" rid="ref5">5</xref>].</p><p>In our study, data feature extraction refers to how meaningful indicators such as GPS raw data are transformed into mobility patterns. We aim for these meaningful indicators to accurately reflect potential clinical states. Here, we adopt the definitions and formulas of GPS features established by a previous study [<xref ref-type="bibr" rid="ref25">25</xref>], LV, SM, speed variance (SV), number of clusters (NC), entropy, homestay, TT, and total distance (TD). We analyzed these GPS-derived mobility metrics to assess participants&#x2019; movement patterns. LV measures the variability in a participant&#x2019;s GPS location, while SM and SV capture the average and variability of instantaneous speed at each GPS data point, respectively. NC identifies the key locations where participants spent most of their time, and homestay represents the percentage of time spent at home. TT reflects the proportion of time spent moving between locations, whereas TD is calculated as the sum of the Euclidean distances between consecutive location points. Finally, entropy quantifies how each participant&#x2019;s time was distributed across different location clusters [<xref ref-type="bibr" rid="ref25">25</xref>].</p><p>The data granularity in this study pertains to the frequency of GPS data collection. In practice, GPS is the most power-consuming sensor. To minimize battery consumption, the Beiwe platform records GPS data using a cyclic sampling approach. Specifically, GPS data are collected for one minute during each &#x2019;on-cycle&#x2019; (active period), followed by a ten-minute &#x2019;off-cycle&#x2019; (inactive period) during which no GPS data are recorded [<xref ref-type="bibr" rid="ref26">26</xref>].</p><p>In terms of data sparsity and compliance, persistence involves compliance, specifically addressing the issue of missing values. During the follow-up period, participants were requested to enable location services on their smartphones and fill out daily emotional state surveys within the app. These surveys include questionnaires designed to measure emotional well-being, contributing to the completeness of the dataset.</p></sec><sec id="s2-4"><title>GPS Data Processing</title><p>Data loss occurred due to various reasons, including equipment malfunction, technical issues with device usage, such as airplane mode, software errors, participants forgetting to charge their phones or devices, server and network connection problems, sensor damage, lack of clinical data for comparison with sensor data, and disruptions caused by mobile software updates [<xref ref-type="bibr" rid="ref2">2</xref>]. The Beiwe platform typically activates GPS data collection at a frequency of 1 Hz within a one-minute on-cycle and then pauses data collection for ten minutes during the off-cycle. Ideally, there should be around 327 data points per hour (60 min &#x00F7; 11 min per cycle &#x00D7; 60 s). Figure S2 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref> illustrates the data distribution for Participant M01 over 26 weeks. In the case of M01, the participant with a relatively high volume of GPS data can collect as many as 300 data points per hour. If the obtained data are less than expected, several factors might explain this discrepancy, including (1) GPS deactivation: the participant might have intentionally turned off the GPS function on their device; (2) partial GPS sensor response: the GPS sensor on the participant&#x2019;s phone might only respond to a portion of location data queries; (3) insufficient sampling duration: the GPS sampling duration might be less than the required time; or (4) mismatched sampling frequency: the GPS sampling frequency might differ from the specified frequency. This can happen if participants use different phone models or devices from various manufacturers, leading to variations in GPS sensor data [<xref ref-type="bibr" rid="ref27">27</xref>]. The mobile phone brands used by participants in this study included iPhone, ASUS, Samsung, Xiaomi, HTC, OPPO, HUAWEI, SONY, VIVO, and NOKIA. Due to variations in phone models and manufacturers, there may be differences in GPS sensing and sensor data accuracy among the devices.</p><p>For location data, the data collection process followed the protocol established by the Onnela Lab research [<xref ref-type="bibr" rid="ref26">26</xref>]. Preprocessing defines stationary and moving to avoid GPS errors and for subsequent analysis. First, exclude data with GPS errors exceeding 50 meters. Subsequently, calculate the average position over a 10-second interval to mitigate outliers, considering positions with no data for over 10 seconds as missing values (NA). Check the distance from the next data; if it exceeds &#x221A; 10 meters measured in 10 seconds, it is considered as movement. If the next data are considered NA, it is considered unknown, and it is defined that a maximum displacement of 75 meters or more within 6 minutes is considered as a movement to confirm the &#x201C;stationary state&#x201D; or &#x201C;moving state.&#x201D; GPS features in the stationary state: LV, NC, entropy, and homestay. The GPS feature in the moving state: TT. GPS features that do not distinguish between moving or stationary states: TD, SM, and SV. The suggestion of the Onnela lab team [<xref ref-type="bibr" rid="ref26">26</xref>] is that for smartphone GPS data with severe missing degrees, more careful processing is needed, using data from other days to fill in these distances and using imputation methods (see Figure S3 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>). In brief, we applied linear interpolation for trajectory imputation and inferred the GPS features under 10 times simulation. This method allowed us to achieve a more accurate representation of the data by filling in gaps and reducing noise, ultimately leading to improved performance in our predictive models.</p></sec><sec id="s2-5"><title>Fourier Transform Analysis for Mobility Patterns</title><p>The data collected by GPS are in the time domain. Fourier transform is a method that converts time-domain signals into frequency-domain signals. The signal refers to the same entity, whether represented in the time domain (waveform) or the frequency domain (spectrum). The data were transformed into sine and cosine waveforms when entering the data analysis phase. These waveforms are then superimposed to depict the frequency cycles of motion. This analysis obtained two primary variables: the power spectrum and the frequency. Complex waveforms can be segmented to separate various frequency components. After performing the Fourier transform, we derived two main variables: frequency, which represents the mobility patterns&#x2019; periodicity, and the power spectrum for each frequency, which indicates the intensity of these mobility patterns.</p></sec><sec id="s2-6"><title>Clinical Questionnaire Measurement and Ecological Momentary Assessment</title><p>The severity of the disease was assessed using the HAMD-17 [<xref ref-type="bibr" rid="ref28">28</xref>] for depressive episodes and the YMRS [<xref ref-type="bibr" rid="ref29">29</xref>] for manic episodes. Symptom severity was further evaluated with the BDI-II [<xref ref-type="bibr" rid="ref30">30</xref>], which evaluates the severity of current depression over a two-week period. The BDI-II critical scores are 13, 19, and 28, corresponding to mild, moderate, and severe depression, respectively. Anxiety levels were measured using the BAI [<xref ref-type="bibr" rid="ref31">31</xref>], which evaluates symptoms over the past week. The BAI cutoff scores are 9, 16, and 29, indicating mild, moderate, and severe anxiety. In addition, the PHQ-4 [<xref ref-type="bibr" rid="ref32">32</xref>], a brief self-report, was used to screen for depression and anxiety. Two items are used as screeners for depression and two items for anxiety. Participants completed daily EMA questionnaires per day via the Beiwe app throughout the study period. The EMA captured self-reported states of depression, mania, fatigue, and irritability, with response options ranging from 1 (not at all) to 5 (seriously); see Table S1 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>. The EMA mood items were adapted from validated questions in published studies on treatment response, ensuring consistency and reliability [<xref ref-type="bibr" rid="ref33">33</xref>]. Our EMA data were collected daily at 12:45 PM, and if there were missing data, imputation was performed using the EMA collected at 5:00 PM. With twice-daily reports, the intraclass correlation coefficients for mood states were as follows: 0.888 for manic mood, 0.999 for irritability, 0.920 for depressive mood, and 0.747 for fatigue [<xref ref-type="bibr" rid="ref34">34</xref>].</p></sec><sec id="s2-7"><title>Statistical Analysis</title><p>Our study was based on prospective data collection. The exposures are digital phenotyping GPS features, and the outcome was daily depression score or diagnosis. Age, gender, and employment status were considered potential confounding factors and were adjusted for in models. The sample size was estimated based on previously reported correlations between GPS features and mood-related symptoms [<xref ref-type="bibr" rid="ref25">25</xref>], which ranged from 0.49 to 0.63. Assuming a conservative correlation coefficient of <italic>r</italic>=0.5, an &#x03B1; level of .05, and desired power levels of .90, the required sample sizes were 38 [<xref ref-type="bibr" rid="ref34">34</xref>]. The Kruskal-Wallis test was used to determine whether the medians of multiple independent groups, which do not follow a normal distribution, were equal. To gain a comprehensive understanding of the relationship between GPS features and clinical status, polyserial correlations were calculated for continuous and ordinal variables, identifying patterns within and between BP, MDD, and HC groups. In addition, Pearson correlation coefficients and <italic>P</italic> values were computed to assess linear relationships. A logistic regression model was used to evaluate the ability of GPS features to differentiate between affective and euthymic statuses. For comparisons between BP and MDD groups, the Mann-Whitney <italic>U</italic> test was applied to examine differences when the dependent variable was either ordinal or a non-normally distributed continuous variable. In addition, we used QGIS 3.14 software (QGIS Development Team) to overlay Google Maps layers for map visualization.</p></sec></sec><sec id="s3" sec-type="results"><title>Results</title><sec id="s3-1"><title>Demographic and Clinical Variables</title><p>The demographic and clinical characteristics of the study participants are presented in <xref ref-type="table" rid="table1">Table 1</xref>. Due to variance heterogeneity, the Kruskal-Wallis test was used to compare differences among groups. No significant differences were observed in sex, age, or occupation. Both BP and MDD groups exhibited higher BDI (<italic>P</italic>&#x003C;.001), BAI (<italic>P</italic>&#x003C;.001), and PHQ-4 (<italic>P</italic>&#x003C;.001) scores compared to the HC group. Patients&#x2019; BDI scores were used to indicate their depressive severity during the study period. It was found that 23.4% (11/47) of patients experienced moderate depression, while 25.5% (12/47) were in severe depression, suggesting a noticeable level of mood fluctuation. Patients with BP and MDD exhibited substantially greater instability: we found that depression mood fluctuation occurred on 44% (1577/3584) of days in patients with MDD and BP compared to 9% (103/1148) in controls, while manic mood fluctuation was observed on 48% (716/1504) of days in patients with BP versus 8% (94/1148) in controls. These findings demonstrate that HC maintain stable mood trajectories, whereas patients with BP and MDD experience marked oscillations, which underscores mood instability as a transdiagnostic clinical marker. Although the exact number of individuals who experienced a relapse cannot be determined, 48.9% (23/47) exhibited moderate to severe depression. While the BDI is not a tool for assessing the acute phase, it serves as a proxy indicator of depression severity. The 62 participants were followed for a total of 6330 person-days, with data collection ranging from 5 to 180 days per person. After applying a minimum threshold of one-quarter valid hours of data per day, a total of 5177 person-days was included in the analysis.</p><table-wrap id="t1" position="float"><label>Table 1.</label><caption><p>Demographic and clinical characteristics of the participants.</p></caption><table id="table1" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Variables</td><td align="left" valign="bottom">HC<sup><xref ref-type="table-fn" rid="table1fn1">a</xref></sup> group (n=5)</td><td align="left" valign="bottom">BP<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup> group (n=20)</td><td align="left" valign="bottom">MDD<sup><xref ref-type="table-fn" rid="table1fn3">c</xref></sup> group (n=27)</td><td align="left" valign="bottom"><italic>P</italic> value</td></tr></thead><tbody><tr><td align="left" valign="top">Demographic characteristics</td><td align="left" valign="top">&#x2003;</td><td align="left" valign="top">&#x2003;</td><td align="left" valign="top">&#x2003;</td><td align="left" valign="top">&#x2003;</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Sex, n (%)</td><td align="left" valign="top">&#x2003;</td><td align="left" valign="top">&#x2003;</td><td align="left" valign="top">&#x2003;</td><td align="left" valign="top">.70</td></tr><tr><td align="left" valign="top">&#x2003;&#x2003;Female</td><td align="left" valign="top">11 (73.3)</td><td align="left" valign="top">12 (60)</td><td align="left" valign="top">17 (63)</td><td align="left" valign="top">&#x2003;</td></tr><tr><td align="left" valign="top">&#x2003;&#x2003;Male</td><td align="left" valign="top">4 (26.7)</td><td align="left" valign="top">8 (40)</td><td align="left" valign="top">10 (37)</td><td align="left" valign="top">&#x2003;</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Occupation, n (%)</td><td align="left" valign="top">&#x2003;</td><td align="left" valign="top">&#x2003;</td><td align="left" valign="top">&#x2003;</td><td align="left" valign="top">.10</td></tr><tr><td align="left" valign="top">&#x2003;&#x2003;Unemployed</td><td align="left" valign="top">0 (0)</td><td align="left" valign="top">7 (30)</td><td align="left" valign="top">6 (22.2)</td><td align="left" valign="top">&#x2003;</td></tr><tr><td align="left" valign="top">&#x2003;&#x2003;Employed</td><td align="left" valign="top">10 (66.7)</td><td align="left" valign="top">10 (50)</td><td align="left" valign="top">16 (59.3)</td><td align="left" valign="top">&#x2003;</td></tr><tr><td align="left" valign="top">&#x2003;&#x2003;Student</td><td align="left" valign="top">3 (20)</td><td align="left" valign="top">2 (10)</td><td align="left" valign="top">2 (7.4)</td><td align="left" valign="top">&#x2003;</td></tr><tr><td align="left" valign="top">&#x2003;&#x2003;Retired</td><td align="left" valign="top">2 (13.3)</td><td align="left" valign="top">1 (5)</td><td align="left" valign="top">3 (11.1)</td><td align="left" valign="top">&#x2003;</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Age, mean (SD)</td><td align="left" valign="top">40.33 (14.57)</td><td align="left" valign="top">40.35 (11.15)</td><td align="left" valign="top">43.19 (11.82)</td><td align="left" valign="top">.68</td></tr><tr><td align="left" valign="top">Clinical characteristics, mean (SD)</td><td align="left" valign="top">&#x2003;</td><td align="left" valign="top">&#x2003;</td><td align="left" valign="top">&#x2003;</td><td align="left" valign="top">&#x2003;</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>YMRS<sup><xref ref-type="table-fn" rid="table1fn4">d</xref></sup></td><td align="left" valign="top">&#x2014;<sup><xref ref-type="table-fn" rid="table1fn5">e</xref></sup></td><td align="left" valign="top">2.90 (4.34)</td><td align="left" valign="top">0.52 (1.19)</td><td align="left" valign="top">.02</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>HAM-D<sup><xref ref-type="table-fn" rid="table1fn6">f</xref></sup></td><td align="left" valign="top">&#x2014;</td><td align="left" valign="top">7.45 (4.57)</td><td align="left" valign="top">7.16 (5.21)</td><td align="left" valign="top">.81</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>BDI<sup><xref ref-type="table-fn" rid="table1fn7">g</xref></sup></td><td align="left" valign="top">4.93 (5.48)</td><td align="left" valign="top">20.84 (10.62)</td><td align="left" valign="top">18.32 (14.37)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>PHQ-4<sup><xref ref-type="table-fn" rid="table1fn8">h</xref></sup></td><td align="left" valign="top">0.87 (1.18)</td><td align="left" valign="top">5.00 (2.32)</td><td align="left" valign="top">4.52 (3.30)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>BAI<sup><xref ref-type="table-fn" rid="table1fn9">i</xref></sup></td><td align="left" valign="top">1.60 (2.35)</td><td align="left" valign="top">13.35 (7.97)</td><td align="left" valign="top">13.67 (9.59)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Follow-up days</td><td align="left" valign="top">126.13 (79.24)</td><td align="left" valign="top">98.00 (83.04)</td><td align="left" valign="top">107.96 (72.96)</td><td align="left" valign="top">.45</td></tr></tbody></table><table-wrap-foot><fn id="table1fn1"><p><sup>a</sup>HC: healthy control.</p></fn><fn id="table1fn2"><p><sup>b</sup>BP: bipolar disorder.</p></fn><fn id="table1fn3"><p><sup>c</sup>MDD: major depressive disorder.</p></fn><fn id="table1fn4"><p><sup>d</sup>YMRS: Young Mania Rating Scale.</p></fn><fn id="table1fn5"><p><sup>e</sup>Not available.</p></fn><fn id="table1fn6"><p><sup>f</sup>HAM-D: Hamilton Depression Rating Scale.</p></fn><fn id="table1fn7"><p><sup>g</sup>BDI-II: Beck Depression Inventory.</p></fn><fn id="table1fn8"><p><sup>h</sup>PHQ-4: Patient Health Questionnaire-4.</p></fn><fn id="table1fn9"><p><sup>i</sup>BAI: Beck Anxiety Inventory.</p></fn></table-wrap-foot></table-wrap></sec><sec id="s3-2"><title>Correlation of GPS Indicators and EMA Depressed Mood on Weekdays and Weekends</title><p><xref ref-type="table" rid="table2">Table 2</xref> illustrates whether differences in mobility patterns between weekdays and weekends are associated with EMA-measured mood. Figure S4 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref> shows that significant correlations were found between 6 GPS features and mood performance across various time frames, with daily data demonstrating stronger correlations (<italic>P</italic>&#x003C;.05) compared to weekly or semi-annual data. These findings highlight the value of daily GPS data in reflecting clinical mood variations. Building on this, subsequent analyses focused on day-by-day GPS data.</p><p>To identify the most relevant GPS indicators, we evaluated their effectiveness in determining depressive status on weekdays and weekends. The study included 5177 days of data: 3716 weekdays and 1461 weekends. Multicollinearity was addressed by removing GPS features with a variance inflation factor (VIF) &#x003E;3. Logistic regression, adjusted for age, sex, and employment status, revealed that on weekdays, lower LV (OR 0.975, 95% CI 0.957&#x2010;0.993; <italic>P</italic>=.008) and TT (OR 0.048, 95% CI 0.012&#x2010;0.200; <italic>P</italic>&#x003C;.001) scores were significantly associated with depressive status. On weekends, lower entropy scores (OR 0.662, 95% CI 0.520&#x2010;0.842; <italic>P</italic>=.001) were similarly linked to depressive status.</p><table-wrap id="t2" position="float"><label>Table 2.</label><caption><p>Logistic regression for distinguishing participants with and without depressive status using GPS features presented in number of person-day.</p></caption><table id="table2" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom"/><td align="left" valign="bottom" colspan="3">Total</td><td align="left" valign="bottom" colspan="3">Weekdays</td><td align="left" valign="bottom" colspan="3">Weekends</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">&#x03B2; coefficient</td><td align="left" valign="bottom"><italic>P</italic> value</td><td align="left" valign="bottom">OR<sup><xref ref-type="table-fn" rid="table2fn1">a</xref></sup> (95% CI)</td><td align="left" valign="bottom">&#x03B2; coefficient</td><td align="left" valign="bottom"><italic>P</italic> value</td><td align="left" valign="bottom">OR (95% CI)</td><td align="left" valign="bottom">&#x03B2; coefficient</td><td align="left" valign="bottom"><italic>P</italic> value</td><td align="left" valign="bottom">OR (95% CI)</td></tr></thead><tbody><tr><td align="left" valign="top">Sex</td><td align="char" char="." valign="top">&#x2212;0.636</td><td align="char" char="." valign="top">&#x003C;.001<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup></td><td align="char" char="." valign="top">0.529 (0.460-0.609)</td><td align="char" char="." valign="top">&#x2212;0.667</td><td align="char" char="." valign="top">&#x003C;.001<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup></td><td align="char" char="." valign="top">0.513 (0.435-0.606)</td><td align="char" char="." valign="top">&#x2212;0.542</td><td align="char" char="." valign="top">&#x003C;.001<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup></td><td align="char" char="." valign="top">0.582 (0.444-0.762)</td></tr><tr><td align="left" valign="top">Age</td><td align="char" char="." valign="top">&#x2212;0.019</td><td align="char" char="." valign="top">&#x003C;.001<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup></td><td align="char" char="." valign="top">0.981 (0.977-0.986)</td><td align="char" char="." valign="top">&#x2212;0.017</td><td align="char" char="." valign="top">&#x003C;.001<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup></td><td align="char" char="." valign="top">0.983 (0.977-0.989)</td><td align="char" char="." valign="top">&#x2212;0.021</td><td align="char" char="." valign="top">&#x003C;.001<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup></td><td align="char" char="." valign="top">0.979 (0.970-0.988)</td></tr><tr><td align="left" valign="top">Employee or student</td><td align="char" char="." valign="top">&#x2212;0.360</td><td align="char" char="." valign="top">&#x003C;.001<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup></td><td align="char" char="." valign="top">0.698 (0.609-0.800)</td><td align="char" char="." valign="top">&#x2212;0.291</td><td align="char" char="." valign="top">&#x003C;.001<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup></td><td align="char" char="." valign="top">0.747 (0.635-0.879)</td><td align="char" char="." valign="top">&#x2212;0.518</td><td align="char" char="." valign="top">&#x003C;.001<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup></td><td align="char" char="." valign="top">0.595 (0.461-0.770)</td></tr><tr><td align="left" valign="top">Location variance</td><td align="char" char="." valign="top">&#x2212;0.020</td><td align="char" char="." valign="top">.01<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup></td><td align="char" char="." valign="top">0.980 (0.965-0.995)</td><td align="char" char="." valign="top">&#x2212;0.026</td><td align="char" char="." valign="top">.008<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup></td><td align="char" char="." valign="top">0.975 (0.957-0.993)</td><td align="char" char="." valign="top">&#x2212;0.007</td><td align="char" char="." valign="top">.61</td><td align="char" char="." valign="top">0.993 (0.966-1.020)</td></tr><tr><td align="left" valign="top">Speed mean</td><td align="char" char="." valign="top">0.001</td><td align="char" char="." valign="top">.27</td><td align="char" char="." valign="top">1.001 (1.000-1.002)</td><td align="char" char="." valign="top">0.001</td><td align="char" char="." valign="top">.24</td><td align="char" char="." valign="top">1.001 (1.000-1.002)</td><td align="char" char="." valign="top">&#x003C;0.001</td><td align="char" char="." valign="top">.89</td><td align="char" char="." valign="top">1.000 (0.998-1.003)</td></tr><tr><td align="left" valign="top">Transition time</td><td align="char" char="." valign="top">&#x2212;2.474</td><td align="char" char="." valign="top">&#x003C;.001<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup></td><td align="char" char="." valign="top">0.084 (0.028-0.255)</td><td align="char" char="." valign="top">&#x2212;3.030</td><td align="char" char="." valign="top">&#x003C;.001<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup></td><td align="char" char="." valign="top">0.048 (0.012-0.200)</td><td align="char" char="." valign="top">&#x2212;1.454</td><td align="char" char="." valign="top">.09</td><td align="char" char="." valign="top">0.234 (0.043-1.270)</td></tr><tr><td align="left" valign="top">Number of clusters</td><td align="char" char="." valign="top">&#x2212;0.002</td><td align="char" char="." valign="top">.37</td><td align="char" char="." valign="top">0.998 (0.995-1.002)</td><td align="char" char="." valign="top">&#x2212;0.001</td><td align="char" char="." valign="top">.51</td><td align="char" char="." valign="top">0.999 (0.994-1.003)</td><td align="char" char="." valign="top">&#x2212;0.002</td><td align="char" char="." valign="top">.53</td><td align="char" char="." valign="top">0.998 (0.992-1.004)</td></tr><tr><td align="left" valign="top">Homestay</td><td align="char" char="." valign="top">&#x2212;0.061</td><td align="char" char="." valign="top">.59</td><td align="char" char="." valign="top">0.941 (0.754-1.174)</td><td align="char" char="." valign="top">&#x2212;0.019</td><td align="char" char="." valign="top">.89</td><td align="char" char="." valign="top">0.981 (0.753-1.278)</td><td align="char" char="." valign="top">&#x2212;0.117</td><td align="char" char="." valign="top">.58</td><td align="char" char="." valign="top">0.890 (0.590-1.342)</td></tr><tr><td align="left" valign="top">Entropy</td><td align="char" char="." valign="top">&#x2212;0.191</td><td align="char" char="." valign="top">.004<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup></td><td align="char" char="." valign="top">0.826 (0.725-0.940)</td><td align="char" char="." valign="top">&#x2212;0.099</td><td align="char" char="." valign="top">.22</td><td align="char" char="." valign="top">0.906 (0.774-1.059)</td><td align="char" char="." valign="top">&#x2212;0.413</td><td align="char" char="." valign="top">.001<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup></td><td align="char" char="." valign="top">0.662 (0.520-0.842)</td></tr></tbody></table><table-wrap-foot><fn id="table2fn1"><p><sup>a</sup>OR: odds ratio.</p></fn><fn id="table2fn2"><p><sup>b</sup>Indicates significance at <italic>P</italic> value &#x003C;.05.</p></fn></table-wrap-foot></table-wrap></sec><sec id="s3-3"><title>Difference in Fourier Transform Data Among Patients</title><p>At the same period within a given month, GPS location data did not distinguish between MDD and BP groups (see <xref ref-type="fig" rid="figure2">Figure 2</xref>). To address this, we employed frequency-domain analysis to explore potential diagnostic differences. This analysis focused on LV and entropy, as TT primarily reflects time-domain characteristics. Unlike previous analyses that differentiated GPS indicators by weekdays and weekends, Fourier transform analysis used weekly data for initial exploration.</p><p>First, time-domain graphs (see <xref ref-type="fig" rid="figure3">Figure 3A</xref>) were plotted for LV and entropy counts in each group. Fourier transforms were then applied to derive frequencies and corresponding power spectra, as shown in frequency-domain graphs (see <xref ref-type="fig" rid="figure3">Figure 3B</xref>). Distinct frequency and power spectrum values emerged among groups (see <xref ref-type="fig" rid="figure3">Figure 3C</xref>). Periodic waves corresponding to the top five power values were identified, with their summed ranks on the y-axis used to indicate intensity (see <xref ref-type="fig" rid="figure3">Figure 3D</xref>). Lower ranks reflected stronger intensity, highlighting shared periodic waves (x-axis) among participants.</p><p>The period indicates the reciprocal of the frequency. The ranking score indicates the power spectrum in descending order from the maximum value.</p><p><xref ref-type="fig" rid="figure4">Figure 4</xref> shows differences in periodic waves between groups for LV and entropy. Among participants with BP, more than half showed periodic waves at 1-day, 2-day, and 9-day cycles, whereas no clear periodic cycles were observed for MDD. Similarly, for entropy, participants with BP exhibited cyclic waves at 1-day, 4-day, and 9-day cycles on a monthly basis, while participants with MDD lacked consistent periodicity. Results for quarterly and bi-monthly periods are detailed in Figures S5 and S6 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>.</p><p>In <xref ref-type="fig" rid="figure4">Figure 4</xref>, the numbers in the circle indicate the number of people with this frequency. Colored circles indicate more than 50% of participants have this frequency.</p><p>Amplitude-based power spectrum analysis further revealed significant differences in maximum power spectra for LV (<italic>P</italic>=.04) and entropy (<italic>P</italic>=.02) between BP and MDD groups (see <xref ref-type="table" rid="table3">Table 3</xref>). Intensity rankings for entropy demonstrated its superior efficacy over LV in distinguishing diagnoses. These results suggest that while BP and MDD share similar periodic cycles, the intensity and stability of mobility patterns are more diagnostic. We found no significant differences in power spectra and frequencies between HC and BP, and between HC and MDD (see Tables S2 and S3 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>).</p><fig position="float" id="figure2"><label>Figure 2.</label><caption><p>Location distribution map of examples of healthy control (HC), bipolar disorder (BP), and major depressive disorder (MDD) in May 2020.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v27i1e71658_fig02.png"/></fig><fig position="float" id="figure3"><label>Figure 3.</label><caption><p>Example of forming the Fourier transform procedure for the bipolar (BP) disorder group.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v27i1e71658_fig03.png"/></fig><fig position="float" id="figure4"><label>Figure 4.</label><caption><p>Bubble plot of top 5 location variance (LV) and entropy (EN) Fourier power spectrum ranking score in number of person-frequency. BP: bipolar disorder; MDD: major depressive disorder.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v27i1e71658_fig04.png"/></fig><table-wrap id="t3" position="float"><label>Table 3.</label><caption><p>Mann-Whitney <italic>U</italic> test for distribution of Fourier frequency and power spectrum of location variance and entropy between bipolar disorder (BP) and major depressive disorder (MDD) groups in 1 month.</p></caption><table id="table3" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom"/><td align="left" valign="bottom" colspan="3">Location variance</td><td align="left" valign="bottom" colspan="3">Entropy</td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">BP<sup><xref ref-type="table-fn" rid="table3fn1">a</xref></sup> (n=12)</td><td align="left" valign="top">MDD<sup><xref ref-type="table-fn" rid="table3fn2">b</xref></sup> (n=19)</td><td align="left" valign="top"><italic>P</italic> value</td><td align="left" valign="top">BP (n=12)</td><td align="left" valign="top">MDD (n=19)</td><td align="left" valign="top"><italic>P</italic> value</td></tr></thead><tbody><tr><td align="left" valign="top">Power spectrum</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Maximum</td><td align="left" valign="top">20.17</td><td align="left" valign="top">13.37</td><td align="left" valign="top">.04<bold><sup><xref ref-type="table-fn" rid="table3fn3">c</xref></sup></bold></td><td align="left" valign="top">20.71</td><td align="left" valign="top">13.03</td><td align="left" valign="top">.02<sup><xref ref-type="table-fn" rid="table3fn3">c</xref></sup></td></tr><tr><td align="char" char="." valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Second</td><td align="left" valign="top">19.25</td><td align="left" valign="top">13.95</td><td align="left" valign="top">.12</td><td align="left" valign="top">19.96</td><td align="left" valign="top">13.50</td><td align="left" valign="top">.05<sup><xref ref-type="table-fn" rid="table3fn3">c</xref></sup></td></tr><tr><td align="char" char="." valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Third</td><td align="left" valign="top">19.75</td><td align="left" valign="top">13.63</td><td align="left" valign="top">.07</td><td align="left" valign="top">20.12</td><td align="left" valign="top">13.39</td><td align="left" valign="top">.04<sup><xref ref-type="table-fn" rid="table3fn3">c</xref></sup></td></tr><tr><td align="char" char="." valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content><named-content content-type="indent">Fourth</named-content></td><td align="left" valign="top">19.33</td><td align="left" valign="top">13.89</td><td align="left" valign="top">.11</td><td align="left" valign="top">20.21</td><td align="left" valign="top">13.34</td><td align="left" valign="top">.04<sup><xref ref-type="table-fn" rid="table3fn3">c</xref></sup></td></tr><tr><td align="char" char="." valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Fifth</td><td align="left" valign="top">19.08</td><td align="left" valign="top">14.05</td><td align="left" valign="top">.14</td><td align="left" valign="top">17.29</td><td align="left" valign="top">15.18</td><td align="left" valign="top">.54</td></tr><tr><td align="left" valign="top">Frequency</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Maximum</td><td align="left" valign="top">15.54</td><td align="left" valign="top">16.29</td><td align="left" valign="top">.83</td><td align="left" valign="top">17.79</td><td align="left" valign="top">14.87</td><td align="left" valign="top">.39</td></tr><tr><td align="char" char="." valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Second</td><td align="left" valign="top">13.67</td><td align="left" valign="top">17.47</td><td align="left" valign="top">.27</td><td align="left" valign="top">13.12</td><td align="left" valign="top">17.82</td><td align="left" valign="top">.16</td></tr><tr><td align="char" char="." valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Third</td><td align="left" valign="top">19.42</td><td align="left" valign="top">13.84</td><td align="left" valign="top">.10</td><td align="left" valign="top">11.58</td><td align="left" valign="top">18.79</td><td align="left" valign="top">.03</td></tr><tr><td align="char" char="." valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Fourth</td><td align="left" valign="top">15.42</td><td align="left" valign="top">16.37</td><td align="left" valign="top">.80</td><td align="left" valign="top">12.54</td><td align="left" valign="top">18.18</td><td align="left" valign="top">.09</td></tr><tr><td align="char" char="." valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Fifth</td><td align="left" valign="top">14.67</td><td align="left" valign="top">16.84</td><td align="left" valign="top">.54</td><td align="left" valign="top">15.38</td><td align="left" valign="top">16.39</td><td align="left" valign="top">.77</td></tr></tbody></table><table-wrap-foot><fn id="table3fn1"><p><sup>a</sup>BP: bipolar disorder.</p></fn><fn id="table3fn2"><p><sup>b</sup>MDD: major depressive disorder.</p></fn><fn id="table3fn3"><p><sup>c</sup>Indicates <italic>P</italic> values &#x003C;.05.</p></fn></table-wrap-foot></table-wrap><p>To evaluate affective mood status, logistic regression was performed on the power spectra of LV and entropy over a month in BP and MDD groups (see <xref ref-type="table" rid="table4">Table 4</xref>). Exposure was the power of LV or entropy, and the outcome was with or without EMA mood. Without covariate adjustments, depressive status (OR 0.998, 95% CI 0.995&#x2010;0.999; <italic>P</italic>=.02), manic status (OR 0.992, 95% CI 0.986&#x2010;0.999; <italic>P</italic>=.03), and irritability (OR 0.996, 95% CI 0.992&#x2010;0.999; <italic>P</italic>=.02) were inversely associated with LV power. Manic (OR 0.249, 95% CI 0.079&#x2010;0.781; <italic>P</italic>=.02) and irritability (OR 0.364, 95% CI 0.162&#x2010;0.819; <italic>P</italic>=.02) statuses correlated with lower entropy power. After adjusting for age, gender, and employment status, significant differences were observed only in depressive status for LV power (OR 0.9976, 95% CI 0.9956&#x2010;0.9996; <italic>P</italic>=.02). After adjusting for age, gender, employment status, and antidepressant use, LV power remained significantly associated with depressive status (OR 0.998, 95% CI 0.995&#x2010;0.999; <italic>P</italic>=.02). This indicates that decreased movement intensity is a key marker of depressive status, with LV power outperforming entropy in differentiating mood states. Overall, the power spectrum of cyclic waves provides a valuable metric for representing human mobility patterns and differentiating mood disorders.</p><table-wrap id="t4" position="float"><label>Table 4.</label><caption><p>Distinguishing the affective state of participants with BP and MDD using Fourier power spectrum of location variance (LV) and entropy.</p></caption><table id="table4" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom"/><td align="left" valign="bottom" colspan="3">Model 1<sup><xref ref-type="table-fn" rid="table4fn1">a</xref></sup></td><td align="left" valign="bottom" colspan="3">Model 2<sup><xref ref-type="table-fn" rid="table4fn2">b</xref></sup></td><td align="left" valign="bottom" colspan="3">Model 3<sup><xref ref-type="table-fn" rid="table4fn3">c</xref></sup></td><td align="left" valign="bottom" colspan="3">Model 4<sup><xref ref-type="table-fn" rid="table4fn4">d</xref></sup></td></tr><tr><td align="left" valign="top"/><td align="left" valign="top">&#x03B2; coefficient</td><td align="left" valign="top"><italic>P</italic> value</td><td align="left" valign="top">OR<sup><xref ref-type="table-fn" rid="table4fn5">e</xref></sup> (95% CI)</td><td align="left" valign="top">&#x03B2; coefficient</td><td align="left" valign="top"><italic>P</italic> value</td><td align="left" valign="top">OR (95% CI)</td><td align="left" valign="top">&#x03B2; coefficient</td><td align="left" valign="top"><italic>P</italic> value</td><td align="left" valign="top">OR (95% CI)</td><td align="left" valign="top">&#x03B2; coefficient</td><td align="left" valign="top"><italic>P</italic> value</td><td align="left" valign="top">OR (95% CI)</td></tr></thead><tbody><tr><td align="left" valign="top">Fourier spectrum power of LV</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>With or without fatigue</td><td align="left" valign="top">0.001</td><td align="left" valign="top">.11</td><td align="char" char="." valign="top">1.001 (1.000-1.003)</td><td align="left" valign="top">0.001</td><td align="left" valign="top">.12</td><td align="left" valign="top">1.001 (1.000-1.003)</td><td align="left" valign="top">0.002</td><td align="char" char="." valign="top">.10</td><td align="char" char="." valign="top">1.002 (1.000-1.004)</td><td align="left" valign="top">0.002</td><td align="left" valign="top">.13</td><td align="char" char="." valign="top">1.002 (1.000-1.004)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>With or without depression</td><td align="left" valign="top">&#x2212;0.002</td><td align="left" valign="top">.02<sup><xref ref-type="table-fn" rid="table4fn6">f</xref></sup></td><td align="char" char="." valign="top">0.998 (0.996-1.000)</td><td align="left" valign="top">&#x2212;0.003</td><td align="left" valign="top">.01<sup><xref ref-type="table-fn" rid="table4fn6">f</xref></sup></td><td align="left" valign="top">0.997 (0.996-0.999)</td><td align="left" valign="top">&#x2212;0.002</td><td align="char" char="." valign="top">.02<sup><xref ref-type="table-fn" rid="table4fn6">f</xref></sup></td><td align="char" char="." valign="top">0.998 (0.996-1.000)</td><td align="left" valign="top">&#x2212;0.002</td><td align="left" valign="top">.02<sup><xref ref-type="table-fn" rid="table4fn6">f</xref></sup></td><td align="char" char="." valign="top">0.998 (0.996-1.000)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>With or without mania</td><td align="left" valign="top">&#x2212;0.008</td><td align="left" valign="top">.03<sup><xref ref-type="table-fn" rid="table4fn6">f</xref></sup></td><td align="char" char="." valign="top">0.992 (0.986-0.999)</td><td align="left" valign="top">&#x2212;0.003</td><td align="left" valign="top">.42</td><td align="left" valign="top">0.997 (0.989-1.005)</td><td align="left" valign="top">&#x2212;0.004</td><td align="char" char="." valign="top">.33</td><td align="char" char="." valign="top">0.996 (0.988-1.004)</td><td align="left" valign="top">&#x2212;0.005</td><td align="left" valign="top">.23</td><td align="char" char="." valign="top">0.995 (0.986-1.003)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>With or without irritability</td><td align="left" valign="top">&#x2212;0.004</td><td align="left" valign="top">.02<sup><xref ref-type="table-fn" rid="table4fn6">f</xref></sup></td><td align="char" char="." valign="top">0.996 (0.992-0.999)</td><td align="left" valign="top">&#x2212;0.001</td><td align="left" valign="top">.32</td><td align="left" valign="top">0.999 (0.996-1.001)</td><td align="left" valign="top">&#x2212;0.001</td><td align="char" char="." valign="top">.43</td><td align="char" char="." valign="top">0.999 (0.996-1.002)</td><td align="left" valign="top">&#x2212;0.001</td><td align="left" valign="top">.57</td><td align="char" char="." valign="top">0.999 (0.996-1.002)</td></tr><tr><td align="left" valign="top">Fourier spectrum power of entropy</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>With or without fatigue</td><td align="left" valign="top">&#x2212;0.210</td><td align="left" valign="top">.45</td><td align="char" char="." valign="top">0.811 (0.472-1.392)</td><td align="left" valign="top">0.012</td><td align="left" valign="top">.97</td><td align="left" valign="top">1.012 (0.567-1.807)</td><td align="left" valign="top">0.026</td><td align="char" char="." valign="top">.93</td><td align="char" char="." valign="top">1.026 (0.574-1.833)</td><td align="left" valign="top">0.285</td><td align="left" valign="top">.38</td><td align="char" char="." valign="top">1.330 (0.704-2.512)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>With or without depression</td><td align="left" valign="top">&#x2212;0.306</td><td align="left" valign="top">.26</td><td align="char" char="." valign="top">0.736 (0.431-1.259)</td><td align="left" valign="top">&#x2212;0.156</td><td align="left" valign="top">.58</td><td align="left" valign="top">0.855 (0.494-1.481)</td><td align="left" valign="top">&#x2212;0.121</td><td align="char" char="." valign="top">.66</td><td align="char" char="." valign="top">0.886 (0.512-1.532)</td><td align="left" valign="top">&#x2212;0.064</td><td align="left" valign="top">.82</td><td align="char" char="." valign="top">0.938 (0.541-1.626)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>With or without mania</td><td align="left" valign="top">&#x2212;1.390</td><td align="left" valign="top">.02<sup><xref ref-type="table-fn" rid="table4fn6">f</xref></sup></td><td align="char" char="." valign="top">0.249 (0.079-0.781)</td><td align="left" valign="top">&#x2212;1.123</td><td align="left" valign="top">.08</td><td align="left" valign="top">0.325 (0.092-1.147)</td><td align="left" valign="top">&#x2212;1.071</td><td align="char" char="." valign="top">.10</td><td align="char" char="." valign="top">0.343 (0.095-1.234)</td><td align="left" valign="top">&#x2212;0.696</td><td align="left" valign="top">.30</td><td align="char" char="." valign="top">0.499 (0.133-1.872)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>With or without irritability</td><td align="left" valign="top">&#x2212;1.009</td><td align="left" valign="top">.02<sup><xref ref-type="table-fn" rid="table4fn6">f</xref></sup></td><td align="char" char="." valign="top">0.364 (0.162-0.819)</td><td align="left" valign="top">&#x2212;0.775</td><td align="left" valign="top">.09</td><td align="left" valign="top">0.461 (0.189-1.122)</td><td align="left" valign="top">&#x2212;0.683</td><td align="char" char="." valign="top">.14</td><td align="char" char="." valign="top">0.505 (0.206-1.241)</td><td align="left" valign="top">&#x2212;0.218</td><td align="left" valign="top">.66</td><td align="char" char="." valign="top">0.804 (0.307-2.109)</td></tr></tbody></table><table-wrap-foot><fn id="table4fn1"><p><sup>a</sup>Model 1: no adjustment.</p></fn><fn id="table4fn2"><p><sup>b</sup>Model 2: adjusted for age and sex.</p></fn><fn id="table4fn3"><p><sup>c</sup>Model 3: adjusted for age, sex, and work.</p></fn><fn id="table4fn4"><p><sup>d</sup>Model 4: adjusted for age, sex, work, and antidepressants. Fatigue, depression, mania, and irritability status was defined as EMA score &#x003E;1. EMA score=1 means without the affective status.</p></fn><fn id="table4fn5"><p><sup>e</sup>OR: odds ratio.</p></fn><fn id="table4fn6"><p><sup>f</sup><italic>P</italic>&#x003C;.05.</p></fn></table-wrap-foot></table-wrap></sec></sec><sec id="s4" sec-type="discussion"><title>Discussion</title><sec id="s4-1"><title>Principal Findings</title><p>By leveraging frequency-domain analysis, it provides insights into the periodicity and intensity of mobility behaviors in mood disorders. Patients with BP exhibit stronger periodic mobility patterns than patients with MDD. In addition, entropy frequency data over a 1-month period effectively distinguished BP from MDD diagnoses, while the Fourier spectrum power of LV distinguished affective status. Mobility indicators, including LV, TT, and entropy, showed significant associations with depressed mood states. Lower LV and TT values were observed on weekdays, while reduced entropy occurred on weekends (see <xref ref-type="table" rid="table2">Table 2</xref>). Clinically, these patterns suggest that depression is associated with reduced mobility (lower LV and TT) and less variability in daily routines (diminished entropy), potentially reflecting decreased motivation and social engagement. Notably, the frequency-domain features of entropy and LV may hold diagnostic relevance: first, entropy frequency patterns could reflect mood instability specific to BP, distinguishing it from MDD. Second, LV spectral power might serve as a real-time indicator of current mood state severity. These digital behavioral signatures highlight the potential for passive monitoring tools to objectively track mood disorders and inform personalized interventions.</p><p>This study investigated the correlation between GPS mobility patterns and clinical symptoms, EMA-reported mood states, and diagnostic differences in patients with MDD and BP using Fourier transform analysis. Our findings align with previous studies, confirming that GPS mobility data can effectively detect depressive symptoms [<xref ref-type="bibr" rid="ref12">12</xref>,<xref ref-type="bibr" rid="ref35">35</xref>]. Movement data play a critical role in inferring mental health symptoms, with reduced mobility being associated with lower severity of depression [<xref ref-type="bibr" rid="ref5">5</xref>]. Mobility metrics such as LV, entropy, and TT showed negative correlations with BDI, PHQ-4, and HAMD scores, consistent with earlier research [<xref ref-type="bibr" rid="ref36">36</xref>]. In addition, reduced GPS mobility, including fewer clusters, correlated with higher PHQ-4 scores, reflecting diminished motivation [<xref ref-type="bibr" rid="ref10">10</xref>]. Similarly, entropy, TT, and NC were negatively associated with BAI scores, suggesting that participants with higher anxiety scores exhibited less regular daily activities, reduced movement, and increased social withdrawal [<xref ref-type="bibr" rid="ref8">8</xref>].</p><p>Our analysis showed that daily GPS data better captured correlations with clinical mood data than weekly or semi-annual aggregates. Aggregating over extended periods can obscure meaningful variations, such as those caused by seasonal changes or holidays, diluting the significance of extreme movements. Daily analyses allow for a clearer understanding of individual routines and mobility patterns.</p><p>This study also evaluated the effectiveness of common GPS features on weekdays and weekends in relation to EMA-reported depressive mood. Specifically, for monitoring short-term daily emotional fluctuations, indicators such as LV, TT, and entropy demonstrated heightened sensitivity, capturing even subtle changes. The relationship between these GPS features and EMA depressive mood varied between weekdays and weekends. On weekdays, smaller LV and TT values were significantly associated with higher EMA depressive scores, while on weekends, lower entropy values were linked to increased depressive mood. Features related to location, such as LV and entropy, consistently showed strong associations with depressive symptoms, corroborating findings from previous research [<xref ref-type="bibr" rid="ref2">2</xref>]. Participants with higher EMA depressive scores displayed fewer positional changes, lower overall GPS activity, and decreased entropy, indicating greater variability in location use [<xref ref-type="bibr" rid="ref6">6</xref>]. Typically, diagnostic methods fail to capture real-time mood fluctuations or stability, as emotional changes often stem from shifts in preceding and subsequent EMA assessments. Interestingly, while previous studies [<xref ref-type="bibr" rid="ref19">19</xref>] emphasized the importance of entropy and LV on weekends, our findings suggest that LV and TT are more relevant on weekdays. This distinction could be attributed to weekday mobility patterns being influenced by social roles, making LV and TT more reliable indicators during these periods. On the other hand, entropy, which reflects the diversity of time spent in location clusters, was more significant on weekends, likely due to the role of interpersonal relationships and social interactions shaping weekend mobility behaviors.</p><p>This study also introduced an innovative application of frequency domain analysis to differentiate GPS variations. Fourier-transformed data for LV and entropy revealed 2 key indicators: frequency magnitude and power spectrum size. While periodic waves alone did not effectively distinguish diagnoses, the power spectrum can serve as a reliable marker to distinguish BP from MDD. Patients with BP exhibited greater power spectra intensity and robustness in both LV and entropy compared to patients with MDD, reflecting more complex activity patterns. LV and entropy can represent both spatial variability and the temporal distribution at the same location, making them effective measures for distinguishing diagnoses. Previous studies support these findings, indicating that activity metrics such as entropy and regularity indices in patients with BP provide deeper insights into activity patterns. As digital activity markers, these metrics aid in distinguishing patients with BP from patients with MDD [<xref ref-type="bibr" rid="ref11">11</xref>]. Consistently, entropy emerged as a diagnostic marker, with depressed groups spending more time in single location clusters and visiting fewer varied locations [<xref ref-type="bibr" rid="ref37">37</xref>]. Using 3 different time spans for Fourier transformations&#x2014;1 month, 2 months, and a season&#x2014;our study revealed that a 1-month tracking period provided the strongest correlations, highlighting the efficacy of this time span for frequency-domain analysis. Collecting LV and entropy data over 1 month effectively distinguished emotional symptoms and diagnoses without requiring longer durations, such as a season or half-year. Furthermore, the absence of significant cyclic waves in distinguishing BP from MDD suggests that both clinical groups may benefit from monthly clinical visits as an optimal threshold. Short-time Fourier transform parameters proved to be the most robust and least noise-sensitive features for frequency-domain analysis [<xref ref-type="bibr" rid="ref38">38</xref>]. These findings underscore the potential of Fourier transformations as essential tools for future diagnostics, emotional state assessments, and treatment planning.</p><p>GPS data provide an objective measure of patients&#x2019; daily mobility patterns, reducing recall bias compared to traditional self-reports like questionnaires and interviews. This study is methodologically innovative, leveraging Fourier-transformed GPS mobility data to analyze temporal dynamics of movement patterns in mood disorders. We found that patients with MDD tend to exhibit a lower mobility power spectrum, while patients with BP show a broader power spectrum and more frequent movement patterns. Therefore, GPS data can serve as an early indicator of relapse risk, enabling clinical intervention when the system detects potential signs of recurrence.</p><p>This study has several limitations. First, observations from the same individual on different days resulted in unequal contributions across participants, leading to data weight bias. For example, the person-day analysis in <xref ref-type="table" rid="table2">Table 2</xref> did not account for repeated measurements, and logistic regression assumed independence between different days for the same participant. Previous study indicates that within-subject variability (day-to-day) constitutes a larger proportion of total variability than between-subject variability [<xref ref-type="bibr" rid="ref39">39</xref>]. Although the large number of days used across participants maintained consistent results, the relatively small sample size made repeated measurements riskier, as the number of repeated days exceeded the number of participants. Second, there is a potential selection bias in the recruitment of both patients and healthy controls. Healthy controls recruited near a hospital may not represent the general population, as they could have distinct socioeconomic backgrounds, greater health awareness, or more frequent medical visits. This may introduce selection bias, as such individuals might have a higher prevalence of chronic conditions or health care&#x2013;seeking behaviors. Consequently, findings may not generalize to mood disorder patients outside hospital settings or a truly random sample of healthy individuals. In addition, patients with MDD and BP were recruited not during the acute phase, and the majority (42/47, 89.4%) were receiving ongoing treatment, which may have resulted in fewer mood fluctuations, limiting the generalizability of the findings. After months of repeated prompts, participants may develop survey fatigue, leading to less accurate or habitual responses (eg, defaulting to neutral ratings). While EMA minimizes recall bias by design, prolonged studies risk fatigue-induced lapses, where participants resort to heuristic judgments (eg, averaging moods over hours) rather than real-time reporting. If participants with severe mood instability stop responding, the final sample may overrepresent stable individuals, biasing conclusions about mood trajectories. Compliance rates often drop in longitudinal studies due to participant burnout&#x2014;non-random drop-out introduces attrition bias. Third, movement estimates from smartphones can be influenced by several factors, including device status (eg, turned off, low battery, and turning on airplane mode), GPS or network usage habits, and international travel. These factors could introduce estimation biases. Fourth, GPS data collected from iPhones in this study was more extensive and covered broader ranges than data from Android devices. However, the type of phone may correlate with variables such as socioeconomic background, introducing potential confounding effects. Fifth, while wearable devices, such as the Apple Watch, are used for applications like heart rate monitoring in elderly populations, their use in psychiatry remains limited. Incorporating wearable devices in future research could provide complementary data and enhance the robustness of mobility-based analyses. Finally, residual confounding effects from differences in psychopharmacological treatment regimens (eg, mood stabilizers and antipsychotics) between patients with BP and MDD cannot be fully excluded, despite adjustment for antidepressant use in our models.</p></sec><sec id="s4-2"><title>Conclusion</title><p>By integrating frequency-domain analysis with traditional mobility metrics, this study enhances the precision of digital phenotyping, paving the way for more objective, data-driven assessments of mood disorders. Our study results highlight the potential of GPS mobility data as a valuable tool for diagnosing and monitoring mood disorders, particularly in distinguishing BP from MDD and assessing emotional fluctuations via EMA. On weekdays, LV and TT were effective indicators of depressive states, while entropy proved more relevant on weekends. Fourier transform analysis revealed that entropy frequency data over a 1-month span was especially effective in differentiating BP from MDD, with patients with BP exhibiting higher power spectrum intensity and complexity in mobility patterns than patients with MDD. LV provided additional insights into affective status. Compared to cyclical waves, the amplitude of LV and entropy frequencies better captured movement intensity, offering a more detailed understanding of mobility patterns. Daily GPS data proved superior in capturing mood-related variations, emphasizing the importance of selecting appropriate time spans to optimize diagnostic accuracy. Integrating GPS-based digital phenotyping with traditional assessments holds significant promise for advancing real-time mental health monitoring and improving the diagnostic process for BP and MDD.</p></sec></sec></body><back><ack><p>Part of this study was supported by the National Science and Technology Council (MOST 110-&#x2010;2314-B-002-&#x2010;067-MY3, MOST 110-&#x2010;2314-B-002-&#x2010;078-MY3, NSTC 113-2314-B-002-168-MY3, NSTC 113-&#x2010;2314-B-002-&#x2010;177-MY3), the Population Health Research Center from Featured Areas Research Center Program within the framework of the Higher Education Sprout Project by the Ministry of Education in Taiwan (grant NTU-112L9004), and the National Taiwan University Career Development Project (112L900402, 113L900402, and 114L900402) to Po-Hsiu Kuo and Chuhsing Kate Hsiao. We appreciate Dr Tsung-Yang Wang&#x2019;s participation in patient recruitment from National Taiwan University Hospital. We also thank Chiao-Erh Chang for the contribution in general administrative support and Po-Chang Hsiao for Beiwe data acquisition from the Institute of Epidemiology and Preventive Medicine, NTU. We used ChatGPT to refine English grammar, word choice, and fluency but not to write the manuscript. In addition, we used Napkin AI to generate part of a visual flowchart and SCIspace to search for relevant literature.</p></ack><notes><sec><title>Data Availability</title><p>The datasets generated and analyzed during this study are not publicly available due to the institutional review board restrictions on direct data sharing but are available from the corresponding author upon reasonable request.</p></sec></notes><fn-group><fn fn-type="con"><p>TYL wrote the first draft of the paper and conducted analysis and interpretation of the GPS and ecological momentary assessment data. CHC conducted the statistical programming code. CML, IMC, HCC, and SIW contributed to clinical data collection. CKH oversaw the statistical analyses and results interpretation. PHK conceptualized the study, provided project supervision, and interpreted the results. Both CKH and PHK critically reviewed the manuscript. All authors approved the final version.</p></fn><fn fn-type="conflict"><p>None declared.</p></fn></fn-group><glossary><title>Abbreviations</title><def-list><def-item><term id="abb1">BAI</term><def><p>Beck Anxiety Inventory</p></def></def-item><def-item><term id="abb2">BDI</term><def><p>Beck Depression Inventory</p></def></def-item><def-item><term id="abb3">BP</term><def><p>bipolar disorder</p></def></def-item><def-item><term id="abb4">EMA</term><def><p>ecological momentary assessment</p></def></def-item><def-item><term id="abb5">HAM-D</term><def><p>Hamilton Rating Scale for Depression</p></def></def-item><def-item><term id="abb6">HC</term><def><p>healthy control</p></def></def-item><def-item><term id="abb7">LV</term><def><p>location variance</p></def></def-item><def-item><term id="abb8">MDD</term><def><p>major depressive disorder</p></def></def-item><def-item><term id="abb9">NC</term><def><p>number of clusters</p></def></def-item><def-item><term id="abb10">PHQ-4</term><def><p>Patient Health Questionnaire-4</p></def></def-item><def-item><term id="abb11">SM</term><def><p>speed mean</p></def></def-item><def-item><term id="abb12">TT</term><def><p>transition time</p></def></def-item></def-list></glossary><ref-list><title>References</title><ref id="ref1"><label>1</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Pratap</surname><given-names>A</given-names> </name><name name-style="western"><surname>Atkins</surname><given-names>DC</given-names> </name><name name-style="western"><surname>Renn</surname><given-names>BN</given-names> </name><etal/></person-group><article-title>The accuracy of passive phone sensors in predicting daily mood</article-title><source>Depress Anxiety</source><year>2019</year><month>01</month><volume>36</volume><issue>1</issue><fpage>72</fpage><lpage>81</lpage><pub-id pub-id-type="doi">10.1002/da.22822</pub-id><pub-id pub-id-type="medline">30129691</pub-id></nlm-citation></ref><ref id="ref2"><label>2</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>De Angel</surname><given-names>V</given-names> </name><name name-style="western"><surname>Lewis</surname><given-names>S</given-names> </name><name name-style="western"><surname>White</surname><given-names>K</given-names> </name><etal/></person-group><article-title>Digital health tools for the passive monitoring of depression: a systematic review of methods</article-title><source>NPJ Digit Med</source><year>2022</year><month>01</month><day>11</day><volume>5</volume><issue>1</issue><fpage>3</fpage><pub-id pub-id-type="doi">10.1038/s41746-021-00548-8</pub-id><pub-id pub-id-type="medline">35017634</pub-id></nlm-citation></ref><ref id="ref3"><label>3</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Geyer</surname><given-names>K</given-names> </name><name name-style="western"><surname>Ellis</surname><given-names>DA</given-names> </name><name name-style="western"><surname>Piwek</surname><given-names>L</given-names> </name></person-group><article-title>A simple location-tracking app for psychological research</article-title><source>Behav Res Methods</source><year>2019</year><month>12</month><volume>51</volume><issue>6</issue><fpage>2840</fpage><lpage>2846</lpage><pub-id pub-id-type="doi">10.3758/s13428-018-1164-y</pub-id><pub-id pub-id-type="medline">30484217</pub-id></nlm-citation></ref><ref id="ref4"><label>4</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Si&#x0142;a-Nowicka</surname><given-names>K</given-names> </name><name name-style="western"><surname>Vandrol</surname><given-names>J</given-names> </name><name name-style="western"><surname>Oshan</surname><given-names>T</given-names> </name><name name-style="western"><surname>Long</surname><given-names>JA</given-names> </name><name name-style="western"><surname>Dem&#x0161;ar</surname><given-names>U</given-names> </name><name name-style="western"><surname>Fotheringham</surname><given-names>AS</given-names> </name></person-group><article-title>Analysis of human mobility patterns from GPS trajectories and contextual information</article-title><source>Int J Geogr Inf Sci</source><year>2016</year><month>05</month><day>3</day><volume>30</volume><issue>5</issue><fpage>881</fpage><lpage>906</lpage><pub-id pub-id-type="doi">10.1080/13658816.2015.1100731</pub-id></nlm-citation></ref><ref id="ref5"><label>5</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Renn</surname><given-names>BN</given-names> </name><name name-style="western"><surname>Pratap</surname><given-names>A</given-names> </name><name name-style="western"><surname>Atkins</surname><given-names>DC</given-names> </name><name name-style="western"><surname>Mooney</surname><given-names>SD</given-names> </name><name name-style="western"><surname>Are&#x00E1;n</surname><given-names>PA</given-names> </name></person-group><article-title>Smartphone-based passive assessment of mobility in depression: challenges and opportunities</article-title><source>Ment Health Phys Act</source><year>2018</year><month>03</month><volume>14</volume><fpage>136</fpage><lpage>139</lpage><pub-id pub-id-type="doi">10.1016/j.mhpa.2018.04.003</pub-id><pub-id pub-id-type="medline">30123324</pub-id></nlm-citation></ref><ref id="ref6"><label>6</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>M&#x00FC;ller</surname><given-names>SR</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>XL</given-names> </name><name name-style="western"><surname>Peters</surname><given-names>H</given-names> </name><name name-style="western"><surname>Chaintreau</surname><given-names>A</given-names> </name><name name-style="western"><surname>Matz</surname><given-names>SC</given-names> </name></person-group><article-title>Depression predictions from GPS-based mobility do not generalize well to large demographically heterogeneous samples</article-title><source>Sci Rep</source><year>2021</year><month>07</month><day>7</day><volume>11</volume><issue>1</issue><fpage>14007</fpage><pub-id pub-id-type="doi">10.1038/s41598-021-93087-x</pub-id><pub-id pub-id-type="medline">34234186</pub-id></nlm-citation></ref><ref id="ref7"><label>7</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Shin</surname><given-names>J</given-names> </name><name name-style="western"><surname>Bae</surname><given-names>SM</given-names> </name></person-group><article-title>A systematic review of location data for depression prediction</article-title><source>Int J Environ Res Public Health</source><year>2023</year><month>05</month><day>29</day><volume>20</volume><issue>11</issue><fpage>5984</fpage><pub-id pub-id-type="doi">10.3390/ijerph20115984</pub-id><pub-id pub-id-type="medline">37297588</pub-id></nlm-citation></ref><ref id="ref8"><label>8</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Faurholt-Jepsen</surname><given-names>M</given-names> </name><name name-style="western"><surname>Busk</surname><given-names>J</given-names> </name><name name-style="western"><surname>&#x00DE;&#x00F3;rarinsd&#x00F3;ttir</surname><given-names>H</given-names> </name><etal/></person-group><article-title>Objective smartphone data as a potential diagnostic marker of bipolar disorder</article-title><source>Aust N Z J Psychiatry</source><year>2019</year><month>02</month><volume>53</volume><issue>2</issue><fpage>119</fpage><lpage>128</lpage><pub-id pub-id-type="doi">10.1177/0004867418808900</pub-id><pub-id pub-id-type="medline">30387368</pub-id></nlm-citation></ref><ref id="ref9"><label>9</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Laiou</surname><given-names>P</given-names> </name><name name-style="western"><surname>Kaliukhovich</surname><given-names>DA</given-names> </name><name name-style="western"><surname>Folarin</surname><given-names>AA</given-names> </name><etal/></person-group><article-title>The association between home stay and symptom severity in major depressive disorder: preliminary findings from a multicenter observational study using geolocation data from smartphones</article-title><source>JMIR Mhealth Uhealth</source><year>2022</year><volume>10</volume><issue>1</issue><fpage>e28095</fpage><pub-id pub-id-type="doi">10.2196/28095</pub-id></nlm-citation></ref><ref id="ref10"><label>10</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Depp</surname><given-names>CA</given-names> </name><name name-style="western"><surname>Bashem</surname><given-names>J</given-names> </name><name name-style="western"><surname>Moore</surname><given-names>RC</given-names> </name><etal/></person-group><article-title>GPS mobility as a digital biomarker of negative symptoms in schizophrenia: a case control study</article-title><source>NPJ Digit Med</source><year>2019</year><volume>2</volume><issue>1</issue><fpage>108</fpage><pub-id pub-id-type="doi">10.1038/s41746-019-0182-1</pub-id><pub-id pub-id-type="medline">31728415</pub-id></nlm-citation></ref><ref id="ref11"><label>11</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Faurholt-Jepsen</surname><given-names>M</given-names> </name><name name-style="western"><surname>Busk</surname><given-names>J</given-names> </name><name name-style="western"><surname>Vinberg</surname><given-names>M</given-names> </name><etal/></person-group><article-title>Daily mobility patterns in patients with bipolar disorder and healthy individuals</article-title><source>J Affect Disord</source><year>2021</year><month>01</month><day>1</day><volume>278</volume><fpage>413</fpage><lpage>422</lpage><pub-id pub-id-type="doi">10.1016/j.jad.2020.09.087</pub-id><pub-id pub-id-type="medline">33010566</pub-id></nlm-citation></ref><ref id="ref12"><label>12</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Meyerhoff</surname><given-names>J</given-names> </name><name name-style="western"><surname>Liu</surname><given-names>T</given-names> </name><name name-style="western"><surname>Kording</surname><given-names>KP</given-names> </name><etal/></person-group><article-title>Evaluation of changes in depression, anxiety, and social anxiety using smartphone sensor features: longitudinal cohort study</article-title><source>J Med Internet Res</source><year>2021</year><month>09</month><day>3</day><volume>23</volume><issue>9</issue><fpage>e22844</fpage><pub-id pub-id-type="doi">10.2196/22844</pub-id><pub-id pub-id-type="medline">34477562</pub-id></nlm-citation></ref><ref id="ref13"><label>13</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Chung</surname><given-names>WY</given-names> </name><name name-style="western"><surname>Purwar</surname><given-names>A</given-names> </name><name name-style="western"><surname>Sharma</surname><given-names>A</given-names> </name></person-group><article-title>Frequency domain approach for activity classification using accelerometer</article-title><conf-name>Proceedings of the 2008 30th Annual International Conference of the IEEE Engineering in Medicine and Biology Society</conf-name><conf-date>Aug 20-25, 2008</conf-date><conf-loc>Vancouver, BC, Canada</conf-loc><pub-id pub-id-type="doi">10.1109/IEMBS.2008.4649357</pub-id></nlm-citation></ref><ref id="ref14"><label>14</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Preece</surname><given-names>SJ</given-names> </name><name name-style="western"><surname>Goulermas</surname><given-names>JY</given-names> </name><name name-style="western"><surname>Kenney</surname><given-names>LPJ</given-names> </name><name name-style="western"><surname>Howard</surname><given-names>D</given-names> </name></person-group><article-title>A comparison of feature extraction methods for the classification of dynamic activities from accelerometer data</article-title><source>IEEE Trans Biomed Eng</source><year>2009</year><month>03</month><volume>56</volume><issue>3</issue><fpage>871</fpage><lpage>879</lpage><pub-id pub-id-type="doi">10.1109/TBME.2008.2006190</pub-id><pub-id pub-id-type="medline">19272902</pub-id></nlm-citation></ref><ref id="ref15"><label>15</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Dey</surname><given-names>A</given-names> </name><name name-style="western"><surname>Rajan</surname><given-names>S</given-names> </name><name name-style="western"><surname>Xiao</surname><given-names>GG</given-names> </name><name name-style="western"><surname>Lu</surname><given-names>J</given-names> </name></person-group><article-title>Synchro-squeezed time-frequency representations for radar-based human activity recognition</article-title><conf-name>Proceedings of the 2024 International Symposium on Sensing and Instrumentation in 5G and IoT Era (ISSI)</conf-name><conf-date>Aug 29-30, 2024</conf-date><conf-loc>Lagoa, Portugal</conf-loc><pub-id pub-id-type="doi">10.1109/ISSI63632.2024.10720509</pub-id></nlm-citation></ref><ref id="ref16"><label>16</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Huynh</surname><given-names>QT</given-names> </name><name name-style="western"><surname>Tran</surname><given-names>BQ</given-names> </name></person-group><article-title>Time-frequency analysis of daily activities for fall detection</article-title><source>Signals</source><year>2021</year><volume>2</volume><issue>1</issue><fpage>1</fpage><lpage>12</lpage><pub-id pub-id-type="doi">10.3390/signals2010001</pub-id></nlm-citation></ref><ref id="ref17"><label>17</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Khtun</surname><given-names>A</given-names> </name><name name-style="western"><surname>Hossain</surname><given-names>SGS</given-names> </name></person-group><article-title>A fourier domain feature approach for human activity recognition &#x0026; fall detection</article-title><conf-name>Proceedings of the 2023 10th International Conference on Signal Processing and Integrated Networks (SPIN)</conf-name><conf-date>Mar 23-24, 2023</conf-date><conf-loc>Noida, India</conf-loc><pub-id pub-id-type="doi">10.1109/SPIN57001.2023.10116360</pub-id></nlm-citation></ref><ref id="ref18"><label>18</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Czyz</surname><given-names>EK</given-names> </name><name name-style="western"><surname>King</surname><given-names>CA</given-names> </name><name name-style="western"><surname>Al-Dajani</surname><given-names>N</given-names> </name><name name-style="western"><surname>Zimmermann</surname><given-names>L</given-names> </name><name name-style="western"><surname>Hong</surname><given-names>V</given-names> </name><name name-style="western"><surname>Nahum-Shani</surname><given-names>I</given-names> </name></person-group><article-title>Ecological momentary assessments and passive sensing in the prediction of short-term suicidal ideation in young adults</article-title><source>JAMA Netw Open</source><year>2023</year><month>08</month><day>1</day><volume>6</volume><issue>8</issue><fpage>e2328005</fpage><pub-id pub-id-type="doi">10.1001/jamanetworkopen.2023.28005</pub-id><pub-id pub-id-type="medline">37552477</pub-id></nlm-citation></ref><ref id="ref19"><label>19</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Saeb</surname><given-names>S</given-names> </name><name name-style="western"><surname>Lattie</surname><given-names>EG</given-names> </name><name name-style="western"><surname>Schueller</surname><given-names>SM</given-names> </name><name name-style="western"><surname>Kording</surname><given-names>KP</given-names> </name><name name-style="western"><surname>Mohr</surname><given-names>DC</given-names> </name></person-group><article-title>The relationship between mobile phone location sensor data and depressive symptom severity</article-title><source>PeerJ</source><year>2016</year><volume>4</volume><fpage>e2537</fpage><pub-id pub-id-type="doi">10.7717/peerj.2537</pub-id><pub-id pub-id-type="medline">28344895</pub-id></nlm-citation></ref><ref id="ref20"><label>20</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Huang</surname><given-names>S</given-names> </name><name name-style="western"><surname>Lin</surname><given-names>W</given-names> </name><name name-style="western"><surname>Ko</surname><given-names>H</given-names> </name><etal/></person-group><article-title>Possible interaction of alcohol dehydrogenase and aldehyde dehydrogenase genes with the dopamine D2 receptor gene in anxiety&#x2010;depressive alcohol dependence</article-title><source>Alcoholism Clin &#x0026; Exp Res</source><year>2004</year><month>03</month><volume>28</volume><issue>3</issue><fpage>374</fpage><lpage>384</lpage><pub-id pub-id-type="doi">10.1097/01.ALC.0000117832.62901.61</pub-id></nlm-citation></ref><ref id="ref21"><label>21</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Hsieh</surname><given-names>CY</given-names> </name><name name-style="western"><surname>Su</surname><given-names>CC</given-names> </name><name name-style="western"><surname>Shao</surname><given-names>SC</given-names> </name><etal/></person-group><article-title>Taiwan&#x2019;s National Health Insurance Research Database: past and future</article-title><source>Clin Epidemiol</source><year>2019</year><volume>11</volume><fpage>349</fpage><lpage>358</lpage><pub-id pub-id-type="doi">10.2147/CLEP.S196293</pub-id><pub-id pub-id-type="medline">31118821</pub-id></nlm-citation></ref><ref id="ref22"><label>22</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Zimmerman</surname><given-names>M</given-names> </name><name name-style="western"><surname>Martinez</surname><given-names>JH</given-names> </name><name name-style="western"><surname>Young</surname><given-names>D</given-names> </name><name name-style="western"><surname>Chelminski</surname><given-names>I</given-names> </name><name name-style="western"><surname>Dalrymple</surname><given-names>K</given-names> </name></person-group><article-title>Severity classification on the Hamilton Depression Rating Scale</article-title><source>J Affect Disord</source><year>2013</year><month>09</month><day>5</day><volume>150</volume><issue>2</issue><fpage>384</fpage><lpage>388</lpage><pub-id pub-id-type="doi">10.1016/j.jad.2013.04.028</pub-id><pub-id pub-id-type="medline">23759278</pub-id></nlm-citation></ref><ref id="ref23"><label>23</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Lee</surname><given-names>YC</given-names> </name><name name-style="western"><surname>Chao</surname><given-names>YL</given-names> </name><name name-style="western"><surname>Chang</surname><given-names>CE</given-names> </name><etal/></person-group><article-title>Transcriptome changes in relation to manic episode</article-title><source>Front Psychiatry</source><year>2019</year><volume>10</volume><fpage>280</fpage><pub-id pub-id-type="doi">10.3389/fpsyt.2019.00280</pub-id><pub-id pub-id-type="medline">31118907</pub-id></nlm-citation></ref><ref id="ref24"><label>24</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Torous</surname><given-names>J</given-names> </name><name name-style="western"><surname>Kiang</surname><given-names>MV</given-names> </name><name name-style="western"><surname>Lorme</surname><given-names>J</given-names> </name><name name-style="western"><surname>Onnela</surname><given-names>JP</given-names> </name></person-group><article-title>New tools for new research in psychiatry: a scalable and customizable platform to empower data driven smartphone research</article-title><source>JMIR Ment Health</source><year>2016</year><month>05</month><day>5</day><volume>3</volume><issue>2</issue><fpage>e16</fpage><pub-id pub-id-type="doi">10.2196/mental.5165</pub-id><pub-id pub-id-type="medline">27150677</pub-id></nlm-citation></ref><ref id="ref25"><label>25</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Saeb</surname><given-names>S</given-names> </name><name name-style="western"><surname>Zhang</surname><given-names>M</given-names> </name><name name-style="western"><surname>Karr</surname><given-names>CJ</given-names> </name><etal/></person-group><article-title>Mobile phone sensor correlates of depressive symptom severity in daily-life behavior: an exploratory study</article-title><source>J Med Internet Res</source><year>2015</year><month>07</month><day>15</day><volume>17</volume><issue>7</issue><fpage>e175</fpage><pub-id pub-id-type="doi">10.2196/jmir.4273</pub-id><pub-id pub-id-type="medline">26180009</pub-id></nlm-citation></ref><ref id="ref26"><label>26</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Barnett</surname><given-names>I</given-names> </name><name name-style="western"><surname>Onnela</surname><given-names>JP</given-names> </name></person-group><article-title>Inferring mobility measures from GPS traces with missing data</article-title><source>Biostatistics</source><year>2020</year><month>04</month><day>1</day><volume>21</volume><issue>2</issue><fpage>e98</fpage><lpage>e112</lpage><pub-id pub-id-type="doi">10.1093/biostatistics/kxy059</pub-id><pub-id pub-id-type="medline">30371736</pub-id></nlm-citation></ref><ref id="ref27"><label>27</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Torous</surname><given-names>J</given-names> </name><name name-style="western"><surname>Staples</surname><given-names>P</given-names> </name><name name-style="western"><surname>Barnett</surname><given-names>I</given-names> </name><name name-style="western"><surname>Sandoval</surname><given-names>LR</given-names> </name><name name-style="western"><surname>Keshavan</surname><given-names>M</given-names> </name><name name-style="western"><surname>Onnela</surname><given-names>JP</given-names> </name></person-group><article-title>Characterizing the clinical relevance of digital phenotyping data quality with applications to a cohort with schizophrenia</article-title><source>NPJ Digit Med</source><year>2018</year><volume>1</volume><issue>1</issue><fpage>15</fpage><pub-id pub-id-type="doi">10.1038/s41746-018-0022-8</pub-id><pub-id pub-id-type="medline">31304300</pub-id></nlm-citation></ref><ref id="ref28"><label>28</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Hamilton</surname><given-names>M</given-names> </name></person-group><article-title>A rating scale for depression</article-title><source>J Neurol Neurosurg Psychiatry</source><year>1960</year><month>02</month><volume>23</volume><issue>1</issue><fpage>56</fpage><lpage>62</lpage><pub-id pub-id-type="doi">10.1136/jnnp.23.1.56</pub-id><pub-id pub-id-type="medline">14399272</pub-id></nlm-citation></ref><ref id="ref29"><label>29</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Young</surname><given-names>RC</given-names> </name><name name-style="western"><surname>Biggs</surname><given-names>JT</given-names> </name><name name-style="western"><surname>Ziegler</surname><given-names>VE</given-names> </name><name name-style="western"><surname>Meyer</surname><given-names>DA</given-names> </name></person-group><article-title>A rating scale for mania: reliability, validity and sensitivity</article-title><source>Br J Psychiatry</source><year>1978</year><month>11</month><volume>133</volume><issue>5</issue><fpage>429</fpage><lpage>435</lpage><pub-id pub-id-type="doi">10.1192/bjp.133.5.429</pub-id><pub-id pub-id-type="medline">728692</pub-id></nlm-citation></ref><ref id="ref30"><label>30</label><nlm-citation citation-type="book"><person-group person-group-type="author"><name name-style="western"><surname>Beck</surname><given-names>AT</given-names> </name><name name-style="western"><surname>Steer</surname><given-names>RA</given-names> </name><name name-style="western"><surname>G.K. Brown</surname><given-names>BI</given-names> </name></person-group><source>Beck Depression Inventory</source><year>1996</year><publisher-name>Pearson</publisher-name></nlm-citation></ref><ref id="ref31"><label>31</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Beck</surname><given-names>AT</given-names> </name><name name-style="western"><surname>Epstein</surname><given-names>N</given-names> </name><name name-style="western"><surname>Brown</surname><given-names>G</given-names> </name><name name-style="western"><surname>Steer</surname><given-names>RA</given-names> </name></person-group><article-title>An inventory for measuring clinical anxiety: psychometric properties</article-title><source>J Consult Clin Psychol</source><year>1988</year><month>12</month><volume>56</volume><issue>6</issue><fpage>893</fpage><lpage>897</lpage><pub-id pub-id-type="doi">10.1037//0022-006x.56.6.893</pub-id><pub-id pub-id-type="medline">3204199</pub-id></nlm-citation></ref><ref id="ref32"><label>32</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Kroenke</surname><given-names>K</given-names> </name><name name-style="western"><surname>Spitzer</surname><given-names>RL</given-names> </name><name name-style="western"><surname>Williams</surname><given-names>JBW</given-names> </name><name name-style="western"><surname>L&#x00F6;we</surname><given-names>B</given-names> </name></person-group><article-title>An ultra-brief screening scale for anxiety and depression: the PHQ-4</article-title><source>Psychosomatics</source><year>2009</year><volume>50</volume><issue>6</issue><fpage>613</fpage><lpage>621</lpage><pub-id pub-id-type="doi">10.1176/appi.psy.50.6.613</pub-id><pub-id pub-id-type="medline">19996233</pub-id></nlm-citation></ref><ref id="ref33"><label>33</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Scott</surname><given-names>J</given-names> </name><name name-style="western"><surname>Hidalgo-Mazzei</surname><given-names>D</given-names> </name><name name-style="western"><surname>Strawbridge</surname><given-names>R</given-names> </name><etal/></person-group><article-title>Prospective cohort study of early biosignatures of response to lithium in bipolar-I-disorders: overview of the H2020-funded R-LiNK initiative</article-title><source>Int J Bipolar Disord</source><year>2019</year><month>09</month><day>25</day><volume>7</volume><issue>1</issue><fpage>20</fpage><pub-id pub-id-type="doi">10.1186/s40345-019-0156-x</pub-id><pub-id pub-id-type="medline">31552554</pub-id></nlm-citation></ref><ref id="ref34"><label>34</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Lee</surname><given-names>TY</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>CH</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>IM</given-names> </name><etal/></person-group><article-title>Dynamic bidirectional associations between global positioning system mobility and ecological momentary assessment of mood symptoms in mood disorders: prospective cohort study</article-title><source>J Med Internet Res</source><year>2024</year><month>12</month><day>6</day><volume>26</volume><fpage>e55635</fpage><pub-id pub-id-type="doi">10.2196/55635</pub-id><pub-id pub-id-type="medline">39642364</pub-id></nlm-citation></ref><ref id="ref35"><label>35</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Palmius</surname><given-names>N</given-names> </name><name name-style="western"><surname>Tsanas</surname><given-names>A</given-names> </name><name name-style="western"><surname>Saunders</surname><given-names>KEA</given-names> </name><etal/></person-group><article-title>Detecting bipolar depression from geographic location data</article-title><source>IEEE Trans Biomed Eng</source><year>2017</year><month>08</month><volume>64</volume><issue>8</issue><fpage>1761</fpage><lpage>1771</lpage><pub-id pub-id-type="doi">10.1109/TBME.2016.2611862</pub-id><pub-id pub-id-type="medline">28113247</pub-id></nlm-citation></ref><ref id="ref36"><label>36</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Farhan</surname><given-names>AA</given-names> </name><name name-style="western"><surname>Yue</surname><given-names>C</given-names> </name><name name-style="western"><surname>Morillo</surname><given-names>R</given-names> </name><etal/></person-group><article-title>Behavior vs. introspection: refining prediction of clinical depression via smartphone sensing data</article-title><conf-name>2016 IEEE Wireless Health (WH)</conf-name><conf-date>Oct 25-27, 2016</conf-date><conf-loc>Bethesda, MD</conf-loc><pub-id pub-id-type="doi">10.1109/WH.2016.7764553</pub-id></nlm-citation></ref><ref id="ref37"><label>37</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Opoku Asare</surname><given-names>K</given-names> </name><name name-style="western"><surname>Moshe</surname><given-names>I</given-names> </name><name name-style="western"><surname>Terhorst</surname><given-names>Y</given-names> </name><etal/></person-group><article-title>Mood ratings and digital biomarkers from smartphone and wearable data differentiates and predicts depression status: a longitudinal data analysis</article-title><source>Pervasive Mob Comput</source><year>2022</year><month>07</month><volume>83</volume><fpage>101621</fpage><pub-id pub-id-type="doi">10.1016/j.pmcj.2022.101621</pub-id></nlm-citation></ref><ref id="ref38"><label>38</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Dargie</surname><given-names>W</given-names> </name></person-group><article-title>Analysis of time and frequency domain features of accelerometer measurements</article-title><conf-name>2009 Proceedings of 18th International Conference on Computer Communications and Networks - ICCCN</conf-name><conf-date>Aug 3-6, 2009</conf-date><conf-loc>San Francisco, CA, USA</conf-loc><pub-id pub-id-type="doi">10.1109/ICCCN.2009.5235366</pub-id></nlm-citation></ref><ref id="ref39"><label>39</label><nlm-citation citation-type="thesis"><person-group person-group-type="author"><name name-style="western"><surname>Lai</surname><given-names>PJ</given-names> </name></person-group><article-title>The application of two-level functional principal component analysis in physical activity studies</article-title><year>2023</year><publisher-name>Institute of Epidemiology and Preventive Medicine College of Public Health, National Taiwan University</publisher-name></nlm-citation></ref></ref-list><app-group><supplementary-material id="app1"><label>Multimedia Appendix 1</label><p>Supplementary tables and figures.</p><media xlink:href="jmir_v27i1e71658_app1.docx" xlink:title="DOCX File, 1718 KB"/></supplementary-material></app-group></back></article>