Sub topic 8
Finding high-risk situations
This chapter assumes you have defined your target habit in observable terms and kept a baseline log for at least one to two weeks. It also assumes you know the big picture of awareness training. If your log is still empty, go back to the baseline chapter first, because everything below works on recorded data.
Why situations matter
A repetitive habit rarely happens at random. It is more likely in some settings than others, and those settings sit at the front of the habit cycle. A high-risk situation is a combination of place, activity, time, internal state, or people in which your target habit occurs more often or with a stronger urge.
Early-warning signs tell you that an occurrence is about to start. Situations tell you where and when to expect warnings. Knowing both lets you prepare ahead of time instead of reacting each time. This is the last piece of awareness training. After it, you should know what the habit is, how to detect it, what comes just before it, and where it concentrates.
What to look for
A situation is more than a location. Check each of these dimensions in your log.
| Dimension | Examples | Question to ask |
|---|---|---|
| Place | Desk, car, bathroom mirror, sofa | Where am I when it happens? |
| Activity | Reading, driving, watching TV, phone calls | What are my hands and attention doing? |
| Time | Late evening, right after waking | Is there a pattern by hour or day? |
| Internal state | Bored, tense, tired, concentrating | What was I feeling just before? |
| People | Alone, in a meeting, with family | Who is or isn't around? |
| Objects | Phone, pen, mirror, tweezers | What is within reach? |
Many habits cluster in low-stimulation, hands-free moments, such as TV or reading. Others cluster in tense, effortful moments, such as a deadline or a video call. Your log will show which applies to you, so don't assume.
Turning the log into a ranked list
Your log already holds the raw material. Each row has a situation field, an urge_0_10 rating, and a caught_early flag. Here is the template again, with a few rows:
date,time,situation,early_warning,urge_0_10,caught_early,competing_response_used
2026-03-02,09:15,reading email,tension in fingers,6,yes,yes
2026-03-02,14:40,video call,none noticed,4,no,no
2026-03-02,21:05,watching TV,hand moves to mouth,7,yes,yesCounting rows by situation is a good start. A fuller view adds the average urge strength and how often you caught the habit early in each situation. The script below prints all three. Save your log as habit_log.csv in the same folder, with the same header row.
import csv
from collections import Counter, defaultdict
with open("habit_log.csv", newline="") as f:
rows = list(csv.DictReader(f))
by_situation = Counter(row["situation"].strip().lower() for row in rows)
urges = defaultdict(list)
caught = defaultdict(int)
for row in rows:
key = row["situation"].strip().lower()
urges[key].append(int(row["urge_0_10"]))
if row["caught_early"].strip().lower() == "yes":
caught[key] += 1
print(f"{'situation':<20}{'count':>6}{'avg urge':>10}{'caught early':>14}")
for situation, count in by_situation.most_common():
avg = sum(urges[situation]) / count
ratio = f"{caught[situation]}/{count}"
print(f"{situation:<20}{count:>6}{avg:>10.1f}{ratio:>14}")The strip().lower() calls merge entries such as "TV " and "tv". Without them, the counter treats each spelling as a separate situation.
Reading the numbers
Each column answers a different question.
- Count shows where the habit happens most. It is the first screen, not the final answer.
- Average urge shows where the pull is strongest. A situation with few entries but urges of 8 or 9 can deserve attention before a frequent but mild one.
- Caught early shows where your awareness is weakest. A low ratio means the habit often runs before you notice it. Those situations need more detection practice, not just a response plan.
Counts are not rates
A raw count depends on how much time you spend in each situation. If you watch TV for three hours a day and take calls for ten minutes, TV will produce more entries even if calls are riskier per minute. When you can, note roughly how long you spend in each situation and compare occurrences per hour. If you can't, treat the ranking as a starting hypothesis and check it against your own sense of the day.
Logging bias
You only log what you notice. A situation where you rarely catch the habit may be underrepresented in the log, because you did not record what you did not see. A situation with many "none noticed" warnings and few entries is a candidate for hidden risk. A helper can note occurrences you miss, as the motivation and social support chapter describes.
Common errors
- Labels too vague or too fine. "Home" covers almost everything and tells you nothing. "Sofa, left armrest, second episode" gives you one entry per situation. Aim for a label you could recognize again, such as "watching TV" or "reading email."
- Inconsistent labels. If "email," "reading email," and "inbox" are separate, no one situation reaches the top. Pick one wording per situation and keep to it.
- Reading too much from a short log. With fewer than about fifty entries, rankings shift easily. Keep recording and recheck the table weekly.
- Ignoring internal states. Two identical places can carry different risk depending on mood. If your
situationfield never mentions a feeling, add one to the label, such as "reading email, tense." - Treating avoidance as the plan. If sofa TV is the top situation, the goal is not to stop watching TV. The goal is to enter that situation prepared with a competing response.
Turning the list into a plan
Choose the top two or three situations by combining the three columns. Practice there first, because that is where each hour of effort catches the most occurrences. For each chosen situation, write down the following:
- The usual early-warning sign in that situation, from your log.
- The first moment you will check yourself, such as when you sit down or when a call begins.
- The competing response you will use, which you choose in the next chapter.
Revisit the ranking every week or two. As awareness improves, "caught early" rises and some situations drop off, while new ones can appear. That is progress, and it tells you where to move your attention next.
Exercise
Your log has 20 entries. "Watching TV" has 10 entries, average urge 4, caught early 8/10. "Video call" has 4 entries, average urge 8, caught early 0/4. Which situation do you prioritize for awareness practice, and why? What extra information would you want before deciding?
Show answer
Prioritize "video call" for awareness practice. Its urges are strong and you never catch the habit early, so detection is the weak point there. "Watching TV" has more entries, but you already catch most of them early. Before deciding, you would want time spent in each situation, to compare occurrences per hour. You would also want more entries, since four calls is a small sample.