KBKlemen Bregar

Klemen Bregar

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article


Klemen Bregar has a total of 19 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    ENPOWER P2P Flexibility Marketplace Toolkit

    by Lorenzo Fogli, Alberto Montaner, Apostolos Kapetanios, Ioannis Mandourarakis, Carlos Pereira, Vasilis Michalakopoulos, Nektarios Matsagkos, Klemen Bregar

    This paper presents the ENPOWER Flexibility Marketplace Toolkit, an open-source platform for peer-to-peer trading of energy flexibility within energy communities. Using energy consumption and production time-series data, participants can publish flexibility needs, submit offers, and verify delivery against measured baselines. Transactions are settled automatically through blockchain smart contracts with collateral enforcement, while an Energy Data Space backbone governs data exchange, ensuring sovereignty and policy-controlled sharing. Non-fungible tokens provide immutable, auditable certificates of each fulfilled flexibility commitment. The toolkit covers the complete trading lifecycle from market creation and participant onboarding through offer matching, delivery verification, and financial settlement.

  • Open Access

    Indoor UWB Positioning and Position Tracking Data Set

    by Klemen Bregar

    Indoor positioning has become a hot topic in various fields, such as industry, healthcare, and commerce. Ultra-wideband (UWB) radio technology provides a cost-effective solution for range-based positioning, offering exceptionally high accuracy and precision. Its ultra-high temporal resolution enables range measurements with accuracy of a few centimeters. To develop and evaluate range-based positioning systems, we collected measurements in four different indoor environments using eight fixed devices and one mobile positioning device. To eliminate the fluctuation of walking speed from the data, we pre-defined a path in each indoor environment, similar to the human walking path, which was sampled at equidistant positions. We collected multiple range measurements and channel impulse response (CIR) data at each tag position on the path. The resulting dataset supports the development of range-based positioning and position tracking algorithms with various combinations of network topologies and anchor-tag combinations. We have also provided a full set of data analysis tools that enable the reproducibility of results and serve as a basis for further development of range-based UWB positioning algorithms.


  • Open Access

    Power Autonomy Estimation of Low-Power Sensor for Long-Term ECG Monitoring

    by Klemen Bregar, Tomaž Krištofelc, Matjaž Depolli, Viktor Avbelj, Aleksandra Rashkovska

    The paper analyses the autonomy of a wireless body sensor that continuously measures the potential difference between two proximal electrodes on the skin, primarily used for measuring an electrocardiogram (ECG) when worn on the torso. The sensor is powered by a small rechargeable battery and is designed for extremely low power use. However, the autonomy of the sensor, regarding its power consumption, depends significantly on the measurement quality selection, which directly influences the amount of data transferred. Therefore, we perform an in-depth analysis of the power consumption sources, particularly those connected with the Bluetooth Low Energy (BLE) communication protocol, in order to model and then tune the autonomy of the wireless low-power body sensor for long-term ECG monitoring. Based on the findings, we propose two analytical models for power consumption: one for power consumption estimation in idle mode and the other one for power estimation in active mode. The proposed models are validated with the measured power consumption of the ECG sensor at different ECG sensor settings, such as sampling rate and transmit power. The proposed models show a good fit to the measured power consumption at different ECG sensor sampling rates. This allows for power consumption analysis and sensor autonomy predictions for different sensor settings. Moreover, the results show that the transmit power has a negligible effect on the sensor autonomy in the case of streaming data with high sampling rates. The most energy can be saved by lowering the sampling rate with suitable connection interval and by packing as much data as possible in a single BLE packet.


  • Open Access

    UWB Radio-Based Motion Detection System for Assisted Living

    by Klemen Bregar, Andrej Hrovat, Mihael Mohorčič

    Because of the ageing population, the demand for assisted living solutions that can help prolonging independent living of elderly at their homes with reduced interaction with caregivers is rapidly increasing. One of the most important indicators of the users’ well-being is their motion and mobility inside their homes, used either on its own or as contextual information for other more complex activities such as cooking, housekeeping or maintaining personal hygiene. In monitoring users’ mobility, radio frequency (RF) communication technologies have an advantage over optical motion detectors because of their penetrability through the obstacles, thus covering greater areas with fewer devices. However, as we show in this paper, RF links exhibit large variations depending on channel conditions in operating environment as well as the level and intensity of motion, limiting the performance of the fixed motion detection threshold determined on offline or batch measurement data. Thus, we propose a new algorithm with an online adaptive motion detection threshold that makes use of channel impulse response (CIR) information of the IEEE 802.15.4 ultra-wideband (UWB) radio, which comprises an easy-to-install robust motion detection system. The online adaptive motion detection (OAMD) algorithm uses a sliding window on the last 100 derivatives of power delay profile (PDP) differences and their statistics to set the threshold for motion detection. It takes into account the empirically confirmed observation that motion manifests itself in long-tail samples or outliers of PDP differences’ probability density function. The algorithm determines the online threshold by calculating the statistics on the derivatives of the 100 most recent PDP differences in a sliding window and scales them up in the suitable range for PDP differences with multiplication factors defined by a data-driven process using measurements from representative operating environments. The OAMD algorithm demonstrates great adaptability to various environmental conditions and exceptional performance compared to the offline batch algorithm. A motion detection solution incorporating the proposed highly reliable algorithm can complement and enhance various assisted living technologies to assess user’s well-being over long periods of time, detect critical events and issue warnings or alarms to caregivers.


  • Open Access

    Continuous Integration in Wireless Technology Development

    by Matevz Vucnik, Tomaz Solc, Urban Gregorc, Andrej Hrovat, Klemen Bregar, Miha Smolnikar, Mihael Mohorcic, Carolina Fortuna

    Network testing plays an important role in the iterative process of developing new communication protocols and algorithms. However, test environments have to keep up with the evolution of technology and require continuous update and redesign. In this article, we propose COINS, a framework that can be used by wireless technology developers to enable CI practices in their testbed infrastructure. As a proof-of-concept, we provide a reference architecture and implementation of COINS for controlled testing of multi-technology 5G MTC networks. The implementation upgrades an existing wireless experimentation testbed with new software and hardware functionalities. It blends web service technology and operating system virtualization technologies with emerging Internet of Things technologies enabling CI for wireless networks. Moreover, we also extend an existing qualitative methodology for comparing similar frameworks and identify and discuss open challenges for wider use of CI practices in wireless technology development.


  • Open Access

    Improving Indoor Localization Using Convolutional Neural Networks on Computationally Restricted Devices

    by Klemen Bregar, Mihael Mohorcic

    Indoor localization is one of the key enablers for various application and service areas that rely on precise locations of people, goods, and assets, ranging from home automation and assisted living to increased automation of production and logistic processes and wireless network optimization. Existing solutions provide various levels of precision, which also depends on the complexity of the indoor radio environment. In this paper, we propose two methods for reducing the localization error in indoor non-line-of-sight (NLoS) conditions using raw channel impulse response (CIR) information obtained from ultra-wide band radios requiring no prior knowledge about the radio environment. The methods are based on NLoS channel classification and ranging error regression models, both using convolutional neural networks (CNNs) and implemented in the TensorFlow computational framework. We first show that NLoS channel classification using raw CIR data outperforms existing approaches that are based on derived input signal features. We further demonstrate that the predicted NLoS channel state and predicted ranging error information, used in combination with least squares (LS) and weighted LS location estimation algorithms, significantly improve indoor localization performance. We also evaluate the computational performance and suitability of the proposed CNN-based algorithms on various computing platforms with a wide range of different capabilities and show that in a distributed localization system, they can also be used on computationally restricted devices.