Have a personal or library account? Click to login

A decentralized IoT and blockchain-based architecture for general-purpose vehicle speed data collection: a case study of Tanzania’s highways

Open Access
|Sep 2025

Figures & Tables

Figure 1:

Proposed architecture design for integrating IoT and blockchain technologies for vehicle speed detection systems. ANPR, automatic number plate recognition; IoT, Internet of things.
Proposed architecture design for integrating IoT and blockchain technologies for vehicle speed detection systems. ANPR, automatic number plate recognition; IoT, Internet of things.

Figure 2:

System prototype architecture setup. API, application programming interface; HTTPS, hypertext transfer protocol secure.
System prototype architecture setup. API, application programming interface; HTTPS, hypertext transfer protocol secure.

Figure 3:

Web interface for viewing vehicle speed records stored in the cloud.
Web interface for viewing vehicle speed records stored in the cloud.

Figure 4:

Blockchain network topology. LATRA, land transport regulatory authority; NRSC, National Road Safety Council; PCCB, Prevention and Combating of Corruption Bureau; RSA, road safety ambassadors; TABOA, Tanzania Bus Owners Association; TANROADS, Tanzania National Roads Agency; TARA, Tanzania Roads Association; TATOA, Tanzania Truck Owner Association; TBDU, Tanzania Bus Driver Union; TIRA, Tanzania Insurance Regulatory Authority; TP, Tanzania Police; TRA, Tanzania Revenue Authority; TTDWU, Tanzania Track Drivers Workers Union.
Blockchain network topology. LATRA, land transport regulatory authority; NRSC, National Road Safety Council; PCCB, Prevention and Combating of Corruption Bureau; RSA, road safety ambassadors; TABOA, Tanzania Bus Owners Association; TANROADS, Tanzania National Roads Agency; TARA, Tanzania Roads Association; TATOA, Tanzania Truck Owner Association; TBDU, Tanzania Bus Driver Union; TIRA, Tanzania Insurance Regulatory Authority; TP, Tanzania Police; TRA, Tanzania Revenue Authority; TTDWU, Tanzania Track Drivers Workers Union.

Figure 5:

Sample output from the blockchain configuration application.
Sample output from the blockchain configuration application.

Figure 6:

(A) Fauxton interface for the speed limit law enforcement channel. (B) Fauxton interface for the passenger transporters channel.
(A) Fauxton interface for the speed limit law enforcement channel. (B) Fauxton interface for the passenger transporters channel.

Figure 7:

Status of IoT data transmission to the cloud. HTTPS, hypertext transfer protocol secure; IoT, Internet of things.
Status of IoT data transmission to the cloud. HTTPS, hypertext transfer protocol secure; IoT, Internet of things.

Figure 8:

Sample vehicle images stored in the cloud directory.
Sample vehicle images stored in the cloud directory.

Figure 9:

Demonstrates query results in the SQLite database, verifying successful cloud data delivery.
Demonstrates query results in the SQLite database, verifying successful cloud data delivery.

Figure 10:

The successful status of data being sent to the blockchain subsystem. HTTPS, hypertext transfer protocol secure.
The successful status of data being sent to the blockchain subsystem. HTTPS, hypertext transfer protocol secure.

Figure 11:

(A) Fabric main gateway and (B) fabric channel C1 gateway.
(A) Fabric main gateway and (B) fabric channel C1 gateway.

Figure 12:

(A) Sequential mode results for configuration one. (B) Parallel mode results for configuration one. (C) Asynchronous mode results for configuration one. NN, number of nodes; NR, number of records.
(A) Sequential mode results for configuration one. (B) Parallel mode results for configuration one. (C) Asynchronous mode results for configuration one. NN, number of nodes; NR, number of records.

Figure 13:

Plot of latency versus NR. NN, number of nodes; NR, number of records.
Plot of latency versus NR. NN, number of nodes; NR, number of records.

Figure 14:

(A) Sequential mode results for configuration two. (B) Parallel mode results for configuration two. (C) Asynchronous mode results for configuration two. NN, number of nodes; NR, number of records.
(A) Sequential mode results for configuration two. (B) Parallel mode results for configuration two. (C) Asynchronous mode results for configuration two. NN, number of nodes; NR, number of records.

Figure 15:

Plot of latency versus NN for configuration 2. NN, number of nodes; NR, number of records.
Plot of latency versus NN for configuration 2. NN, number of nodes; NR, number of records.

The STRIDE threat model of the proposed architecture

