Arhiiv kuude lõikes: August 2018

Reducing reflections off eyeglasses

Spectacle shops try to sell customers more expensive lenses with glare-reducing coatings. Such coatings are often fragile, which benefits the sellers, because the glare-reducing lenses would need frequent replacement. Another way to reduce glare reflecting into the eye is to find its source and block it. For example, standard flat-lens eyeglasses reflect rays coming from behind and slightly to the side into the eye. If the light source behind can be eliminated, e.g. curtains drawn across a window, then the glare disappears.
There may be many sources of light that reflect from the glasses into the eye, for example due to multiple head orientations and light sources all around. In that case, blocking the light at the source is infeasible, but the rays causing glare can still be blocked closer to the eye. One way is to put side panels on the earpieces of the glasses. The side panel must touch the head with the edge closer to one’s back, so rays from behind cannot get between the earpiece and the head, so cannot reflect off the lens into the eye. The side panels can be cut from cardboard and slipped on the earpieces, as shown in the photo below.

The side panels will also block unwanted light coming from one side into one eye directly (without reflecting off the lens). An example is the Sun shining through a window to the side, causing eye strain.

Self-balancing computer game

In both tabletop role-playing and computer games where players choose between different characters, some characters may be stronger than others when played optimally. This is undesirable in multiplayer games, because either most players will choose the stronger characters or some players will be handicapped by their weak character, which tends to reduce the enjoyment. Game designers spend time and resources “balancing” the game, i.e. changing aspects of the characters to give them all approximately equal strength. It is difficult to predict all possible ways a character may be played, so players may discover tricks that make a character significantly stronger than others. To counteract this, the game can be made self-balancing: the more players choose a given character, the weaker that character becomes. Then the discovery of ways to play a character better (giving additional strength) initially benefits the discoverer, but is neutralised with widespread imitation, analogously to innovative firms reaping monopoly profits initially from their patents, but eventually losing their competitive advantage to imitators.
The simplest way to self-balance is to subtract some measure of strength, e.g. health points, armor, attack points from the most frequently chosen characters. One in-game interpretation of this loss of strength to crowding is that each character channels power from some source (magic item, god, nature) and if more people channel a given source, then each of them gets less power. There are other ways to impose a negative congestion externality to achieve self-balancing.
One source of congestion-induced weakening is that in-game enemies (NPCs) fight better against characters they frequently encounter. This can be interpreted as learning (if the enemies flee before dying and later come back) or evolution (if the longer-surviving enemies multiply relatively more). In an evolutionary arms race, players pick characters that are strong against frequently encountered NPCs. NPCs vary in their resistance to different attacks and relatively more copies are spawned of those who last the longest under player attack.
Another congestion externality is a shortage of some resource that strengthens a particular class of characters. For example, equipment usable by that class may be in limited supply, in which case if many players choose that class, then they will find themselves under-equipped and weak. There could also be a shortage of materials for manufacturing the equipment, or a shortage of class-specific quests for gaining experience.
To make players (as opposed to NPCs or the game mechanics) the source of disadvantage to a frequently chosen class, the classes should have advantages over each other in a cycle, for example archers defeat riders, riders defeat swordfighters, swords defeat archers. In this case, if a class is frequently chosen, then this invites other players to choose another class that has an advantage over the frequent class, e.g. if many have chosen riders, then this creates an incentive to choose archers. Such a cyclical evolutionary dynamic has been observed in lizards (Rapid Temporal Reversal in Predator-Driven Natural Selection, Science 17 Nov 2006 Vol. 314, Issue 5802, pp. 1111).

Kaugjuhtimisega toruparandaja

Selle asemel, et toruparandaja kliendi juurde kohale tuleb, võiks tänapäeval klienti lihtsamate parandustööde jaoks virtuaalreaalsusprillide kaudu juhendada. Kirurgias on juba aastaid kaugjuhtimise kaudu operatsioone tehtud (kirurg juhib oma liigutuste abil robotit, mis teises kohas lõikust teeb). Sarnaseid juhiseid saaks oskustöötaja mitteoskajale haptilise tagasiside kinnaste ja virtuaalreaalsuse kaudu anda: prillid näitavad vaateväljas käeliigutusi ja kindad annavad juhendajale tagasisidet juhendatava avaldatava surve ja pisiliigutuste kohta. Vaja vaid tarkvara, mis reaalajas liigutused ette kuvab ja puudutuste ja surve osas tagasisidet annab.
Mitut liiki oskustöölise (lukksepp, tisler, mehaanik) kohaletuleku saaks asendada kliendi (või muude madalama kvalifikatsiooniga juhendatavate) kaugjuhendamisega. Kui kirurgias on kaugjuhtimine võimalik, siis peaks see tehtav olema ka lihtsamates valdkondades. Juhendataval peaksid muidugi paranduseks vajalikud tööriistad olema, aga need on enamasti odavad (mutrivõtmed, kruvikeerajad, haamer, tangid jne), nii et neid saab igaüks kodus pidada. Kui kodus pole, siis vähemalt suurlinnades saaks pakkuda kohaletoomisega tööriistalaenutust. Kohaletooja võib olla isesõitev auto või lihttööline (autojuht).

