Sub topic 3
Cues and Contexts: How a Setting Triggers an Action
This chapter covers the link between a setting and an action. It assumes you know what a habit is and the difference between goal-directed and habitual control, from the earlier chapters. You do not need any neuroscience. Reading short Python snippets is optional but helpful.
The core idea: a cue-response association
A habit is stored as an association between a situation and a response. When the situation appears, the response comes to mind with little deliberate thought. The situation is the cue. The response is the action that follows it.
A cue is any feature of the situation that has been present when you performed the action before. The set of all those features is the context. Researchers usually group cues into a few types:
| Cue type | Example | Why it works |
|---|---|---|
| Location | The kitchen, your desk, the bathroom doorway | The same place is present on every repetition |
| Time | Seven in the morning, right after lunch | Time of day recurs reliably |
| Preceding action | Finishing brushing your teeth | The end of one action reliably precedes the next |
| Objects | A kettle, a gym bag by the door | Objects are visible at the moment of action |
| Other people | A colleague who joins you for coffee | A person can be a stable part of the setting |
| Internal state | Feeling bored, tired, or stressed | The state recurs, though less predictably |
Not every feature of a situation becomes a cue. The features that are present every time you act tend to be the ones that get linked to the response. Features that change from day to day link weakly, because they are not reliably there when the action happens.
How a setting comes to trigger an action
Each time you perform an action in a context, your memory records that the two occurred together. Repetition strengthens the link, as the later chapter on the habit strength curve shows. Over time, perceiving the context is enough to bring the action to mind.
The process has two practical effects:
- The action becomes easier to start. You no longer need to decide to act. The context supplies the prompt.
- The action can start without a current goal. The cue can bring the response to mind even when you do not particularly want the outcome at that moment.
The second effect is the signature of a habit. A person who always reaches for their phone when they sit on the sofa may do so without wanting anything from the phone. The sofa prompts the reach.
Why stability matters
The association forms only to the extent that the context is consistent. This is why the chapter title says context-dependent repetition. Doing something fifty times in fifty different settings builds a weaker link to any single cue than doing it fifty times in one setting.
Consider two people who both want to take a daily walk.
- Person A walks right after lunch, from the same front door, most days.
- Person B walks "whenever there is time", at varying hours, from the office, home, or elsewhere.
After a month, Person A has repeated the action against the same set of cues each time. Person B has repeated the action, but the cues differ almost every time. Person A's link is more likely to be strong, even though both have the same number of repetitions.
You can see this with a simple model. The sketch below extends the habit strength update from the previous chapter. It treats each repetition as strengthening the link only when the cue is the usual one.
def update_strength(strength, performed, cue_present, rate=0.05):
"""Return new habit strength (0 to 1) after one day.
Strength rises only when the action is performed
and the usual cue was present.
"""
if performed and cue_present:
return strength + rate * (1 - strength)
return strength
def simulate(cue_days):
"""cue_days is a list of booleans: was the usual cue present each day?"""
strength = 0.0
for cue_present in cue_days:
strength = update_strength(strength, performed=True, cue_present=cue_present)
return strength
stable = [True] * 30
varied = [True, False, False, True, False, True] * 5 # cue present half the time
print("stable context:", round(simulate(stable), 3))
print("varied context:", round(simulate(varied), 3))Both runs perform the action 30 times. The stable run ends near 0.785. The varied run ends near 0.537, because only 15 of its 30 repetitions had the usual cue. The numbers come from a deliberately simple model, so treat them as an illustration of the idea and not as a measurement of real people.
What makes a good cue
Some cues work better than others. These properties help:
- Specific. "After I pour my morning coffee" is clearer than "in the morning". A vague cue is hard to notice, so it is hard to respond to.
- Reliable. It happens on every day you want to act. A cue that appears only on some days produces a link that only sometimes fires.
- Noticeable. It is something you will actually perceive at the right moment.
- Close in time to the action. The action should follow the cue directly, without a long gap or other tasks between them.
- Distinct. It does not also prompt a competing action. If your couch already cues television, it is a poor cue for reading unless you plan around that conflict.
A preceding action is often the strongest everyday choice. It is specific, it happens at a predictable moment, and it ends in a way you cannot miss. This is why attaching a new behaviour to an existing routine is a common recommendation.
Common errors
Several mistakes come up often when people apply the idea.
Treating time as a cue without a signal
"Do it at 6 pm" depends on you noticing that it is 6 pm. Clock times do not announce themselves. If you do not look at a clock, the cue goes unnoticed. A time cue works better when paired with something you will perceive, such as an alarm or the end of a regular activity.
Relying on internal states
Moods and urges recur, but they are not consistent. Using "when I feel motivated" as a cue fails because the state is absent on the days you most need the prompt. Internal states are a more common source of unwanted habits, such as snacking when stressed, than a reliable foundation for new ones.
Changing too many features at once
If you change where, when, and how you do the action all at once, no single cue stays constant. Keep the cue fixed first. Vary details such as duration or difficulty later.
Assuming the cue is obvious to you
Many existing habits are linked to cues you have never noticed. People often cannot say what triggers a behaviour until they watch for it. If you want to understand a habit, record where you were, what time it was, what you had just done, and how you felt each time you performed it.
Cues versus reminders
A reminder and a cue are related but different. A reminder, such as a phone alert, tells you to act and relies on you to choose to comply. A cue in the habit sense is a feature of the situation that has become linked to the response through repetition, so the response comes to mind without any message.
A reminder can help during the early repetitions by making sure the action happens in the right context. The risk is dependence. If the alert is the only thing that prompts the action, the link may attach to the alert and not to the setting. When the alert is removed, the action may stop. A useful approach is to use reminders to get the early repetitions done in the right place, then watch whether the action starts without them.
Connecting this to if-then plans
You can deliberately choose a cue instead of waiting for one to develop by chance. The chapter on implementation intentions covers this in detail. In short, you name a specific cue and a specific action in one sentence:
When I [specific cue: finish brushing my teeth in the evening],
I will [specific action: do two minutes of stretching]
in [specific place: the bathroom doorway].This format works because it names each part of the cue-response link: the cue, the action, and the place. The plan only sets up the link. Repetition in that setting is still what strengthens it.
Summary of the working model
- A habit is a learned link between a context and a response.
- The link strengthens when the action is repeated against the same cues.
- Specific, reliable, noticeable cues that sit close to the action work best.
- Varying the setting dilutes the link, even if the number of repetitions stays the same.
- Reminders can start the process but should not replace the cue.
Exercise
A learner wants to start a daily five-minute review of vocabulary. They plan to do it "sometime in the evening", at the kitchen table on some days and on the train on others. After three weeks, they find they often forget. Name two problems with the cue as it stands, and suggest one revised plan.
Show answer
First, the cue is vague. "Sometime in the evening" is not a specific, noticeable event, so nothing prompts the action. Second, the location varies, so the repetitions are spread across different contexts and no single setting becomes linked to the response. A revised plan could be: "When I finish washing the dinner dishes, I will review five minutes of vocabulary at the kitchen table." This uses a preceding action as the cue and fixes one location.
Exercise
Using the simulate function from this chapter, a learner runs 30 days with the cue present on only 10 of them. Will the final strength be higher or lower than the varied example, which had the cue on 15 of 30 days? Explain why.
Show answer
It will be lower. In the model, strength increases only on days when the action is performed and the cue is present, so fewer cue-present days means fewer increments. With 10 cue-present days the strength is 1 - 0.95^10, about 0.401, compared with about 0.537 for 15 days.