Sub topic 8
Finding high-risk situations
This chapter assumes you have already defined your target habit in observable terms and kept a baseline log for at least a week. It also assumes you can notice early warnings and urges. Here you will use that log to find the situations where the habit is most likely, so you know where to prepare your competing response.
Why situations matter
A habit rarely occurs evenly across the day. It clusters in particular places, activities, moods, and body states. These clusters are high-risk situations. Once you know them, you can expect the urge instead of being surprised by it. That makes it easier to start the competing response early.
Four kinds of cue commonly make a situation high-risk:
- Place: the couch, the car, your desk.
- Activity: reading, driving, watching TV, being on a video call.
- Internal state: boredom, stress, concentration, tiredness.
- Body position: hands resting near the face, chin propped on a fist.
Read your log for patterns
Your log already has a situation column. Count how often each value appears. If you prefer to do this by hand, tally the rows on paper. If you want a quick count, this script reads the log and prints it.
import csv
from collections import Counter
with open("habit_log.csv", newline="") as f:
rows = list(csv.DictReader(f))
by_situation = Counter(row["situation"] for row in rows)
for situation, count in by_situation.most_common():
print(f"{situation}: {count}")
caught = sum(1 for row in rows if row["caught_early"] == "yes")
print(f"Caught early: {caught} of {len(rows)}")Run against the sample log from the earlier chapter, it prints this:
reading email: 1
video call: 1
watching TV: 1
Caught early: 2 of 3Three rows is too few to show a pattern. A real baseline of one to two weeks will give you clear leaders. Look at two things: the situations with the highest counts, and the situations with the highest urge_0_10 values. These are not always the same. A situation can be rare but intense.
Turn the counts into a short list
Pick the top two or three situations. Then check each one against the caught_early column. A situation where you often miss the early warning needs more attention than one where you usually catch it.
For each chosen situation, write one line in this form: "When I am in [situation], I will watch for [early warning] and start [competing response]." This is a simple if-then plan. It removes the need to decide in the moment.
Common errors
- Too vague. "When stressed" is hard to spot. "Before a deadline, at my desk" is easier.
- Too many situations. Trying to prepare for ten at once spreads your attention. Start with two or three.
- Relying on memory. Situations you remember are not always the most frequent. Use the log.
- Ignoring "none noticed". Rows with no early warning point to situations where you need more awareness practice, not more planning.
Exercise
Your log shows "reading email" 12 times with average urge 4, and "video call" 5 times with average urge 8 and caught_early "no" on most rows. Which situation do you prepare for first, and why?
Show answer
Make a case for both, but start with the video call. It is less frequent but has much stronger urges and you rarely catch it early, so you are least ready there. Reading email is still on your list because of its count, and you can prepare it next.