“What if” is a manipulative question

“What if this bad event happens?” is a question used as a high-pressure sales tactic (for insurance, maintenance, upgrades and various protective measures). People suffering from anxiety or depression also tend to ask that question, which is called catastrophising. The question generates vague fears and is usually unhelpful for finding reasonable preventive or corrective measures for the bad event. Fearful people tend to jump on anything that looks like it might be a prevention or cure, which sometimes makes the problem worse (e.g. quack remedies for imagined rare disease worsen health).
A more useful question is: “What is the probability of this bad event happening?” This question directs attention to statistics and research about the event. Often, the fear-generating event is so unlikely that it is not worth worrying about. Even if it has significant probability, checking the research on it is more likely to lead to solutions than vague rumination along the lines of “what if.” Even if there are no solutions, statistics on the bad event often suggest circumstances that make it more likely, thus information on which situations or risk factors to avoid.
These points have been made before, as exemplified by the aphorisms “Prepare for what is likely and you are likely to be prepared” and “Safety is an expensive illusion.”

Mitmekülgse toitumise jaoks loeb toidu sisu, mitte vorm

Toidud, mis näevad erinevad välja ja võib-olla ka maitsevad erinevalt, näiteks sai ja pasta, võivad toitainetesisalduse poolest väga sarnased olla. Sai ja pasta on mõlemad nisu, nii et sarnane koostis pole üllatav. Seevastu kanafilee ja tofu on erinevatest allikatest, aga koosnevad mõlemad veest ja valgust (täielikust valgust, ehk kõiki vajalikke aminohappeid sisaldavast). Vee proportsioon on tofus kõrgem, aga osa sellest saab välja aurutada või pressida, mis teeks koostise väga sarnaseks.
Toidupüramiid liigitab õigustatult, kuigi lihtsustades, toidud kategooriatesse – toidud samast kategooriast annavad sarnase toitaineprofiili. Lihtsustus võib eksiteele viia kui mõnest kategooriast valida põhiliselt üksainus esindaja, näiteks riis või mais teraviljade hulgast. Nii riisis kui maisis on vähe teatud aminohappeid, mida inimkeha toota ei suuda. Täieliku valgu saamiseks peaks riisi kombineerima ubadega, mis puuduolevate aminohapete poolest rikkad.
Vahel saab toidupüramiidi ühe kategooria esindaja asendada teisega, näiteks linaseemnejahu on sarnane munaga. Taimetoitlased selle asenduse ka teevad, samuti liha asendamise sojavalgu, rauarikka spinati ja B-vitamiini rikka pärmiga.
Arvutiajastul saaks toidupüramiidi asendada palju täpsema tabelarvutusprogrammi tabeliga, kus on kirjas vajalikud toitained koos kogustega ja paljude toitude toitainesisaldused. Tabel arvutaks välja palju kombinatsioone toitudest, mis inimese kõik toitainevajadused katavad (arvestades toidu sisu, mitte vormi) ja pakuks neist kombinatsioonidest näiteks vaheldusrikka nädalamenüü (kogused ja toidud). Tabelisse võib lisada toiduainete hinnad antud piirkonnas, mis laseks arvutada näiteks kõige odavama tervisliku menüü. Lisades optimeerimisele piirangud, näiteks et sama toit ei tohi korduda tihemini kui 3 nädala tagant, saaks lisaks odavale ja tervislikule ka vaheldusrikka menüü.
Suuremahulise toitlustamisega tegelevates organisatsioonides tõenäoliselt sarnast menüüplaneerimist ja kulude optimeerimist juba tehakse, aga seda saaks lihtsalt teha ka üksikisiku tasandil.

Kuritegevuse väidetava põhjuse vähendamine

