Public Investment Radar
Personal project · Open data
Overview
The Radar is a page of aggregated data on public procurement in Portugal, focused on information technology. It is a personal project, with no link to any employer or client, made exclusively with public data. It reads the dataset that IMPIC publishes on dados.gov.pt from Portal BASE, with every contract reported since 2015, and presents it by year, by technology area, by sector of the Administration, by procedure type and by duration. The current year appears as partial and is updated as IMPIC publishes the files.
It is not journalism, it is not analysis, it does not comment on contracts, does not assess authorities, suppliers or policies and does not replace IMPIC's official statistics. It measures public procurement, that is, the contractual price of the contracts reported to BASE, and publishes aggregates - never individual contracts or supplier names.
Challenge
BASE data describes each contract with a CPV code and a free text written by the contracting authority. To say how much is spent on cybersecurity or on licensing, those two fields have to be read across more than two million contracts and a decision made, with public and repeatable criteria, on what is information technology, of what kind and from which sector of the Administration.
Solution
- Automatic collection of IMPIC's yearly files through the dados.gov.pt API, with integrity checks and loading into a local database that is rebuilt from scratch from the original files.
- Delimitation of information technology contracts by the main CPV code: software and information systems, IT services, computer and network equipment, communications services and their installation and maintenance. Contracts with a technology CPV but an object of a clearly different nature, such as fuel or furniture, are removed by rule.
- Classification of each contract into one of six areas (Data and AI, Cybersecurity, Licensing and subscriptions, Infrastructure, cloud and communications, Software development and maintenance, Consulting and professional services) by own, versioned criteria that combine the CPV code with expressions from the contract object. What the criteria cannot decide stays in "Other ICT", visible in every chart.
- Assignment of the sector from the contracting authority (Health, Education and science, Justice, Security and defence, Local government, among others) and identification of purchases made through purchasing bodies and centralised framework agreements, which count in a category of their own.
- Automatic checks before every publication: consistency of the series, comparison of yearly totals with IMPIC's annual public procurement reports, and a guarantee that no supplier or authority name reaches the page.
Results
- 12 years of series, from 2015 to the current year, over about 2 million contracts and 148 thousand information technology contracts.
- The yearly procurement totals computed here differ by less than 5 % from the values published by IMPIC in its annual reports, in every year for which a report exists.
- The classification was validated, contract by contract, on a sample of 790 contracts with a value-weighted accuracy above 96 % in every category.
- A current-year monitor, with the most recent months marked as provisional, because part of the contracts is reported to BASE weeks after signature.
- A reading of the mentions of European funds (RRP, Portugal 2020, Portugal 2030) in the contract text, presented as a lower bound because BASE does not record the funding source.
How contracts are classified
The starting point is the dataset that IMPIC publishes on dados.gov.pt, with every contract reported to Portal BASE. Contracts signed from 2015 onwards count, with a contractual price above zero and not under annulment. Values are nominal and correspond to the contractual price at the time of signature, not the base price nor the amount actually paid. When the signature date is missing, the publication date is used.
A contract counts as information technology when its main CPV code belongs to the divisions and groups for software and information systems, IT services, computer and network equipment, communications services and their installation and maintenance. Supplementary codes do not count. When the code is technological but the object is clearly of another nature, such as fuel, furniture or public lighting, the contract still counts in total procurement and stops counting as ICT.
Within that set, each contract is assigned to one of six areas by reading the CPV code together with the object text: Data and AI, Cybersecurity, Licensing and subscriptions, Infrastructure, cloud and communications, Software development and maintenance, and Consulting and professional services. The criteria are my own, written and versioned, and every change is recorded. Some boundaries were fixed by decision rather than by automatic rule: artificial intelligence includes its licences and subscriptions, backup and disaster recovery count as Infrastructure, licences of security products count as Cybersecurity, and services delivered through technology that are not ICT spending in the strict sense, such as telemedicine or electronic monitoring of defendants, stay in "Other ICT". What the criteria cannot decide also stays in "Other ICT", which is visible in every chart and is worked on again with every update.
The sector comes from the name of the contracting authority and follows function rather than legal form: an EPE hospital counts in Health and a municipal company in Local government. Contracts made through purchasing bodies or under centralised framework agreements count in a category of their own in the sector chart, because the entity that buys is not the one that uses. Procedure types are grouped into direct award, prior consultation, open tender, restricted tender with prior qualification, framework agreement or centralised purchase, and other, which holds the rare procedures: negotiation, competitive dialogue, innovation partnership, design contest and contracts outside part II of the Code.
Mentions of European funds are read from the contract text, because BASE does not record the funding source. References to the RRP, Portugal 2020, Portugal 2030 and other Union funds count. It is a lower bound, because a contract financed by funds that did not write it counts as no mention.
Precision and limitations
The classification was validated contract by contract on a sample of 790 contracts, among the highest-value ones of each year and a random selection. The value-weighted accuracy rate was as follows.
| Category | Accuracy rate |
|---|---|
| ICT scope | 100.0 % |
| Infrastructure, cloud and communications | 99.7 % |
| Licensing and subscriptions | 99.6 % |
| Software development and maintenance | 96.2 % |
| Consulting and professional services | 100.0 % |
| Cybersecurity | 100.0 % |
| Data and AI | 100.0 % |
The sample was also used to tune the criteria, which is why these values should be read as a maximum. From the first automatic update onwards the measurement is made on a new sample.
Yearly totals are compared with IMPIC's annual public procurement reports. The counting bases differ, because IMPIC counts by the year in which the contract is reported and this solution by the year in which it is signed. The deviations stay between 1 % and 5 % in every year with a report.
| Year | IMPIC (€M) | Radar (€M) | Deviation |
|---|---|---|---|
| 2019 | 8,878 | 8,995 | +1.3 % |
| 2020 | 10,720 | 11,134 | +3.9 % |
| 2021 | 13,740 | 13,173 | -4.1 % |
| 2022 | 12,517 | 13,096 | +4.6 % |
| 2023 | 15,220 | 15,560 | +2.2 % |
| 2024 | 18,440 | 18,194 | -1.3 % |
| 2025 | 24,770 | 23,775 | -4.0 % |
What this solution cannot correct:
- Data quality depends on the contracting authorities. Vague objects and generic CPV codes limit the classification.
- The contractual price is not executed spending. Contracts may not be fully executed, or may be modified or extended.
- The current year is partial, because part of the contracts is reported to BASE weeks or months after signature. IMPIC corrects the files retroactively and the values of recent years may change between updates.
- Values are nominal.
- Mentions of European funds are a lower bound.
Technologies and Methods
Detailed Implementation
Collection and preparation
Download of IMPIC's yearly files, removal of duplicates, exclusion of contracts without a price or under annulment, and text normalisation.
Classification criteria
Definition of the technology scope by CPV, of the six areas and of the sectors, with written, versioned rules annotated with the cases that motivated them.
Validation
Individual review of the largest contracts of each year and of a random sample, measurement of the accuracy rate and comparison with IMPIC's reports.
Publication
Generation of the charts from the produced files, with no hand-written numbers, and automatic checks as a condition for publication.
Impact Quantified
2 million
contracts analysed
12 years
from 2015 to the current year
€10 billion
in information technology contracts
Lessons Learned
- The quality of what can be measured depends on what the authorities write in BASE. The answer is to improve the criteria with every update, not to hide the limit.
- Separating data from interpretation demands writing discipline. A page that wants to be a source cannot have a sentence saying what the numbers mean.
- An automatic classification deserves trust only after being measured. Validating contract by contract cost more than writing the rules, and it is what made publishing possible.
Next Steps
- Weekly automatic update, from IMPIC's publication, with the same checks as a condition for publication.
- Values at constant prices, to compare years without the effect of inflation.
- Contract modifications, to bring the contractual price closer to actual spending.
If you find a classification or data error, I would appreciate a message on LinkedIn. Confirmed corrections enter the next update.