At 300°C, a tiny aluminum gallium nitride device can still detect light—and hold on to what it has seen. Researchers led by the Changchun Institute of Optics, Fine Mechanics and Physics of the Chinese Academy of Sciences have built a component that brings light sensing, memory and simple processing together.

The work, published in Nature Materials in 2026, points to a way to reduce the movement of raw data between separate sensors, memory chips and processors. That movement takes time and energy. In-sensor computing aims to handle some information close to where it is first detected. The new device is an early demonstration, not a finished computing system, but it offers a possible route using a well-established family of semiconductors.

The component is made from alternating layers of aluminum gallium nitride, a material in the group known as III-nitrides. Differences in the layers create interfaces with built-in electric fields and opposite polarized charges. These fields guide light-generated electrons and holes toward separate interfaces, helping keep them from recombining before they can be used.

Nickel and titanium contacts control how those charges move. With forward electrical bias, holes stay at one interface while electrons create a current that can be read. In this mode, the device retains a record of the light. With no bias or with reverse bias, the stored holes are released, and the component works as a detector. It can shift between these roles without changing its physical structure.

The researchers report that it detects light as weak as a few nanowatts per square centimeter and responds on a nanosecond timescale. Bright illumination can leave a lasting optical state, while weaker light pulses create several temporary states. An electrical reset returns the device to its starting condition. It also showed repeatable write-and-erase behavior after extended storage in air and operated stably at temperatures up to 300°C.

To test its computing potential, the team used measured device states in a neural-network simulation that classified clothing images. The model reached more than 90% accuracy and performed close to a full-precision software version. A fabricated small array also showed that individual pixels could detect and retain optical inputs, suggesting that groups of devices might sense information in parallel and handle some processing locally.

There are important limits. The work tested individual devices and a small array, not a large, complete computing system. The clothing-image result came from a simulation based on measurements, so the energy use, density, readout circuits and manufacturing yield of a larger hardware system remain to be tested. The study was led by the Changchun institute with researchers from Peking University, East China Normal University, the Shanghai Institute of Technical Physics of the Chinese Academy of Sciences and Zhejiang University. Its central idea is to use polarization at interfaces to give one component several jobs—a design that may be easier to build into established semiconductor processes than approaches based on stacked two-dimensional materials.