When baby German cockroaches hatch, they face a problem: they're born with completely empty guts. They have no gut bacteria at all. So how do they find their family in a messy kitchen? According to new research from North Carolina State University, the answer is surprisingly social — and involves feces.

Scientists there discovered that newborn German cockroaches use pheromones (special chemical signals) found in cockroach feces to recognize members of their own colony. It's a kind of family scent, and it helps the babies know who belongs with them.

The research was led by Ayako Wada-Katsumata, a principal research scholar at NC State's Department of Entomology and Plant Pathology. She found that baby cockroaches who ate from their colony's shared fecal pile — yes, they eat each other's droppings — developed a preference for the smell of their own family group. Meanwhile, cockroaches that hadn't yet joined the fecal pile showed much broader, less focused smell preferences.

"What we've found is that aggregation pheromones are extremely important in how these cockroaches find each other and group together," Wada-Katsumata said.

This discovery is more than just interesting trivia about roach bathroom habits. It could actually help humans fight cockroach infestations in homes, hospitals, and restaurants. Right now, cockroach traps and poison baits aren't very effective because the bugs have everything they need in their colony group — including that all-important fecal pile. They have little reason to wander off.

But if scientists can develop a synthetic aggregation pheromone that works on all German cockroaches, traps and baits could become much more effective at luring them in.

Coby Schal, co-author of the study and the Blanton J. Whitmire Distinguished Professor of Entomology at NC State, said the findings also reveal something deeper about cockroach intelligence. Scientists previously thought German cockroaches were "subsocial" — meaning they weren't completely solitary, but also didn't act much like bees or ants, which work together in highly organized groups.

But this research suggests cockroaches may be more socially advanced than we gave them credit for. They form kin bonds in a way that mirrors social insects like bees and ants, just using a different source — fecal odors instead of body smells.

"Cockroaches have evolved their own twist on forming kin bonds," Schal said.

The study was published in the journal Proceedings of the Royal Society B: Biological Sciences.