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

"Social Dialogue" With the Man Who Never Faced Real Competition at the European Patent Office (EPO), He Buys the Voters and Eliminates Rivals
Will the "Pretender" write back?
Greenwashing Corruption With a "Chief Sustainability Officer", Who Infamously Defended Battisetelli's Crimes at the EPO and Petitioned for Him
She was rewarded for conspiring against EPO staff, as usual
What I Explained to Police About Blackmail and Death Threats via Burner Accounts (a Practice Which Generally Constitutes a Crime)
Today I've communicated several times with police
Improving the Static Site Generator
Our system has fixes triaged
 
In IBM, PIPs and RAs (Layoffs) Have Become Almost the Same Thing, Workers 'Expire' With Age (Seniority, Experience) and Empathy is Punishable by Termination
IBM does seem like a dead company
At Microsoft, PIPs Are Sometimes Known as "LITE" (a Silent Layoffs Legal Hack or a Shrewd Workaround to Skirt WARN Act)
Zero "layoffs" to report
Gemini Links 28/07/2026: “Strategies Against Algorithms” and DIYers
Links for the day
Digital Restrictions (DRM) and Microsoft: What Kills XBox Will Kill Windows Next
Microsoft wrongly and very arrogantly assumed that users would tolerate everything it throws their way
GNU/Linux in Afghanistan Reaches 7%
For many years it was stuck at less than 1%
Links 28/07/2026: "People’s Claude Chats Are Publicly Accessible Online" and SpaceX Stock Crashes Like Its Products
Links for the day
UK tech sector missing from democratic process
Reprinted with permission from Daniel Pocock
How Not to Cover Elections (Democracy Relies on Reliable, Complete Information)
Misinformed voters are a recipe for disaster
Microsoft E.E.E. (and "Bait and Switch") Going Exactly According to Plan
That is what they are trying to tell us and the companies that employ us
IBM: An Old Company That Hates Old People
Remember that's coming to Red Hat workers in 2 months
Strict Policy on Violence and Violent Language
This matter is now being escalated to law firms
Avoiding Discrimination Against People With Disabilities
work underway to improve the system which runs the sites
Links 28/07/2026: XBox DRM Doomed Everyone (Cannot Play Anything), Slop (Ponzi Scheme) Being Pinkwashed Now
Links for the day
Gemini Links 28/07/2026: Ethics, GIMP Script-Fu, SMTP Versus Gemini, and Proposal for Better TOFU
Links for the day
To a Sociopath, Ethical People Are Bad People. Don't Fall for It.
If you put sociopaths on a pedestal, the pedestal will break
Diversity in Debian
bringing up the topic is the real problem, diversity itself is a taboo subject
GNU/Linux in Brazil. The B in BRIC(S).
the "market share" is assessed to be around 5%
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Monday, July 27, 2026
IRC logs for Monday, July 27, 2026
Hate Consumes the Haters
If you hate someone (or something) and you're willing to do anything for "hate rituals", then at the end the emotion will outweigh reason and it'll backfire, surely
GNU/Linux Rises Some More Internationally, statCounter Now Estimates Its Usage on Desktops/Laptops at 7.7%
significant growth for GNU/Linux in Japan, China, Thailand, Vietnam, Indonesia and Cambodia
IBMers on PIPs and the Age (or Cost) Factor
People in their 50s seem to be targeted as they are considered "expensive"
Sad State of Troll-Feeding British Media (Establishment Channels Promoting Total Idiots)
Breeding ignorance means people will assume they have a choice between two pieces of trash: "Nige" or a literal trash can
Links 27/07/2026: Sleepless Japan PM Takaichi Becomes Unpopular and Data Centre Magnate Confiscate Land Without Consent
Links for the day
A Few Hours Ago The Register MS Published an 'Article' With "AI" 32 Times in It, Including First Word in Headline and Summary. It Was Paid SPAM "Sponsored by Hammerspace".
The lost media is engaging in self-harm
Microsoft is Down
This relates in a timely fashion to what we published yesterday
In Techrights, Gemini and HTTP/HTML Are Very Different
Those were never equivalents or mirrors, those are two things that are inherently different and are maintained by different teams
Gemini Links 27/07/2026: Gemified Internet RFCs, “Junk DNA” Is Commented-Out Code, and More
Links for the day
The Techrights Gemini Capsule Was Never a Mirror
Techrights has long taken accessibility quite seriously
Americans Are Not Our Masters
If you are subjected to online abuse, don't give up
Daniel Pocock Campaigns Around "Safety of Children Online" and "Cybersecurity"
There seems to be a growing 'coalition' in the UK based around important issues which impact the entire planet
XBox the Console is Practically Finished (Unofficially), Even the Streaming ("Live") or DRM Service is Dead
XBox has never been closer to profitability
Many CEOs Are Just Glorified Scammers With Suits and Ties
Economies cannot function when few people abuse them for self-enrichment
After statCounter Figures Out Many "Unknowns" Were in Fact GNU/Linux the "Market Share" Estimate in China More Than Doubles
Japan is the same for similar reasons
peppe8o - a Site About Raspberry Pi, Arduino and Electronics - Has Turned Into a Slopfarm
We won't be linking to it anymore
Feeding 'the Children'
Maybe some time soon we'll do a fund-raiser to help feed the birds
Japan: GNU/Linux Crosses the 5% Threshold, Two Years Ago It Was Only 1%
Now it's at over 5%
We Need More Transparency
Our heads of state are very much aware of and concerned about SLAPPs and censorship
"The War on Children" Explained by The Cyber Show
Consumer protection and the war on children
EPO Cocainegate and Current EPO/EU Series to Carry on for Months to Come
Another week has begun
When IBM "Managers Have to Mark 15% of Their Teams as Low Performers" a PIP Means Likely Layoffs (Disguised as a Performance Issue)
"IBM is a Law firm with an I/T department."
Links 27/07/2026: Chatbots Lead to Suicides, Social Control Media Intentionally Designed for Addiction
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Sunday, July 26, 2026
IRC logs for Sunday, July 26, 2026
Daniel Pocock in Mainstream Media Again
AFR wrote an article today. It is about Pocock and another contender.
Millions of Daily Requests
4.5+ million requests in 4 days
In statCounter, a Lot of "Unknown" Turns Out to be GNU/Linux
GNU/Linux has more than doubled
3,500 Active Gemini Capsules Soon
How much longer before 3,500+ active? A month?
Gemini Links 26/07/2026: European Eclipse, Writing About Writing, and Comments on Formatting Gopher Posts
Links for the day
Stigma of Being Laid Off by Microsoft
One might call this the "curse" of having worked for Microsoft
Silent Layoffs (PIPs) Have Allegedly Accelerated Since IBM's Stock Cratered
"IBM is Managing Decline, Not Building Growth"
Non-Techs Using Slop Run Fedora and It's Turning Out to be a Total Disaster
RIP, Fedora?
Gemini Links 26/07/2026: Beach Day, CAs, and Plaintext
Links for the day
Sweden Needs GNU/Linux and Free Software, Not GAFAM
home of IKEA and ABBA
Being Pro-Slop is Death Knell to One's Credibility
It's not hard to see Ubuntu users resisting and antagonising this
Maintenance Today
Preparing for more mass-publication activities
Links 26/07/2026: "Zelenskyy Says Russia Wants To Bring North Korean Troops Into Ukraine", Muslim Van Ramming Attack on Berlin Pride
Links for the day
Centrica fraud exposed: worse than Palestine Action 'terrorists' with cardboard placards
Reprinted with permission from Daniel Pocock
Links 26/07/2026: "Nate Silver Discovers the Educated Poor" and "India’s “Cockroach” Protest Movement Faces State Repression"
Links for the day
The Slop Bubble is Killing the Planet, Not Just the Economy
The chatbot/LLM speculation bubble not only causes a health crisis, a mental health epidemic, and climate change; it's also crashing the economy on several levels
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Saturday, July 25, 2026
IRC logs for Saturday, July 25, 2026