WADA-DEV(7) $ /en/blog/mystery-hills-from-shrine-model/

NAME

mystery-hills-from-shrine-model — I Had AI Build a Model That Guesses Where Shrines Stand, and It Found Hills on No Map

SYNOPSIS

I had Claude Code build a small model that guesses where the 268 shrines and temples of northern Mie stand from terrain alone. Checking where it missed against a Meiji-era map turned up one vanished shrine and two hills in the rice fields that no record mentions.

DESCRIPTION

I taught a model what kind of ground shrines and temples tend to stand on, let it point at places where “there should be one”, and looked into the spots where there is nothing. What came out was one shrine that has disappeared, and two hills in the middle of rice fields with no name and no record I could find. I am looking for anyone who knows what these hills are.

I wanted to find traces of lost temples

Looking at Meiji-era maps, I started wondering how the old villages came to be where they are. Maybe the shrine or temple came first and people settled around it. If so, the place to start is where the shrines and temples are. And if I could find traces of temples that no longer exist, that would be fun. It seemed like something machine learning could do, so I handed the modelling and the research to Claude Code.

The model learned “a little higher than its surroundings”

The area is northern Mie Prefecture, where my family home is: from southern Yokkaichi through Suzuka to northern Tsu, 551 km² of land below 150 m elevation. The model had to guess the locations of 140 shrines and 128 temples from OpenStreetMap using terrain features built from the Geospatial Information Authority of Japan (GSI) elevation data: elevation, slope, height relative to the surroundings, distance from rivers and the sea, and so on.

What the model came to treat as shrine-like ground was flat land at 5–25 m elevation, slightly higher than the area within 200 m around it. The score runs high along the edges of river terraces and along the low rises behind the coast.

Map of the shrine-likeness score in northern Mie. Terrace edges and coastal rises score high in yellow; red dots are shrines and temples in OpenStreetMap, white circles are the candidates checked

Made from GSI elevation tiles and OpenStreetMap (© OpenStreetMap contributors)

The model’s AUC was 0.79, above the 0.70 from guessing with elevation alone. AUC is the probability that, given one place with a shrine and one random place, the model scores the shrine higher.

The code is at temple-site-terrain. Give it an area and it runs on other regions too.

Checking the “should be one here” spots on a Meiji map

The interesting part is not where it was right but where it was wrong. I took 20 places that scored high but have no shrine or temple in OpenStreetMap, mixed them with 20 random places, and had Claude Code look for shrine and temple symbols on the 1:20,000 topographic maps of the mid-Meiji era, without telling it which group each place came from.

  • A shrine or temple symbol within 300 m: 7/20 candidates, 1/20 random places
  • 11/20 of the candidates still have a shrine or temple today. They are just missing from OpenStreetMap
  • One place read as there in Meiji and gone now: Ogura in Kusu-cho, Yokkaichi, where a factory stands today

When I learned that it had really found a vanished shrine, I thought: wow.

But the strangest thing was a hill with nothing on it

Five places scored at the very top yet have no shrine or temple on either the Meiji map or today’s. Two of them were small wooded hills left standing alone in the rice fields. They bothered me far more than the vanished shrine. They are just odd places.

The hill in Tokuda-cho, Suzuka

  • Coordinates: 34.83066, 136.53678
  • The woods cover about 0.5 ha; the top is 23.1 m above sea level, 5.6 m above the surrounding paddies
  • Already wooded in the 1961 aerial photo
  • On the Meiji map it is drawn as a small hill joined to the southern tip of the hills to the north

Four views of the same area around the hill in Tokuda-cho, Suzuka, with the outline of the woods drawn in magenta on each: the 1961 aerial photo (top left), the current aerial photo (top right), a hillshade from elevation data (bottom left) and the Meiji map (bottom right). The hill is already wooded in 1961, stands above the surrounding paddies in the hillshade, and is drawn on the Meiji map as a small hill with closed contours

Source: GSI tiles (aerial photos 1961–1969, latest nationwide aerial photos, and a hillshade made from the 5 m DEM), processed by the author. Meiji map: この地図は、時系列地形図閲覧サイト「今昔マップ on the web」((C)谷 謙二)により作成したものです。 (Made with Konjaku Map on the Web, © Kenji Tani.)

Street View: from the road to the north-west

The hill in Hamada, Kawage-cho, Tsu

  • Coordinates: 34.77957, 136.52648
  • A patch of woods in the paddies just north-east of National Route 306

Current aerial photo of the hill in Hamada, Kawage-cho, Tsu: woods among the rice fields beside National Route 306, circled in red

Source: GSI tiles (latest nationwide aerial photos), processed by the author

Street View: from National Route 306

What I found out, and what I did not

I had Claude Code search blogs, burial-mound guide sites, YouTube and local histories. Not one visit to either hill turned up. No name, no small shrine, no local story.

In the cultural property register, neither hill is itself listed as an archaeological site. But right next to each one is a field where old artifacts turn up.

  • The Tokuda-cho hill: about 100 m to the south, the Takai B site has yielded pottery from the Kofun period through the Kamakura period. Nearby in Tokuda-cho, the remains of a levelled 6th-century round burial mound and a medieval cremation grave were found in 2022
  • The Hamada hill: about 110 m to the west, the Matsuwaki site has yielded medieval artifacts

Whether they are burial mounds, some other kind of mound, or just ground left over when the land around them was cut away, the register could not tell me.

If you know these hills, please tell me

I have not been to either hill yet. A local name, a small shrine that used to be there, a place you played as a kid: any hint is welcome. Both should be private land in the middle of rice fields, so if you go to see them, please look from the road only.

AUTHOR

Kohei Wada, software engineer. I build things to try out ideas and write up the results here. wada-dev · about

sponsor: If this helped, you can support me on GitHub Sponsors

COMMENTS