Most sensors do one job: they detect things. A smoke alarm senses smoke. A scale measures weight. Done. But what if a sensor could also remember what it found and decide how to respond based on past encounters? That is exactly what researchers at the University of Osaka in Japan have built, and it could change the future of medical testing.

The team created a device called an autonomous solid-state nanopore. Nanopores are unimaginably small holes — only a few billionths of a meter wide, about a thousand times thinner than a human hair. Scientists use them to detect DNA, proteins, and other biological molecules by measuring tiny changes in electrical current as molecules squeeze through.

Traditional nanopores are passive. They sit there like tiny doorways, and scientists control everything from outside using computers and electronics. But the new device works differently. Under a constant voltage supply, chemical reactions inside the pore repeatedly build up and dissolve tiny mineral deposits. This causes the nanopore to open and close on its own, like a lung breathing in and out, producing bursts of electrical signals without any human intervention.

Lead author Makusu Tsutsui explained it simply: "Our nanopore works differently." As nucleotides — the building blocks of DNA — and amino acids pass through the pores, they influence these ongoing chemical reactions and change how the nanopore evolves over time.

"Different molecules change the size, duration and timing of the electrical spikes in distinctive ways, effectively leaving behind unique electrical signatures," said senior author Tomoji Kawai. Because each signal also depends on the nanopore's recent memory, the device behaves as a remembering, chemically active sensor.

The team then used machine learning to analyze these signatures and successfully distinguished all four DNA nucleotides — adenine, cytosine, guanine, and thymine, the letters that spell out our genetic code. They accurately measured mixtures containing multiple nucleotides and even identified seven different amino acids, all without actively controlling the nanopore during sensing.

"This represents a shift in how nanopores are designed," Tsutsui said. Instead of serving as passive channels that simply let molecules pass through, nanopores can actively respond to their chemical environment, giving them capabilities that go far beyond conventional sensing.

Such smart sensors could improve how we analyze molecules for biomedical research and medical diagnoses. They might also contribute to emerging iontronic technologies that process information using ions — tiny charged particles — instead of electrons. By packing sensing, memory, and signal generation into one autonomous device no wider than a virus, this work opens the door to a new generation of intelligent systems at the nanoscale.