Sub topic 6
Keeping a cue log
A cue log is a short written record of each time your habit happens, along with the conditions around it. This chapter assumes you know the habit loop (cue, routine, reward) and the five cue categories: time, location, emotional state, other people, and preceding action. You also need a way to take brief notes, on paper or in a notes app.
Why a log beats memory
Memory is a poor witness for automatic behavior. You tend to remember the dramatic episodes and forget the routine ones. You also fill gaps with a neat story, such as "I always do it when I'm stressed." A log records the facts at the time, so you can check the story against the data later.
The log feeds the next chapter, where you look for patterns. So its job is to collect consistent, comparable entries. It does not need to explain anything yet.
Decide what to record
Use one row per occurrence. Each row has the same fields, one for each cue category, plus the reward you noticed. Keeping the fields fixed is what makes the rows comparable.
| Field | What to write | Example |
|---|---|---|
| time | A rough label for the time of day | afternoon |
| place | Where you were | desk |
| mood | One word for how you felt just before | bored |
| with | Who was around, or "alone" | alone |
| before | The action you finished just before | finished a task |
| reward | What you got from it | a break |
Use short, repeated labels. Write "afternoon", not "2:47 pm, after lunch, kind of sleepy". Exact times split the same cue into many different values, and that hides the pattern. If you are unsure of a field, write your best guess and keep going.
Make logging easy enough to do
A log you stop keeping tells you nothing. Lower the effort:
- Put the log where the habit happens. A note on your phone's home screen or a card in your pocket works well.
- Prepare the columns in advance so each entry is a few words.
- Aim for one to two weeks. That is long enough to see repeats and short enough to finish.
- Log the occurrences you catch late as well. Mark them "late" so you remember they may be less accurate.
Do not try to change the habit yet. If you start resisting it during the logging period, you change the data. Your goal now is an honest sample of normal behavior.
A worked example
Suppose you want to stop checking social media while working. After a few days your log has four entries:
| time | place | mood | with | before | reward |
|---|---|---|---|---|---|
| afternoon | desk | bored | alone | finished a task | a break |
| afternoon | desk | stressed | alone | finished a task | a break |
| evening | sofa | bored | alone | opened laptop | something to do |
| afternoon | desk | bored | coworker | finished a task | a break |
Even with four rows, some columns repeat more than others. You can count the repeats by hand, or you can use a short script once the log grows. This script counts how often each value appears in each field and prints the most frequent one:
from collections import Counter
log = [
{"time": "afternoon", "place": "desk", "mood": "bored", "with": "alone", "before": "finished a task"},
{"time": "afternoon", "place": "desk", "mood": "stressed", "with": "alone", "before": "finished a task"},
{"time": "evening", "place": "sofa", "mood": "bored", "with": "alone", "before": "opened laptop"},
{"time": "afternoon", "place": "desk", "mood": "bored", "with": "coworker", "before": "finished a task"},
]
for field in ("time", "place", "mood", "with", "before"):
counts = Counter(entry[field] for entry in log)
value, n = counts.most_common(1)[0]
print(f"{field}: {value} ({n} of {len(log)})")The output is:
time: afternoon (3 of 4)
place: desk (3 of 4)
mood: bored (3 of 4)
with: alone (3 of 4)
before: finished a task (3 of 4)These counts show which candidates deserve a closer look. They do not yet show which one is the cue. "Alone" appears in three entries, but you may simply spend most of your workday alone. Separating real cues from background conditions is the work of later chapters.
Common errors
- Logging only the "bad" episodes. If you skip the times you felt the urge and resisted, you lose useful contrast. Note those too, marked "resisted".
- Vague mood labels. "Bad" or "off" cannot be counted. Pick from a short list such as bored, stressed, tired, anxious, content.
- Changing the fields midway. Adding a column on day five leaves four days of blanks. Settle the fields first, and add a note field for anything unexpected.
- Writing the explanation instead of the observation. "Because my boss annoyed me" is a theory. "Boss emailed, irritated" records what happened.
- Quitting after a missed day. Gaps are fine. Pick up at the next occurrence.
Exercise
You log a habit for a week and record the time as "2:47 pm", "3:05 pm", and "2:30 pm" for three entries. Why might this make the pattern harder to see, and what would you write instead?
Show answer
Exact times produce a different value for every entry, so a count finds no repeats even though all three happened in the same part of the day. Use a rough label such as "afternoon" so the same cue gets the same value each time.
Exercise
Name two things you should avoid doing during the logging period, and give the reason for each.
Show answer
Do not try to change the habit yet, because resisting it alters the behavior you are trying to sample. Do not write explanations such as "because I was annoyed at my boss" in the fields, because a theory is not an observation and it makes entries harder to compare.