Bonum Certa Men Certa

Software is Mathematics

Block diagram Depiction of the framework for detection and classification of 3-D data such as faces or internal organs, as well as benchmarking

Summary: Personal take on why software is just symbiosis of maths

This post is a concise summary of something I have been working on (source code will be uploaded at a later date when I tidy everything up). The figure at the top shows a breakdown of our existing framework, which basically depicts a program as a set of black boxes. Each box merely performs mathematical operations on volumetric matrices. It's maths. It can also be specified most precisely using equations (no need for explanation using code or pseudo-code). For the sake of simplicity, the block diagram contains only core components that are used irrespective of the approach tested. The file loaders, for example, are shown separately. They work very well and can elegantly load datasets based on a data selector. With the exception of test sets that are small (remnants of debugging), there are 6 families of data, some grouped in pairs, some grouped by training/target, some our lab's data in isolation, others for FRGC data from NIST. There are also correct and incorrect matches in isolation. These simplify the plotting of ROC curves in a largely streamlined fashion. The goal is the program is to test new metrics that can be used to analyse anything elastic such as tissue. It has uses in cardiac analysis, brains, and even faces (I have dealt with each of these data types). For large quantiles of 3-D data, about 70 GB of face data gets used.



The nose-finding part may as well be treated as a component that provides orientation o a form of segmentation (it can be a face or even an internal organ which we wish to model and perform binary diagnosis on). Depending on the datasets, different methods are used. Commonly, FRGC data is better off interpreted by finding nearest point, excepting noise. For the lab's data, it is preferable to choose the nearest point within a specified region (usually around the centre, no weighting/scoring based on location although that too would work). This can also be done using ICP, as described later (settings inherited from another box/module) or a Viola-Jones approach with face templates for training, although it is only partly implemented so far. Sphere intersection with plane, as per Mian et al. (with separate slider for radius), is another existing option, but it does not appear to outperform the simpler methods, which work most of the time given some reasonable boundaries (e.g. boundaries to dodge the hair region).

Having identified the tip of the nose correctly, we are cropping out what is left for rigid areas to be isolated. It is quite customisable. Various separation methods and boundary types like circle, ellipsoid, and rectangle have been tested, where circle is the most commonly used one that works in conjunction with binary masks. These come with many sliders and use measurements in X and Y to estimate real physical distances and then factorise pixel-space units, accordingly. There is also a slider for further manual tweaking. And still, it's all maths.

There are some other bits of operation that are worth mentioning; left out from the diagram in order to reduce clutter are smoothers, hole removers, outlier eliminators, and rounding up of values, all of which are optional and very much depend on the data at hand and how it ought to be treated. For instance, FRGC data hardly requires any smoothing. Lab data has offsets that need to be handled systematically depending on the image number. In fact, both datasets do need a lot of branching/forking in the code as their handling and even their size varies (the program is built to handle any image side with any aspect ratio, but for sub-regions to be defined it uses absolute and not relative coordinate inputs).

Then we come to the key part, which actually does more to contribute toward similarity measures. ICP becomes very important in case the initial alignment of the noses is deemed incorrect or the faces are tilted. In practice, assuming the faces are forward-looking and bend neither to the sides or top/bottom, ICP is not supposed to change much. The methods already available are Mian's early ICP method, Mian's most recent ICP method, Raviv's ICP implementation from 2008, and Raviv/Rosman ICP implementation from recent months or years. The program optionally applies translation and optionally it applies the rotation too. In many cases this does not seem necessary as ICP hardly modifies anything substantial.

The model part is not included in the diagram as there are many different things are can be done with a model. PCA, model-building, model assessment, file loaders for models (about 2 gigabytes for some), in addition to more basic measures on which assessment is applied, are basically all sorts of comparators which yield one value for each pair, then proceeding to the plotting of ROC curves (mostly automated following experimental design).

All the above is just mathematics. It can all be described using equations. To patent such stuff would be to claim a monopoly on equations, which means the monopoly covers a wide range (infinite even) of implementations. How can anybody defend the argument that software is not maths? Or that "innovative" software is somehow the exception? If many equations are already patented, how is one supposed to code safely? How can existing methods be enhanced without a violation?

