Source code for paper entitled "Can We Enhance the Quality of Mobile Crowdsensing Data Without Ground Truth?"
System: Ubuntu 16.04 LTS with 1080Ti (GPU)
Python: 3.6.3 +
Pytorch version: 1.1.0
Addition: The setting of the following .py files are written in the corresponding codes, please review and modify as necessary before running them.
-
Download and place the .h5 file of TaxiBJ in 'Predict/data'.
-
Get to 'Predict/scripts/model' for training a prediction model
python train.py
The model file and the prediction results are in 'Predict/scripts/model/bj_taxi_result'.
- Get to 'CreateNoise' for adding noise in the dataset
python add_noise.py
The output are 'data.csv' and 'noise.scv' in 'Result/origin/#/simulate_data' where '#' is the directory named by the specifical setting.
The other .py files in 'CreateNoise' are to simulate the cases metioned in our paper, run them if necessary.
- Run the method file in 'Method'
python PRBTD.py
or other .py for PRBTD or baseline methods, the results are written in 'Result/origin/#/#/result.csv'.
5*. Run the SOTA method DTI First, run
python mask_DTI.py
in the folder 'CreateNoise' for obtaining the sparse data matrix for BPMF, the output is in 'Result/origin/#/simulate_data/experiment#/BJ16_In_mask.h5', then run
python fill_bpmf.py
in the folder 'Method' for obtaining the prediction results of BPMF, the output is in 'Result/origin/#/simulate_data/experiment#/BJ16_In_BPMF.h5'. Finally, run
python DTI.py
in the folder 'Method' for obtaining the result.
This paper is under reviewed. The copyright of the code is not disclosed.