← Back to project

Research logbook

Continual Learning with Elastic Weight Consolidation for House-Tree-Person (HTP) Test Frameworks

Yale University · May 6 – Sep 5, 2025

Materials: GPU, computer, data

Day 1 Tue 5/6/25

  • Collected background data on youth mental health from last year’s research logbook and online sources
  • Global picture
    • One in seven 10–19-year-olds experiences a mental disorder, accounting for 13% of the global burden of disease in this age group
    • Depression, anxiety and behavioural disorders are among the leading causes of illness and disability among adolescents
    • Suicide is the fourth leading cause of death among 15–29-year-olds
  • United States
    • About 1 in 5 adolescents report symptoms of anxiety or depression (KFF analysis of a federal survey of teen health); many say they don’t get therapy because of cost, stigma, or not knowing how to get help
    • In 2021, 20% of 12–17-year-olds had at least one major depressive episode (MDE); prevalence among females (29%) was more than twice that of males (12%), and nearly 60% received no treatment
    • Teens who recently experienced depression rose 59% between 2007 and 2017 (66% for girls, 44% for boys)
    • Seven in ten U.S. teens call anxiety and depression a major problem among people their age (Pew Research Center, 2018)
    • NIMH: 17% of 12–17-year-olds had a major depressive episode in 2020 (4.1 million teens); 12% had at least one episode with severe impairment
    • CDC (2021): 42% of students felt persistently sad or hopeless, 29% experienced poor mental health, 22% considered suicide and 10% attempted suicide
    • Adolescent depression rose from 8.1% in 2009 to 15.8% in 2019
    • MDD is the leading cause of disability in the U.S. for ages 15–44, affects about 8.4% of adults, and almost half of adults with MDD are untreated
  • South Korea
    • Of about 50,000 middle and high school students surveyed in 2022, 14.3% had thought about suicide in the past 12 months (Korea Disease Control and Prevention Agency)

Key takeaway. Today, 1 in 6 children ages 6–17 experiences a mental health disorder each year, a 35% increase since 2016. Yet over 80% of these children never receive care from a mental health provider, and only about one-third of children with mental health challenges are identified in primary care settings.

Doctors alone cannot catch most cases. If clinics cannot do it alone, schools must play a larger role: not as diagnostic centers, but as early-warning systems.

Day 2 Mon 5/12/25

  • Researched HTP logic: what each drawing and feature is thought to reflect
  • Each drawing maps to a domain
    • House → home life, family dynamics, sense of safety
    • Tree → sense of self, emotional stability, growth
    • Person → self-image, identity, interpersonal relationships

House

  • Overall size
    • Very small → insecurity, withdrawal
    • Very large → need for attention, compensation
  • Door
    • Large/open → openness, accessibility
    • Very small or no door → guardedness, isolation
  • Windows
    • Many/open → social openness
    • No windows → emotional withdrawal
  • Chimney / smoke
    • Smoke present → warmth, family interaction
    • Excessive or chaotic smoke → emotional tension
  • Walls
    • Heavy/dark lines → defensiveness
    • Weak/fragmented → fragile boundaries
  • Ground line
    • Floating house → instability
    • Firm grounding → stability

Tree

  • Trunk
    • Thick → strength, ego stability
    • Thin → vulnerability
    • Broken → trauma indicators
  • Roots
    • Visible roots → need for security
    • No roots → possible instability
  • Crown
    • Large/full → imagination, emotional richness
    • Very small → limited expression
  • Branches
    • Upward → optimism
    • Downward → sadness, fatigue
    • Broken → emotional distress
  • Fruit
    • Often linked to productivity or a need for validation

Person

  • Overall size
    • Very small → low self-esteem
    • Very large → dominance, compensation
  • Head
    • Very large → intellectual focus
    • Very small → feelings of inadequacy
  • Eyes
    • Large/detailed → hypervigilance
    • Omitted → avoidance
  • Arms
    • Open arms → social engagement
    • No arms → helplessness
    • Very long → need for control
  • Legs
    • Strong/stable → confidence
    • Weak/missing → insecurity
  • Facial expression
    • Smiling → social conformity
    • No face → emotional suppression
  • Structural patterns clinicians may examine
    • Proportions (e.g., head-to-body ratio)
    • Symmetry
    • Line pressure
    • Feature omission
    • Feature exaggeration
    • Spatial placement
    • Relative size comparisons
  • Takeaway: most of these cues are about which parts are present, how big they are and where they sit. That is exactly what an object detector measures, so detection is a natural first step toward automated HTP analysis

