All posts

Color perception and multidimensional scaling

1024 Farben (358-2)

If you were to ask me what 14605395 divided by 7321 is, I am bound to disappoint you. Luckily, calculators exist, so you should not be asking a human, in the first place. Nowadays, finding a comfortable balance between what humans should do and what machines should take on is extremely hard. That's why, now more than ever, I want to show you what I consider to be a perfect example of splitting a task between human and machine components.

In 1954 The Journal of Psychology published Gosta Ekman's paper called "Dimensions of Color Vision". The title of the paper should already hint at the interdisciplinary nature of the research. By definition, "color vision" is a very human-centered topic. On the other hand, "dimension" is a very technical concept. Humans are very complex creatures and typically do not perceive the world through strict mathematical constructs. So, to connect the two sides of the coin, we need to have a way of (1) measuring human perception and then (2) mapping this perception to whatever technical spaces we have in mind.

If I come and directly ask you, "how are colors geometrically arranged in your head?", you will find it really hard to give an unbiased answer. Your mind will probably go to either a linear color spectrum you have seen plotted in a physics book or maybe a color wheel that is very common in photo-editing apps… or even something else, but you will try to find the answer through your memories and not through your perception. This is not what we are after.

To serve the goal, Ekman modifies the question and turns it into something that humans are better equipped for. He displays two colors on a screen and asks the participants to estimate how similar these colors are. He gives them a scale from 0 to 4 (zero meaning not similar at all, four meaning identical) and notes down answers from multiple study subjects.

Now we have statistical data, but this does not answer our original question. How do we get from "red looks similar to orange" to "human perception of color is 2-dimensional"? That's where machines come in, but first, let me explain the technique very briefly (reserving more technical details for the future).

German cities MDS

Suppose, we work with a list of 4 cities in Germany: Cologne, Hamburg, Munich, and Berlin. We know that Berlin and Hamburg are roughly 255 km apart, Hamburg and Cologne - 356 km, and so on. Can we take this set of distances between cities and figure out their relative position on a map? Of course, we can! After all, maps have existed for way longer than anything manmade could fly and take photos from above. All that early cartographers had at their disposal was chunks of the whole picture. So, there must definitely be a way to put the pieces together.

The method is called multidimensional scaling (MDS) and it does exactly that: takes a list of distances between objects as an input and reconstructs the configuration of these objects in space. I will not go into the details of the algorithm, but you can easily trust me when I tell you that the larger the input gets, the higher the computational effort becomes (hence, the involvement of a machine). This is exactly how we can get from pairwise color similarities to finding a hidden map inside the human brain.

As I said in the beginning, what I find spectacular about this paper is the story of a perfectly balanced workload between humans and computers. Humans are good at comparison. Computers are good at, well, computing. We cannot ask humans to look into their subconsciousness and give us a precise image of their perception, so (1) we ask humans a human question and (2) we use a computer to look for the patterns behind their answers.

Color MDS

If you are curious about the result, it's an almost perfect circle, which, to me, is absolutely fascinating. This does not make any sense from the physical viewpoint. Light waves increase in their wavelength from blue to red. Red does not come back to blue. The light spectrum is not cyclic in its nature, but color is perceived as such by humans. Ekman's paper is (and I quote) "psychological with regard to both problem and method", but if you are reading this with the hope of a more physiological explanation, we do have that as well.

We detect colors not a single photon at a time, but in bulk. In order to assign a "color" label to this bulk, we have three different receptors, responsible for detecting blue, green, and red light signals (or short, medium, and long wavelengths). When we see blue and red light at the same time, our brain translates that to what we call magenta, which does not correspond to any single frequency in the physical light spectrum. Magenta bridges the gap between red and blue and we get a cyclic perception of color.

But why a circle, specifically? It does not need to be. I guess, our mind just goes for simplicity. Circle is, after all, the simplest cyclic shape imaginable.


Title photo: 1024 Farben (358-2) [Gerhard Richter, 1973] | Kunstpalast Düsseldorf

[1] Ekman, G. (1954). Dimensions of Color Vision. Journal of Psychology, 38, 467-474. https://doi.org/10.1080/00223980.1954.9712953