IoT layer: lightweight sensor nodesCloud layer: data preprocessing and blockchain gatewayBlockchain layer: HLF data storageApplication layer: web/mobile apps
AssertsRaw data, device identity, keys, local backup, and communication channelUser privileges, preprocessed data, vehicle classification models, keys, end-points, user and device logs, and communication channelImmutable data, channels configuration, keys, gateway, chaincode, ledger state, audit logs, consensus, and communication channelApplication data, end-user privileges, and business logic
ThreatsDevice spoofing, eavesdropping, node compromise, man-in-the-middle, and SD card extractionData leakage, API abuse, user privilege escalation, data tampering, man-in-the-middle, eavesdropping, and model abuseMalicious peer, chaincode bugs, channel, gateway abuse, misconfiguration, and consensus manipulationXSS, session hijacking, authentication bypass, data leakage, and insecure endpoints
Mitigations strategiesData encryption (TLS/SSL for transmission; AES for SD card), secure boot and firmware signing, tamper-resistant housing, use session keys, and limit physical portsRole-based access control in cloud services, input validation, API authentication, model access control, and encrypt dataUsed channel ACL, chaincode audit, enforced endorsement policies, monitored peer behavior, and transaction logsEnforced MFA, strict session expiry, CSRF tokens, sanitized all user inputs, and rate-limited external API calls

Research questions and contributions

S. No.Research questionsResearch contributions
1How can the inefficiency, transparency, and security challenges in the current Tanzania vehicle speed detection systems be addressed?Demonstrated how IoT and blockchain technologies can be employed to implement an automated, transparent, and secure vehicle speed data collection system.
2How can IoT and blockchain technologies be integrated for the vehicle speed data collection domain?Pioneered the integration of IoT and blockchain technologies, representing the first known effort to develop such a combined architecture in the vehicle speed detection domain.
3How can general-purpose vehicle speed data be collected in Tanzania’s highways?
  • i. Developed an architecture for collecting general-purpose vehicle speed data.

  • ii. Demonstrated how the HLF channels feature can be used to ensure confidentiality and privacy within a blockchain network involving various organizations.

4How can a low-cost, scalable, and rural-friendly system for collecting vehicle speed in Tanzania be implemented?Proposed a cost-effective design that is physically and performance scalable, employing lightweight IoT nodes compatible with rural environments.

Comparison with the existing systems

ReferenceArchitecture typeApplication contextIoT device typesData processing and storageBlockchain parametersStrengths/limitations
[42]GenericGenericN/AN/AN/AServed as the foundation for IoT-blockchain integration studies
[33]Specific Two-layerAgricultureFull nodeBlockchain and Off-Chain Storage IoT layer processingPrivate Ethereum Consensus not specifiedFull nodes are not well-suited for farm environments. The cost of deploying full nodes may not be affordable to smallholder farmers
[43]Specific Three-layerAgricultureLight nodeCloud processing Blockchain StorageEthereum Consensus not specifiedThe application layer is not specified in the design
[44]Specific Two-layerEnergy tradingFull nodeCloud storage and processingPrivate Ethereum IBFT 2.0Centralized storage contradicts blockchain’s decentralization goals and the absence of an application layer
[45]Specific Four-layerIoT securityLight nodeOff-Chain (processing and storage), Blockchain (hash storage)HLF as a serviceSupport a varied type of sensors depending on the requirement. Can be applied in more than one domain area
[46]Specific Three-layerEnvironmental monitoringFull nodeOff-Chain (processing and storage) and Blockchain storageHLF 2.4, Golang Chaincode, CouchDB state databaseThe application layer is not specified in the design
[24]Specific Two-layerIoT securityFull nodeBlockchainPolygon-based blockchain network, PoS/PBFT consensusUnclear architecture description, difficult to understand its structure and implementation
[47]Not presentedSupply chainLight nodeBlockchainEthereum, PoW consensusModel architecture is not presented; only ER and flowchart diagrams are presented
[48]Specific Three-layerHealthcareLight nodeNot specifiedPrivate and consortium blockchain with unspecified platformNo PoC prototype to validate the proposed architecture
[35]Specific Three-layerHealthcareLight nodeOff chainUnspecified blockchain technologyNo PoC prototype to validate the proposed architecture
[49]Specific Four-layerHealthcareFull nodeData stored in the cloudEthereum-based blockchain with type unspecifiedComplex with lots of overhead, an integrity verification process
This workSpecific Four-layerVehicle speed detectionLight nodeCloud preprocessing, blockchain storage, application-specific processingHLF-based consortium blockchain, Raft consensus, CouchDB state dbThe first effort in vehicle speed detection used HLF channels to build a consortium network and introduced a versatile application layer for general-purpose speed data

Experiment configuration setup

ConfigurationsNN valuesNR values
Configuration 1 (varied NR, fixed NN)Fixed 60[1, 3, 5, 10, 20, 30, 40, 50]
Configuration 2 (varied NN, fixed NR)[1, 6, 12, 18, 24, 36, 48, 60]Fixed 50

Design decision factors for integrating IoT and blockchain technologies

