黑料情报站

Call Us

Home / Blog / Data Science / Construction Analytics : use case

Construction Analytics : use case

  • June 23, 2024
  • 5534
  • 95
Author Images

Meet the Author :

Bharani Kumar Depuru is a well known IT personality from Hyderabad. He is the Founder and Director of AiSPRY and 黑料情报站. Bharani Kumar is an IIT and ISB alumni with more than 18+ years of experience, he held prominent positions in the IT elites like HSBC, ITC Infotech, Infosys, and Deloitte. He is a prevalent IT consultant specializing in Industrial Revolution 4.0 implementation, Data Analytics practice setup, Artificial Intelligence, Big Data Analytics, Industrial IoT, Business Intelligence and Business Management. Bharani Kumar is also the chief trainer at 黑料情报站 with more than Ten years of experience and has been making the IT transition journey easy for his students. 黑料情报站 is at the forefront of delivering quality education, thereby bridging the gap between academia and industry.

Read More >

Track the Resource/Personal Real Time

The need for these many technical breakthroughs has increased due to the steadily expanding demands for security, safety, communication, and flawless company operations. Safety becomes a significant concern when you take the industrial and construction industries into account. The majority of the world's building industries are seeing unprecedented growth. And integrating such cutting-edge technology into the building site would not only ensure safety but also let the business monitor the activity of various personnel remotely.

Smart device for construction field. Effective Monitoring product for Construction Workers:

Getting the most out of their employees is one of the most important goals for construction site managers. They are aware that if the site's employees take excessive pauses between tasks or waste time talking about unimportant things, they will not finish the day's job by the deadline. This GPS-equipped smart gadget enables managers to keep an eye on every action taken by their employees. For instance, by knowing which helmets are in use, you can determine whether an employee is there. The signal will let you know if any employee stays longer than necessary at the same location. Additionally, you may determine each worker's task and location according to their function and determine whether or not they are actively engaged in their assigned work on a certain floor of the building. In the end, this results in increased productivity of the particular work.

DATA GATHERING : OUTPUT OBTAINED FROM THESE SENSORS:

GPS stands for Global Positioning System and used to detect the Latitude and Longitude of any location on the Earth, with exact UTC time (Universal Time Coordinated).

RFID:Some UHF RFID tags are delivered from the manufacturer

TEMPERATURE SENSOR

HEART BEAT SENSOR

MQ5 GAS SENSOR

AGE

WORKING DATE

WORKING HRS

EMP ID

黑料情报站

EDA and data preprocessing :

黑料情报站

PAIR PLOT

In a dataset, plot pairwise relationships. By default, this function will generate a grid of axes with each numerical variable in the data spread over a single row and column on the y-axis and a single column on the x-axis. Different rules are used to the diagonal axes when creating a plot to display the data's univariate distribution for the parameter in that column.

黑料情报站

BAR GRAPH:

A bar graph is a diagram that uses rectangular bars with heights or lengths proportionate to the values they represent to display categorical data. Both a vertical and a horizontal bar plot are possible. A column chart is another name for a vertical bar graph. Bar graphs are used to track changes over time or to compare data between groups. However, bar graphs work better when the changes are more significant when trying to gauge change over time. Figure #bar

黑料情报站

Data preprocessing

It is a data mining technique which is used to transform the raw data in a useful and efficient format. Our Data set consists the following Columns: EmployeeID, Work_date, Age, Working_hours, Temperature, GPS Location N, GPS Location S, MQ5 RFID with 255 records. Here some of the columns are removed which are not required for , Finally we are taking the following columns: Age, Temperature,Heartbeat sensor, MQ5.

iot_refined = iot.iloc[:,[2,4,7,8]] #removing columns which are not required

iot_refined.sample(5)

黑料情报站

Criteria to define the output classes

iot_refined['performance'] = ["Idle" if i<88 or i>157 else "Working" for i in

iot_refined['Heart_beat']]

iot_refined.loc[iot_refined.Temperature>38,['performance']]="Idle"

iot_refined.loc[iot_refined.MQ5>665,['performance']]="Idle"

黑料情报站

#Defining Independent and Dependent Variables :

X = iot_refined.iloc[:, 0:4]

Y = iot_refined['performance']

#Designing Models and Assigning them to a variable :

logit = LogisticRegression()

svm = SVC(kernel='linear', gamma=0.01, probability= True)

knn = KNeighborsClassifier(n_neighbors = 6)

mlp = MLPClassifier(hidden_layer_sizes=(100, ), learning_rate_init=0.02)

bayes = GaussianNB()

#Building an Ensemble Model - Stacking Classifier :

#define the base models

level0 = list()

level0.append(('logit', logit))

level0.append(('svm', svm))

level0.append(('knn', knn))

level0.append(('nb', bayes))

#define meta learner model

level1 = LogisticRegression()

#define the stacking ensemble

stack = StackingClassifier(estimators=level0, final_estimator=level1, cv=5)

A CustomFunction That Returns The Models on a Function Call :

def get_models():

models=dict() #Creatinganemptypython

dictionary models['logit'] = logit

models['svm'] = svm

