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

Turning 20
Traffic went up since our anniversary
The Cathedral and the Bazaar Turns 27 Next Year, the "Many Eyeballs" Metaphor Was an Early Warning Against Adoption of LLM Slop
More code spewed out by LLMs is a liability, not an asset
Passing Fads in Brands and Passing Fads in Buzzwords
When one company fails (or fails to impress) another one will "take over"
Linus Torvalds Expresses Rage Over Slop Patches Barely Two Months After Opening the Floodgates to Such Patches
As if it's a question of timing, not quality (or lack of audits/quality control)
 
Halo Studios Seemingly Next to be Killed by Microsoft, Many Studios Are Being Shut Down
How many studios are being silently shut down with games cancelled while 60,000+ workers are told to leave the company?
Links 02/12/2026: "The Mental Health Bubble" and Buffett Dies
Links for the day
On Warren Buffett
Remember that Warren Buffett was a close ally of Bill Epsteingate
IBM Has Become So Disgusting in Its Workers' Minds. Many Are Fleeing (Exodus).
IBM has mass layoffs, but nobody in the American press wrote about it
Layoffs Have a New Word (or Words), the Press is Dying
"...offered some employees to leave the company"
NVIDIA Confidently in Support of Sex Pests
Can rich people get away with crimes?
Fondness for Software Freedom is Based on Reason
Free software became successful and is a growing movement after more than four decades
Solicitors Regulation Authority (SRA) Inaction and Incompetence - Part VII - Death Threats by Hired Guns Don't Seem to Trouble the SRA
No words can describe how bad the SRA is
Mainstream Media as Megaphone For Charlatans and Fraudsters Who Sell "Hey Hi" (Magic)
No, cryptography is not dead
Peter Shor 'Came Back' Online Just to Warn Us That Slop is Breaking the Online Space
"The Internet is officially dead, killed by AI."
More GAFAM Layoffs This Week, Amazon Takes About 12 Billion Dollars in Loans Every Month This Year (on Average)
Amazon is finding out that in a tough economy people buy fewer things
Microsoft Lunduke Found a Way to Discredit Any Effort to Increase Women's Participation in the Tech Workforce
He'll just claim that such efforts as "Trans Activism"
theregister.com is Fast Becoming a Slop Farm (or Slopfarm) With Slop Images by Default
will The Register MS still qualify as journalism?
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Tuesday, December 01, 2026
IRC logs for Tuesday, December 01, 2026
Gemini Links 02/12/2026: Electrocution, XIAO Robot Kit, and Simple RC Circuit
Links for the day
This Month Richard Stallman Warns Against "LLM Sabotage" of Software Projects
They say "Stallman was right" (past tense) because they tend to realise this when it's already "too late"
IBM Reducing Costs (But Don't Call it "Layoffs")
IBM's brand is dying
Rumour: Microsoft 'Bloodbath' (Mass Layoffs) in January, Weeks After Staff Had Chance to Take 'Voluntary Redundancies' (So-called 'Buyouts')
"Seeing some chatter about a possible 20-30% cut across MCAPS in January"
There Are Still Microsoft Mass Layoffs (the 60,000 Workers Asked to Leave Aside, They Have Days More to Decide)
The involuntary nature of it shows Microsoft is in a real rush to cut costs[C
Gemini Links 01/12/2026: Slop, Gemlogger, and Markdown
Links for the day
Links 01/12/2026: Gmail Ending “Send As” and "Health Care Is the Affordability Crisis"
Links for the day
Gemini Links 01/12/2026: Start of Meteorological Winter, Switching to Android after 20 Years of iPhone, and Phone Hell
Links for the day
Links 01/12/2026: Cheeto Threatens Media for Refusing to Call Slop Plagiarism “Super Intelligence” and Anti-SLAPP Laws Now Spread in Europe!
Links for the day
Anti-SLAPPs Bill in the UK Already Inspiring the Same in the Rest of Europe, "Including Provisions Addressing Third-Country Lawsuits."
The UK ought to pay close attention to legislation that it helps inspire
What the UK Supreme Court Can Do Regarding SLAPPs Impacting Brits (by Proxy, From Abroad)
The issue of sovereignty will grow in prominence as the US gravitates further and further towards enemies of our nation
Microsoft Workers Have Only a Few Days Left to Say They'll Leave This Month (About 30% of All the Staff Must Decide)
What's at stake here isn't "hey hi" or anything like this
Microsoft Will Use "Green Cards" for More Silent Layoffs (Not Counting the 60,000 Workers Asked to Leave the Company)
That won't count as "layoffs"
Microsoft Still "Slides XBox Gently Into the Night" (Zenimax Effectively Shut Down 5 Years After Microsoft Bought It)
XBox sales have never been worse
In 2026 the Media Failed to Report on Red Hat Layoffs (There Were Plenty)
headcount down by 2,000
People Still Develop New IRC Clients (the Case of Halloy)
Seeing new IRC clients is a delight and they're actively maintained, which means there is a demand for them
Richard Stallman is Being 'Lobbied' by LLM Boosters, Who Are Basically LLM Addicts (Too Lazy to Code and/or Understand What Code They Commit)
He's basically arguing against LLM boosters
SUEPO Committees of The Hague and Munich Secure Industrial Actions - Including Strikes - Until June 2027
If the EPO carries on breaking laws in order to fake "production", the backlash from the public will grow and the entire legal framework around patents be seriously questioned
American Media is Definitely Never Going to Mention Stealth IBM Layoffs in 2026
We'll continue to check if American media will ever mention the IBM layoffs in the US
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Monday, November 30, 2026
IRC logs for Monday, November 30, 2026
Gemini Links 01/12/2026: Movies, CD Player Unrepair, and "Without LLMs"
Links for the day
Windows Down to 18% in Haiti
Android reigns
PIPs, Confluent Attrition, and Being Rewarded for Sexual Harassment at IBM
IBM is nowadays living on bailouts, loans, and old contracts that it struggles to renew
Gemini Links 30/11/2026: Slop 'Poetry' and Computer Security Day 2026
Links for the day
Munich Votes for EPO Strikes Until Next Summer, So Far About 20,000 Days of Strike
They speak of "~20.000 days of strike" across strikers
Solicitors Regulation Authority (SRA) Inaction and Incompetence - Part VI - Microsoft Mailbox Handled by Bots and Templates
Today we get to the evidence
Stallman the "Populist" (Talk Later Today in Cuenca, Ecuador)
Stallman, in my experience, treats decent people very decently
Resumption of the Series About the Solicitors Regulation Authority (SRA)
Today is a great time to tell our story and present the evidence
De Facto Hiring Freeze Amid Mass Layoffs at IBM and Microsoft
But the media doesn't talk about it, the misframing is very abundant
Links 30/11/2026: Jensen Huang "Facing Tough Questions" and Patents Squashed for Large Monetary Awards
Links for the day
Gemini Links 30/11/2026: Shaving After Many Years, Three Years on Gemini, and Live Auctions
Links for the day
NVIDIA Corp Starting the Week Poorly, as Anyone With a Clue Predicted
There are many "hey hi" startups out there that merely exist, transiently, on NVIDIA loans
Former (Two-Year) Debian Project Leader Uses LLM Slop in His Blog
The slop-pushing employees are endangering the project
Microsoft Lunduke Outsourced Everything, Got Cracked
As far as we can tell "thelocals" didn't suffer a breach, the problem is limited to Microsoft Lunduke
Links 30/11/2026: "Triumph of the Right in Spain", Antalya Served Big Oil
Links for the day
Slop-Excluding 'Purists' Would Produce Better Software
Life is too short for slop or for tolerating people who slop
Slop Versus Prof. Knuth
Knuth is drowning in chaff
Recognising High-Profile Deniers of Sexual Crimes (Proactively Protecting Themselves)
They are normalising chauvinists and sexual crimes, this is what they do
When the Dictator Says Nvidia and Microsoft Are "National Champions" While Repeatedly Calling Russia's Dictator His "Friend"
Is this a form of treason?
The NVIDIA Scandals Resume Today
The public opinion regarding the CEO of NVIDIA is very negative
The Register MS is a GAFAM Megaphone
Revenue was there, but it was exceeded by their expenses. They lose money.
IBM Looking for a Cheaper Workforce Because the Revenue Can't Grow (the Numbers Show It's About Salaries, Not a Skills Shortage)
It's milking the brand while tarnishing it
Links 30/11/2026: Climate Talks Undermined by Polluting Oil and Gas Giants, Millions of Turkeys Thrown in the Trash This Thanksgiving
Links for the day
Gemini Links 30/11/2026: First Rave, Thanksgiving Thoughts, and Computer Games from the 90s
Links for the day
Anatomy of SLAPPs in the UK
Some people profited from bullying
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Sunday, November 29, 2026
IRC logs for Sunday, November 29, 2026
Almost All Layoffs Are Becoming Silent (Even Without NDAs)
Trackers that do not adapt will be seen as obsolete or misinformation