S. No.Building blocksDesign factors for considerationDesign decisions
1Type of IoT devices
  • i. IoT node types: can either be light or full nodes.

  • ii. Heterogeneity of devices: devices of the same or different types.

  • i. Light IoT nodes to ensure low cost and simplicity.

  • ii. Devices from different manufacturers due to availability, functionality, and cost.

2Application type and contextDepending on the specific application of vehicle speed detection across various organizations, blockchain implementation can be permissioned, permissionless, or hybrid, depending on security, transparency, and access requirements.Since the application involves multiple governmental and nongovernmental organizations, a permissioned blockchain is utilized to establish a consortium blockchain network, ensuring controlled access, data integrity, and secure collaboration among authorized entities.
3Data types, storage, and processing requirements
  • Data can be sensor data, device ID, or key management data as per requirements.

  • Possible data storage locations include device, cloud, and blockchain storage.

  • Data processing: can be light or heavy-duty processing.

  • Where is the processing location (single or multiple): device, cloud, blockchain, or application?

  • i. Sensor data, vehicle speed, photo, timestamp, and device ID to identify location.

  • ii. Temporary storage in the IoT node for backup.

  • iii. Temporary storage in the cloud for backup and preprocessing.

  • iv. Permanent storage on the blockchain for transparency and security.

  • v. Multiple processing locations, lightweight processing in the IoT nodes, and heavy-duty processing by the cloud and application layers.

  • vi. Image preprocessing at the cloud for vehicle number plate and type recognition.

  • vii. Application-specific processing at the application layer.

  • viii. Recording and querying processing at the blockchain.

4Blockchain parameters
  • What devices will participate in the consensus?

  • Type of consensus mechanism What platform is to be used and why?

  • What are the transaction types, and on what data?

  • i. Preselected orderer nodes will participate in the consensus.

  • ii. CFT-based Raft consensus mechanism.

  • iii. HLF is an ideal permissioned blockchain platform, offering channel-based data confidentiality and compatibility with mainstream programming languages for chaincode development.

  • iv. Record and query transactions on vehicle speed data.

5Security requirementsWhat security services are needed?Security services needed are confidentiality, integrity, authenticity, and key management.

Channels implemented within the blockchain network

Channel nameChannel descriptionOrganizationsData shared
C1Speed limit law enforcers
  • i. TP

  • ii. NRSC

  • iii. PCCB

  • i. Speed

  • ii. Timestamp

  • iii. All vehicle details

  • iv. Photo

  • v. Location

C2Passengers transporters
  • i. TP

  • ii. LATRA

  • iii. TABOA

  • iv. TBDU

  • i. Speed

  • ii. Timestamp

  • iii. Vehicle details for buses only

  • iv. Photo

  • v. Location

C3Cargo transporters
  • i. TP

  • ii. LATRA

  • iii. TATOA

  • iv. TTDWU

  • i. Speed

  • ii. Timestamp

  • iii. Vehicle details for trucks only

  • iv. Photo

  • v. Location

C4Regulatory and registration authorities
  • i. TRA

  • ii. TIRA

  • iii. LATRA

  • i. Speed

  • ii. Timestamp

  • iii. Vehicle details

  • iv. Location

  • v. Vehicle type

C5Road safety, research, development, and management organizations
  • i. RSA

  • ii. TARA

  • iii. TANROADS

  • iv. Research and training institutions

  • i. Speed

  • ii. Timestamp

  • iii. Location

  • iv. Vehicle type

Comparison with the existing centralized solutions

WorkPerformanceScalabilityPurposeTransparencyPrivacy and security
[16]>90% accuracyNeed to be improvedTraffic law enforcementNot transparentConcerned due to centralization
[50]Not availableNot addressedOver-speeding detectionNot transparentNot addressed
[51]>90% performanceScalableSpeed limit enforcementNot transparentUnclear how they are ensured
[52]>90% performanceModerately scalableTraffic managementNot transparentConcerns due to centralized design
[53]89.3% performanceNot addressedOver-speeding detectionNot transparentNot addressed
[54]Not availableNot addressedMonitoring vehicle speed and traffic jamsNot transparentNot addressed
This work1 s latency, 1 record/s throughput, 0.07% error (varying NR)Scalable (physical and performance)General purposeTransparency via DLTEnsured via blockchain, HLF channels, and more (Table 6)
Language: English
Submitted on: Jun 9, 2025
Published on: Sep 18, 2025
Published by: Professor Subhas Chandra Mukhopadhyay
In partnership with: Paradigm Publishing Services
Publication frequency: 1 issue per year

© 2025 Kevin T. Njuu, Mussa A. Dida, Angela-Aida K. Runyoro, published by Professor Subhas Chandra Mukhopadhyay
This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License.