models['knn'] = knn

models['mlp'] = mlp

models['nb'] = bayes

models['stacking'] = stack

return models

A Custom Function to Give Us the Cross Validation Scores in Helping with the Model Selection :

def evaluate_model(model):

skf = StratifiedKFold(n_splits=10, random_state = 1)

scores = cross_val_score(model, X, Y, scoring='accuracy', cv=skf, n_jobs=-1, error_score='raise')

return scores

Calculating theCross Validation Scores for Different Models:

# get the models to evaluate

models = get_models()

# evaluate the models and store results

#creating two empty lists to store the name and scores of each model

results, names = list(), list()

for name, model in models.items():

scores = evaluate_model(model)

results.append(scores)

names.append(name)

print(name,':', mean(scores))

黑料情报站

Building Model with the Stacking Classifier :

stack.fit(X,Y) #fitting the model with the data

Y_pred = stack.predict(X) #Prediction

 

print("confusion :\n",confusion_matrix(Y,Y_pred),"\n")

 

print("classification :\n",classification_report(Y,Y_pred))

 

print("accuracy : \n", accuracy_score(Y, Y_pred))

 

黑料情报站

Conclusion

The following benefits of using Python Flask to deploy the model increased productivity, efficient staff management, worker safety, health monitoring, and worker trust. We can design stunning dashboards and monitor an employee's working environment.

Click here to learn Data Science Course, Data Science Course in Hyderabad, Data Science Course in Bangalore

Data Science Placement Success Story

Data Science Training Institutes in Other Locations

Agra, Ahmedabad, Amritsar, Anand, Anantapur, Bangalore, Bhopal, Bhubaneswar, Chengalpattu, Chennai, Cochin, Dehradun, Malaysia, Dombivli, Durgapur, Ernakulam, Erode, Gandhinagar, Ghaziabad, Gorakhpur, Gwalior, Hebbal, Hyderabad, Jabalpur, Jalandhar, Jammu, Jamshedpur, Jodhpur, Khammam, Kolhapur, Kothrud, Ludhiana, Madurai, Meerut, Mohali, Moradabad, Noida, Pimpri, Pondicherry, Pune, Rajkot, Ranchi, Rohtak, Roorkee, Rourkela, Shimla, Shimoga, Siliguri, Srinagar, Thane, Thiruvananthapuram, Tiruchchirappalli, Trichur, Udaipur, Yelahanka, Andhra Pradesh, Anna Nagar, Bhilai, Borivali, Calicut, Chandigarh, Chromepet, Coimbatore, Dilsukhnagar, ECIL, Faridabad, Greater Warangal, Guduvanchery, Guntur, Gurgaon, Guwahati, Hoodi, Indore, Jaipur, Kalaburagi, Kanpur, Kharadi, Kochi, Kolkata, Kompally, Lucknow, Mangalore, Mumbai, Mysore, Nagpur, Nashik, Navi Mumbai, Patna, Porur, Raipur, Salem, Surat, Thoraipakkam, Trichy, Uppal, Vadodara, Varanasi, Vijayawada, Visakhapatnam, Tirunelveli, Aurangabad

Data Analyst Courses in Other Locations

ECIL, Jaipur, Pune, Gurgaon, Salem, Surat, Agra, Ahmedabad, Amritsar, Anand, Anantapur, Andhra Pradesh, Anna Nagar, Aurangabad, Bhilai, Bhopal, Bhubaneswar, Borivali, Calicut, Cochin, Chengalpattu , Dehradun, Dombivli, Durgapur, Ernakulam, Erode, Gandhinagar, Ghaziabad, Gorakhpur, Guduvanchery, Gwalior, Hebbal, Hoodi , Indore, Jabalpur, Jaipur, Jalandhar, Jammu, Jamshedpur, Jodhpur, Kanpur, Khammam, Kochi, Kolhapur, Kolkata, Kothrud, Ludhiana, Madurai, Mangalore, Meerut, Mohali, Moradabad, Pimpri, Pondicherry, Porur, Rajkot, Ranchi, Rohtak, Roorkee, Rourkela, Shimla, Shimoga, Siliguri, Srinagar, Thoraipakkam , Tiruchirappalli, Tirunelveli, Trichur, Trichy, Udaipur, Vijayawada, Vizag, Warangal, Chennai, Coimbatore, Delhi, Dilsukhnagar, Hyderabad, Kalyan, Nagpur, Noida, Thane, Thiruvananthapuram, Uppal, Kompally, Bangalore, Chandigarh, Chromepet, Faridabad, Guntur, Guwahati, Kharadi, Lucknow, Mumbai, Mysore, Nashik, Navi Mumbai, Patna, Pune, Raipur, Vadodara, Varanasi, Yelahanka

 

Navigate to Address

黑料情报站 - Data Science Course, Data Scientist Course Training in Chennai

D.No: C1, No.3, 3rd Floor, State Highway 49A, 330, Rajiv Gandhi Salai, NJK Avenue, Thoraipakkam, Tamil Nadu 600097

1800-212-654-321

Get Direction:

Read Success Stories Read
Success Stories
Make an Enquiry