Imitation might be the sincerest form of flattery, but researchers in Japan don’t think cuttlefish are trying to flatter hermit crabs when they appear to mimic crustacean arm movements.

In videos from a University of Ryukyus study published in the Journal of Ethology last month, pharaoh cuttlefish are seen displaying an arm-flapping behavior that resembles the movements of a crab, while also lightening areas of their skin. Kohei Okamoto and his research team hypothesized that the cuttlefish may be emulating hermit crabs in order to inconspicuously approach their prey or protect themselves against predators.

Hermit crabs are filter feeders and don’t pose a threat to cuttlefish prey, which include small fish and mollusks. If cuttlefish pretend to be crabs, it could allow them to get closer to their prey without detection, Okamoto said. Mimicking crustaceans would also give off the impression of a hard shell, which might protect cuttlefish from other hungry sea animals.

When placed in hunting scenarios, the cuttlefish that appeared to imitate hermit crabs captured twice as many fish as those that didn’t.

The cuttlefish in the study were hatched in the lab and were never exposed to crabs, said researcher Ryuta Nakajima, who is now studying possible environmental triggers for this behavior.

“Are they learning from actual direct observation or is this programmed into genetics? [This] kind of brings up an interesting question about intelligence and complex behaviors,” he said.

One theory is that the cuttlefish observed crustaceans and learned this behavior during their embryonic stage, Nakajima said.

Researchers first observed the jointed arm behavior in 2011 while conducting other cuttlefish experiments, noting that the cephalopod displayed the behavior while hunting and after they were introduced to a larger tank.