Samsung outspends Apple on research and development: $10.5 billion, or 5.7 percent of revenue, compared with $3.4 billion, or 2.2 percent. (Samsung Electronics is slightly bigger than Apple in terms of revenue — $183.5 billion compared with $156.5 billion — but Apple is larger in terms of stock market value.)

Samsung has 60,000 staff members working in 34 research centers across the globe, including, Russia, Britain, India, Japan, Israel, China and Silicon Valley. It polls consumers and buys third-party research reports, but it also embeds employees in countries to study trends or merely to find inspiration for ideas.

Designers of the Galaxy S III say they drew inspiration from trips to Cambodia and Helsinki, a Salvador Dalí art exhibit and even a balloon ride in an African forest. (It employs 1,000 designers with different backgrounds like psychology, sociology, economy management and engineering.)

“The research process is unimaginable,” said Donghoon Chang, an executive vice president of Samsung who leads the company’s design efforts. “We go through all avenues to make sure we read the trends correctly.” He says that when the company researches markets for any particular product, it is also looking at trends in fashion, automobiles and interior design.

Hangil Song, a Samsung product designer, described a visit to the Marina Bay Sands resort in Singapore, where he said he was amazed by the views of the sky, the cityscape and the water. He wanted to create an effect where water was overflowing from the screen. As a result, taps and swipes on the Galaxy S III’s phone screen create a unique ripple effect.

The genesis of the wide Galaxy Note phone reflects that same kind of consumer research. From focus groups and surveys, Samsung found that many respondents wanted a device that was good for handwriting, drawing and sharing notes. Asian-language speakers, in particular, found it easier to write characters on a device using a pen than typing. Those insights led to the Note, a smartphone that comes with a digital pen.

In courts, jury members have said some of Samsung’s research appears to comes closer to copying. Apple sued Samsung in Federal District Court last year for patent infringement and won a $1 billion judgment. One of the most explosive pieces of evidence was a detailed report breaking down each hardware and software feature of the iPhone and how each compared to Samsung phone features. Samsung is fighting the decision in court.