Day 3 Tue 5/27/25

  • Studied Elastic Weight Consolidation (EWC)
  • The problem it solves: catastrophic forgetting
    • When a neural network is trained on a new task, the weights that mattered for the old task get overwritten, so performance on the old task collapses
    • This matters for HTP drawings: a model that first learns big objects (house, tree, person) could forget them while learning small parts (windows, fruit, eyes)
  • The idea
    • After training on an earlier task, record the parameter values θC and how important each parameter is to that task
    • While training on the next task, add a penalty that pulls important parameters back toward θC; unimportant parameters stay free to change
    • Introduced by Kirkpatrick et al. (2017) for continual learning

Day 4 Sat 5/31/25

  • Continued studying EWC
  • Notes on applying it to object detection
    • Treat coarse detection (whole house / tree / person) as the earlier task and fine-grained parts as the later task
    • The regularization strength (β) trades off remembering the coarse task against learning the new one: too small and the model forgets, too large and it can’t adapt
    • Related reading (cited on the poster): Kutalev & Lapina (2021), “Stabilizing Elastic Weight Consolidation method in practical ML tasks”

Day 5 Mon 6/2/25

  • Began implementing the CNN detection model
  • Architecture (final version shown on Day 12)
    • DarkNet-based convolutional feature extractor
    • Regression head that predicts bounding boxes on a grid over the image, YOLO-style
    • Output: a box and class label for every detected house, tree, person and part

Day 6 Sun 6/8/25

  • Wrote down why an HTP-based system is specifically needed
  • Multi-dimensional psychological insight (cognitive + emotional + environmental)
    • The HTP test gives structured access to three core domains: House (family relationships and emotional security), Tree (vitality, physical self-image, inner strength) and Person (self-concept, social roles, personal identity)
    • By contrast, the “Person in the Rain” test focuses mainly on coping and vulnerability, a narrower window into psychological functioning
  • Well-validated interpretive framework
    • Decades of psychological research support HTP’s symbolic interpretations (e.g., missing limbs may suggest trauma, enclosed houses may suggest anxiety, rooted trees may reflect stability)
    • This lets the AI model be mapped to known psychological indicators, giving it stronger theoretical grounding than more abstract drawings like rain scenes
  • AI compatibility with discrete visual features
    • HTP figures have well-defined, object-like parts (windows, branches, hands) that suit object-recognition models such as YOLO
    • The system can quantify these cues, which is hard to do with more interpretive or dreamlike drawings
  • Cross-age applicability
    • Used with children, adolescents and adults, so the system is more age-flexible than verbal interviews or writing-based diagnostics
    • Requires no advanced verbal skills, so it suits language-minimal populations, including children with ASD, trauma or selective mutism
  • Lower bias and more cultural neutrality
    • Open verbal interviews can be affected by language fluency, cultural norms or clinician bias; an AI-HTP tool can standardize interpretation with a consistent visual-symbolic framework
  • Supports longitudinal monitoring
    • Drawings collected at multiple time points can track emotional changes over time, which is rarely feasible with situational tests like “Person in the Rain”

Day 7 Thu 6/12/25

  • Gathered background knowledge on available HTP drawing datasets
  • Needed: a large, labeled set of children’s drawings with bounding boxes for both whole objects and their parts

Day 8 Tue 6/17/25

  • Chose the dataset: the publicly available AI-Hub Child Psychological Drawing Image Dataset from the Korean government’s AI-Hub platform (AweHub 2025)
  • 56,000 drawings from children ages 7–13 with varied backgrounds in South Korea, collected and labeled specifically for training and evaluation
  • Annotations
    • Bounding boxes around meaningful visual components
    • Coarse-grained classes: house, tree, person
    • Fine-grained classes, e.g., trunk, fruit, crown for trees; window, smoke, door for houses
  • The dataset contains only legally compliant image data for object recognition (non-medical); it excludes any medical data involving psychological interpretation

Day 9 Fri 6/20/25

  • Identified three challenges for detecting objects in HTP drawings
    • Grayscale input: pencil sketches have no color, so the model must rely on edges, shape and texture
    • High domain variance: drawings vary widely with age, motor skill, culture and emotional expression, which makes them visually inconsistent
    • Fine-grained parts: windows, doors and smoke trails are often abstract, small and incomplete, so they are hard to localize and classify

