Answered step by step
Verified Expert Solution
Question
1 Approved Answer
When a user accesses a webpage in their web browser, the webpage typically contains multiple web components, such as images, JavaScript codes, Flash content, CSS
When a user accesses a webpage in their web browser, the webpage typically contains multiple web components, such as images, JavaScript codes, Flash content, CSS etc. These components are often down loaded through additional HTTPS connections from either the firstparty domain the website the user is
visiting or from thirdparty domains. This article will focus specifically on JavaScript codes, which are com monly used by ad networks, content distribution networks CDNs tracking services, analytics platforms, and online social networks, including Facebooks use of them for plugins.
The scenario of web tracking via JavaScript codes is depicted in Figure When a user accesses a webpage from a firstparty domain steps the web browser interprets the HTML tags and executes any JavaScript programs within the HTML script tags. These programs may trigger the browser to send additional requests
to retrieve content from thirdparty domains step Depending on their intended functionality, JavaScript programs can be considered either useful functional such as fetching content from a CDN or used for tracking purposes. In the latter case, once the webpage has fully loaded step the JavaScript codes track the users activities on the webpage, read from or write to the cookie database steps and potentially reconstruct user identifiers. Tracking JavaScript programs may also be employed to "fingerprint" the users browser and system, and transfer sensitive information to thirdparty domains step
Suppose you are tasked with developing a machine learning model based on a single class eg OneClass SVM OCSVM or Positive Unlabeled PU Learning to distinguish between functional and tracking JavaScript codes. I have the database which contain multiple Javascript codes TrackingJS and functionalJS
Use Term Frequency Inverse Document Frequency TFIDF to extract features from functional and tracking JavaScript codes.
Develop either OneClass SVM or PU Learning, and a baseline SVM for comparison, to classify the JavaScript codes.
Design and conduct experiments to validate and test the efficacy of your developed model:
To report any over or underfitting of the models, you may use of the data for testing, for validation, and for the testing.
Report and discuss the parameters of OCSVM or PU Learning model which give your improved results.
Write a code for the above questions. Thank you
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started