I defined the interaction rules, refined the feedback, and reviewed the experience. AI assisted with research organization, early UI drafts, and implementation. This prototype explores how continuous facial signals can become stable, understandable feedback. It uses a vision model to detect facial features, not infer a person’s actual emotions.
01
Most interfaces ask for a tap, swipe, or hold. I wanted to explore a lighter input: a smile. The rules are simple: smile for rain, laugh for fireworks, and let falling sparks bounce off the person. The design question is how to turn a facial signal into visible, understandable feedback.

02
MediaPipe runs in the browser and outputs coefficients for features such as mouth opening and raised mouth corners, along with facial landmarks. Camera frames are processed locally and are not uploaded to a server. These numbers are not an interaction, nor do they prove that the model understands emotion. Trigger thresholds, transitions, and recovery from noisy readings need to be defined in the interaction layer.

03
An early version treated two thresholds as independent switches. A sudden laugh could trigger rain first; readings near a threshold could flicker between states. I defined three states: idle, smiling, and laughing. Entry thresholds are higher than exit thresholds, and a signal must persist before a transition. Idle can move directly to laughing. These rules came before further parameter tuning. Two intensity bars show how the current signal compares with the trigger threshold. They show signal strength, not elapsed waiting time; duration conditions still apply.
Derived from the current prototype. Timings are decision rules, not user-test results.
Idle
Wait for a valid signal
Smiling
Rain follows signal strength
Laughing
Trigger fireworks; fade out rain
The smile exit threshold is 70% of entry; the mouth-opening exit threshold is 60% of entry. This reduces switching around a threshold.
When the mouth begins opening, smile timing pauses for up to 400 ms to allow a direct transition to laughing.
After one second without a detected face, return to idle. Existing fireworks may leave a brief fading trail.
04
Rain does not collide. An early collision effect left a hard-edged hole around the face. Rain now falls freely, or behind the person when segmentation is enabled. Fireworks rise before they burst. Launching from the bottom of the screen, bursting, then falling gives the effect a readable sequence and allows sparks to reach the person naturally. The head extends beyond the face landmarks. A fitted ellipse uses 36 contour points, extends upward to approximate the top of the head, and is smoothed to reduce jitter. Geometry scripts check calculation boundaries. With segmentation enabled, particles use the segmentation mask for collision; otherwise the head ellipse is the fallback.


05
The prototype includes a camera-request timeout, browser-specific guidance when access is denied, model-loading progress, and a manual mode: tap for rain and hold for fireworks. After 60 seconds without a detected face, it pauses animation and detection loops to reduce ongoing computation.
06
Facial detection is scheduled at about 20 Hz, with segmentation in a worker. Particle budgets vary by performance tier, and particle storage is reused to reduce frequent allocation. Segmentation can be disabled on constrained devices, falling back to the head ellipse. Rain behind the person is optional, so the effect can be adjusted to device behavior.
07
I owned interaction rules, design tradeoffs, experience review, and problem diagnosis. AI assisted with research, initial UI drafts, and code. I checked suggestions against actual behavior and recorded revisions in the repository. A simulated-signal mode cycles through idle, smiling, and laughing to help inspect state feedback. It cannot replace tests with real expressions, varied lighting, and different devices. This remains a personal interaction prototype with no external user validation. Mobile performance has not been established, and only one face is processed when multiple people are in frame.