News for hackers. Stuff that matters.
Re:Show HN: I made a neural net that analyzes privacy policies by rameerez on Sunday September 22, 2019 @01:15PM (#21042512)
Hi guys!

So as basis for my thesis on AI and NLP I've been working on a RRN-based text classifier that basically reads and analyzes privacy policies. It understands that "we don't share your data with third parties" is privacy friendly while "we may share your data with anyone" is a potential threat.

I've then created this website with a bunch of analyzed services to showcase the most relevant info about each service along with other interesting stuff like recent data breaches or instructions to delete your account in said service.

Happy to answer Qs about the tech behind, it'd also be great to hear your feedback on what the site lacks and possible improvements!

Re:Show HN: I made a neural net that analyzes privacy policies by thecleaner on Sunday September 22, 2019 @02:17PM (#21042920)
Oh my god thank you so much for doing this !

I think its better (for me as a user) if you don't boil things down to a score as different people expect different things when talking privacy. It would help if you could simply highlight the potential problematic clauses in different privacy statements along with some reason why it might be problematic.

Re:Show HN: I made a neural net that analyzes privacy policies by nickodell on Sunday September 22, 2019 @03:36PM (#21043427)
I don't agree. I just looked in my password manager, and I have roughly ~220 accounts across the web. If I want to go through that list and see which website rank well and which rank poorly, and I want to do that in under two hours, that gives about 30 seconds per service.

In other words, giving a single score plus a two-sentence highlight is probably about the right amount of information.

Re:Show HN: I made a neural net that analyzes privacy policies by crusty on Sunday September 22, 2019 @06:46PM (#21044470)
How about a compromise - not a score for each policy but for "each" individual, or tranche of similarly concerned individuals. I go through a list of privacy options (maybe just once) and the point at which my "okay" becomes "not okay" determines my score. Then each policy simply passes or fails based on my score. And if you want more detail, the list of failure items for a given policy can be bulleted.
Re:Show HN: I made a neural net that analyzes privacy policies by m-p-3 on Sunday September 22, 2019 @03:44PM (#21043480)
Or make the rank adjustable to some personal criteria that matches different privacy expectations.
Re:Show HN: I made a neural net that analyzes privacy policies by drusepth on Sunday September 22, 2019 @11:09PM (#21045632)
This would also be helpful in determining how to weight (or not) user feedback in the training portion. I just tried it out (the 10 questions) and there were at least a few I thought, "huh, I know some others would disagree with me on this" because I value X and they value Y more.

Having scores that weight X more than Y would give me more accurate scores, while seemingly also giving other people more accurate scores at the same time.

Re:Show HN: I made a neural net that analyzes privacy policies by wtvanhest on Monday September 23, 2019 @12:10AM (#21045853)
A good compromise would be a chrome extension that shows a 1-10 score. You click the extension to see clauses
Re:Show HN: I made a neural net that analyzes privacy policies by trickstra on Monday September 23, 2019 @12:38AM (#21045946)
Not for everyone, as thecleaner pointed out. You are assuming your requirements are universal among other users. Also, you are assuming the policies can be simplified to a weighted average of their parts, which is not necessarily the case.
Re:Show HN: I made a neural net that analyzes privacy policies by blondin on Sunday September 22, 2019 @04:14PM (#21043654)
well, just checked and i already see the majority of the web gathering around "C". so really, we can argue both ways about this score thing...
Re:Show HN: I made a neural net that analyzes privacy policies by rameerez on Sunday September 22, 2019 @04:25PM (#21043710)
The scoring definitely needs some work – I think some factors should have more weight. Also services' data vary a lot so it's difficult to come up with a good measure for everyone. Ex: I try to take into account whether the service has had any recent data breach, so it penalizes a lot if it has but also scores rather low if it hasn't; privacy policies' length vary wildly and I think that also plays a large role... It needs some tweaking but I think with some improvements I'll reach a more accurate scoring
Re:Show HN: I made a neural net that analyzes privacy policies by epoch_100 on Sunday September 22, 2019 @03:09PM (#21043236)
For a site trying to fight for privacy, don't you think it would be better to not use Google Analytics to track the people who visit your site?
Re:Show HN: I made a neural net that analyzes privacy policies by rameerez on Sunday September 22, 2019 @04:32PM (#21043741)
Yes, definitely. I mention it in Guard's own privacy policy, I don't like using it either, but reasons are: (a) it's the simplest and as far as I know one of the few free analytics tools available, (b) not having a measure of the website activity will make me effectively blind and unable to make decisions, (c) I don't send any personally identifiable event (and, for this matter, I don't send any events apart from page loaded events). I'm also open to suggestions to replace GA.
Re:Show HN: I made a neural net that analyzes privacy policies by epoch_100 on Sunday September 22, 2019 @04:47PM (#21043837)
You could just not use user-level analytics; I run the infrastructure for PrivacySpy.org, and using CloudFlare's aggregate analytics has served us perfectly well.
Re:Show HN: I made a neural net that analyzes privacy policies by djsumdog on Sunday September 22, 2019 @04:59PM (#21043898)
Have you considered hosting your own Matomo server? You could just scrape logs or use a Javascript tracker. But the data will stay local to you.
Re:Show HN: I made a neural net that analyzes privacy policies by burnaway on Monday September 23, 2019 @02:54AM (#21046518)
+1 for Matomo, it's a no brainer for any 'privacy service' to stay far away from Google Analytics.
Re:Show HN: I made a neural net that analyzes privacy policies by digitalengineer on Monday September 23, 2019 @02:08AM (#21046335)
I’m on mobile, so I can’t check if you’re already using this technique, but you could always use the anonimize IP function. This way the last 3 numbers of the IP data will not be send through the Google Analytics script. More info: https://www.jeffalytics.com/gdpr-ip-addresses-google-analyti...
Re:Show HN: I made a neural net that analyzes privacy policies by brianberns on Sunday September 22, 2019 @03:36PM (#21043422)
How did you create a data set large and accurate enough to be useful in training a model?
Re:Show HN: I made a neural net that analyzes privacy policies by rameerez on Sunday September 22, 2019 @04:37PM (#21043773)
Some friends run an AI bootcamp and helped me finding the initial set of users to help me with labelling. Initial labelled data was generated mostly through them, both manually labelling and with the approach described in https://useguard.com/experiment Also, the model I'm using relies heavily in transfer learning and achieves very reasonable results with few labelled items (the paper in which the technique is described actually maintains that with only 100 labelled examples they reached comparable results to using 10x that data in models that use older approaches)
Re:Show HN: I made a neural net that analyzes privacy policies by fny on Monday September 23, 2019 @09:23AM (#21048663)
What paper is this? Is it the UDA paper?
Re:Show HN: I made a neural net that analyzes privacy policies by joshspankit on Sunday September 22, 2019 @07:02PM (#21044544)
Important work, and this seems to be doing a decent job already. Cheers. One thing about the teaching: some sentences don’t have anything to do with privacy, so there might be a button to train the AI on that.
Re:Show HN: I made a neural net that analyzes privacy policies by jsingleton on Sunday September 22, 2019 @01:59PM (#21042807)
Looks cool. It's a small point, but not pluralising words when the number is 1 shows attention to detail (e.g. 1 scandals for instagram).
Re:Show HN: I made a neural net that analyzes privacy policies by rameerez on Sunday September 22, 2019 @04:43PM (#21043810)
Thanks for the heads up!
Re:Show HN: I made a neural net that analyzes privacy policies by hanoz on Sunday September 22, 2019 @05:41PM (#21044143)
> It understands that "we don't share your data with third parties" is privacy friendly while "we may share your data with anyone" is a potential threat.

Does it understand "we don't share your data with just any old third parties", or "we're not like our competitors who may share your data with anyone"?

Re:Show HN: I made a neural net that analyzes privacy policies by davidkuhta on Sunday September 22, 2019 @10:23PM (#21045478)
Not OP, but curious, are those quotes actually from privacy policies or just hypotheticals?
Re:Show HN: I made a neural net that analyzes privacy policies by drusepth on Sunday September 22, 2019 @11:13PM (#21045653)
With enough sites / privacy policies out there, even hypotheticals will end up in a real policy at some point (if not already). Is there something significant in the distinction or is it just curiosity? If the latter, I also share it. :)
Re:Show HN: I made a neural net that analyzes privacy policies by domnomnom on Sunday September 22, 2019 @04:27PM (#21043720)
How do we know it isn't just people doing the analysis if we can't actually use the AI ourselves?
Re:Show HN: I made a neural net that analyzes privacy policies by rameerez on Sunday September 22, 2019 @04:42PM (#21043805)
I'm most probably publishing a paper later this year detailing the process. Also, 80 pages of my thesis would have loved this wouldn't have involved AI to make the whole thing simpler :)
Re:Show HN: I made a neural net that analyzes privacy policies by Pete-Codes on Sunday September 22, 2019 @01:32PM (#21042624)
Very nice! The fact you mentioned Tinder's T+C on Twitter got my attention.
Re:Show HN: I made a neural net that analyzes privacy policies by goldemerald on Sunday September 22, 2019 @05:50PM (#21044191)
Does your work integrate pretrained LMs like BERT or GPT2?
Re:Show HN: I made a neural net that analyzes privacy policies by rameerez on Sunday September 22, 2019 @05:51PM (#21044202)
Yes, but not Transformer-based like these two, rather LSTM-based like ULMFiT
Re:Show HN: I made a neural net that analyzes privacy policies by jph00 on Monday September 23, 2019 @01:18AM (#21046107)
Interesting! Did you have to make any substantive changes to the ULMFiT approach to make it work for this problem? Did you use the fastai implementation, or write something from scratch?

(Disclaimer: I'm a co-author on the ULMFiT paper.)

Re:Show HN: I made a neural net that analyzes privacy policies by naveen99 on Friday October 04, 2019 @10:00AM (#21157756)
off topic, but i saw in one of your fast.ai videos, you were running an autohotkey script. Made my day !
Re:Show HN: I made a neural net that analyzes privacy policies by alexcnwy on Monday September 23, 2019 @06:42AM (#21047594)
Great work - would love to read your thesis if it’s available online?
Re:Show HN: I made a neural net that analyzes privacy policies by godelmachine on Monday September 23, 2019 @04:00AM (#21046829)
>>”along with other interesting stuff like recent data breaches”

Do you have an integration with HaveIBeenPwned?

Re:Show HN: I made a neural net that analyzes privacy policies by crusty511 on Monday September 23, 2019 @04:35AM (#21046993)
> Happy to answer Qs about the tech behind [...]

What tech is involved to get something like this on the web?

Re:Show HN: I made a neural net that analyzes privacy policies by burtonator on Sunday September 22, 2019 @04:27PM (#21043717)
Hey... can you reach out to me... I'm kevin ... at datastreamer.io (trying to hide that from spam but I think you can avoid that).

I'm working on something similar at the moment for a client.

Right now I'm just starting out but I've built a privacy policy classifier that is an RNN classifier based on TensorFlow that is just an 'is this a privacy policy' classifier.

I have about 650MB of privacy policies at the moment which I fetched via a crawler. I'm just about to classify the rest of them.

I'm trying to automate the whole thing so that we have a full workflow.

Anyway... ping me to discuss.