Comments

Recent Techrights' Posts

Starting a Book With a Flawed Premise or Weak Hypothesis
To me, Schneier is a sort of "RMS of sec"
Microsoft's Mass Layoffs (30,000+ in 2025) Not About "AI", Just Business Failure
"AI" is replacing... the old excuses for mass layoffs
EPO People Power - Part XVI - Berenguer Does Not Speak German, So What Did He Tell German Police That Busted Him?
based in Germany and does not speak the language
Challenges for EPO Insiders to Try to Tackle in 2026
Nothing will get solved as long as the circus that runs this show tries to keep the circus going
 
Fighting Over Whose Pockets Are Deeper (or Who Borrows More Money)
When processes favour those who are more wealthy (or more willing to go into infinite debt or steal money of other people) those processes match the attributes of lawfare rather than law
You Know Your Critics Are Jealous and Have Inferiority Complex When...
One day we'll write about all this in great depth
"But Corruption is Everywhere"
"We'll always have Polio..."
Days Without Slop About "Linux"
It's time to move on
Links 27/12/2025: Canada Post Strike Called Off, Debate About Europeans "Working Over Christmas"
Links for the day
Gemini Links 27/12/2025: Household Appliances and Flight Fright
Links for the day
Links 27/12/2025: US Cracking Down on Whistleblowers, Expanding Bombardment Campaigns Worldwide
Links for the day
Resuming EPO Coverage Today, Can António Campinos 'Survive' Cocainegate?
We said we'd continue in the weekend
Links 27/12/2025: More Attacks on Media (Meduza Co-founder Sentenced to Prison in Absentia), "What Owning Music Means To Me"
Links for the day
Gemini Links 27/12/2025: geminiprotocol.net Downtime and Capsular Gemlog Manager
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Friday, December 26, 2025
IRC logs for Friday, December 26, 2025
Tossing Embarrassing News Under the Christmastime Bus
This isn't just some coincidence; those are conscious choices
Victim-Blaming in Debian
Verhelst previously did blame-shifting when Debian suicide clusters happened
IBM Cuts in Japan, Red Hat is Attached to a Sinking Ship
IBM, which controls Red Hat, is a rapidly shrinking company
Manchester United Dumped Microsoft Because Qualcomm Sort of Did
The Windows PCs were an utter failure
Free Software Foundation (FSF) Supported by Unconventional Digital Bartering Communities
But no strings attached
Geminispace: 5,000 Capsules in 2026
There are 4.8k now
Gemini Links 26/12/2025: Careful What You Eat and "My Secret Santa"
Links for the day
The Indigenous Community Versus Corporate AstroTurt and 'Cancel Culture'
Good people will recognise exactly what's happening here and respond to it tactfully
Richard Stallman: Epstein is a Serial Rapist. Bill Epsteingate: Epstein is a Friend.
Supporting the FSF (or Richard Stallman) is supporting those who asserted Epstein had serially raped women
The Paradox of GAFAM: Saying You Protect Women, Appointing Abusers of Women to Run the Company
older articles
Censored by FreeBSD Core Team Secretary, Reinstated After Talking About it in Public
FreeBSD misfiring a CoC?
Links 26/12/2025: Chatbot Toys Terrorising Children, US Undeclared "War on Terror" Unilaterally Extends to Nigeria During Holidays
Links for the day
Links 26/12/2025: French Postal Services Under Russian Attack, U.S. Cheetos Accuse People Who Obstruct Information Warfare by Russia of "Censorship"
Links for the day
Debian's Daniel Kahn Gillmor is Wrong, Signal is No "Gold Standard" (It's Also Promoted by Proponents of Back Doors)
I'm not too sure why Debian or the ACLU would wish to associate with this
Next Year Will be the Year of Quantum, Just Like 2020, 2015, 2010, 2005 and So On
"Quantum" is the future
The Silent Power of Coercion Over Speech
The important thing is optics
Kazakhstan Doesn't Need GAFAM Datacentres (Spy Hubs)
Suffice to say, as far as we can gather nothing came out from the empty (false) promises of GAFAM's "data centers in Kazakhstan"
So Simple That You Can Touch and Feel It
In light of recent experiences
Christmas Music Project: Back to When Music Was Music
now Canonical (or Ubuntu) says we should make available tens of gigabytes of disk space
Internet Relay Chat (IRC) Under Attack by Cross-Network Spam Floods
So far we've been spared (our network has not been targeted at all) [...] Let's hope the spam won't discourage the hundreds of thousands of people worldwide who still use IRC
An "AI-Infused" Windows
Microsoft Windows isn't becoming a worthless pile of garbage by accident
Microsoft Laid Off Over 30,000 People This Year, Coders Are "Too Expensive"
Go get some popcorn. Microsoft "slopware" is about to get real!
Critics Have Long Said Microsoft Produces "Slopware", Microsoft Wants to Prove Them Right
Slop instead of code is a step in the right direction?
The Top 8 Innovations of IBM in 2025
What innovations will come out from IBM in 2026?
And as the Year Turns...
The significance of new years isn't based on geology or astronomy or anything like that
Appliances Versus Computers
Replacing a computer inside an object of some kind or inside an appliance (which nowadays includes "modern" cars) isn't simple and isn't cheap
A Dark Side of Europe
They try hard to silence people who speak about these issues
Why People Love Techrights (and Also Loved "Boycott Novell")
I will continue to publish for many decades to come
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Thursday, December 25, 2025
IRC logs for Thursday, December 25, 2025
Browsing Techrights With a GUI and 10 Megabytes of RAM Per Tab
Some people say it's not possible in 2025, maybe in part because they depend on very bloated software
A Tribute to Richard Stallman
It's about knowledge and sharing
Links 26/12/2025: Impermanence, Salt and Thermometer, Freetube
Links for the day
Gemini Links 25/12/2025: Hibernation and TV Detox
Links for the day
Canonical is Making the Cost of PCs Very High, Due to Unnecessary Ubuntu Bloat
They say the reason for the price surge is LLM hype/frenzy
Canonical's Ubuntu is Bloatware
How did Ubuntu get so fat?
The EPO is a Very Vicious Organisation You Neither Wish to Join Nor Stay in for "Too Long"
Consider what the EPO thinks of its own workers, the staff that actually does real work
2026 Will Hopefully Turn Out to be Slopless
we seem to be starting the post-Christmas period on the right footing
Links 25/12/2025: Mail Carriers in "a Murky Future", Dihydroxyacetone Man’s "Chip Embargo Against China Backfiring Spectacularly"
Links for the day
The Register MS: All I Want For Xmas is Microsoft
they actually put effort into it
How to Win Nobel Prize for Peace
Do you get to Heaven (or peace platitudes) by sleeping with 72 virgins?
The Right to Repair (Especially When Products Are So Poorly Made)
Many electrical appliances fail often/quick and are nearly impossible to repair
Links 25/12/2025: Ample Cover-up Found in Jeffrey Epstein Files; ChatGPT Causes Psychosis, Not a Good Use Case
Links for the day
Giving Money to Free Software
In life, people must make sacrifices to do what's right and just
The Register MS: Don't Use Linux
That really says a lot about The Register MS
EPO People Power - Part XV - EPO Cocainegate to Resume This Weekend
The next installment (number 16) will probably come out this weekend
Microsoft: XBox is Going "Online", "Cloud"...
XBox as a console is pretty much dead
The Year of the Bubble
We hope that in 2026 the marketing liars will find some new buzzwords to latch onto and quit calling everything "AI"
Mozilla Firefox is a GAFAM Browser With Slop, Move to a Free Software Web Browser
on mobile the options would be more limited
libera.chat Was Under Attack Last Night
Several months from now libera.chat turns 5
Free Software Foundation (FSF) Raises Over $300,000 Before Christmas
the FSF made it past $300,000
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Wednesday, December 24, 2025
IRC logs for Wednesday, December 24, 2025