Day 10 Fri 6/27/25

  • Plan to address these challenges
    • (1) Curriculum learning: organize training from simple to complex tasks
    • (2) Continual learning with EWC, so earlier skills aren’t forgotten
    • (3) Evaluate empirically to show gradual knowledge accumulation without forgetting
  • Curriculum stages (see Day 12 diagram)
    • Stage 1: big objects (easy samples)
    • Stage 2: middle-size objects
    • Stage 3: small objects (complex samples)
    • Parameters are updated stage by stage, with EWC protecting what was learned before

Day 11 Sat 6/28/25

  • Surveyed previous research approaches
  • Key references (from the poster)
    • Blain et al. (1981): an objectively scorable House-Tree-Person, an early attempt to make HTP scoring less subjective
    • Ouaknine (2018): review of deep learning algorithms for object detection
    • Thuan (2021): evolution of the YOLO family of detectors, up to YOLOv5
    • Kutalev & Lapina (2021): stabilizing EWC in practical ML tasks
  • Where this project fits: it combines curriculum learning with EWC for coarse-to-fine detection of HTP drawing features

Day 12 Tue 7/1/25

  • Developed the system overview and drafted the method section
Detection pipeline: an HTP drawing passes through a DarkNet-based feature extractor and a regression head that predicts bounding boxes on a grid, producing the detection result.
Detection pipeline: an HTP drawing passes through a DarkNet-based feature extractor and a regression head that predicts bounding boxes on a grid, producing the detection result.
Proposed curriculum learning: training moves from big objects (easy samples) to middle-size and then small objects (complex samples), updating parameters at each stage.
Proposed curriculum learning: training moves from big objects (easy samples) to middle-size and then small objects (complex samples), updating parameters at each stage.

Day 13 Fri 7/4/25

  • Formulated and refined the loss function equations
L_k = L_reg + L_con + L_cls
Eq. 1. Total loss Lk for task k: the sum of regression, confidence and classification losses.
Regression loss equation
Eq. 2. Regression loss Lreg: how far the predicted box position and size are from the ground truth. The indicator is 1 only when an object is in grid cell i, so loss is counted only where needed. Square roots on width and height reduce the influence of large box errors, which matters for tall objects like trees.
Confidence loss equation
Eq. 3. Confidence loss Lcon: whether the model correctly predicts that an object exists in a cell. C is the ground truth (1 for object, 0 for background) and Ĉ the predicted confidence. The second term, scaled by α, penalizes false positives where no object is present.
Classification loss equation
Eq. 4. Classification loss Lcls: how accurately the model classifies the type of object in each cell.

Day 14 Sun 7/13/25

  • Wrote the EWC equation for continual learning
L = L_F + beta/2 * sum_i (theta_i - theta_i^C)^2
Eq. 5. Elastic Weight Consolidation. LF is the loss for the harder, finer future task; θi is the current parameter and θiC its value after the coarse task; β is the regularization term that penalizes forgetting important parameters.
  • Effect: EWC constrains the parameters learned during the coarse detection task LC while the model trains on the more complex future task LF, so it keeps coarse-level knowledge while learning finer symbolic elements

Day 15 Wed 7/16/25

  • Worked on the model
  • Final training settings (from the poster)
    • Batch size 512
    • Epochs 80
    • Learning rate 0.0001
    • Optimizer: Adam

Day 16 Sun 7/20/25

  • Worked on the model

Day 17 Wed 7/23/25

  • Worked on the model

Day 18 Sat 7/26/25

  • Organized and cleaned the dataset for analysis
  • Classes used in evaluation
    • House: house, fence, window, door, chimney, smoke
    • Tree: tree, crown, fruit, trunk, root
    • Person: person, eye, leg, arm, head, upper body

Day 19 Sat 8/2/25

  • Defined and refined evaluation metrics
    • Classification accuracy: per-class confusion matrices for house, tree and person parts
    • Localization: Intersection over Union (IoU), the overlap between predicted and ground-truth boxes divided by their combined area
    • Qualitative: visual inspection of predicted boxes on test drawings
  • Data split: 80% sampled at random from 2 datasets for training, 20% held out for testing

Day 20 Thu 8/7/25

  • Trained the model using representation learning (8-hour session)