Kuritegevuses, terrorismis ja teistes probleemides süüdistatakse vahel suurt noorte vallaliste meeste hulka või suurt meeste-naiste suhtarvu, otsesemalt meeste seksuaalset frustratsiooni. Kui see tõesti kuritegevuse põhjus on, siis on lahendus lihtne: võimalikult elutruud seksrobotid nii mehi kui naisi jäljendava välimusega. Pakkudes roboti abil rahuldust igaühele riskigrupis, olgu see grupp noored mehed või keegi muu, peaksid potentsiaalsed kurjategijad frustratsioonist lahti saama, mis viiks rahumeelsele seaduskuulekale käitumisele.
Tehnoloogia elutruuks robotiks on juba olemas: naha saab teha plastikust või vahast (vahakujud on üsna elutruud), hingamisliigutusi saab jäljendada lineaarmootoriga, südamelööke basskõlariga, ka soojenduse saab sisse panna, vedelikku teatud kehaosadesse pumbata, lihtsaid häälkäsklusi odava nutitelefoni abil ära tunda jne. Skeleti saab plastikust 3D printida ja lihased tihedast vahtkummist välja lõigata. Lihase keskele võib panna kaabli, mida väike elektrimootor enda ümber kerib (ja lahti kerib) – nii saab lihaseid liigutada. Liigutused, mida seksrobot tegema peab, ei ole eriti keerulised, nii et pole vaja peenmehaanikat ega väga täpset taktiilset tagasisidet. Samuti käsklused, mida robot tundma peab, on lihtsad ja neid on vähe, nii et üsna lihtne mikrofon ja arvuti suudaksid neid tuvastada.
Põhiline sellise roboti tootmiskulu on kokkupanemise aeg ja tööjõud. Materjalid kokku maksavad ilmselt alla 1000 euro roboti kohta, eriti kui roboteid suures koguses toota. Kogukulu jääb tõenäoliselt alla 10 000.

News are gradually biased by re-reporting

The (science) news cycle occurs when the original source is quoted by another news outlet, which is quoted by another outlet, etc, creating a “telephone game”, a.k.a. “Chinese whispers” familiar from kindergarten. Each re-reporting introduces noise to the previous report, so the end result may differ diametrically from the original story. This news cycle has been identified and mocked before, e.g. by PhD Comics.
The telephone game of news outlets has an additional aspect that I have not seen mentioned, namely that the re-reporting does not add random noise, but noise that biases the previous source deliberately. Each news outlet, blog or other re-poster has a slant and focusses on those aspects of the story that favour its existing viewpoint.
A single outlet usually does not change the story to the complete opposite of the original, because outright lying is easy to detect and would damage the outlet’s reputation. However, many outlets in a sequence can each bias the story a little, until the final report is the opposite of the original. Each outlet’s biasing decision is difficult to detect, because the small bias is hidden in the noise of rephrasing and selectively copying the previous outlet’s story. So each outlet can claim to report unbiased news, if readers do not question why the outlet used second-hand (really n-th hand) sources, not the original article (the first in the sequence). A single manipulator thus has an incentive to create many websites that report each other’s stories in a sequence.
The moral of this text is that to get accurate information, read the original source. Whenever you see an interesting news article, work backward along the sequence of reports to see whether the claims are the same as in the first report. The first report is not guaranteed to be true, but at least the biases and honest errors introduced later can be removed this way.

Restaurant learning what food people like

A restaurant chain can collect data on what food people like by examining the plates collected from the tables – the more leftovers given the size of the dish, the less popular the food. However, looking at the plates and entering the data takes time. It would be much faster to automate the process. For example, there could be a small conveyor belt for dirty dishes brought back from the eating area. The dishes would be weighed to record the amount of leftovers before scraping and washing. To detect which food was left over, one option is that a camera above the belt photographs the leftovers and then a computer tries to identify the food. This is a complicated machine vision and machine learning problem. A simpler option is to serve different dishes on plates with different shapes, or patterns such as lines and circles that are easily distinguished by computer. Then the plate identifies the dish for the camera, similarly to colour-coded plates identifying the price at sushi-train restaurants.
Even less costly in terms of computation (and without any camera requirement) would be to put RFID tags or other remote-id technology in plates. Each dish would have to be served on a plate with a dish-specific RFID, so the returned plates can be exactly matched to the food served on them. Each plate becomes more costly, but not by much, because RFID tags are cheap.
A single restaurant could also collect data on leftovers, but a chain of restaurants would get a larger dataset faster, thus useful information sooner on which dishes to keep and which to discontinue.

App to measure road quality

The accelerometers in phones can detect vibrations, such as when the car that the phone is in drives through a pothole. The GPS in the phone can detect the location and speed of the car. An app that connects the jolt, location and speed (and detects whether the phone is in a moving car based on its past speed and location) can automatically measure the quality of the road. The resulting data can be automatically uploaded to a database to create an almost real-time map of road quality. The same detection and reporting would work for bike paths.
Perhaps such an app has already been created, but if not, then it would complement map software nicely. Drivers and cyclists are interested in the quality of the roads as well as the route, time and distance of getting to the destination. Map software already provides congestion data and takes traffic density into account when predicting arrival time at a destination. Road quality data would help drivers select routes to minimise damage to vehicles (and the resulting maintenance cost) and to sensitive cargo. This would be useful to trucking and delivery companies, and ambulances.
A less direct use of data on road quality collected by the app is in evaluating the level of local public services provided (one aspect of the quality of local government). Municipalities with the same climate, soil and traffic density with worse roads are probably less well run. For developing countries where data on governance quality and spending is difficult to get, road quality may be a useful proxy. The public services are correlated with the wealth of a region, so road quality is also a proxy for poverty.