Twist-n-Sync: Skoltech scientists use smartphone gyroscopes to sync time across devices

February 22, 2021

Skoltech researchers have designed a software-based algorithm for synchronizing time across smartphones that can be used in practical tasks requiring simultaneous measurements. This algorithm can essentially help turn several devices into a full-fledged network of sensors. The paper was published in the journal Sensors.

If you want a network of intelligent devices - say, an array of cameras capturing a dynamic scene or another kind of network of sensors - to work properly, one of the fundamental tasks you have to solve is clock synchronization: all devices should have the same timeline, often up to sub-millisecond for the more challenging tasks. Modern smartphones can easily be used as multipurpose sensors tied into a network, but they lack the interface for hardware clock synchronization, especially in environments where GPS, which can also be used as a global clock, is not available. And due to all non-atomic clocks slowly but inevitably drifting, they have to be periodically resynchronized.

"Smartphone networks can work as microphone arrays to capture sound waves and gather more information about not just sound but also direction. This is useful for noise cancellation techniques: noise cancellation algorithms pass the signal only from a specific direction, for instance, a voice of a person among office or city noise," Marsel Faizullin, Skoltech PhD student and a coauthor of the paper, says.

Microphone arrays can also be used for what's called sound-based trilateration: a user's smartphone produces ultrasound, and an array of other smartphones receives this signal. By the delay between received signals, one can determine the position of a user.

"You can also use this technique for soft-synchronization of mobile phones with hardware-based systems. One example is a flash in cameras; with our method, any mobile phone could become part of a professional photography system," Skoltech Assistant Professor Gonzalo Ferrer adds.

Faizullin, Ferrer and their colleagues from Skoltech and Saint Petersburg State University developed a clock synchronization method based on micro-electro-mechanical systems (MEMS) gyroscopes, now installed in every smartphone. They were able to design an algorithm that, in experiments with two smartphones capturing simultaneous photos, showed better performance than existing synchronization software, achieving an accuracy of several microseconds.

"This accuracy is enough for making a panoramic photo of a football or hockey game with a smartphone rig. An ice hockey puck achieves velocities of up to 160 kilometers per hour; in one millisecond it travels roughly for four centimeters, and in 20 microseconds it's 0.9mm. This is much less than a single-pixel field of view of any professional camera. It means that this is also enough for multi-camera synchronization capturing a hockey game. Definitely, an accuracy of microseconds is more than enough for any tasks involving consumer grade photo or video cameras," Marsel Faizullin says.

To use the algorithm, one needs to grab the smartphones in one hand, twist them a little and let the software do the rest in terms of all processing and computations for clock synchronization - it is literally a "twist and sync" approach.

For future research, the team decided to apply their method to systems that include not just smartphones but other sensors such as lidars, depth cameras and so on. "This task is more complicated because of very different software and hardware compared to just several identical smartphones. We are developing our method in this direction to be more practically useful," Faizullin says.
Skoltech is a private international university located in Russia. Established in 2011 in collaboration with the Massachusetts Institute of Technology (MIT), Skoltech is cultivating a new generation of leaders in the fields of science, technology and business, is conducting research in breakthrough fields, and is promoting technological innovation with the goal of solving critical problems that face Russia and the world. Skoltech is focusing on six priority areas: data science and artificial intelligence, life sciences, advanced materials and modern design methods, energy efficiency, photonics and quantum technologies, and advanced research. Web:

Skolkovo Institute of Science and Technology (Skoltech)

Related Algorithm Articles from Brightsurf:

CCNY & partners in quantum algorithm breakthrough
Researchers led by City College of New York physicist Pouyan Ghaemi report the development of a quantum algorithm with the potential to study a class of many-electron quantums system using quantum computers.

Machine learning algorithm could provide Soldiers feedback
A new machine learning algorithm, developed with Army funding, can isolate patterns in brain signals that relate to a specific behavior and then decode it, potentially providing Soldiers with behavioral-based feedback.

New algorithm predicts likelihood of acute kidney injury
In a recent study, a new algorithm outperformed the standard method for predicting which hospitalized patients will develop acute kidney injury.

New algorithm could unleash the power of quantum computers
A new algorithm that fast forwards simulations could bring greater use ability to current and near-term quantum computers, opening the way for applications to run past strict time limits that hamper many quantum calculations.

QUT algorithm could quash Twitter abuse of women
Online abuse targeting women, including threats of harm or sexual violence, has proliferated across all social media platforms but QUT researchers have developed a sophisticated statistical model to identify misogynistic content and help drum it out of the Twittersphere.

New learning algorithm should significantly expand the possible applications of AI
The e-prop learning method developed at Graz University of Technology forms the basis for drastically more energy-efficient hardware implementations of Artificial Intelligence.

Algorithm predicts risk for PTSD after traumatic injury
With high precision, a new algorithm predicts which patients treated for traumatic injuries in the emergency department will later develop posttraumatic stress disorder.

New algorithm uses artificial intelligence to help manage type 1 diabetes
Researchers and physicians at Oregon Health & Science University have designed a method to help people with type 1 diabetes better manage their glucose levels.

A new algorithm predicts the difficulty in fighting fire
The tool completes previous studies with new variables and could improve the ability to respond to forest fires.

New algorithm predicts optimal materials among all possible compounds
Skoltech researchers have offered a solution to the problem of searching for materials with required properties among all possible combinations of chemical elements.

Read More: Algorithm News and Algorithm Current Events is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to