Day 21 Thu 8/14/25

  • Trained the model using transfer learning (1–2 hour session)
  • Compared with the 8-hour representation-learning session on Day 20

Day 22 Fri 8/22/25

  • Experiment 1: confusion matrices (classification accuracy)
  • Results
    • House: 94.82% average accuracy; chimney (92.23%) and smoke (90.07%) were lowest
    • Tree: 98.67% average accuracy, the highest; fine-grained parts like crown (98.12%) and trunk (98.73%) were accurate, fruit (96.97%) lowest
    • Person: 98.34% average accuracy, strong across all components (97.64–98.94%)
Confusion matrix for House (accuracy 0.9482).
Confusion matrix for House (accuracy 0.9482).
Confusion matrix for Tree (accuracy 0.9867).
Confusion matrix for Tree (accuracy 0.9867).
Confusion matrix for Person (accuracy 0.9834).
Confusion matrix for Person (accuracy 0.9834).

Day 23 Wed 8/27/25

  • Experiment 2: Intersection over Union (IoU), comparing a baseline detector with our model
Detection example, Tree: crown, fruit, pole (trunk) and root boxes.
Detection example, Tree: crown, fruit, pole (trunk) and root boxes.
Detection example, House: roof, window, door, chimney and smoke boxes.
Detection example, House: roof, window, door, chimney and smoke boxes.
Detection example, Person: head, arms, body and legs.
Detection example, Person: head, arms, body and legs.
House
CategoryBaselineOur modelChange
House0.85250.8686+0.0161
Fence0.80060.8458+0.0452
Window0.81350.8345+0.0210
Door0.78220.8558+0.0736
Chimney0.66350.7957+0.1322
Smoke0.52770.7844+0.2567
Average0.740.83+0.09
Tree
CategoryBaselineOur modelChange
Tree0.85090.8865+0.0356
Crown0.81720.8696+0.0524
Fruit0.52220.8074+0.2852
Trunk0.77980.8397+0.0599
Root0.75930.8214+0.0621
Average0.750.84+0.10
Person
CategoryBaselineOur modelChange
Person0.82780.8705+0.0427
Eye0.46480.7654+0.3006
Leg0.60780.7957+0.1879
Arm0.67140.8181+0.1467
Head0.82410.8552+0.0311
UpperBody0.77050.8468+0.0763
Average0.690.83+0.13
  • Our model improved IoU for every category, with average IoU of 0.83 (house), 0.84 (tree) and 0.83 (person)
  • Largest gains on small, fine-grained parts: eye (+0.30), fruit (+0.29), smoke (+0.26), leg (+0.19)
  • Remaining outliers: unique smoke shapes, longer leaves and textures, and eyes and legs

Day 24 Sat 8/30/25

  • Experiment 3: ablation study, comparing IoU for the baseline and our model, category by category
IoU comparison for House: baseline (blue) vs model (red).
IoU comparison for House: baseline (blue) vs model (red).
IoU comparison for Tree: baseline (blue) vs model (red).
IoU comparison for Tree: baseline (blue) vs model (red).
IoU comparison for Person: baseline (blue) vs model (red).
IoU comparison for Person: baseline (blue) vs model (red).
  • Our model is higher in every category; the gap is widest for small parts such as smoke, fruit and eyes, where the baseline struggled most

Day 25 Tue 9/2/25

  • Experiment 4: statistical analysis, testing whether the model’s output can contribute meaningfully to psychological screening
  • Method
    • Given a child’s age and gender, the model extracts bounding-box statistics from their drawing (e.g., leg height, trunk “pole”, house and head proportions)
    • Each value is compared with the distribution built from a larger set of same-age, same-gender children
    • The black bar marks where the sample drawing falls relative to its peers
Leg height proportion: distribution for same-age, same-gender children; black bar = sample drawing.
Leg height proportion: distribution for same-age, same-gender children; black bar = sample drawing.
Tree trunk (“pole”) proportion.
Tree trunk (“pole”) proportion.
House proportion.
House proportion.
Head proportion.
Head proportion.

Day 26 Fri 9/5/25

  • Built a demonstration website: htp-sunwoo.onrender.com ↗
  • How it works
    • Enter the child’s age and sex and choose an HTP drawing
    • The trained model detects the house, tree, person and their parts
    • Their proportions are shown against the same-age, same-gender distributions from Day 25
  • Built only to demonstrate practical deployment of the trained detection model, not as a diagnostic tool