← Latest papers
💻 computer science

Quantifying the Directional Spatial Order of Hakka Architecture: A CNN–LSTM–Attention Framework for Heritage Floor-Plan Analysis in Gannan, China

This study employs a hybrid CNN–LSTM–Attention framework to quantitatively validate the embodiment of traditional Bagua cosmological principles in Gannan Hakka architecture, revealing a high degree of directional spatial order across diverse building types while identifying distinct density patterns between walled dwellings and public structures.

Original authors: Nannan Qu, Ang Li, Qingwen Su, Yinglong Rao, Kuangda Hu, Syarmila Hany binti Haron, Nan Ge

Published 2026-10-22
📖 5 min read🧠 Deep dive

Original authors: Nannan Qu, Ang Li, Qingwen Su, Yinglong Rao, Kuangda Hu, Syarmila Hany binti Haron, Nan Ge

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

For centuries, the built environment of the Hakka people in southern China has been more than just shelter; it is a physical expression of ancient cosmological beliefs. The Hakka, a distinct subgroup of Han Chinese who migrated southward over many generations, settled in the rugged borderlands of Jiangxi, Fujian, and Guangdong. Their architecture is famous for its defensive, communal structures, such as the massive walled villages and the circular earthen towers. Scholars have long argued that the layout of these buildings is not random but follows a specific spiritual map known as the Later Heaven Bagua. This system divides the world into eight directions, each associated with a specific natural element and a symbolic meaning, with a central point representing the balance of all things. Traditionally, understanding how these buildings align with this spiritual map has relied on the descriptions of historians and the observations of cultural experts, resulting in rich stories but little hard data. The question remained: is this connection between the floor plan and the ancient directional system a matter of faith, or can it be measured with the precision of modern science?

A team of researchers set out to answer this by treating the floor plans of these historic buildings as data to be analyzed rather than just images to be admired. They focused on fourteen specific examples from the heart of the Hakka region in Jiangxi province. This group included six walled residential dwellings, seven public buildings such as government offices and temples recorded in old historical documents, and a map of the entire historic city of Ganzhou. To test the theory, the researchers first created a digital template based on the Bagua system, dividing a square space into nine distinct zones: eight directional slices radiating from the center, plus the central zone itself. They then took the actual floor plans of the fourteen buildings and overlaid this nine-zone grid onto them.

The core of the study involved a sophisticated computer system designed to look at these plans in three different ways simultaneously. First, the computer examined the visual texture of the drawings to see if the shapes and lines matched the expected pattern. Second, it calculated how much of each zone was actually filled with walls and rooms versus empty space, checking if the density of construction followed the rules. Third, it analyzed the structural skeleton of the layout to see how the spaces connected to one another. The system did not rely on a single method but combined these three perspectives, using a weighting mechanism to decide which piece of evidence was most important for each specific zone. This approach allowed the researchers to generate a single score for every zone of every building, measuring how closely that specific part of the plan aligned with the ancient directional ideal.

The results were strikingly consistent. Across all fourteen buildings and every single zone within them, the computer found a match. In total, there were 126 individual zones analyzed, and every single one scored above the threshold required to be considered a match. The average score for how well the buildings aligned with the directional system was exceptionally high, reaching 0.9904 on a scale where 1.0 would be a perfect match. The researchers compared these results against a random guess to ensure the findings were not a fluke, and the alignment was statistically significant, proving that the connection is real and not a matter of chance. The study confirmed that the Hakka builders did indeed follow a stable, shared directional order that corresponds to the Bagua system, regardless of whether the building was a home, a temple, or a government office.

However, the study also revealed that while the underlying directional skeleton was the same, the way the buildings were filled in varied significantly depending on their purpose. The residential walled villages showed a distinct pattern where the center and the southern and eastern sides were packed tightly with rooms and halls, while the outer edges were much sparser. This created a "dense core, sparse periphery" shape that reflected the needs of family living and defense. In contrast, the public buildings, such as the academies and temples, displayed a much more even distribution of space. The most perfect example of this was the Longevity Palace, a venue for receiving imperial envoys, which showed an almost uniform density across all zones, suggesting that ceremonial and administrative functions required a balanced use of space that differed from the clustered needs of a family home.

This research moves the understanding of Hakka architecture from the realm of qualitative description into the realm of quantitative proof. By translating an ancient spiritual concept into a measurable grid and testing it against real historical plans, the researchers demonstrated that the cosmological order is not just a story told about these buildings but a structural reality embedded in their design. The study shows that the Hakka people maintained a consistent directional logic across hundreds of years and different building types, adapting the density of their construction to fit their specific needs while keeping the spiritual map intact. This approach offers a new way to document and understand cultural heritage, proving that the wisdom of the past can be verified with the tools of the present.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →