Dashboard

AI Model Training Protocol

Step-by-step guide to training the Chiromancy Engine (Hand Analysis) using Google Teachable Machine.

Mission Objective

The Goal: To create a custom Artificial Intelligence (AI) model that can instantly recognize specific types of hands (Fire, Earth, Air, Water) through a web browser camera.

Why We Are Doing This: Traditional palmistry relies on analyzing the shape of the palm relative to the length of the fingers. By teaching a computer to recognize these shapes, we can offer users an immediate, "magical" insight into their elemental nature without needing a human reader present 24/7.

The Tech Advantage: Most AI runs on powerful, expensive servers. We are building a "Tiny ML" model that is small enough to run inside the user's phone or laptop browser. This guarantees 100% Privacy (no photos are ever sent to us) and Zero Latency (it works instantly).

The Science of Hand Shapes

To train the model accurately, you need to know what you are looking for. We categorize hands into four elements:

🔥 Fire Hand Long Palm + Short Fingers. Intense, energetic, charismatic.
🌿 Earth Hand Square Palm + Short Fingers. Practical, grounded, reliable.
🌪️ Air Hand Square Palm + Long Fingers. Intellectual, communicative, curious.
💧 Water Hand Long Palm + Long Fingers. Emotional, intuitive, sensitive.
1

Initialize Project

Go to the official Google tool. No login required, but saving to Drive is recommended so you don't lose progress.

  1. Navigate to teachablemachine.withgoogle.com.
  2. Click Get Started.
  3. Select Image Project box.
  4. Select Standard Image Model.
2

Define Your Classes

"Classes" are the categories the AI will learn. Rename the default "Class 1" boxes to the following:

Fire Hand
Water Hand
Earth Hand
Air Hand
No Hand (Background)

**Crucial:** "No Hand" teaches the AI what it looks like when nobody is there, preventing false positives.

3

Record Samples

This is the teaching phase. For each class, click "Webcam" and hold the button to record images.

4

Train & Test

Once all classes have data:

  1. Click the big Train Model button.
  2. Wait (do not close the tab). It takes about 30-60 seconds.
  3. Test: Use the "Preview" panel on the right. Show your hand to the camera. Does the bar correctly jump to "Fire Hand" or "Water Hand"?
  4. If it's confused, add more sample images to the confusing classes and Train again.
5

Export & Deploy

Get the brain files for our website.

A

Click "Export Model"

Located above the preview window.

B

Select "TensorFlow.js"

Ensure this tab is selected.

C

Choose "Upload" (Easier)

Click "Upload my model". Google will host it for free. Copy the Sharable Link provided.

https://teachablemachine.withgoogle.com/models/AbCdEfGh/

Final Step: Send to Dev Team

Send the link (or the downloaded ZIP files) to the technical lead. They will plug it into the palmistry_portal.html code.

Further Study Resources

"The Laws of Scientific Hand Reading"

Free eBook by William G. Benham. This is the definitive "textbook" on analyzing hand shapes and mounts accurately.

Visual Quick-Ref (WikiHow)

Surprisingly good for clear, simple diagrams of lines and shapes to help you label your training data.

Your Palmistry Deck

Use your physical cards! Draw a card, look at the hand shape it describes, and try to find a real hand (or Google Image) that matches it to train the AI.

Hand Shape Cheat Sheet

  • Earth: Square palm, short fingers (Practical)
  • Air: Square palm, long fingers (Intellectual)
  • Fire: Long palm, short fingers (Energetic)
  • Water: Long palm, long fingers (Emotional)